summaryrefslogtreecommitdiff
path: root/net-mail/sympa/files
diff options
context:
space:
mode:
authorMarcin Deranek <marcin.deranek@slonko.net>2014-09-29 09:02:24 +0200
committerMarcin Deranek <marcin.deranek@slonko.net>2014-09-29 09:02:24 +0200
commit103cf8b2ebc990a52011b7b0adeab45dc63ee99d (patch)
tree8cf2d2fef53dd6a17ed142614ccc255f3db29246 /net-mail/sympa/files
downloadportage-103cf8b2ebc990a52011b7b0adeab45dc63ee99d.tar.gz
portage-103cf8b2ebc990a52011b7b0adeab45dc63ee99d.tar.bz2
portage-103cf8b2ebc990a52011b7b0adeab45dc63ee99d.zip
Initial commit
Diffstat (limited to 'net-mail/sympa/files')
-rw-r--r--net-mail/sympa/files/sympa-5.4.Makefile.am.patch63
-rw-r--r--net-mail/sympa/files/sympa-5.4.gentoo_default_config.patch47
-rw-r--r--net-mail/sympa/files/sympa-5.4.initd49
-rw-r--r--net-mail/sympa/files/sympa-5.4.locale.patch19
-rw-r--r--net-mail/sympa/files/sympa-5.4.moderation.patch82
-rw-r--r--net-mail/sympa/files/sympa-6.0.fix.defaults.patch11
-rw-r--r--net-mail/sympa/files/sympa-6.0.initd53
-rw-r--r--net-mail/sympa/files/sympa-6.1.initd56
-rw-r--r--net-mail/sympa/files/sympa-apache.conf11
-rw-r--r--net-mail/sympa/files/sympa-apache_soap.conf11
-rw-r--r--net-mail/sympa/files/sympa-lighttpd.conf14
-rw-r--r--net-mail/sympa/files/sympa-lighttpd_soap.conf14
-rw-r--r--net-mail/sympa/files/sympa-nginx.conf9
13 files changed, 439 insertions, 0 deletions
diff --git a/net-mail/sympa/files/sympa-5.4.Makefile.am.patch b/net-mail/sympa/files/sympa-5.4.Makefile.am.patch
new file mode 100644
index 0000000..228bc43
--- /dev/null
+++ b/net-mail/sympa/files/sympa-5.4.Makefile.am.patch
@@ -0,0 +1,63 @@
+--- 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
new file mode 100644
index 0000000..abce32f
--- /dev/null
+++ b/net-mail/sympa/files/sympa-5.4.gentoo_default_config.patch
@@ -0,0 +1,47 @@
+--- 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
new file mode 100644
index 0000000..9acb21c
--- /dev/null
+++ b/net-mail/sympa/files/sympa-5.4.initd
@@ -0,0 +1,49 @@
+#!/sbin/runscript
+
+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
new file mode 100644
index 0000000..d47ef07
--- /dev/null
+++ b/net-mail/sympa/files/sympa-5.4.locale.patch
@@ -0,0 +1,19 @@
+--- 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
new file mode 100644
index 0000000..8af00ea
--- /dev/null
+++ b/net-mail/sympa/files/sympa-5.4.moderation.patch
@@ -0,0 +1,82 @@
+--- 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
new file mode 100644
index 0000000..55ea608
--- /dev/null
+++ b/net-mail/sympa/files/sympa-6.0.fix.defaults.patch
@@ -0,0 +1,11 @@
+--- 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
new file mode 100644
index 0000000..81b8321
--- /dev/null
+++ b/net-mail/sympa/files/sympa-6.0.initd
@@ -0,0 +1,53 @@
+#!/sbin/runscript
+
+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
new file mode 100644
index 0000000..4a96af8
--- /dev/null
+++ b/net-mail/sympa/files/sympa-6.1.initd
@@ -0,0 +1,56 @@
+#!/sbin/runscript
+
+sympaconf="/etc/sympa/sympa.conf"
+wwsympaconf="/etc/sympa/wwsympa.conf"
+data_structure="/etc/sympa/data_structure.version"
+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 --retry 30 --quiet --pidfile /var/run/sympa/$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-apache.conf b/net-mail/sympa/files/sympa-apache.conf
new file mode 100644
index 0000000..94098f8
--- /dev/null
+++ b/net-mail/sympa/files/sympa-apache.conf
@@ -0,0 +1,11 @@
+Alias /static-sympa /var/spool/sympa/static_content
+
+<IfDefine SYMPA>
+ ScriptAlias /sympa /usr/libexec/sympa/wwsympa-wrapper.fcgi
+ <IfDefine FASTCGI>
+ FastCgiServer /usr/libexec/sympa/wwsympa-wrapper.fcgi -processes 2
+ <Location /sympa>
+ SetHandler fastcgi-script
+ </Location>
+ </Ifdefine>
+</Ifdefine>
diff --git a/net-mail/sympa/files/sympa-apache_soap.conf b/net-mail/sympa/files/sympa-apache_soap.conf
new file mode 100644
index 0000000..553df34
--- /dev/null
+++ b/net-mail/sympa/files/sympa-apache_soap.conf
@@ -0,0 +1,11 @@
+Alias /static-sympa /var/spool/sympa/static_content
+
+<IfDefine SYMPA_SOAP>
+ ScriptAlias /sympa /usr/libexec/sympa/sympa_soap_server-wrapper.fcgi
+ <IfDefine FASTCGI>
+ FastCgiServer /usr/libexec/sympa/sympa_soap_server-wrapper.fcgi -processes 2
+ <Location /sympa>
+ SetHandler fastcgi-script
+ </Location>
+ </Ifdefine>
+</Ifdefine>
diff --git a/net-mail/sympa/files/sympa-lighttpd.conf b/net-mail/sympa/files/sympa-lighttpd.conf
new file mode 100644
index 0000000..7023086
--- /dev/null
+++ b/net-mail/sympa/files/sympa-lighttpd.conf
@@ -0,0 +1,14 @@
+server.modules += ("mod_fastcgi")
+
+alias.url += ( "/static-sympa/" => "/var/spool/sympa/static_content/" )
+
+$HTTP["url"] =~ "^/sympa" {
+fastcgi.server = ( "/sympa" =>
+ (( "check-local" => "disable",
+ "bin-path" => "/usr/libexec/sympa/wwsympa-wrapper.fcgi",
+ "socket" => "/var/run/lighttpd/sympa.sock",
+ "max-procs" => 2,
+ "idle-timeout" => 20,
+ ))
+ )
+}
diff --git a/net-mail/sympa/files/sympa-lighttpd_soap.conf b/net-mail/sympa/files/sympa-lighttpd_soap.conf
new file mode 100644
index 0000000..121114f
--- /dev/null
+++ b/net-mail/sympa/files/sympa-lighttpd_soap.conf
@@ -0,0 +1,14 @@
+server.modules += ("mod_fastcgi")
+
+alias.url += ( "/static-sympa/" => "/var/spool/sympa/static_content/" )
+
+$HTTP["url"] =~ "^/sympa" {
+fastcgi.server = ( "/sympa" =>
+ (( "check-local" => "disable",
+ "bin-path" => "/usr/libexec/sympa/sympa_soap_server-wrapper.fcgi",
+ "socket" => "/var/run/lighttpd/sympa.sock",
+ "max-procs" => 2,
+ "idle-timeout" => 20,
+ ))
+ )
+}
diff --git a/net-mail/sympa/files/sympa-nginx.conf b/net-mail/sympa/files/sympa-nginx.conf
new file mode 100644
index 0000000..9b8e1ab
--- /dev/null
+++ b/net-mail/sympa/files/sympa-nginx.conf
@@ -0,0 +1,9 @@
+location /sympa {
+ fastcgi_split_path_info ^(/sympa)(.*);
+ fastcgi_param PATH_INFO $fastcgi_path_info;
+ fastcgi_pass unix:/var/run/sympa.sock;
+ include fastcgi_params;
+}
+location /static-sympa {
+ alias /var/spool/sympa/static_content;
+}