found 469569 0.5.2-9
thanks

>  ledcontrol (0.5.2-9) unstable; urgency=low
>  .
>    * LSB init script, closes: #469569.
>      Thanks to Petter Reinholdtsen <[EMAIL PROTECTED]> for the patch.

Gah, the patch was not correct.  It was patching the wrong file.  Here
is a working patch, patching the wrong file and making it more obvious
which file is the source and which is a convenience path.  It removes
the copy from debian/ and uses a symlink instead.

diff -u ledcontrol-0.5.2/debian/rules ledcontrol-0.5.2/debian/rules
--- ledcontrol-0.5.2/debian/rules
+++ ledcontrol-0.5.2/debian/rules
@@ -42,6 +42,8 @@
        dh_testroot
        rm -f build-stamp configure-stamp
 
+       rm -f debian/ledcontrol.ledd
+
        # Add here commands to clean up after the build process.
        -$(MAKE) distclean
 
@@ -75,7 +77,8 @@
        dh_installdocs
        dh_installexamples
        dh_installmenu
-       cp ledd-sysv-debian debian/ledcontrol.ledd
+       rm -f debian/ledcontrol.ledd
+       ln -s ../ledd-sysv-debian debian/ledcontrol.ledd
        dh_installinit --init-script=ledd
        dh_installcron
        dh_installinfo
--- ledcontrol-0.5.2.orig/ledd-sysv-debian.in
+++ ledcontrol-0.5.2/ledd-sysv-debian.in
@@ -1,6 +1,12 @@
 #!/bin/sh
-#
-# ledd         the led daemon (from ledcontrol)
+### BEGIN INIT INFO
+# Provides:          ledd
+# Required-Start:    $remote_fs $syslog
+# Required-Stop:     $remote_fs $syslog
+# Default-Start:     2 3 4 5
+# Default-Stop:      1
+# Short-Description: the led daemon (from ledcontrol)
+### END INIT INFO
 #
 #              Written by Sampo Niskanen <[EMAIL PROTECTED]>.
 #



Happy hacking,
-- 
Petter Reinholdtsen



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to