[Pkg-sympa-commits] [sympa] 10/28: Remove useless examples

Emmanuel Bouthenot kolter at moszumanska.debian.org
Wed Jun 11 21:53:02 UTC 2014


This is an automated email from the git hooks/post-receive script.

kolter pushed a commit to branch master
in repository sympa.

commit ce19f31ab5c373648fdf0dcb160650f28bd9173a
Author: Emmanuel Bouthenot <kolter at openics.org>
Date:   Thu May 15 23:59:09 2014 +0200

    Remove useless examples
---
 debian/conf/sympa.conf     | 111 ---------------------------------------------
 debian/conf/wwsympa.conf   |  33 --------------
 debian/examples/tulp2sympa |  69 ----------------------------
 debian/rules               |   6 ---
 debian/sympa.install       |   3 --
 5 files changed, 222 deletions(-)

diff --git a/debian/conf/sympa.conf b/debian/conf/sympa.conf
deleted file mode 100644
index 32d26ae..0000000
--- a/debian/conf/sympa.conf
+++ /dev/null
@@ -1,111 +0,0 @@
-## Configuration file for Sympa
-## refer to the documentation for a detailed list of parameters
-
-## Directory containing config. files for the lists, helpfile and list
-## of lists. Non-absolute path is relative to this directory.
-home		/var/lib/sympa/expl
-
-## Directory for configuration files
-## It also contains scenari/ and templates/ directories
-etc		/etc/sympa
-
-## File containing Sympa PID while running. Sympa also locks this file to
-## ensure that it isn't running more than once. Caution : user sympa
-## need to write access without special privilegee.
-pidfile		/var/run/sympa/sympa.pid
-
-## Umask used for file creation by Sympa
-umask		027
-
-## Facility used by Syslogd
-syslog		`cat /etc/sympa/facility`
-
-## Communication mode with syslogd is either 'unix' (via Unix sockets) or
-## 'inet' (use of UDP)
-log_socket_type	unix
-
-## Maximum number of recipients per call to Sendmail
-nrcpt		40
-
-## Average number of recipients (ie max. number of different domains)
-## per call to Sendmail
-avg		10
-
-## Max. number of Sendmail processes (launched by Sympa) running simultaneously
-## Proposed value is quite low, you can rise it up to 100, 200 or even 300
-## with powerfull systems.
-maxsmtp		50
-
-## The full path to the Message Transfer Agent program (default is Sendmail 8.7
-## or above)
-sendmail	/usr/sbin/sendmail
-
-## Name of the host for Sympa
-domain		`/bin/cat /etc/mailname || /bin/hostname -f`
-
-## Listmaster
-listmaster	`echo -n listmaster@; /bin/cat /etc/mailname || /bin/hostname -f`
-
-## WWSympa root URL
-wwsympa_url	`echo -n 'http://'; hostname -f | tr -d "\n"; echo -n '/wws'`
-
-## Cookie used to generate MD5 authentication keys
-cookie		`/bin/cat /etc/sympa/cookie`
-
-## E-mail address for sending / replying to administrative commands
-## Effective address will be $EMAIL@$HOST
-email		sympa
-
-## Directory containig available NLS catalogues (Message internationalization).
-## At startup, Sympa uses default.cat if it exists.
-msgcat		/usr/lib/sympa/nls
-
-## default language
-lang		us
-
-#### Spools location
-
-## Parent directory containing all spools
-spool		/var/spool/sympa
-
-## Directory is the main spool containing mails to be processed by Sympa
-## (commands or messages). This should be the absolute path.
-queue		/var/spool/sympa/queue
-
-## Expiration delay for BAD-* files in queue directory
-clean_delay_queue 1
-
-## Digest spool
-queuedigest	/var/spool/sympa/queuedigest
-
-## Moderation spool (when send is set to editorkey or editorkeyonly)
-queuemod	/var/spool/sympa/queuemod
-
-## Expiration delay for moderation requests, (may be configure per list
-## in the list config file)
-clean_delay_queuemod 10
-
-## Authentication spool. It contains authentication requests waiting for
-## the requester to confirm (send param. set to privatekey/publickey)
-queueauth	/var/spool/sympa/queueauth
-
-## Expiration delay in the authentication spool
-clean_delay_queueauth 3
-
-## Subscription expiration spool (Cf EXPIRE command)
-queueexpire	/var/spool/sympa/queueexpire
-
-## Bounce queue
-queuebounce	/var/spool/sympa/queuebounce
-
-## Outgoing queue
-queueoutgoing	/var/spool/sympa/queueoutgoing
-
-## Directory for task files created by the task manager
-queuetask	/var/spool/sympa/queuetask
-
-## Delay between two scan of the main spool (queue). Avoid Zero value !
-sleep		5
-
-## Temporaty directory
-tmpdir		/var/spool/sympa/tmp
diff --git a/debian/conf/wwsympa.conf b/debian/conf/wwsympa.conf
deleted file mode 100644
index 49ed8cc..0000000
--- a/debian/conf/wwsympa.conf
+++ /dev/null
@@ -1,33 +0,0 @@
-# PLEASE RUN dpkg-reconfigure -plow wwsympa TO RECONFIGURE wwsympa
-
-# chose to use cgilib or Fast_CGI. CGILIB is probably just for test and will
-# provide bad response delay but easier install if you don't want to compile apache ... (template variable)
-use_fast_cgi		0
-
-# where to store html archives, probably NOT on the same partition as sympa
-arc_path		/var/lib/sympa/wwsarchive
-
-# Archived pid file
-archived_pidfile	/var/run/sympa/archived.pid
-
-# Archive default index
-archive_default_index thrd
-
-# Bounces are stored in [bounce_path]/[listname] dir
-bounce_path		/var/spool/sympa/wwsbounce
-
-# Bounced pid file
-bounced_pidfile		/var/run/sympa/bounced.pid
-
-# path to the wonderfull mhonarc application. Required for html archives
-# http://www.oac.uci.edu/indiv/ehood/mhonarc.html
-mhonarc			/usr/bin/mhonarc
-
-## Main page title (template variable)
-title			Mailing Lists Service
-
-## HTTP cookies lifetime
-cookie_expire		30
-
-## Domain for the HTTP cookies
-cookie_domain		localhost
diff --git a/debian/examples/tulp2sympa b/debian/examples/tulp2sympa
deleted file mode 100644
index f72b690..0000000
--- a/debian/examples/tulp2sympa
+++ /dev/null
@@ -1,69 +0,0 @@
-#!/usr/bin/perl
-
-# I got this script from Stéphane Bortzmeyer <bortz at pasteur.fr>
-# You need to launch it for each list
-# perl ./tulp2sympa list-name
-
-# Ce script m'a été fourni par Stéphane Bortzmeyer <bortz at pasteur.fr>
-# Il faut le lancer à la main pour chaque liste :
-# perl ./tulp2sympa nom_de_la_liste
-
-$tulp_dir = "/home/listserv/expl";
-$sympa_dir = "/var/spool/sympa/expl";
-
-$list = shift (@ARGV);
-
-if (! $list) {
-	die "Usage: $0 list-name"
-}
-
-if (! -e "$tulp_dir/$list.u") {
-	die "I cannot find list $list in $tulp_dir";
-}
-
-open (OLD, "< $tulp_dir/$list.u") || die "Cannot open old config: $!";
-mkdir ("$sympa_dir/$list", 0700) || die "Cannot mkdir in $sympa_dir: $!";
-open (STATS, "> $sympa_dir/$list/stats");
-open (ABONNES, "> $sympa_dir/$list/abonnes");
-if (-e "$tulp_dir/$list.w") {
-	open (DOTW, "< $tulp_dir/$list.w");
-	open (BIENVENUE, "> $sympa_dir/$list/bienvenue");
-	while (<DOTW>) {
-		print BIENVENUE;
-	}	
-	close (DOTW);
-	close (BIENVENUE);
-}
-open (CONFIG, "> $sympa_dir/$list/config");
-open (ABONNES, "> $sympa_dir/$list/abonnes");
-$in_abonnes = 0;
-while (<OLD>) {
-	if (/\s*#/) {
-		/^\s*#\s*([a-zA-Z]+)\s*=\s*(.*)$/;
-		$keyword = $1;
-		$value = $2;
-		if ($keyword =~ /^owner$/i) {
-			print CONFIG "owner \n";
-			print CONFIG "email $value\n\n";
-		} else {
-			print CONFIG "$keyword $value\n";
-		}
-	} elsif (/^\s*$/) {
-		# Ignore empty lines
-	} else {
-		/^\s*([a-zA-Z0-9\.\-_@%<>\"]+)\s*(\(([^\)]*)\)|)\s*$/;
-		$email = $1;
-		$gecos = $2;
-		if (! $email) {
-			die "Strange line $_";
-		}
-		print ABONNES "date \n";
-		print ABONNES "email $email\n";
-		print ABONNES "gecos $gecos\n\n";
-	}
-}
-close (OLD);
-close (CONFIG);
-close (ABONNES);
-
-system "chown -R sympa.sympa $sympa_dir/$list";
diff --git a/debian/rules b/debian/rules
index 8f428c2..cb3cb65 100755
--- a/debian/rules
+++ b/debian/rules
@@ -54,8 +54,6 @@ DEB_CONFIGURE_EXTRA_FLAGS = \
 
 DEB_MAKE_INSTALL_TARGET = install DESTDIR="$(DEB_DESTDIR)"
 
-DEB_INSTALL_EXAMPLES_sympa = debian/examples/tulp2sympa
-
 man8basenames = alias_manager archived bounced sympa
 DEB_INSTALL_MANPAGES_sympa = $(man8basenames:%=doc/man8/%.8)
 
@@ -147,10 +145,6 @@ binary-post-install/sympa::
 # Move upstream sample dir below Debian example dir
 	cd "$(DEB_DESTDIR)/usr/share/doc/$(cdbs_curpkg)" && mv sample/ examples/
 
-# Rename example file topics.conf -> topics.us.conf
-	mv "$(DEB_DESTDIR)"/usr/share/doc/$(cdbs_curpkg)/examples/config/topics.conf \
-		"$(DEB_DESTDIR)"/usr/share/doc/$(cdbs_curpkg)/examples/config/topics.us.conf
-
 # We cannot handle /etc/sympa/data_structure.version as a conffile
 	rm -f "$(DEB_DESTDIR)"/etc/sympa/data_structure.version
 
diff --git a/debian/sympa.install b/debian/sympa.install
index 59e2527..25021f2 100644
--- a/debian/sympa.install
+++ b/debian/sympa.install
@@ -5,9 +5,6 @@ debian/conf/apache2/sympa-soap.conf etc/apache2/conf-available
 debian/conf/auth.conf               etc/sympa
 debian/conf/sympa.conf-smime.in     etc/sympa
 debian/conf/topics.conf             etc/sympa
-debian/conf/sympa.conf              usr/share/doc/sympa/examples/config
-debian/conf/topics.conf             usr/share/doc/sympa/examples/config
-debian/conf/wwsympa.conf            usr/share/doc/sympa/examples/config
 src/etc/script/create_db.*          usr/share/doc/sympa/examples/db
 debian/dbconfig-common/*            usr/share/dbconfig-common/data/sympa
 soap/sympa_soap_client.pl           usr/share/doc/sympa/examples/script

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/sympa.git



More information about the Pkg-sympa-commits mailing list