Hi,

Attached is the diff for my xinetd 1:2.3.14-1.1 NMU.
diff -u xinetd-2.3.14/debian/xinetd.prerm xinetd-2.3.14/debian/xinetd.prerm
--- xinetd-2.3.14/debian/xinetd.prerm
+++ xinetd-2.3.14/debian/xinetd.prerm
@@ -1,7 +1,9 @@
 #!/bin/sh -e
 # xinetd prerm
 
-if [ -x /etc/init.d/xinetd ]; then
+if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
+  invoke-rc.d xinetd stop
+elif [ -x /etc/init.d/xinetd ]; then
   /etc/init.d/xinetd stop
 fi
 
diff -u xinetd-2.3.14/debian/changelog xinetd-2.3.14/debian/changelog
--- xinetd-2.3.14/debian/changelog
+++ xinetd-2.3.14/debian/changelog
@@ -1,3 +1,10 @@
+xinetd (1:2.3.14-1.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Update xinetd to use invoke-rc.d (Closes: 427892).
+
+ -- Pierre Habouzit <[EMAIL PROTECTED]>  Wed, 18 Jul 2007 18:38:26 +0200
+
 xinetd (1:2.3.14-1) unstable; urgency=low
 
   * New upstream release (closes: #342724).
diff -u xinetd-2.3.14/debian/xinetd.postinst 
xinetd-2.3.14/debian/xinetd.postinst
--- xinetd-2.3.14/debian/xinetd.postinst
+++ xinetd-2.3.14/debian/xinetd.postinst
@@ -11,7 +11,9 @@
 fi
 
 # stop xinetd itself
-if [ -x /etc/init.d/xinetd ]; then
+if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
+  invoke-rc.d xinetd stop
+elif [ -x /etc/init.d/xinetd ]; then
   /etc/init.d/xinetd stop >&2
 else
   start-stop-daemon --quiet --stop --signal 3 --oknodo --exec /usr/sbin/xinetd
diff -u xinetd-2.3.14/debian/xinetd.postrm xinetd-2.3.14/debian/xinetd.postrm
--- xinetd-2.3.14/debian/xinetd.postrm
+++ xinetd-2.3.14/debian/xinetd.postrm
@@ -14,7 +14,11 @@
     dpkg-divert --package xinetd --remove --rename --divert \
                   /etc/init.d/inetd.real /etc/init.d/inetd
     if [ -f "/etc/init.d/inetd.real" ]; then
-      /etc/init.d/inetd start
+        if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
+            invoke-rc.d inetd start
+        elif [ -x /etc/init.d/inetd ]; then
+            /etc/init.d/inetd start
+        fi
     fi
     ;;
   purge)

Attachment: pgpwNJSxgpMAy.pgp
Description: PGP signature



Reply via email to