Bug#235028: new patch
Robert Millan
rmh at aybabtu.com
Thu Jun 15 15:48:01 UTC 2006
New patch to fix typo (s/defaults/default/g).
--
Robert Millan
-------------- next part --------------
diff -Nur libmail-spf-query-perl-1.999.1.old/debian/default libmail-spf-query-perl-1.999.1/debian/default
--- libmail-spf-query-perl-1.999.1.old/debian/default 1970-01-01 01:00:00.000000000 +0100
+++ libmail-spf-query-perl-1.999.1/debian/default 2006-06-15 16:02:58.698104648 +0200
@@ -0,0 +1,3 @@
+#ENABLED=true
+#USER=Debian-exim
+#GROUP=$USER
diff -Nur libmail-spf-query-perl-1.999.1.old/debian/dirs libmail-spf-query-perl-1.999.1/debian/dirs
--- libmail-spf-query-perl-1.999.1.old/debian/dirs 1970-01-01 01:00:00.000000000 +0100
+++ libmail-spf-query-perl-1.999.1/debian/dirs 2006-06-15 16:05:04.036050384 +0200
@@ -0,0 +1 @@
+etc/default
diff -Nur libmail-spf-query-perl-1.999.1.old/debian/init.d libmail-spf-query-perl-1.999.1/debian/init.d
--- libmail-spf-query-perl-1.999.1.old/debian/init.d 1970-01-01 01:00:00.000000000 +0100
+++ libmail-spf-query-perl-1.999.1/debian/init.d 2006-06-15 16:17:55.145823880 +0200
@@ -0,0 +1,64 @@
+#! /bin/sh
+#
+# /etc/init.d/spfd: start and stop Sender Policy Framework Daemon
+
+PATH=/sbin:/bin:/usr/sbin:/usr/bin
+DAEMON=`which spfd`
+test -x $DAEMON || exit 0
+NAME=spfd
+DESC="Sender Policy Framework Daemon"
+ENABLED=false
+
+if test -e /etc/default/spfd ; then
+ . /etc/default/spfd
+fi
+
+set -e
+
+start ()
+{
+ if ! $ENABLED ; then
+ echo " -- Not running spfd. Edit /etc/default/spfd to activate it."
+ exit 0
+ fi
+ start-stop-daemon --start --quiet --background --pidfile /var/run/$NAME.pid \
+ --oknodo --make-pidfile \
+ --exec /usr/bin/perl --startas $DAEMON -- \
+ -path=/var/run/spfd.sock -pathmode=0660 \
+ -pathuser=$USER -pathgroup=$GROUP \
+ -pathmode=0660 -setuser=nobody -setgroup=nogroup
+}
+
+stop ()
+{
+ start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \
+ --exec /usr/bin/perl --user nobody || echo -n " (not running)"
+}
+
+case "$1" in
+ start)
+ echo -n "Starting $DESC: $NAME"
+ start
+ echo "."
+ ;;
+ stop)
+ echo -n "Stopping $DESC: $NAME"
+ stop
+ echo "."
+ ;;
+ restart|force-reload)
+ echo -n "Restarting $DESC: $NAME"
+ stop
+ sleep 1
+ start
+ echo "."
+ ;;
+ *)
+ N=/etc/init.d/$NAME
+ # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
+ echo "Usage: $N {start|stop|restart|force-reload}" >&2
+ exit 1
+ ;;
+esac
+
+exit 0
diff -Nur libmail-spf-query-perl-1.999.1.old/debian/rules libmail-spf-query-perl-1.999.1/debian/rules
--- libmail-spf-query-perl-1.999.1.old/debian/rules 2006-01-01 00:23:15.000000000 +0100
+++ libmail-spf-query-perl-1.999.1/debian/rules 2006-06-15 16:19:51.270170296 +0200
@@ -28,13 +28,16 @@
dh_testdir
dh_testroot
dh_clean -k
-
+ dh_installdirs
+
$(MAKE) test
$(MAKE) install DESTDIR=$(TMP)/
# Put spfd in /usr/sbin:
mkdir -p $(TMP)/usr/sbin
mv $(TMP)/usr/bin/spfd $(TMP)/usr/sbin
+
+ install -m644 debian/default $(TMP)/etc/default/spfd
touch install-stamp
@@ -45,6 +48,7 @@
dh_installdocs README
dh_installchangelogs CHANGES
dh_installexamples examples/*
+ dh_installinit
#dh_installman
dh_install
dh_compress
More information about the pkg-perl-maintainers
mailing list