Package: bnetd
Version: 0.4.25-8
Severity: serious
Dear Maintainer,
Andreas Beckmann <[email protected]> reported in -devel that your package
(as well as 27 others) ships a folder either in /var/run or /var/lock. This
is forbidden by policy.
Lintian detects the problem and warns as follow:
/var/run may be a temporary filesystem, so any directories or files needed
/there must be created dynamically at boot time.
Refer to Debian Policy Manual section 9.3.2 (Writing the scripts) for
details.
Severity: serious, Certainty: possible
Check: files, Type: binary, udeb
which is why I am reporting this bug with severity serious (and there fore,
release critical).
Please fix your package. I have attached what I believe is a good fix the
problem, however, I haven't tried it, and I haven't tested if something more
for creating the necessary folder at runtime should be added. Please make
sure to test before applying the patch blindly.
Cheers,
Thomas Goirand (zigo)
diff -u bnetd-0.4.25/debian/postinst bnetd-0.4.25/debian/postinst
--- bnetd-0.4.25/debian/postinst
+++ bnetd-0.4.25/debian/postinst
@@ -12,7 +12,7 @@
;;
esac
-for dir in /var/lib/bnetd/player /var/lib/bnetd/reports /var/lib/bnetd/chanlogs /var/run/bnetd; do
+for dir in /var/lib/bnetd/player /var/lib/bnetd/reports /var/lib/bnetd/chanlogs; do
chown games $dir
done
diff -u bnetd-0.4.25/debian/changelog bnetd-0.4.25/debian/changelog
--- bnetd-0.4.25/debian/changelog
+++ bnetd-0.4.25/debian/changelog
@@ -1,3 +1,10 @@
+bnetd (0.4.25-8.1) unstable; urgency=low
+
+ * Non-maintainer upload.
+ * Maintains /var/run/bnetd dynamically at boot time (Closes: #XXXXXX).
+
+ -- Thomas Goirand <[email protected]> Sat, 06 Oct 2012 16:04:26 +0800
+
bnetd (0.4.25-8) unstable; urgency=low
* Removed bashism in init.d script (Closes: #464496)
diff -u bnetd-0.4.25/debian/init bnetd-0.4.25/debian/init
--- bnetd-0.4.25/debian/init
+++ bnetd-0.4.25/debian/init
@@ -25,6 +25,9 @@
set -e
+mkdir -p /var/run/bnetd || true
+chown games /var/run/bnetd || true
+
case "$1" in
start)
echo -n "Starting $DESC: "
diff -u bnetd-0.4.25/debian/dirs bnetd-0.4.25/debian/dirs
--- bnetd-0.4.25/debian/dirs
+++ bnetd-0.4.25/debian/dirs
@@ -9 +8,0 @@
-var/run/bnetd