From af62905d06499302d92f165768168d76f9138f64 Mon Sep 17 00:00:00 2001 From: Marcin Deranek Date: Mon, 9 Mar 2020 09:36:09 +0100 Subject: Remove obsolete/outdated version --- net-mail/sympa/Manifest | 17 -- net-mail/sympa/files/sympa-5.4.Makefile.am.patch | 63 ----- .../files/sympa-5.4.gentoo_default_config.patch | 47 ---- net-mail/sympa/files/sympa-5.4.initd | 49 ---- net-mail/sympa/files/sympa-5.4.locale.patch | 19 -- net-mail/sympa/files/sympa-5.4.moderation.patch | 82 ------- net-mail/sympa/files/sympa-6.0.fix.defaults.patch | 11 - net-mail/sympa/files/sympa-6.0.initd | 53 ----- net-mail/sympa/files/sympa-6.1.initd | 57 ----- net-mail/sympa/files/sympa-6.1.perl-5.22.patch | 11 - net-mail/sympa/sympa-5.4.7.ebuild | 253 -------------------- net-mail/sympa/sympa-5.4.9999.ebuild | 253 -------------------- net-mail/sympa/sympa-6.0.6.ebuild | 263 --------------------- net-mail/sympa/sympa-6.0.9999.ebuild | 263 --------------------- net-mail/sympa/sympa-6.1.25.ebuild | 262 -------------------- 15 files changed, 1703 deletions(-) delete mode 100644 net-mail/sympa/files/sympa-5.4.Makefile.am.patch delete mode 100644 net-mail/sympa/files/sympa-5.4.gentoo_default_config.patch delete mode 100644 net-mail/sympa/files/sympa-5.4.initd delete mode 100644 net-mail/sympa/files/sympa-5.4.locale.patch delete mode 100644 net-mail/sympa/files/sympa-5.4.moderation.patch delete mode 100644 net-mail/sympa/files/sympa-6.0.fix.defaults.patch delete mode 100644 net-mail/sympa/files/sympa-6.0.initd delete mode 100644 net-mail/sympa/files/sympa-6.1.initd delete mode 100644 net-mail/sympa/files/sympa-6.1.perl-5.22.patch delete mode 100644 net-mail/sympa/sympa-5.4.7.ebuild delete mode 100644 net-mail/sympa/sympa-5.4.9999.ebuild delete mode 100644 net-mail/sympa/sympa-6.0.6.ebuild delete mode 100644 net-mail/sympa/sympa-6.0.9999.ebuild delete mode 100644 net-mail/sympa/sympa-6.1.25.ebuild (limited to 'net-mail') diff --git a/net-mail/sympa/Manifest b/net-mail/sympa/Manifest index 3e5a701..b1f8a46 100644 --- a/net-mail/sympa/Manifest +++ b/net-mail/sympa/Manifest @@ -1,25 +1,8 @@ -AUX sympa-5.4.Makefile.am.patch 2540 BLAKE2B 7b9cfe5fecfa64189109a76e0819497e10192f368963cc5c7a1c6559e54ea0f390470925120f7c6519a370fe91dc8ff7abdee99514eb319841c7c3123a32c587 SHA512 17cfad32f4392904b8a96203c82b9ee8fc95e0693154cad2530d9cb73aba387a9dac2dec10a1d018f5988c0b38735b15c41a4283672a208fd9e0881d319b0aea -AUX sympa-5.4.gentoo_default_config.patch 1835 BLAKE2B 0bbf656c85ce905c1fc18df3be108d0780597f1ac16217de582781d8692b1b646fd50bf1445a06f5e70d01646e2a5b56458e5476e38f3dcd37da88f7dc59fb24 SHA512 266daea49fa224ff6f755f260ea5cd872721c01bbc245463c7e19bcb5ee1b0378222a9cc771cc762f2a8de1fde6a555ffef932ae4f7b0eb0a845d66f8634826f -AUX sympa-5.4.initd 1009 BLAKE2B 2b5c71d37b958aca7ff31526eee6d34f9d03a58c5f94e647968d2ce6e709b8971ef7bf01e8290f3b208dd1de3de934a5e2003d6ad6bfd0973c9bf746d6e63549 SHA512 2c66329e38b72994188f4202996c7666bc941197daa2f924557977c46aa03269d7702e9fab2f7aaf01fe69c7eb4c64a61c26c29c8a9f43197c45cc278f02249d -AUX sympa-5.4.locale.patch 614 BLAKE2B bb1bd2191cac38dc8c9d4aebf36ca26024920631fa3a6e86ddeadde3826a467330e43dcab5f9f1b1d8d2e065aa75ecb41918d4d0e749db5d901fe99029dfc8f9 SHA512 28565c9dc260c3bfadda187557053d01f23d0f66cc486787994ea22c425d4f7d41987b5e307476948fa6ed873a64ad2312d9a8b549c778a68a3b8ca1b46eb40d -AUX sympa-5.4.moderation.patch 2687 BLAKE2B c4fbadd6595c90a6205e458333ac442f48d5123d85b0a485c824358d3d33e355d268de067f0598904bbe9cecdbf69a20f3e3ced1a58cdcc284d6d35440aa357f SHA512 da0a4683b4b37ed6916b7957a07d7d59eabc06c2ed4ba8de6b026a0887fdaa0081b9e8ca1969e73b737e0b7d01012884c55cb63d2ab12b53c5e6fdd94b01fd42 -AUX sympa-6.0.fix.defaults.patch 401 BLAKE2B 3f0510eb56d222920cab40545d6ed6658031136f93062c6f2992fb34fd79da79930d6c09bf5405c2e8c774ef96908deb07763563818d2b2087a150dcfbfeed30 SHA512 21a35317a611c55aaba19c7da3d158b0fa38481b4cd98c9ae23b8004491acb0b3aa59d2a8536346a349415b422f83f7a917df88a53f0c1caacf63f7acf5cbaf4 -AUX sympa-6.0.initd 1101 BLAKE2B cec42e2a6e03eec7d1b17683f18b345b5c328209d5f59bc58dc21e51a1db7acf401da7b4b68af1710f97400a712cc639c5fd13665d7b43fd46a8a334fb11e156 SHA512 531295bf23e2924dc88031787aede40d4ba67d7965a684437d620e18346e0eb43fe4a66cadf7f50721743291cc21ee602c4a196d9dad80f0bb4696295a38070a -AUX sympa-6.1.initd 1233 BLAKE2B 60c089b3776840c4b20a3dfdf91a55a94f1d4dd3fbaae68b367dc3e678963133af2af98c72f7c4c07c05d446d1dd24bc99bfc506bee9bc3425e8c1ad7c1c9cbb SHA512 0175b05fed837d4be322624a208c22213ddc06f67d7fccb2da074d10ba8194e3603c953898f7daf2affb6a44ef00494997240b7de5c4ae0312509cb58945c5a1 -AUX sympa-6.1.perl-5.22.patch 391 BLAKE2B 888495e6afc1c723b4ffeca699f49f4039d1af0ad27c5e8e7da80a12a9d48adb2b648be12c6035eefa0e7ae5758e1a465a0e4a6ed063d772bf37c9b4c93feedb SHA512 4aa454602a8c106886aa5ef56cfe12749a79226ee7f7081fb7548d0ea2216c795ead1d66821c32a67c88851d7719349c082e843ef3a5dda9a75ad17f1d72ceef AUX sympa-6.2.initd 1101 BLAKE2B f367ac3730aaeda4ae8cb99bafc87291e3b2aeeecc507256ea2a3bd19a2094f6dafc00536bd8132beecd7fb214f4e25c5c0b8cfe49a28d5c14ac0f7af897286f SHA512 bf2e6fe97abf58379fe37d6cf9fa4528ccc1027217562efa9b61a66b8f6e65993f2577e5bc0ac8711d10f12ae090b848e6acd9db047cb79d3b53ea488b598940 AUX sympa-apache.conf 307 BLAKE2B 01c2cf98a32951916e0ca2472c3ac4d30a40659d4b7c0474ce10e01b151cf69ad0c7d17cc93e540240ea386005a23de276cdc1ce2e423a101af4d8fd4b120a8e SHA512 26a132c6e8fd1aec951f5755351d2ec69c34dd213a2249cb0b995938cfdf7c1ec50fe5c11780cfb0da953ba00e9fee5c6846cc5beb486b1d6e0716d0c7695486 AUX sympa-apache_soap.conf 332 BLAKE2B 97003842d7e4f57ab5df3a8ee7e971e1de8fc7a23787667e3ec3af6883f38f028c12d1986cc48e70503754e2dfb06bc68c167129eb7a32355407f177c6063714 SHA512 f54c45f0a5b49fb3e687a17ad8982c6f6cab667959ed92d2ee56f231b3bcf378b267adb3c32b26597c3af625e88f9dfdfe0cbe58a20153d224bb5f107b681891 AUX sympa-lighttpd.conf 372 BLAKE2B 701e0bc7ed328257a62d29eb5899da255a5102e8fc1c199ae8769000053fc7c771b2159be86ba7fa232cb243801352719d9cf9f985f36a84b157faff70dcb673 SHA512 765ec8521fe426da3c17186a8820982388cc6678fb038473de7310d15aa789b902df2edd055e82bfc98cc7161a2728f9f685f2da5862c466635a901d47f301e5 AUX sympa-lighttpd_soap.conf 382 BLAKE2B 08456e6603a4a2f960a818c5ab5374d03c15e5cc30aae83ad6602758d7cad857fd0b2a1995f23c37b17f3046a2f45f57e14f9b5cf7742fde0b4c23c86798d5b2 SHA512 1aac44ca4c410d90e384ac092cfbb2ead8a144ed472998266ccc9b1411e6ce6d4c02edbf46496c14585c65cfbf23cf8276901df2d54895bdf4edd3cecf447f2d AUX sympa-nginx.conf 252 BLAKE2B 51471cdc0151a10d86b396bb7d3ecca51508d53fbcce91804c2ffcfefd6ee9170502d2cc36519eb66570371150fafa81ae7ed991d38ba901e1c4248f806d06e5 SHA512 076900022f1d6c03e26301ed15514dc922a9ba9718c8a344722ad755c5caf0277daae944959f061445f58ef163d6d243670fb97b92f06e6370a1f8621762221f -DIST sympa-5.4.7.tar.gz 6622044 BLAKE2B 3d66cd1950d05a0b61c2c88ef6a172aa668d47eb8b9c51150469de5baf5b64e1eead8fa22a6354a08b71a3d30774a93758d131f609a4fce8a80bb788ca1e4fe5 SHA512 73e3bf3eb39e46b172970306068606a1d039877358fdc0b3edeaeb7d06f85091d80f4e4e55e48efe30a1e5ee7ba1d35d6ca9db9bc4e86efbc1d94363519e2c2a -DIST sympa-6.0.6.tar.gz 6731221 BLAKE2B 2f237853a95501597fa0ffc3a9cb44d105ceec11446abdf1c70af1315a4190eb113336a4336ff1f27d7066b595952d2ef9104e7e63b890a3e0cda8218f3a8eaf SHA512 d34eced0d268903bc089b9b0a4ac2d79459b9274dead37b9ebeb64c72b7258b7d3e3eda949d897c384043bf2e39b7761ac9452075efa5612ce42f8066794692d -DIST sympa-6.1.25.tar.gz 8002521 BLAKE2B 4ea12ecea6039e77b01409f007020d6681abc274f30a4dac74c7f2acc84244548ea89e17adefb487ce55972d1fddf45f1f484996dd74155a8a7240ff7acc270c SHA512 0a9c2d60ac0bcbeb1455399ebc92b8278a7dd8b2fcb7df05813f96daf954270ad0582e2edb99da0ab3d44da87173c8901165762a474239f62162232b15eaaa02 DIST sympa-6.2.48.tar.gz 12768937 BLAKE2B 188189eac2712bdab4673ca09e4a4c37d035906524a0a73d7eac74e517906b3e63c588af4636c31c3dd861850fa0e452474ff8873f454d3dfad650c05b99afb0 SHA512 b1ff034fc9a69edae266741e3b868555040bc1c4cdba9bae901729cd23b3f310895d0a9a5fe2119373880f1b65c25cd14e6753d93ad4ff15adf377f51cc25719 -EBUILD sympa-5.4.7.ebuild 7508 BLAKE2B 88e8156108ec65e48e9536c366651dda2747d15e23bf8cdc1ddd39ce2b083fa42e8af33d46381be1d40bc3e88c45582837a01ad75fa65f02444455df1907d2dc SHA512 8ae16a1e78ce5f02aac5fbcc18da8cdf7d3b4e24582dae18a376637ecf3d85c87ec832a50656ed098c531174a62e0f731e0bf8d88dc6a426d6bcb0af9a2c233d -EBUILD sympa-5.4.9999.ebuild 7497 BLAKE2B 6ec1bf0fc74950e2b1c9f43ef3a00509772b72504d9a3d26e391a8fbad8a03fd874dbdfb7c4e753d4e9d0de12fdf7a1155e071e22961bff03700f13016b917b0 SHA512 bb1d1e4490cc03ad58643852ba770ae4a932a948c377e3e9e64d8293b0dd658f48e01c9e9522105da6a24724b63d1031e10f3588bac64219201515fb45fe250e -EBUILD sympa-6.0.6.ebuild 7841 BLAKE2B 648f901d8c5b9b98886d9917a881c2da8eb86406de906c9146086a6d8715f845ac5e26a3322e6cef00b1750e1fdc7db0be06cb3184d4cbb19dd2a6f0fc24942e SHA512 ea289a7ba67839b1b6156680148d27b8418d1ccbcc8ad1d76430114aa5fabfd69481d161ded0e78367aef62f93f533e9026c32ef5c8212e44f04f9b239dcfa64 -EBUILD sympa-6.0.9999.ebuild 7830 BLAKE2B 0382ef34ee0b2c2029488a51604fb113f9163cc578f85a34bd9f56b167e60af18c1a217a9a156121ec4927bda516e693ebc8e9fe9ffe785f2402750d0be429b0 SHA512 b5512dce1e16ad45b6b9993d540ef0c29a181db8489f632e8b4fd288820804de32c53c2d0ba0d99ede05118cb971567a82498295f31e3a4fc99d0eeca482bf59 -EBUILD sympa-6.1.25.ebuild 7835 BLAKE2B 5b30b346b774369e72889940111739f23efafcd08facae3b0e0fa86e8ab0ef14f165f0ff8305693853529fd7f6cf80ce389674d4897e92e662d46154f776e380 SHA512 508cdbae5a70b798d3eec29f0bb66c67510db3384cfb3d3e0825bcf1d8f3a333d11c9f30f04d34a7097ba914307346755b92b86a27d94cd9a132af079ad36f19 EBUILD sympa-6.2.48.ebuild 8150 BLAKE2B 6a4f107bf593f5f269bbc60609155715e5909f62df72b9ca5651b36592fddd50f8978470d01791d2c651e0647386766136ad341896a5379e166ce1f7ecd86765 SHA512 49c584efdfa7531872deff018565b75147e18bdb98eb454568f3b2ebfad2100595b8b7166488177e6d0624ce64a5e5dba0a7523721beeedf8899f6b7dcc69e70 diff --git a/net-mail/sympa/files/sympa-5.4.Makefile.am.patch b/net-mail/sympa/files/sympa-5.4.Makefile.am.patch deleted file mode 100644 index 228bc43..0000000 --- a/net-mail/sympa/files/sympa-5.4.Makefile.am.patch +++ /dev/null @@ -1,63 +0,0 @@ ---- Makefile.am.orig 2007-09-19 20:12:15.520640736 +0200 -+++ Makefile.am 2007-09-19 20:12:49.344926922 +0200 -@@ -134,7 +134,7 @@ - - SH = @SH@ - CC = @CC@ --CFLAGS = -g -+CFLAGS = @CFLAGS@ - - # Aix4.2 (and some others unix), use gnu make ! - #MAKE = @MAKE@ -@@ -164,7 +163,7 @@ - LOG_SOCKET_TYPE = unix - #endif - --all: warning checkperl checkcpan sources wrapper soap_wrapper man locale -+all: sources wrapper soap_wrapper man locale - - rpm: build_rh_rpm build_mdk_rpm - -@@ -259,7 +258,7 @@ - $(MAKE) PERL='${PERL}' clean) || exit 1; \ - done; - --install: importantchanges installdir installsrc installwws installwebtt2 installmailtt2 installlocale installman installscript installsample installconfig installdoc installsoap nextstep -+install: installdir installsrc installwws installwebtt2 installmailtt2 installlocale installman installscript installsample installconfig installdoc installsoap nextstep - - nextstep: - @echo "" -@@ -339,7 +339,7 @@ - installwws: - @(cd wwsympa && echo "making in wwsympa..." && \ - $(MAKE) SH='${SH}' CC='${CC}' CFLAGS='${CFLAGS}' PERL='${PERL}' \ -- DIR='${DIR}' BINDIR='${BINDIR}' SBINDIR='${SBINDIR}' LIBDIR='${LIBDIR}' \ -+ DIR='${DIR}' BINDIR='${BINDIR}' SBINDIR='${SBINDIR}' LIBDIR='${LIBDIR}' SPOOLDIR='${SPOOLDIR}' \ - USER='${USER}' GROUP='${GROUP}' SUDO='${SUDO}' enable_secure='${enable_secure}' \ - CGIDIR='${CGIDIR}' WWSBINDIR='${WWSBINDIR}' MAILERPROGDIR='${MAILERPROGDIR}' \ - PIDDIR='${PIDDIR}' CONFIG='${CONFIG}' WWSCONFIG='${WWSCONFIG}' ETCBINDIR='${ETCBINDIR}' \ -@@ -406,7 +406,7 @@ - - installdir: - @echo "Creating required directories" -- @for dir in $(DIR) $(EXPL_DIR) $(CONFDIR) $(SAMPLEDIR) $(ETCDIR) $(BINDIR) $(LOCALEDIR) $(DOCDIR) $(DIR)/static_content $(DIR)/static_content/icons ; do \ -+ @for dir in $(DIR) $(EXPL_DIR) $(CONFDIR) $(SAMPLEDIR) $(ETCDIR) $(BINDIR) $(LOCALEDIR) $(DOCDIR) $(SPOOLDIR)/static_content $(SPOOLDIR)/static_content/icons ; do \ - if [ ! -d $(DESTDIR)$$dir ] ; then \ - echo "Creating $(DESTDIR)$$dir"; \ - mkdir -p $(DESTDIR)$$dir; \ -@@ -473,14 +472,7 @@ - INITCONF='1'; \ - fi \ - fi \ -- done; \ -- if [ "$$INITCONF" ] ; then \ -- echo "###############################################"; \ -- echo "It seems to be your first installation of Sympa"; \ -- echo "The following wizard will help you create your $(CONFDIR)/sympa.conf and $(CONFDIR)/wwsympa.conf :"; \ -- DESTDIR=$(DESTDIR); export DESTDIR; \ -- $(PERL) -I $(DESTDIR)$(LIBDIR) $(DESTDIR)$(SBINDIR)/sympa_wizard.pl; \ -- fi -+ done; - - build_rh_rpm: clean - @echo "Building RedHat RPM in $(RPMTOPDIR) ..." diff --git a/net-mail/sympa/files/sympa-5.4.gentoo_default_config.patch b/net-mail/sympa/files/sympa-5.4.gentoo_default_config.patch deleted file mode 100644 index abce32f..0000000 --- a/net-mail/sympa/files/sympa-5.4.gentoo_default_config.patch +++ /dev/null @@ -1,47 +0,0 @@ ---- src/sympa_wizard.pl.orig 2007-03-04 11:41:19.000000000 +0100 -+++ src/sympa_wizard.pl 2007-09-16 19:24:00.377085123 +0200 -@@ -92,13 +92,13 @@ - 'advice' =>''}, - - {'name' => 'arc_path', -- 'default' => '--DIR--/arc', -+ 'default' => '--SPOOLDIR--/arc', - 'query' => 'Where to store HTML archives', - 'file' => 'wwsympa.conf','edit' => '1', - 'advice' =>'Better if not in a critical partition'}, - - {'name' => 'bounce_path', -- 'default' => '--DIR--/bounce', -+ 'default' => '--SPOOLDIR--/bounce', - 'query' => 'Where to store bounces', - 'file' => 'wwsympa.conf', - 'advice' =>'Better if not in a critical partition'}, -@@ -122,13 +122,13 @@ - 'advice' =>''}, - - {'name' => 'queuebounce', -- 'default' => '--SPOOLDIR--/bounce', -+ 'default' => '--SPOOLDIR--/qbounce', - 'query' => 'Bounce incoming spool', - 'file' => 'sympa.conf', - 'advice' =>''}, - - {'name' => 'static_content_path', -- 'default' => '--DIR--/static_content', -+ 'default' => '--SPOOLDIR--/static_content', - 'query' => 'The directory where Sympa stores static contents (CSS, members pictures, documentation) directly delivered by Apache', - 'file' => 'sympa.conf', - 'advice' =>''}, ---- wwsympa/Makefile.orig 2008-01-30 18:10:56.000000000 +0100 -+++ wwsympa/Makefile 2008-04-02 09:26:53.222445659 +0200 -@@ -100,8 +100,8 @@ - - installicons: - @echo "Installing icons..." -- @echo $(DESTDIR)$(DIR)/static_content/icons -- cp icons/*.png $(DESTDIR)$(DIR)/static_content/icons -+ @echo $(DESTDIR)$(SPOOLDIR)/static_content/icons -+ cp icons/*.png $(DESTDIR)$(SPOOLDIR)/static_content/icons - - installwrapper: - @echo "Installing wwsympa-wrapper binary..." diff --git a/net-mail/sympa/files/sympa-5.4.initd b/net-mail/sympa/files/sympa-5.4.initd deleted file mode 100644 index 86ada21..0000000 --- a/net-mail/sympa/files/sympa-5.4.initd +++ /dev/null @@ -1,49 +0,0 @@ -#!/sbin/openrc-run - -opts="depend start stop" -sympaconf="/etc/sympa/sympa.conf" -wwsympaconf="/etc/sympa/wwsympa.conf" -sympadir="/usr" -depend() { - use logger mysql postgres ldap - before apache apache2 lighttpd -} - -sympa_start() { - ebegin "Starting Sympa module $1.pl: " - local MY_PID="/var/run/sympa/$1.pid" - start-stop-daemon --start --quiet --pidfile ${MY_PID} --exec $sympadir/sbin/$1.pl - eend $? -} - -sympa_stop() { - ebegin "Stopping Sympa module $1.pl: " - local MY_PID="/var/run/sympa/$1.pid" - start-stop-daemon --stop --quiet --pidfile ${MY_PID} - eend $? -} - -start() { - #Check config files - if [ ! -f $sympaconf ]; then - eerror "Missing Sympa config!" - return 1 - fi - if [ ! -f $wwsympaconf ]; then - eerror "Missing WWSympa config!" - return 1 - fi - echo "Starting Sympa subsystems: " - sympa_start sympa - sympa_start bounced - sympa_start archived - sympa_start task_manager -} - -stop(){ - echo "Stopping Sympa subsystems: " - sympa_stop bounced - sympa_stop archived - sympa_stop sympa - sympa_stop task_manager -} diff --git a/net-mail/sympa/files/sympa-5.4.locale.patch b/net-mail/sympa/files/sympa-5.4.locale.patch deleted file mode 100644 index d47ef07..0000000 --- a/net-mail/sympa/files/sympa-5.4.locale.patch +++ /dev/null @@ -1,19 +0,0 @@ ---- src/sympa.pl.orig 2008-04-25 11:14:22.778440706 +0200 -+++ src/sympa.pl 2008-04-25 11:15:04.042853056 +0200 -@@ -203,6 +203,7 @@ - ## Set locale configuration - $main::options{'lang'} =~ s/\.cat$//; ## Compatibility with version < 2.3.3 - $Language::default_lang = $main::options{'lang'} || $Conf{'lang'}; -+&Language::SetLang($Language::default_lang); - - ## Main program - if (!chdir($Conf{'home'})) { -@@ -827,8 +828,6 @@ - ## them, sleeps a while and continues the good job. - while (!$signal) { - -- &Language::SetLang($Language::default_lang); -- - &List::init_list_cache(); - - if (!opendir(DIR, $spool)) { diff --git a/net-mail/sympa/files/sympa-5.4.moderation.patch b/net-mail/sympa/files/sympa-5.4.moderation.patch deleted file mode 100644 index 8af00ea..0000000 --- a/net-mail/sympa/files/sympa-5.4.moderation.patch +++ /dev/null @@ -1,82 +0,0 @@ ---- src/Commands.pm.orig 2008-05-02 10:31:47.000000000 +0200 -+++ src/Commands.pm 2008-10-08 21:45:39.270266973 +0200 -@@ -2027,11 +2027,12 @@ - my $modqueue = &Conf::get_robot_conf($robot,'queuemod') ; - - my $name = $list->{'name'}; -- my $file; -+ my $file, $dir; - - ## For compatibility concerns - foreach my $list_id ($list->get_list_id(),$list->{'name'}) { - $file = $modqueue.'/'.$list_id.'_'.$key; -+ $dir = $modqueue.'/.'.$list_id.'_'.$key; - last if (-f $file); - } - -@@ -2040,6 +2041,7 @@ - ## For compatibility concerns - foreach my $list_id ($list->get_list_id(),$list->{'name'}) { - $file = $modqueue.'/'.$list_id.'_'.$key.'.distribute'; -+ $dir = $modqueue.'/.'.$list_id.'_'.$key; - last if (-f $file); - } - } -@@ -2102,6 +2104,7 @@ - &do_log('info', 'Message for %s from %s moved in spool %s for distribution message-id=%s', $name, $sender, $Conf{'queuedistribute'},$hdr->get('Message-Id')); - } - unlink($file); -+ &tools::remove_dir($dir); - - return 1; - } -@@ -2318,11 +2321,12 @@ - &Language::SetLang($list->{'admin'}{'lang'}); - - my $name = "$list->{'name'}"; -- my $file; -+ my $file, $dir; - - ## For compatibility concerns - foreach my $list_id ($list->get_list_id(),$list->{'name'}) { - $file = $modqueue.'/'.$list_id.'_'.$key; -+ $dir = $modqueue.'/.'.$list_id.'_'.$key; - last if (-f $file); - } - -@@ -2386,6 +2390,7 @@ - close(IN); - &do_log('info', 'REJECT %s %s from %s accepted (%d seconds)', $name, $sender, $key, time-$time_command); - unlink($file); -+ &tools::remove_dir($dir); - - return 1; - } ---- wwsympa/wwsympa.fcgi.orig 2008-04-11 11:42:53.000000000 +0200 -+++ wwsympa/wwsympa.fcgi 2008-10-08 23:11:45.242256683 +0200 -@@ -6144,7 +6144,7 @@ - $in{'id'} =~ s/\0/,/g; - - &wwslog('info', 'do_reject(%s)', $in{'id'}); -- my ($msg, $file); -+ my ($msg, $file, $dir); - - unless ($param->{'list'}) { - &report::reject_report_web('user','missing_arg',{'argument' => 'list'},$param->{'action'}); -@@ -6188,6 +6188,7 @@ - ## For compatibility concerns - foreach my $list_id ($list->get_list_id(),$list->{'name'}) { - $file = $Conf{'queuemod'}.'/'.$list_id.'_'.$id; -+ $dir = $Conf{'queuemod'}.'/.'.$list_id.'_'.$id; - last if (-f $file); - } - -@@ -6234,7 +6235,7 @@ - } - close(IN); - -- unless (unlink($file)) { -+ unless (unlink($file) && &tools::remove_dir($dir)) { - &report::reject_report_web('intern','erase_file',{'file' => $file},$param->{'action'},$list,$param->{'user'}{'email'},$robot); - &wwslog('err','do_reject: failed to erase %s', $file); - &web_db_log({'parameters' => $in{'id'}, diff --git a/net-mail/sympa/files/sympa-6.0.fix.defaults.patch b/net-mail/sympa/files/sympa-6.0.fix.defaults.patch deleted file mode 100644 index 55ea608..0000000 --- a/net-mail/sympa/files/sympa-6.0.fix.defaults.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- src/lib/confdef.pm.orig 2009-07-27 19:58:23.043761210 +0200 -+++ src/lib/confdef.pm 2009-07-27 20:05:05.871259383 +0200 -@@ -133,7 +133,7 @@ - }, - { - name => 'queuebounce', -- default => Sympa::Constants::SPOOLDIR . '/bounce', -+ default => Sympa::Constants::SPOOLDIR . '/qbounce', - query => 'Bounce incoming spool', - file => 'sympa.conf', - }, diff --git a/net-mail/sympa/files/sympa-6.0.initd b/net-mail/sympa/files/sympa-6.0.initd deleted file mode 100644 index 691ce10..0000000 --- a/net-mail/sympa/files/sympa-6.0.initd +++ /dev/null @@ -1,53 +0,0 @@ -#!/sbin/openrc-run - -opts="depend start stop" -sympaconf="/etc/sympa/sympa.conf" -wwsympaconf="/etc/sympa/wwsympa.conf" -sympadir="/usr" -depend() { - use logger mysql postgres ldap - before apache apache2 lighttpd -} - -sympa_start() { - ebegin "Starting Sympa module $1.pl: " - start-stop-daemon --start --quiet --pidfile /var/run/sympa/$1.pid --exec ${sympadir}/sbin/$1.pl - eend $? -} - -sympa_stop() { - if [ -f "/var/run/sympa/$1.pid" ]; then - ebegin "Stopping Sympa module $1.pl: " - start-stop-daemon --stop --quiet --pidfile /var/run/sympa/$1.pid - eend $? - fi -} - -start() { - #Check config files - if [ ! -f ${sympaconf} ]; then - eerror "Missing Sympa config!" - return 1 - fi - if [ ! -f ${wwsympaconf} ]; then - eerror "Missing WWSympa config!" - return 1 - fi - echo "Starting Sympa subsystems: " - sympa_start sympa - sympa_start bulk - sympa_start archived - sympa_start bounced - sympa_start task_manager -} - -stop(){ - echo "Stopping Sympa subsystems: " - sympa_stop bounced - sympa_stop archived - sympa_stop bulk - sympa_stop sympa - sympa_stop task_manager - sympa_stop sympa-distribute - sympa_stop sympa-creation -} diff --git a/net-mail/sympa/files/sympa-6.1.initd b/net-mail/sympa/files/sympa-6.1.initd deleted file mode 100644 index b54fc17..0000000 --- a/net-mail/sympa/files/sympa-6.1.initd +++ /dev/null @@ -1,57 +0,0 @@ -#!/sbin/openrc-run - -sympaconf="/etc/sympa/sympa.conf" -wwsympaconf="/etc/sympa/wwsympa.conf" -data_structure="/etc/sympa/data_structure.version" -sympadir="/usr" -rundir="/var/run/sympa" - -depend() { - use logger mysql postgres ldap - before apache apache2 lighttpd -} - -sympa_start() { - ebegin "Starting Sympa module $1.pl: " - start-stop-daemon --start --quiet --pidfile "${rundir}"/$1.pid --exec ${sympadir}/sbin/$1.pl - eend $? -} - -sympa_stop() { - if [ -f "${rundir}"/$1.pid ]; then - ebegin "Stopping Sympa module $1.pl: " - start-stop-daemon --stop --retry 30 --quiet --pidfile "${rundir}"/$1.pid - eend $? - fi -} - -start() { - if [ ! -f "${data_structure}" ]; then - eerror "Please run 'sympa.pl --upgrade' first" - return 1 - fi - # Check config files - if [ ! -f "${sympaconf}" ]; then - eerror "Missing Sympa config (${sympaconf})" - return 2 - fi - if [ ! -f "${wwsympaconf}" ]; then - eerror "Missing WWSympa config (${wwsympaconf})" - return 3 - fi - echo "Starting Sympa subsystems: " - sympa_start sympa - sympa_start bulk - sympa_start archived - sympa_start bounced - sympa_start task_manager -} - -stop(){ - echo "Stopping Sympa subsystems: " - sympa_stop task_manager - sympa_stop bounced - sympa_stop archived - sympa_stop bulk - sympa_stop sympa -} diff --git a/net-mail/sympa/files/sympa-6.1.perl-5.22.patch b/net-mail/sympa/files/sympa-6.1.perl-5.22.patch deleted file mode 100644 index d36dd5b..0000000 --- a/net-mail/sympa/files/sympa-6.1.perl-5.22.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- wwsympa/SympaSession.pm.old 2016-12-04 10:49:21.983433301 +0100 -+++ wwsympa/SympaSession.pm 2016-12-04 10:49:46.718916357 +0100 -@@ -123,7 +123,7 @@ - } - - ## Load existing session. -- if ($cookie and $cookie =~ /^\d{,16}$/) { -+ if ($cookie and $cookie =~ /^\d{1,16}$/) { - ## Compatibility: session by older releases of Sympa. - $id_session = $cookie; - $is_old_session = 1; diff --git a/net-mail/sympa/sympa-5.4.7.ebuild b/net-mail/sympa/sympa-5.4.7.ebuild deleted file mode 100644 index fa0a451..0000000 --- a/net-mail/sympa/sympa-5.4.7.ebuild +++ /dev/null @@ -1,253 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI=5 - -inherit eutils depend.apache multilib autotools versionator - -SYMPA_VERSION="$(get_version_component_range 1-2)" -SYMPA_RELEASE="$(get_version_component_range 3-)" - -if [[ ${SYMPA_VERSION} == "9999" ]] ; then - # Development version - ESVN_REPO_URI="http://svn.cru.fr/sympa/trunk" - inherit subversion -elif [[ ${SYMPA_RELEASE} == "9999" ]] ; then - # Latest stable - ESVN_REPO_URI="http://svn.cru.fr/sympa/branches/sympa-${SYMPA_VERSION}-branch" - inherit subversion -else - # Release - SRC_URI="http://www.sympa.org/distribution/${P}.tar.gz http://www.sympa.org/distribution/old/${P}.tar.gz" -fi - -DESCRIPTION="A feature-rich open source mailing list software" -HOMEPAGE="http://www.sympa.org/features.html" - -SLOT="0" -LICENSE="GPL-2" -KEYWORDS="~x86 ~amd64" -IUSE="mysql postgres sqlite sqlite3 apache2 clamav fastcgi ldap nfs soap ssl" - -# See http://www.sympa.org/manual/installing-sympa#required_cpan_modules -RDEPEND=" - >=dev-lang/perl-5.8 - ${DEPEND_APACHE} - >=dev-perl/CGI-3.35 - >=virtual/perl-DB_File-1.75 - >=virtual/perl-Digest-MD5-2.00 - >=virtual/perl-File-Spec-0.8 - >=virtual/perl-MIME-Base64-3.03 - virtual/perl-libnet - >=dev-perl/Archive-Zip-1.05 - >=dev-perl/Crypt-CipherSaber-0.90 - >=dev-perl/DBI-1.48 - >=dev-perl/HTML-StripScripts-Parser-1.0 - dev-perl/IO-stringy - >=dev-perl/MIME-Charset-0.04.1 - >=dev-perl/MIME-EncWords-0.040 - >=dev-perl/MIME-tools-5.423 - >=dev-perl/MailTools-1.51 - dev-perl/Template-Toolkit - dev-perl/XML-LibXML - dev-perl/libintl-perl - dev-perl/libwww-perl - dev-perl/regexp-common - clamav? ( app-antivirus/clamav ) - fastcgi? ( >=dev-perl/FCGI-0.67 ) - ldap? ( >=dev-perl/perl-ldap-0.27 ) - mysql? ( >=dev-perl/DBD-mysql-2.0407 ) - >=net-mail/mhonarc-2.6.0 - nfs? ( dev-perl/File-NFSLock ) - postgres? ( >=dev-perl/DBD-Pg-0.90 ) - soap? ( >=dev-perl/SOAP-Lite-0.60 ) - sqlite? ( dev-perl/DBD-SQLite2 ) - sqlite3? ( dev-perl/DBD-SQLite ) - ssl? ( dev-perl/IO-Socket-SSL - dev-libs/openssl ) - virtual/mta - " -DEPEND="${RDEPEND} - sys-devel/gettext - " - -SYMPA_USER="sympa" -SYMPA_GROUP="sympa" - -# TODO -# apache2 conf ?? -# DBD-Oracle ?? -# DBD-Sybase ?? - -pkg_setup() { - if ! ( useq mysql || useq postgres || useq sqlite || useq sqlite3 ); then - eerror - eerror "You have not specified any supported database backend in your USE flags" - eerror "Supported database backends:" - eerror "mysql, postgres, sqlite & sqlite3" - eerror - die "No database backend specified" - fi - enewgroup ${SYMPA_GROUP} - enewuser ${SYMPA_USER} -1 -1 -1 ${SYMPA_GROUP} -} - -src_unpack() { - if [[ ${SYMPA_VERSION} == "9999" ]] ; then - subversion_src_unpack - elif [[ ${SYMPA_RELEASE} == "9999" ]] ; then - subversion_src_unpack - else - unpack ${A} - fi - cd ${S} - # Gentoo specific - epatch ${FILESDIR}/${PN}-${SYMPA_VERSION}.gentoo_default_config.patch - # Ignore interactive scripts / Enable custom CFLAGS - epatch ${FILESDIR}/${PN}-${SYMPA_VERSION}.Makefile.am.patch - # Fix locale during initial startup - epatch ${FILESDIR}/${PN}-${SYMPA_VERSION}.locale.patch - # Fix moderation lefovers - epatch ${FILESDIR}/${PN}-${SYMPA_VERSION}.moderation.patch - eautoreconf -} - -src_compile() { - local myconf="" - - # No effect - # useq ssl && myconf="${myconf} --with-openssl=/usr/bin/openssl" - - econf \ - --prefix=/usr \ - --with-sbindir=/usr/sbin \ - --with-spooldir=/var/spool/sympa \ - --with-confdir=/etc/sympa \ - --with-etcdir=/etc/sympa \ - --with-cgidir=/usr/libexec/sympa \ - --with-datadir=/usr/share/sympa \ - --with-expldir=/var/lib/sympa/lists \ - --with-libdir=/usr/$(get_libdir)/sympa \ - --with-scriptdir=/usr/share/sympa/scripts \ - --with-initdir=/usr/share/sympa/scripts \ - --with-sampledir=/usr/share/doc/${P}/example \ - --with-piddir=/var/run/sympa \ - --with-mandir=/usr/share/man \ - --with-docdir=/usr/share/doc/${P} \ - --with-localedir=/usr/share/locale \ - ${myconf} \ - || die "econf failed" - emake CFLAGS="${CFLAGS} -Wl,-z,now" || die "emake failed." -} - -src_install() { - - # Pre-copy existing configs so they can be updated by Sympa install procedure - insinto /etc/sympa - [[ -f "/etc/sympa/sympa.conf" ]] && doins /etc/sympa/sympa.conf - [[ -f "/etc/sympa/wwsympa.conf" ]] && doins /etc/sympa/wwsympa.conf - emake DESTDIR="${D}" install || die "emake install failed" - - # Set permissions and ownership on config dir - fowners -R root:${SYMPA_GROUP} /etc/sympa - fperms -R u=rwX,g=rX,o= /etc/sympa - # Elevate some permissions to read config files - fperms g+s /usr/bin/{bouncequeue,familyqueue,queue} - - # Docs - dodoc AUTHORS COPYING ChangeLog INSTALL NEWS README - - # Startup script - newinitd ${FILESDIR}/${PN}-${SYMPA_VERSION}.initd ${PN} - - # Create pidfile dir - keepdir /var/run/sympa - fowners ${SYMPA_USER}:${SYMPA_GROUP} /var/run/sympa - - # Set proper fastcgi flag - if useq fastcgi; then - sed -i -r "s:^(\s*use_fast_cgi\s*).*:\11:" ${D}/etc/sympa/wwsympa.conf - else - sed -i -r "s:^(\s*use_fast_cgi\s*).*:\10:" ${D}/etc/sympa/wwsympa.conf - fi - # Update antivirus config - if useq clamav; then - sed -i -r \ - -e 's:^#?\s*antivirus_path\s*/.*:antivirus_path /usr/bin/clamscan:' \ - -e 's:^#?\s*antivirus_args\s*.*:antivirus_args --stdout:' \ - ${D}/etc/sympa/sympa.conf - else - sed -i -r \ - -e 's:^(\s*antivirus_path\s*/.*):#\1:' \ - -e 's:^(\s*antivirus_args\s*.*):#\1:' \ - ${D}/etc/sympa/sympa.conf - fi - # Update openssl config - if useq ssl; then - sed -i -r \ - -e 's:^#?\s*openssl\s*/.*:openssl /usr/bin/openssl:' \ - -e 's:^#?\s*capath\s*/.*:capath /etc/ssl/certs:' \ - -e 's:^#?\s*cafile\s*/.*:cafile /etc/ssl/certs/ca-certificates.crt:' \ - ${D}/etc/sympa/sympa.conf - else - sed -i -r \ - -e 's:^(\s*openssl\s*/.*):#\1:' \ - -e 's:^(\s*capath\s*/.*):#\1:' \ - -e 's:^(\s*cafile\s*/.*):#\1:' \ - ${D}/etc/sympa/sympa.conf - fi - # Queue dirs - keepdir /var/spool/sympa - local SYMPA_DIRS="arc auth automatic bounce digest distribute expire \ - moderation msg outgoing qbounce static_content subscribe task tmp topic" - local DIR - for DIR in ${SYMPA_DIRS}; do - keepdir /var/spool/sympa/${DIR} - fowners ${SYMPA_USER}:${SYMPA_GROUP} /var/spool/sympa/${DIR} - case "${DIR}" in - "static_content" ) - fperms 755 /var/spool/sympa/${DIR} - ;; - * ) - fperms 750 /var/spool/sympa/${DIR} - ;; - esac - done - keepdir /var/lib/sympa - keepdir /var/lib/sympa/lists - fowners ${SYMPA_USER}:${SYMPA_GROUP} /var/lib/sympa/lists - - newdoc ${FILESDIR}/${PN}-apache.conf apache.conf || \ - die "newdoc failed" - newdoc ${FILESDIR}/${PN}-apache_soap.conf apache_soap.conf || \ - die "newdoc failed" - newdoc ${FILESDIR}/${PN}-lighttpd.conf lighttpd.conf ||\ - die "newdoc failed" - newdoc ${FILESDIR}/${PN}-lighttpd_soap.conf lighttpd_soap.conf ||\ - die "newdoc failed" -} - -pkg_postinst() { - elog - elog "You need to create a database with associated database account" - elog "prior to use Sympa. That account will need general" - elog "access privileges to the Sympa database." - elog - elog "The Sympa web interface needs to be setup in your webserver." - elog "For more information please consult Sympa documentation at" - elog "http://www.sympa.org/manual/web-interface#web_server_setup" - elog "Sample configs are installed in /usr/share/doc/${P}" - elog - - if useq clamav; then - elog "By default we use clamscan antivirus scanner" - elog "(antivirus_path option in sympa.conf). For performance" - elog "reason you might want to use clamdscan which is much faster." - elog "To use it you need to do the following:" - elog - elog "# gpasswd -a clamav sympa" - elog "# /etc/init.d/clamd restart" - elog - fi -} diff --git a/net-mail/sympa/sympa-5.4.9999.ebuild b/net-mail/sympa/sympa-5.4.9999.ebuild deleted file mode 100644 index 8b6f45e..0000000 --- a/net-mail/sympa/sympa-5.4.9999.ebuild +++ /dev/null @@ -1,253 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI=5 - -inherit eutils depend.apache multilib autotools versionator - -SYMPA_VERSION="$(get_version_component_range 1-2)" -SYMPA_RELEASE="$(get_version_component_range 3-)" - -if [[ ${SYMPA_VERSION} == "9999" ]] ; then - # Development version - ESVN_REPO_URI="http://svn.cru.fr/sympa/trunk" - inherit subversion -elif [[ ${SYMPA_RELEASE} == "9999" ]] ; then - # Latest stable - ESVN_REPO_URI="http://svn.cru.fr/sympa/branches/sympa-${SYMPA_VERSION}-branch" - inherit subversion -else - # Release - SRC_URI="http://www.sympa.org/distribution/${P}.tar.gz http://www.sympa.org/distribution/old/${P}.tar.gz" -fi - -DESCRIPTION="A feature-rich open source mailing list software" -HOMEPAGE="http://www.sympa.org/features.html" - -SLOT="0" -LICENSE="GPL-2" -KEYWORDS="" -IUSE="mysql postgres sqlite sqlite3 apache2 clamav fastcgi ldap nfs soap ssl" - -# See http://www.sympa.org/manual/installing-sympa#required_cpan_modules -RDEPEND=" - >=dev-lang/perl-5.8 - ${DEPEND_APACHE} - >=dev-perl/CGI-3.35 - >=virtual/perl-DB_File-1.75 - >=virtual/perl-Digest-MD5-2.00 - >=virtual/perl-File-Spec-0.8 - >=virtual/perl-MIME-Base64-3.03 - virtual/perl-libnet - >=dev-perl/Archive-Zip-1.05 - >=dev-perl/Crypt-CipherSaber-0.90 - >=dev-perl/DBI-1.48 - >=dev-perl/HTML-StripScripts-Parser-1.0 - dev-perl/IO-stringy - >=dev-perl/MIME-Charset-0.04.1 - >=dev-perl/MIME-EncWords-0.040 - >=dev-perl/MIME-tools-5.423 - >=dev-perl/MailTools-1.51 - dev-perl/Template-Toolkit - dev-perl/XML-LibXML - dev-perl/libintl-perl - dev-perl/libwww-perl - dev-perl/regexp-common - clamav? ( app-antivirus/clamav ) - fastcgi? ( >=dev-perl/FCGI-0.67 ) - ldap? ( >=dev-perl/perl-ldap-0.27 ) - mysql? ( >=dev-perl/DBD-mysql-2.0407 ) - >=net-mail/mhonarc-2.6.0 - nfs? ( dev-perl/File-NFSLock ) - postgres? ( >=dev-perl/DBD-Pg-0.90 ) - soap? ( >=dev-perl/SOAP-Lite-0.60 ) - sqlite? ( dev-perl/DBD-SQLite2 ) - sqlite3? ( dev-perl/DBD-SQLite ) - ssl? ( dev-perl/IO-Socket-SSL - dev-libs/openssl ) - virtual/mta - " -DEPEND="${RDEPEND} - sys-devel/gettext - " - -SYMPA_USER="sympa" -SYMPA_GROUP="sympa" - -# TODO -# apache2 conf ?? -# DBD-Oracle ?? -# DBD-Sybase ?? - -pkg_setup() { - if ! ( useq mysql || useq postgres || useq sqlite || useq sqlite3 ); then - eerror - eerror "You have not specified any supported database backend in your USE flags" - eerror "Supported database backends:" - eerror "mysql, postgres, sqlite & sqlite3" - eerror - die "No database backend specified" - fi - enewgroup ${SYMPA_GROUP} - enewuser ${SYMPA_USER} -1 -1 -1 ${SYMPA_GROUP} -} - -src_unpack() { - if [[ ${SYMPA_VERSION} == "9999" ]] ; then - subversion_src_unpack - elif [[ ${SYMPA_RELEASE} == "9999" ]] ; then - subversion_src_unpack - else - unpack ${A} - fi - cd ${S} - # Gentoo specific - epatch ${FILESDIR}/${PN}-${SYMPA_VERSION}.gentoo_default_config.patch - # Ignore interactive scripts / Enable custom CFLAGS - epatch ${FILESDIR}/${PN}-${SYMPA_VERSION}.Makefile.am.patch - # Fix locale during initial startup - epatch ${FILESDIR}/${PN}-${SYMPA_VERSION}.locale.patch - # Fix moderation lefovers - epatch ${FILESDIR}/${PN}-${SYMPA_VERSION}.moderation.patch - eautoreconf -} - -src_compile() { - local myconf="" - - # No effect - # useq ssl && myconf="${myconf} --with-openssl=/usr/bin/openssl" - - econf \ - --prefix=/usr \ - --with-sbindir=/usr/sbin \ - --with-spooldir=/var/spool/sympa \ - --with-confdir=/etc/sympa \ - --with-etcdir=/etc/sympa \ - --with-cgidir=/usr/libexec/sympa \ - --with-datadir=/usr/share/sympa \ - --with-expldir=/var/lib/sympa/lists \ - --with-libdir=/usr/$(get_libdir)/sympa \ - --with-scriptdir=/usr/share/sympa/scripts \ - --with-initdir=/usr/share/sympa/scripts \ - --with-sampledir=/usr/share/doc/${P}/example \ - --with-piddir=/var/run/sympa \ - --with-mandir=/usr/share/man \ - --with-docdir=/usr/share/doc/${P} \ - --with-localedir=/usr/share/locale \ - ${myconf} \ - || die "econf failed" - emake CFLAGS="${CFLAGS} -Wl,-z,now" || die "emake failed." -} - -src_install() { - - # Pre-copy existing configs so they can be updated by Sympa install procedure - insinto /etc/sympa - [[ -f "/etc/sympa/sympa.conf" ]] && doins /etc/sympa/sympa.conf - [[ -f "/etc/sympa/wwsympa.conf" ]] && doins /etc/sympa/wwsympa.conf - emake DESTDIR="${D}" install || die "emake install failed" - - # Set permissions and ownership on config dir - fowners -R root:${SYMPA_GROUP} /etc/sympa - fperms -R u=rwX,g=rX,o= /etc/sympa - # Elevate some permissions to read config files - fperms g+s /usr/bin/{bouncequeue,familyqueue,queue} - - # Docs - dodoc AUTHORS COPYING ChangeLog INSTALL NEWS README - - # Startup script - newinitd ${FILESDIR}/${PN}-${SYMPA_VERSION}.initd ${PN} - - # Create pidfile dir - keepdir /var/run/sympa - fowners ${SYMPA_USER}:${SYMPA_GROUP} /var/run/sympa - - # Set proper fastcgi flag - if useq fastcgi; then - sed -i -r "s:^(\s*use_fast_cgi\s*).*:\11:" ${D}/etc/sympa/wwsympa.conf - else - sed -i -r "s:^(\s*use_fast_cgi\s*).*:\10:" ${D}/etc/sympa/wwsympa.conf - fi - # Update antivirus config - if useq clamav; then - sed -i -r \ - -e 's:^#?\s*antivirus_path\s*/.*:antivirus_path /usr/bin/clamscan:' \ - -e 's:^#?\s*antivirus_args\s*.*:antivirus_args --stdout:' \ - ${D}/etc/sympa/sympa.conf - else - sed -i -r \ - -e 's:^(\s*antivirus_path\s*/.*):#\1:' \ - -e 's:^(\s*antivirus_args\s*.*):#\1:' \ - ${D}/etc/sympa/sympa.conf - fi - # Update openssl config - if useq ssl; then - sed -i -r \ - -e 's:^#?\s*openssl\s*/.*:openssl /usr/bin/openssl:' \ - -e 's:^#?\s*capath\s*/.*:capath /etc/ssl/certs:' \ - -e 's:^#?\s*cafile\s*/.*:cafile /etc/ssl/certs/ca-certificates.crt:' \ - ${D}/etc/sympa/sympa.conf - else - sed -i -r \ - -e 's:^(\s*openssl\s*/.*):#\1:' \ - -e 's:^(\s*capath\s*/.*):#\1:' \ - -e 's:^(\s*cafile\s*/.*):#\1:' \ - ${D}/etc/sympa/sympa.conf - fi - # Queue dirs - keepdir /var/spool/sympa - local SYMPA_DIRS="arc auth automatic bounce digest distribute expire \ - moderation msg outgoing qbounce static_content subscribe task tmp topic" - local DIR - for DIR in ${SYMPA_DIRS}; do - keepdir /var/spool/sympa/${DIR} - fowners ${SYMPA_USER}:${SYMPA_GROUP} /var/spool/sympa/${DIR} - case "${DIR}" in - "static_content" ) - fperms 755 /var/spool/sympa/${DIR} - ;; - * ) - fperms 750 /var/spool/sympa/${DIR} - ;; - esac - done - keepdir /var/lib/sympa - keepdir /var/lib/sympa/lists - fowners ${SYMPA_USER}:${SYMPA_GROUP} /var/lib/sympa/lists - - newdoc ${FILESDIR}/${PN}-apache.conf apache.conf || \ - die "newdoc failed" - newdoc ${FILESDIR}/${PN}-apache_soap.conf apache_soap.conf || \ - die "newdoc failed" - newdoc ${FILESDIR}/${PN}-lighttpd.conf lighttpd.conf ||\ - die "newdoc failed" - newdoc ${FILESDIR}/${PN}-lighttpd_soap.conf lighttpd_soap.conf ||\ - die "newdoc failed" -} - -pkg_postinst() { - elog - elog "You need to create a database with associated database account" - elog "prior to use Sympa. That account will need general" - elog "access privileges to the Sympa database." - elog - elog "The Sympa web interface needs to be setup in your webserver." - elog "For more information please consult Sympa documentation at" - elog "http://www.sympa.org/manual/web-interface#web_server_setup" - elog "Sample configs are installed in /usr/share/doc/${P}" - elog - - if useq clamav; then - elog "By default we use clamscan antivirus scanner" - elog "(antivirus_path option in sympa.conf). For performance" - elog "reason you might want to use clamdscan which is much faster." - elog "To use it you need to do the following:" - elog - elog "# gpasswd -a clamav sympa" - elog "# /etc/init.d/clamd restart" - elog - fi -} diff --git a/net-mail/sympa/sympa-6.0.6.ebuild b/net-mail/sympa/sympa-6.0.6.ebuild deleted file mode 100644 index 6408b31..0000000 --- a/net-mail/sympa/sympa-6.0.6.ebuild +++ /dev/null @@ -1,263 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI=5 - -inherit eutils depend.apache multilib autotools versionator - -SYMPA_VERSION="$(get_version_component_range 1-2)" -SYMPA_RELEASE="$(get_version_component_range 3-)" - -if [[ ${SYMPA_VERSION} == "9999" ]] ; then - # Development version - ESVN_REPO_URI="http://svn.cru.fr/sympa/trunk" - inherit subversion -elif [[ ${SYMPA_RELEASE} == "9999" ]] ; then - # Latest stable - ESVN_REPO_URI="http://svn.cru.fr/sympa/branches/sympa-${SYMPA_VERSION}-branch" - inherit subversion -else - # Release - SRC_URI="http://www.sympa.org/distribution/${P}.tar.gz http://www.sympa.org/distribution/old/${P}.tar.gz" -fi - -DESCRIPTION="A feature-rich open source mailing list software" -HOMEPAGE="http://www.sympa.org/features.html" - -SLOT="0" -LICENSE="GPL-2" -KEYWORDS="~x86 ~amd64" -IUSE="mysql postgres sqlite sqlite3 apache2 clamav -compat fastcgi ldap nfs nls soap ssl" - -# See http://www.sympa.org/manual/installing-sympa#required_cpan_modules -RDEPEND=" - >=dev-lang/perl-5.8 - ${DEPEND_APACHE} - >=dev-perl/CGI-3.35 - >=virtual/perl-DB_File-1.75 - >=virtual/perl-Digest-MD5-2.00 - >=virtual/perl-File-Spec-0.8 - >=virtual/perl-MIME-Base64-3.03 - >=virtual/perl-Time-HiRes-1.29 - virtual/perl-libnet - >=dev-perl/Archive-Zip-1.05 - >=dev-perl/DBI-1.48 - >=dev-perl/Email-Date-Format-1.002 - >=dev-perl/File-Copy-Recursive-0.36 - dev-perl/HTML-Format - >=dev-perl/HTML-StripScripts-Parser-1.0 - dev-perl/HTML-Tree - dev-perl/IO-stringy - >=dev-perl/MIME-Charset-0.04.1 - >=dev-perl/MIME-EncWords-0.040 - >=dev-perl/MIME-Lite-3.024 - >=dev-perl/MIME-Lite-HTML-1.23 - >=dev-perl/MIME-tools-5.423 - >=dev-perl/MailTools-1.51 - >=dev-perl/Net-Netmask-1.901.500 - dev-perl/Template-Toolkit - >=dev-perl/Term-ProgressBar-2.09 - dev-perl/XML-LibXML - dev-perl/libintl-perl - dev-perl/libwww-perl - dev-perl/regexp-common - >=net-mail/mhonarc-2.6.0 - clamav? ( app-antivirus/clamav ) - compat? ( >=dev-perl/Crypt-CipherSaber-0.50 ) - fastcgi? ( >=dev-perl/FCGI-0.67 ) - ldap? ( >=dev-perl/perl-ldap-0.27 ) - mysql? ( >=dev-perl/DBD-mysql-2.0407 ) - nfs? ( dev-perl/File-NFSLock ) - postgres? ( >=dev-perl/DBD-Pg-0.90 ) - soap? ( >=dev-perl/SOAP-Lite-0.60 ) - sqlite? ( dev-perl/DBD-SQLite2 ) - sqlite3? ( dev-perl/DBD-SQLite ) - ssl? ( >=dev-perl/IO-Socket-SSL-0.90 - >=dev-perl/Net-SSLeay-1.16 - dev-libs/openssl ) - virtual/mta - " -DEPEND="${RDEPEND} - sys-devel/gettext - " - -SYMPA_USER="sympa" -SYMPA_GROUP="sympa" - -pkg_setup() { - if ! ( useq mysql || useq postgres || useq sqlite || useq sqlite3 ); then - eerror - eerror "You have not specified any supported database backend in your USE flags" - eerror "Supported database backends:" - eerror "mysql, postgres, sqlite & sqlite3" - eerror - die "No database backend specified" - fi - enewgroup ${SYMPA_GROUP} - enewuser ${SYMPA_USER} -1 -1 -1 ${SYMPA_GROUP} -} - -src_unpack() { - if [[ ${SYMPA_VERSION} == "9999" ]] ; then - subversion_src_unpack - elif [[ ${SYMPA_RELEASE} == "9999" ]] ; then - subversion_src_unpack - else - unpack ${A} - cd ${S} - fi - cd ${S} - # Override defaults for certain options - epatch ${FILESDIR}/${PN}-${SYMPA_VERSION}.fix.defaults.patch - # Gentoo specific: redefine some defaults - sed -i -e 's|^\(\s*staticdir=\).*|\1/var/spool/sympa/static_content|' \ - -e 's|^\(\s*bouncedir=\).*|\1/var/spool/sympa/bounce|' \ - -e 's|^\(\s*arcdir=\).*|\1/var/spool/sympa/arc|' \ - configure.ac - eautoreconf -} - -src_compile() { - econf \ - --prefix=/usr \ - --libdir=/usr/$(get_libdir)/sympa \ - --libexec=/usr/libexec/sympa \ - --localstatedir=/var \ - --docdir=/usr/share/doc/${P} \ - --with-localedir=/usr/share/locale \ - --sysconfdir=/etc/sympa \ - --with-confdir=/etc/sympa \ - --with-piddir=/var/run/sympa \ - --with-spooldir=/var/spool/sympa \ - --with-modulesdir=/usr/$(get_libdir)/sympa \ - --with-cgidir=/usr/libexec/sympa \ - --with-expldir=/var/lib/sympa/lists \ - --with-scriptdir=/usr/share/sympa/scripts \ - --with-initdir=/usr/share/sympa/scripts \ - --with-defaultdir=/usr/share/sympa/default \ - --with-user=${SYMPA_USER} \ - --with-group=${SYMPA_GROUP} \ - --enable-fhs \ - $(use_enable nls) \ - || die "econf failed" - emake CFLAGS="${CFLAGS} -Wl,-z,now" || die "emake failed." -} - -src_install() { - - emake DESTDIR="${D}" install || die "emake install failed" - - # Set permissions and ownership on config dir - fowners -R root:${SYMPA_GROUP} /etc/sympa - fperms -R u=rwX,g=rX,o= /etc/sympa - # Elevate some permissions to read config files - fperms g+s /usr/libexec/sympa/{bouncequeue,familyqueue,queue} - - # Docs - dodoc AUTHORS COPYING ChangeLog INSTALL NEWS README README.charset - - # Startup script - newinitd ${FILESDIR}/${PN}-${SYMPA_VERSION}.initd ${PN} - - # Create pidfile dir - keepdir /var/run/sympa - fowners ${SYMPA_USER}:${SYMPA_GROUP} /var/run/sympa - - # Set proper fastcgi flag - if useq fastcgi; then - sed -i -r "s:^(\s*use_fast_cgi\s*).*:\11:" ${D}/etc/sympa/wwsympa.conf - else - sed -i -r "s:^(\s*use_fast_cgi\s*).*:\10:" ${D}/etc/sympa/wwsympa.conf - fi - # Update antivirus config - if useq clamav; then - sed -i -r \ - -e 's:^#?\s*antivirus_path\s*/.*:antivirus_path /usr/bin/clamscan:' \ - -e 's:^#?\s*antivirus_args\s*.*:antivirus_args --stdout:' \ - ${D}/etc/sympa/sympa.conf - else - sed -i -r \ - -e 's:^(\s*antivirus_path\s*/.*):#\1:' \ - -e 's:^(\s*antivirus_args\s*.*):#\1:' \ - ${D}/etc/sympa/sympa.conf - fi - # Update openssl config - if useq ssl; then - sed -i -r \ - -e 's:^#?\s*openssl\s*/.*:openssl /usr/bin/openssl:' \ - -e 's:^#?\s*capath\s*/.*:capath /etc/ssl/certs:' \ - -e 's:^#?\s*cafile\s*/.*:cafile /etc/ssl/certs/ca-certificates.crt:' \ - ${D}/etc/sympa/sympa.conf - else - sed -i -r \ - -e 's:^(\s*openssl\s*/.*):#\1:' \ - -e 's:^(\s*capath\s*/.*):#\1:' \ - -e 's:^(\s*cafile\s*/.*):#\1:' \ - ${D}/etc/sympa/sympa.conf - fi - # Queue dirs - keepdir /var/spool/sympa - local SYMPA_DIRS="arc auth automatic bounce digest distribute expire \ - moderation msg outgoing qbounce static_content subscribe task tmp topic" - local DIR - for DIR in ${SYMPA_DIRS}; do - keepdir /var/spool/sympa/${DIR} - fowners ${SYMPA_USER}:${SYMPA_GROUP} /var/spool/sympa/${DIR} - case "${DIR}" in - "static_content" ) - fperms 755 /var/spool/sympa/${DIR} - ;; - * ) - fperms 750 /var/spool/sympa/${DIR} - ;; - esac - done - keepdir /var/lib/sympa - keepdir /var/lib/sympa/lists - - newdoc ${FILESDIR}/${PN}-apache.conf apache.conf || \ - die "newdoc failed" - newdoc ${FILESDIR}/${PN}-apache_soap.conf apache_soap.conf || \ - die "newdoc failed" - newdoc ${FILESDIR}/${PN}-lighttpd.conf lighttpd.conf ||\ - die "newdoc failed" - newdoc ${FILESDIR}/${PN}-lighttpd_soap.conf lighttpd_soap.conf ||\ - die "newdoc failed" -} - -pkg_postinst() { - elog - elog "You need to create a database with associated database account" - elog "prior to use Sympa. That account will need general" - elog "access privileges to the Sympa database." - elog - elog "The Sympa web interface needs to be setup in your webserver." - elog "For more information please consult Sympa documentation at" - elog "http://www.sympa.org/manual/web-interface#web_server_setup" - elog "Sample configs are installed in /usr/share/doc/${P}" - elog - - if useq clamav; then - elog "By default we use clamscan antivirus scanner" - elog "(antivirus_path option in sympa.conf). For performance" - elog "reason you might want to use clamdscan which is much faster." - elog "To use it you need to do the following:" - elog - elog "# gpasswd -a clamav sympa" - elog "# /etc/init.d/clamd restart" - elog - fi - - ewarn "If you are upgrading from version < ${SYMPA_VERSION} make sure" - ewarn "compat use flag is set while emerging. Pleae run:" - ewarn - ewarn "# sympa.pl --upgrade" - ewarn - ewarn "to upgrade your data structures and" - ewarn - ewarn "# sympa.pl --md5_encode_password" - ewarn - ewarn "to convert your passwords. When completed compat use flag" - ewarn "can be removed" -} diff --git a/net-mail/sympa/sympa-6.0.9999.ebuild b/net-mail/sympa/sympa-6.0.9999.ebuild deleted file mode 100644 index 8ae1225..0000000 --- a/net-mail/sympa/sympa-6.0.9999.ebuild +++ /dev/null @@ -1,263 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI=5 - -inherit eutils depend.apache multilib autotools versionator - -SYMPA_VERSION="$(get_version_component_range 1-2)" -SYMPA_RELEASE="$(get_version_component_range 3-)" - -if [[ ${SYMPA_VERSION} == "9999" ]] ; then - # Development version - ESVN_REPO_URI="http://svn.cru.fr/sympa/trunk" - inherit subversion -elif [[ ${SYMPA_RELEASE} == "9999" ]] ; then - # Latest stable - ESVN_REPO_URI="http://svn.cru.fr/sympa/branches/sympa-${SYMPA_VERSION}-branch" - inherit subversion -else - # Release - SRC_URI="http://www.sympa.org/distribution/${P}.tar.gz http://www.sympa.org/distribution/old/${P}.tar.gz" -fi - -DESCRIPTION="A feature-rich open source mailing list software" -HOMEPAGE="http://www.sympa.org/features.html" - -SLOT="0" -LICENSE="GPL-2" -KEYWORDS="" -IUSE="mysql postgres sqlite sqlite3 apache2 clamav -compat fastcgi ldap nfs nls soap ssl" - -# See http://www.sympa.org/manual/installing-sympa#required_cpan_modules -RDEPEND=" - >=dev-lang/perl-5.8 - ${DEPEND_APACHE} - >=dev-perl/CGI-3.35 - >=virtual/perl-DB_File-1.75 - >=virtual/perl-Digest-MD5-2.00 - >=virtual/perl-File-Spec-0.8 - >=virtual/perl-MIME-Base64-3.03 - >=virtual/perl-Time-HiRes-1.29 - virtual/perl-libnet - >=dev-perl/Archive-Zip-1.05 - >=dev-perl/DBI-1.48 - >=dev-perl/Email-Date-Format-1.002 - >=dev-perl/File-Copy-Recursive-0.36 - dev-perl/HTML-Format - >=dev-perl/HTML-StripScripts-Parser-1.0 - dev-perl/HTML-Tree - dev-perl/IO-stringy - >=dev-perl/MIME-Charset-0.04.1 - >=dev-perl/MIME-EncWords-0.040 - >=dev-perl/MIME-Lite-3.024 - >=dev-perl/MIME-Lite-HTML-1.23 - >=dev-perl/MIME-tools-5.423 - >=dev-perl/MailTools-1.51 - >=dev-perl/Net-Netmask-1.901.500 - dev-perl/Template-Toolkit - >=dev-perl/Term-ProgressBar-2.09 - dev-perl/XML-LibXML - dev-perl/libintl-perl - dev-perl/libwww-perl - dev-perl/regexp-common - >=net-mail/mhonarc-2.6.0 - clamav? ( app-antivirus/clamav ) - compat? ( >=dev-perl/Crypt-CipherSaber-0.50 ) - fastcgi? ( >=dev-perl/FCGI-0.67 ) - ldap? ( >=dev-perl/perl-ldap-0.27 ) - mysql? ( >=dev-perl/DBD-mysql-2.0407 ) - nfs? ( dev-perl/File-NFSLock ) - postgres? ( >=dev-perl/DBD-Pg-0.90 ) - soap? ( >=dev-perl/SOAP-Lite-0.60 ) - sqlite? ( dev-perl/DBD-SQLite2 ) - sqlite3? ( dev-perl/DBD-SQLite ) - ssl? ( >=dev-perl/IO-Socket-SSL-0.90 - >=dev-perl/Net-SSLeay-1.16 - dev-libs/openssl ) - virtual/mta - " -DEPEND="${RDEPEND} - sys-devel/gettext - " - -SYMPA_USER="sympa" -SYMPA_GROUP="sympa" - -pkg_setup() { - if ! ( useq mysql || useq postgres || useq sqlite || useq sqlite3 ); then - eerror - eerror "You have not specified any supported database backend in your USE flags" - eerror "Supported database backends:" - eerror "mysql, postgres, sqlite & sqlite3" - eerror - die "No database backend specified" - fi - enewgroup ${SYMPA_GROUP} - enewuser ${SYMPA_USER} -1 -1 -1 ${SYMPA_GROUP} -} - -src_unpack() { - if [[ ${SYMPA_VERSION} == "9999" ]] ; then - subversion_src_unpack - elif [[ ${SYMPA_RELEASE} == "9999" ]] ; then - subversion_src_unpack - else - unpack ${A} - cd ${S} - fi - cd ${S} - # Override defaults for certain options - epatch ${FILESDIR}/${PN}-${SYMPA_VERSION}.fix.defaults.patch - # Gentoo specific: redefine some defaults - sed -i -e 's|^\(\s*staticdir=\).*|\1/var/spool/sympa/static_content|' \ - -e 's|^\(\s*bouncedir=\).*|\1/var/spool/sympa/bounce|' \ - -e 's|^\(\s*arcdir=\).*|\1/var/spool/sympa/arc|' \ - configure.ac - eautoreconf -} - -src_compile() { - econf \ - --prefix=/usr \ - --libdir=/usr/$(get_libdir)/sympa \ - --libexec=/usr/libexec/sympa \ - --localstatedir=/var \ - --docdir=/usr/share/doc/${P} \ - --with-localedir=/usr/share/locale \ - --sysconfdir=/etc/sympa \ - --with-confdir=/etc/sympa \ - --with-piddir=/var/run/sympa \ - --with-spooldir=/var/spool/sympa \ - --with-modulesdir=/usr/$(get_libdir)/sympa \ - --with-cgidir=/usr/libexec/sympa \ - --with-expldir=/var/lib/sympa/lists \ - --with-scriptdir=/usr/share/sympa/scripts \ - --with-initdir=/usr/share/sympa/scripts \ - --with-defaultdir=/usr/share/sympa/default \ - --with-user=${SYMPA_USER} \ - --with-group=${SYMPA_GROUP} \ - --enable-fhs \ - $(use_enable nls) \ - || die "econf failed" - emake CFLAGS="${CFLAGS} -Wl,-z,now" || die "emake failed." -} - -src_install() { - - emake DESTDIR="${D}" install || die "emake install failed" - - # Set permissions and ownership on config dir - fowners -R root:${SYMPA_GROUP} /etc/sympa - fperms -R u=rwX,g=rX,o= /etc/sympa - # Elevate some permissions to read config files - fperms g+s /usr/libexec/sympa/{bouncequeue,familyqueue,queue} - - # Docs - dodoc AUTHORS COPYING ChangeLog INSTALL NEWS README README.charset - - # Startup script - newinitd ${FILESDIR}/${PN}-${SYMPA_VERSION}.initd ${PN} - - # Create pidfile dir - keepdir /var/run/sympa - fowners ${SYMPA_USER}:${SYMPA_GROUP} /var/run/sympa - - # Set proper fastcgi flag - if useq fastcgi; then - sed -i -r "s:^(\s*use_fast_cgi\s*).*:\11:" ${D}/etc/sympa/wwsympa.conf - else - sed -i -r "s:^(\s*use_fast_cgi\s*).*:\10:" ${D}/etc/sympa/wwsympa.conf - fi - # Update antivirus config - if useq clamav; then - sed -i -r \ - -e 's:^#?\s*antivirus_path\s*/.*:antivirus_path /usr/bin/clamscan:' \ - -e 's:^#?\s*antivirus_args\s*.*:antivirus_args --stdout:' \ - ${D}/etc/sympa/sympa.conf - else - sed -i -r \ - -e 's:^(\s*antivirus_path\s*/.*):#\1:' \ - -e 's:^(\s*antivirus_args\s*.*):#\1:' \ - ${D}/etc/sympa/sympa.conf - fi - # Update openssl config - if useq ssl; then - sed -i -r \ - -e 's:^#?\s*openssl\s*/.*:openssl /usr/bin/openssl:' \ - -e 's:^#?\s*capath\s*/.*:capath /etc/ssl/certs:' \ - -e 's:^#?\s*cafile\s*/.*:cafile /etc/ssl/certs/ca-certificates.crt:' \ - ${D}/etc/sympa/sympa.conf - else - sed -i -r \ - -e 's:^(\s*openssl\s*/.*):#\1:' \ - -e 's:^(\s*capath\s*/.*):#\1:' \ - -e 's:^(\s*cafile\s*/.*):#\1:' \ - ${D}/etc/sympa/sympa.conf - fi - # Queue dirs - keepdir /var/spool/sympa - local SYMPA_DIRS="arc auth automatic bounce digest distribute expire \ - moderation msg outgoing qbounce static_content subscribe task tmp topic" - local DIR - for DIR in ${SYMPA_DIRS}; do - keepdir /var/spool/sympa/${DIR} - fowners ${SYMPA_USER}:${SYMPA_GROUP} /var/spool/sympa/${DIR} - case "${DIR}" in - "static_content" ) - fperms 755 /var/spool/sympa/${DIR} - ;; - * ) - fperms 750 /var/spool/sympa/${DIR} - ;; - esac - done - keepdir /var/lib/sympa - keepdir /var/lib/sympa/lists - - newdoc ${FILESDIR}/${PN}-apache.conf apache.conf || \ - die "newdoc failed" - newdoc ${FILESDIR}/${PN}-apache_soap.conf apache_soap.conf || \ - die "newdoc failed" - newdoc ${FILESDIR}/${PN}-lighttpd.conf lighttpd.conf ||\ - die "newdoc failed" - newdoc ${FILESDIR}/${PN}-lighttpd_soap.conf lighttpd_soap.conf ||\ - die "newdoc failed" -} - -pkg_postinst() { - elog - elog "You need to create a database with associated database account" - elog "prior to use Sympa. That account will need general" - elog "access privileges to the Sympa database." - elog - elog "The Sympa web interface needs to be setup in your webserver." - elog "For more information please consult Sympa documentation at" - elog "http://www.sympa.org/manual/web-interface#web_server_setup" - elog "Sample configs are installed in /usr/share/doc/${P}" - elog - - if useq clamav; then - elog "By default we use clamscan antivirus scanner" - elog "(antivirus_path option in sympa.conf). For performance" - elog "reason you might want to use clamdscan which is much faster." - elog "To use it you need to do the following:" - elog - elog "# gpasswd -a clamav sympa" - elog "# /etc/init.d/clamd restart" - elog - fi - - ewarn "If you are upgrading from version < ${SYMPA_VERSION} make sure" - ewarn "compat use flag is set while emerging. Pleae run:" - ewarn - ewarn "# sympa.pl --upgrade" - ewarn - ewarn "to upgrade your data structures and" - ewarn - ewarn "# sympa.pl --md5_encode_password" - ewarn - ewarn "to convert your passwords. When completed compat use flag" - ewarn "can be removed" -} diff --git a/net-mail/sympa/sympa-6.1.25.ebuild b/net-mail/sympa/sympa-6.1.25.ebuild deleted file mode 100644 index 67750b6..0000000 --- a/net-mail/sympa/sympa-6.1.25.ebuild +++ /dev/null @@ -1,262 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI=5 - -inherit eutils user multilib autotools versionator - -SYMPA_VERSION="$(get_version_component_range 1-2)" -SYMPA_RELEASE="$(get_version_component_range 3-)" - -if [[ ${SYMPA_VERSION} == "9999" ]] ; then - # Development version - ESVN_REPO_URI="http://svn.cru.fr/sympa/trunk" - inherit subversion -elif [[ ${SYMPA_RELEASE} == "9999" ]] ; then - # Latest stable - ESVN_REPO_URI="http://svn.cru.fr/sympa/branches/sympa-${SYMPA_VERSION}-branch" - inherit subversion -else - # Release - SRC_URI="http://www.sympa.org/distribution/${P}.tar.gz http://www.sympa.org/distribution/old/${P}.tar.gz" -fi - -DESCRIPTION="A feature-rich open source mailing list software" -HOMEPAGE="http://www.sympa.org/" - -SLOT="0" -LICENSE="GPL-2" -KEYWORDS="~x86 ~amd64" -IUSE="clamav -compat dkim fastcgi ldap mysql nfs nls postgres soap sqlite ssl" -REQUIRED_USE="|| ( mysql postgres sqlite )" - -# See http://www.sympa.org/manual/installing-sympa#required_cpan_modules -RDEPEND=" - >=dev-lang/perl-5.8 - >=dev-perl/CGI-3.51 - >=virtual/perl-DB_File-1.75 - >=virtual/perl-Digest-MD5-2.00 - virtual/perl-Encode - >=virtual/perl-MIME-Base64-3.03 - >=virtual/perl-Time-HiRes-1.29 - virtual/perl-libnet - >=dev-perl/Archive-Zip-1.05 - dev-perl/Data-Password - >=dev-perl/DBI-1.48 - >=dev-perl/File-Copy-Recursive-0.36 - dev-perl/HTML-Format - >=dev-perl/HTML-StripScripts-Parser-1.03 - dev-perl/HTML-Tree - dev-perl/IO-stringy - >=dev-perl/MailTools-1.70 - >=dev-perl/MIME-Charset-1.010 - >=dev-perl/MIME-EncWords-1.014 - >=dev-perl/MIME-Lite-HTML-1.23 - >=dev-perl/MIME-tools-5.423 - >=dev-perl/Net-DNS-0.65 - >=dev-perl/Net-Netmask-1.901.500 - dev-perl/Template-Toolkit - >=dev-perl/Term-ProgressBar-2.09 - >=dev-perl/Unicode-LineBreak-2011.05 - >=dev-perl/URI-1.35 - dev-perl/XML-LibXML - dev-perl/libintl-perl - dev-perl/libwww-perl - >=net-mail/mhonarc-2.6.18 - clamav? ( app-antivirus/clamav ) - compat? ( >=dev-perl/Crypt-CipherSaber-0.50 ) - dkim? ( >=dev-perl/Mail-DKIM-0.39 ) - fastcgi? ( dev-perl/CGI-Fast ) - ldap? ( >=dev-perl/perl-ldap-0.27 ) - mysql? ( >=dev-perl/DBD-mysql-4.008 ) - nfs? ( dev-perl/File-NFSLock ) - postgres? ( >=dev-perl/DBD-Pg-0.90 ) - soap? ( >=dev-perl/SOAP-Lite-0.712 ) - sqlite? ( >=dev-perl/DBD-SQLite-0.90 ) - ssl? ( >=dev-perl/IO-Socket-SSL-0.90 - dev-libs/openssl ) - virtual/mta - " -DEPEND="${RDEPEND} - sys-devel/gettext - " - -SYMPA_USER="sympa" -SYMPA_GROUP="sympa" - -pkg_setup() { - enewgroup ${SYMPA_GROUP} - enewuser ${SYMPA_USER} -1 -1 -1 ${SYMPA_GROUP} -} - -src_unpack() { - if [[ ${SYMPA_VERSION} == "9999" ]] ; then - subversion_src_unpack - elif [[ ${SYMPA_RELEASE} == "9999" ]] ; then - subversion_src_unpack - else - unpack ${A} - cd ${S} - fi - cd ${S} - # Override defaults for certain options, so - # Sympa won't complain about conflicting paths - sed -i -e "/'queuebounce'/,/}/ s|'/bounce'|'/qbounce'|" src/lib/confdef.pm - # Gentoo specific: redefine some defaults - sed -i -e 's|^\(\s*staticdir=\).*|\1/var/spool/sympa/static_content|' \ - -e 's|^\(\s*bouncedir=\).*|\1/var/spool/sympa/bounce|' \ - -e 's|^\(\s*arcdir=\).*|\1/var/spool/sympa/arc|' \ - configure.ac - # Do not create runtime directories - sed -i -e 's| $(piddir) | |' Makefile.am - # Perl 5.22 compatible regex - epatch ${FILESDIR}/${PN}-${SYMPA_VERSION}.perl-5.22.patch - eautoreconf -} - -src_configure() { - econf \ - --prefix=/usr \ - --libdir=/usr/$(get_libdir)/sympa \ - --libexec=/usr/libexec/sympa \ - --localstatedir=/var \ - --docdir=/usr/share/doc/${P} \ - --with-localedir=/usr/share/locale \ - --sysconfdir=/etc/sympa \ - --with-confdir=/etc/sympa \ - --with-piddir=/var/run/sympa \ - --with-spooldir=/var/spool/sympa \ - --with-modulesdir=/usr/$(get_libdir)/sympa \ - --with-cgidir=/usr/libexec/sympa \ - --with-expldir=/var/lib/sympa/lists \ - --with-scriptdir=/usr/share/sympa/scripts \ - --with-initdir=/usr/share/sympa/scripts \ - --with-defaultdir=/usr/share/sympa/default \ - --with-user=${SYMPA_USER} \ - --with-group=${SYMPA_GROUP} \ - --enable-fhs \ - $(use_enable nls) \ - || die "econf failed" -} - -src_compile() { - emake CFLAGS="${CFLAGS} -Wl,-z,now" -} - -src_install() { - - emake DESTDIR="${D}" install - - # Do not overwrite data_structure.version - rm -f "${D}/etc/sympa/data_structure.version" - # Set permissions and ownership on config files - fowners root:${SYMPA_GROUP} /etc/sympa/sympa.conf /etc/sympa/wwsympa.conf - fperms u=rwX,g=rX,o= /etc/sympa/sympa.conf /etc/sympa/wwsympa.conf - # Elevate some permissions to read config files - fperms g+s /usr/libexec/sympa/{bouncequeue,familyqueue,queue} - - # Docs - dodoc AUTHORS COPYING ChangeLog INSTALL NEWS README README.charset - - # Startup script - newinitd "${FILESDIR}/${PN}-${SYMPA_VERSION}.initd" "${PN}" - - # Set proper fastcgi flag - if use fastcgi; then - sed -i -r 's:^(\s*use_fast_cgi\s*).*:\11:' "${D}/etc/sympa/wwsympa.conf" - else - sed -i -r 's:^(\s*use_fast_cgi\s*).*:\10:' "${D}/etc/sympa/wwsympa.conf" - fi - # Update antivirus config - if use clamav; then - sed -i -r \ - -e 's:^#?\s*antivirus_path\s*/.*:antivirus_path /usr/bin/clamscan:' \ - -e 's:^#?\s*antivirus_args\s*.*:antivirus_args --stdout:' \ - "${D}/etc/sympa/sympa.conf" - else - sed -i -r \ - -e 's:^(\s*antivirus_path\s*/.*):#\1:' \ - -e 's:^(\s*antivirus_args\s*.*):#\1:' \ - "${D}/etc/sympa/sympa.conf" - fi - # Update openssl config - if use ssl; then - sed -i -r \ - -e 's:^#?\s*openssl\s*/.*:openssl /usr/bin/openssl:' \ - -e 's:^#?\s*capath\s*/.*:capath /etc/ssl/certs:' \ - -e 's:^#?\s*cafile\s*/.*:cafile /etc/ssl/certs/ca-certificates.crt:' \ - "${D}/etc/sympa/sympa.conf" - else - sed -i -r \ - -e 's:^(\s*openssl\s*/.*):#\1:' \ - -e 's:^(\s*capath\s*/.*):#\1:' \ - -e 's:^(\s*cafile\s*/.*):#\1:' \ - "${D}/etc/sympa/sympa.conf" - fi - # Queue dirs - keepdir /var/spool/sympa - local SYMPA_DIRS="arc auth automatic bounce digest distribute expire \ - moderation msg outgoing qbounce static_content subscribe task tmp topic" - local DIR - for DIR in ${SYMPA_DIRS}; do - keepdir /var/spool/sympa/${DIR} - fowners ${SYMPA_USER}:${SYMPA_GROUP} /var/spool/sympa/${DIR} - case "${DIR}" in - "static_content" ) - fperms 755 /var/spool/sympa/${DIR} - ;; - * ) - fperms 750 /var/spool/sympa/${DIR} - ;; - esac - done - keepdir /var/lib/sympa - keepdir /var/lib/sympa/lists - - newdoc "${FILESDIR}/${PN}-apache.conf" apache.conf - newdoc "${FILESDIR}/${PN}-apache_soap.conf" apache_soap.conf - newdoc "${FILESDIR}/${PN}-lighttpd.conf" lighttpd.conf - newdoc "${FILESDIR}/${PN}-lighttpd_soap.conf" lighttpd_soap.conf - newdoc "${FILESDIR}/${PN}-nginx.conf" nginx.conf -} - -pkg_postinst() { - elog - elog "You need to create a database with associated database account" - elog "prior to use Sympa. That account will need general" - elog "access privileges to the Sympa database." - elog - elog "The Sympa web interface needs to be setup in your webserver." - elog "For more information please consult Sympa documentation at" - elog "http://www.sympa.org/manual/web-interface#web_server_setup" - elog "Sample configs are installed in /usr/share/doc/${P}" - elog - - if use clamav; then - elog "By default we use clamscan antivirus scanner" - elog "(antivirus_path option in sympa.conf). For performance" - elog "reason you might want to use clamdscan which is much faster." - elog "To use it you need to do the following:" - elog - elog "# gpasswd -a clamav sympa" - elog "# /etc/init.d/clamd restart" - elog - fi - - ewarn "If you are upgrading from an earlier version please run:" - ewarn - ewarn "# sympa.pl --upgrade" - ewarn - ewarn "If you are upgrading from version 5.x make sure" - ewarn "compat use flag is set while emerging, then run:" - ewarn - ewarn "# sympa.pl --upgrade" - ewarn - ewarn "to upgrade your data structures and" - ewarn - ewarn "# sympa.pl --md5_encode_password" - ewarn - ewarn "to convert your passwords. When completed compat use flag" - ewarn "can be removed" -} -- cgit v1.2.3