usertag 408360 supplied-patch
thanks

Hi,

I have NMUed your package to fix the RC bug 408360. My NMU interdiff is
attached. I also added two lines to the init.d script to create
the /var/run/gnugk directory on start of the daemon, as some systems
clean that directory or mount a tmpfs on top of /var/run.

Greetings Arjan

diff -u gnugk-2.2.5/debian/preinst gnugk-2.2.5/debian/preinst
--- gnugk-2.2.5/debian/preinst
+++ gnugk-2.2.5/debian/preinst
@@ -26,11 +26,6 @@
 	echo "Cleaning up old /etc/gatekeeper.ini-xxx symlinks"
 	rm -f /etc/gatekeeper.ini-*
 
-	adduser --system --group --home /var/run/gnugk --gecos "GNUgk daemon" gnugk 
-	test -d /var/log/gnugk || mkdir /var/log/gnugk
-        chown -R gnugk /var/log/gnugk
-
-
     ;;
 
     abort-upgrade)
diff -u gnugk-2.2.5/debian/init.d gnugk-2.2.5/debian/init.d
--- gnugk-2.2.5/debian/init.d
+++ gnugk-2.2.5/debian/init.d
@@ -41,6 +41,8 @@
 case "$1" in
   start)
 	echo -n "Starting $DESC: "
+	test -d /var/run/$NAME || mkdir /var/run/$NAME
+        chown -R gnugk /var/run/$NAME
 	start-stop-daemon --start --quiet \
 		--chuid $NAME --pidfile /var/run/$NAME/$NAME.pid \
 		--background --exec $DAEMON -- $ARGS
diff -u gnugk-2.2.5/debian/changelog gnugk-2.2.5/debian/changelog
--- gnugk-2.2.5/debian/changelog
+++ gnugk-2.2.5/debian/changelog
@@ -1,3 +1,13 @@
+gnugk (2:2.2.5-3.1) unstable; urgency=high
+
+  * Non-maintainer upload.
+  * Set urgency to high as this upload fixes a RC bug.
+  * debian/postinst: Move adduser call to postinst. (Closes: #408360)
+  * debian/init.d: Make sure the /var/run/gnugk directory exists before
+    starting the daemon as some system clean /var/run on reboot.
+
+ -- Arjan Oosting <[EMAIL PROTECTED]>  Thu,  1 Feb 2007 00:16:35 +0100
+
 gnugk (2:2.2.5-3) unstable; urgency=high
 
   * Use correct syntax for update-rc.d (Closes: #406194)
only in patch2:
unchanged:
--- gnugk-2.2.5.orig/debian/postinst
+++ gnugk-2.2.5/debian/postinst
@@ -0,0 +1,38 @@
+#! /bin/sh
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postinst> `configure' <most-recently-configured-version>
+#        * <old-postinst> `abort-upgrade' <new version>
+#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+#          <new-version>
+#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+#          <failed-install-package> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+#
+
+case "$1" in
+    configure)
+	adduser --system --group --home /var/run/gnugk --gecos "GNUgk daemon" gnugk 
+	test -d /var/log/gnugk || mkdir /var/log/gnugk
+        chown -R gnugk /var/log/gnugk
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#

Attachment: signature.asc
Description: Dit berichtdeel is digitaal ondertekend

Reply via email to