[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#691871: unblock: dancer-ircd/1.0.36-8.1



Package: release.debian.org
Severity: normal
User: release.debian.org@packages.debian.org
Usertags: unblock

Please unblock package dancer-ircd

The upload in unstable fix the bug #689886 by creating
/var/run/dancer-ircd at runtime instead of shipping the folder in the
package. Debdiff attached

unblock dancer-ircd/1.0.36-8.1

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'stable-updates'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -u dancer-ircd-1.0.36/debian/init.d dancer-ircd-1.0.36/debian/init.d
--- dancer-ircd-1.0.36/debian/init.d
+++ dancer-ircd-1.0.36/debian/init.d
@@ -16,31 +16,38 @@
 DAEMON=/usr/sbin/dancer-ircd
 NAME=dancer-ircd
 DESC=dancer-ircd
+USER=dancer
+RUNDIR=/var/run/dancer-ircd
 
 test -f $DAEMON || exit 0
 
 set -e
 
+if [ ! -d ${RUNDIR} ] ; then
+	mkdir -m 0755 ${RUNDIR}
+	chown ${USER}:${USER} ${RUNDIR}
+fi
+
 case "$1" in
   start)
 	echo -n "Starting $DESC: "
-	start-stop-daemon --start --quiet --chuid dancer \
-		--pidfile /var/run/dancer-ircd/$NAME.pid \
+	start-stop-daemon --start --quiet --chuid ${USER} \
+		--pidfile ${RUNDIR}/$NAME.pid \
 		--exec $DAEMON -- -d /
 	echo "$NAME."
 	;;
   stop)
 	echo -n "Stopping $DESC: "
 	start-stop-daemon --stop --quiet --oknodo \
-		--pidfile /var/run/dancer-ircd/$NAME.pid \
+		--pidfile ${RUNDIR}/$NAME.pid \
 		--exec $DAEMON
-	rm -f /var/run/dancer-ircd/$NAME.pid
+	rm -f ${RUNDIR}/$NAME.pid
 	echo "$NAME."
 	;;
   reload|force-reload)
 	echo "Reloading $DESC configuration files."
 	start-stop-daemon --stop --quiet --signal 1 --oknodo \
-		--pidfile /var/run/dancer-ircd/$NAME.pid \
+		--pidfile ${RUNDIR}/$NAME.pid \
 		--exec $DAEMON
   ;;
   restart)
diff -u dancer-ircd-1.0.36/debian/dancer-ircd.dirs dancer-ircd-1.0.36/debian/dancer-ircd.dirs
--- dancer-ircd-1.0.36/debian/dancer-ircd.dirs
+++ dancer-ircd-1.0.36/debian/dancer-ircd.dirs
@@ -7 +6,0 @@
-var/run/dancer-ircd
diff -u dancer-ircd-1.0.36/debian/dancer-ircd.postinst dancer-ircd-1.0.36/debian/dancer-ircd.postinst
--- dancer-ircd-1.0.36/debian/dancer-ircd.postinst
+++ dancer-ircd-1.0.36/debian/dancer-ircd.postinst
@@ -21,7 +21,6 @@
         # limitation. Someday it will be fixed
 
 	chown $USER:$USER /var/log/dancer-ircd
-	chown $USER:$USER /var/run/dancer-ircd
 	chown $USER:$USER /var/lib/dancer-ircd
 	chown $USER:$USER /var/lib/dancer-ircd/dline.conf
 	chown $USER:$USER /var/lib/dancer-ircd/kline.conf
diff -u dancer-ircd-1.0.36/debian/changelog dancer-ircd-1.0.36/debian/changelog
--- dancer-ircd-1.0.36/debian/changelog
+++ dancer-ircd-1.0.36/debian/changelog
@@ -1,3 +1,11 @@
+dancer-ircd (1.0.36-8.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Create /var/run/dancer-ircd at runtime (Closes: #689886, thanks to Thomas
+    Goirand).
+
+ -- Thomas Preud'homme <robotux@debian.org>  Tue, 30 Oct 2012 15:12:29 +0100
+
 dancer-ircd (1.0.36-8) unstable; urgency=medium
 
   * Bump Standards-Version to 3.7.3.

Reply to: