]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
Fix obsolete invocations of update-rc.d by switching nfs-common to use dh_installinit...
authorSteve Langasek <steve.langasek@canonical.com>
Sat, 1 Feb 2014 16:51:58 +0000 (11:51 -0500)
committerSteve Langasek <steve.langasek@canonical.com>
Sat, 1 Feb 2014 16:51:58 +0000 (11:51 -0500)
debian/changelog
debian/nfs-common.postinst
debian/nfs-common.postrm
debian/nfs-common.prerm
debian/rules

index 9cb053085b01e73d213c2600d6def6f74a0c42d6..212715d208e4d552e4dcbfdce71edc8799d2a89c 100644 (file)
@@ -8,6 +8,8 @@ nfs-utils (1:1.2.8-6) UNRELEASED; urgency=medium
   * Only start nfs-common in runlevel S; it doesn't need to be started
     more than once (and startpar won't actually run it more than once,
     anyway).  Closes: #510528.
   * Only start nfs-common in runlevel S; it doesn't need to be started
     more than once (and startpar won't actually run it more than once,
     anyway).  Closes: #510528.
+  * Fix obsolete invocations of update-rc.d by switching nfs-common to use
+    dh_installinit.  Closes: #736059.
 
  -- Steve Langasek <vorlon@debian.org>  Mon, 13 Jan 2014 22:19:43 +0000
 
 
  -- Steve Langasek <vorlon@debian.org>  Mon, 13 Jan 2014 22:19:43 +0000
 
index 866c066186302b3ee5bd454dbdacd3d3e2afdf82..96aa3912be4c7494f58125efaaa17af3457dcab9 100644 (file)
@@ -2,8 +2,6 @@
 
 set -e
 
 
 set -e
 
-#DEBHELPER#
-
 case "$1" in
     configure)
         ucf --three-way /usr/share/nfs-common/conffiles/idmapd.conf /etc/idmapd.conf
 case "$1" in
     configure)
         ucf --three-way /usr/share/nfs-common/conffiles/idmapd.conf /etc/idmapd.conf
@@ -12,7 +10,6 @@ case "$1" in
         if [ "$2" != "" ] && dpkg --compare-versions "$2" lt 1:1.1.0-10; then
             update-rc.d -f nfs-common remove >/dev/null
         fi
         if [ "$2" != "" ] && dpkg --compare-versions "$2" lt 1:1.1.0-10; then
             update-rc.d -f nfs-common remove >/dev/null
         fi
-        update-rc.d nfs-common start 20 2 3 4 5 . stop 20 0 1 6 . start 44 S . >/dev/null
 
         if ! getent passwd statd >/dev/null; then
             adduser --system --home /var/lib/nfs --no-create-home statd
 
         if ! getent passwd statd >/dev/null; then
             adduser --system --home /var/lib/nfs --no-create-home statd
@@ -44,6 +41,4 @@ case "$1" in
     ;;
 esac
 
     ;;
 esac
 
-act="restart"
-[ "$1:$2" = "configure:" ] && act="start"
-invoke-rc.d nfs-common $act
+#DEBHELPER#
index 1f8f1ebd506495c3b950f8cd234b16877ab8e615..9abe8c202c04893585baf90dc457eeeada61636c 100644 (file)
@@ -6,8 +6,6 @@ set -e
 
 case "$1" in
     purge)
 
 case "$1" in
     purge)
-       update-rc.d nfs-common remove >/dev/null
-
        for FILE in /etc/default/nfs-common /etc/idmapd.conf; do
            # Taken from the ucf example postrm
            for ext in '~' '%' .bak .dpkg-tmp .dpkg-new .dpkg-old .dpkg-dist;  do
        for FILE in /etc/default/nfs-common /etc/idmapd.conf; do
            # Taken from the ucf example postrm
            for ext in '~' '%' .bak .dpkg-tmp .dpkg-new .dpkg-old .dpkg-dist;  do
index 08e0ca9112ee919a18a839b20856e00fd88c14b6..c6d2a7208f9a35cdad089a0d10093633fbae87ea 100644 (file)
@@ -4,13 +4,6 @@ set -e
 
 #DEBHELPER#
 
 
 #DEBHELPER#
 
-case "$1" in
-    remove|purge)
-       [ -x /etc/init.d/nfs-common ] &&
-           invoke-rc.d nfs-common stop
-       ;;
-esac
-
 if [ "$1" != upgrade ]
 then
     rm -f /var/lib/nfs/sm/*      \
 if [ "$1" != upgrade ]
 then
     rm -f /var/lib/nfs/sm/*      \
index 204ac7abb44f895199ec539c50b807bd3969f863..569c4160ac0e6edeca25530479a2cda48ac46883 100755 (executable)
@@ -55,7 +55,7 @@ binary-arch: build
        dh_install -Xman --fail-missing
        dh_installdocs -A
        dh_installdocs -pnfs-common debian/README.Debian.nfsv4
        dh_install -Xman --fail-missing
        dh_installdocs -A
        dh_installdocs -pnfs-common debian/README.Debian.nfsv4
-       install -m 0755 debian/nfs-common.init debian/nfs-common/etc/init.d/nfs-common
+       dh_installinit -pnfs-common -R
        install -m 0755 debian/nfs-kernel-server.init debian/nfs-kernel-server/etc/init.d/nfs-kernel-server
        install -m 0644 debian/nfs-common.bugcontrol debian/nfs-common/usr/share/bug/nfs-common/control
        install -m 0755 debian/nfs-common.bugscript debian/nfs-common/usr/share/bug/nfs-common/script
        install -m 0755 debian/nfs-kernel-server.init debian/nfs-kernel-server/etc/init.d/nfs-kernel-server
        install -m 0644 debian/nfs-common.bugcontrol debian/nfs-common/usr/share/bug/nfs-common/control
        install -m 0755 debian/nfs-common.bugscript debian/nfs-common/usr/share/bug/nfs-common/script