[Pkg-cups-devel] r713 - in cupsys/trunk: . debian

Martin Pitt mpitt at alioth.debian.org
Sun Mar 16 21:32:36 UTC 2008


Author: mpitt
Date: Sun Mar 16 21:32:35 2008
New Revision: 713

Log:
* debian/rules, debian/cupsys.postinst: Call update-rc.d to not install stop
  symlinks for runlevels 0 and 6, since they just needlessly slow down
  shutdown. Remove the obsolete kill symlinks on upgrade. Patch adopted from
  the Ubuntu branch, but without using the Ubuntu-only 'multiuser' mode of
  update-rc.d.

Modified:
   cupsys/trunk/   (props changed)
   cupsys/trunk/debian/changelog
   cupsys/trunk/debian/cupsys.postinst
   cupsys/trunk/debian/rules

Modified: cupsys/trunk/debian/changelog
==============================================================================
--- cupsys/trunk/debian/changelog	(original)
+++ cupsys/trunk/debian/changelog	Sun Mar 16 21:32:35 2008
@@ -30,8 +30,13 @@
     tests fail, so that problems on particular platforms will be caught
     easily.
   * debian/control: Add alternative (build-)depends to heimdal-dev.
+  * debian/rules, debian/cupsys.postinst: Call update-rc.d to not install stop
+    symlinks for runlevels 0 and 6, since they just needlessly slow down
+    shutdown. Remove the obsolete kill symlinks on upgrade. Patch adopted from
+    the Ubuntu branch, but without using the Ubuntu-only 'multiuser' mode of
+    update-rc.d.
 
- -- Martin Pitt <mpitt at debian.org>  Sun, 16 Mar 2008 20:57:02 +0100
+ -- Martin Pitt <mpitt at debian.org>  Sun, 16 Mar 2008 21:16:10 +0100
 
 cupsys (1.3.6-1) unstable; urgency=low
 

Modified: cupsys/trunk/debian/cupsys.postinst
==============================================================================
--- cupsys/trunk/debian/cupsys.postinst	(original)
+++ cupsys/trunk/debian/cupsys.postinst	Sun Mar 16 21:32:35 2008
@@ -139,6 +139,11 @@
              ln -s /etc/ssl/certs/ssl-cert-snakeoil.pem /etc/cups/ssl/server.crt
              ln -s /etc/ssl/private/ssl-cert-snakeoil.key /etc/cups/ssl/server.key
         fi 
+
+        # Remove shutdown and reboot links; this init script does not need them.
+        if dpkg --compare-versions "$2" lt-nl "1.3.6-2"; then
+            rm -f /etc/rc0.d/K??cupsys /etc/rc6.d/K??cupsys
+        fi
     ;;
 
     abort-upgrade|abort-remove|abort-deconfigure)

Modified: cupsys/trunk/debian/rules
==============================================================================
--- cupsys/trunk/debian/rules	(original)
+++ cupsys/trunk/debian/rules	Sun Mar 16 21:32:35 2008
@@ -26,6 +26,7 @@
 DEB_CONFIGURE_EXTRA_FLAGS := --with-optim=$(DEB_OPTFLAGS) --libdir=/usr/lib --mandir=/usr/share/man --with-docdir=/usr/share/cups/doc-root --localedir=/usr/share/cups/locale --enable-slp --enable-libpaper --enable-ssl --enable-gnutls --disable-openssl --enable-threads --enable-static --enable-dbus --enable-gssapi --disable-pdftops --disable-launchd --with-cups-group=lp --with-system-groups=lpadmin --with-printcap=/var/run/cups/printcap --with-log-file-perm=0640 CFLAGS="$(CFLAGS)"
 DEB_MAKE_INSTALL_TARGET := install BUILDROOT=$(DEB_DESTDIR)
 DEB_INSTALL_CHANGELOGS_ALL := CHANGES.txt
+DEB_DH_INSTALLINIT_ARGS := -u'start 20 2 3 4 5 . stop 80 1 .'
 DEB_DH_STRIP_ARGS := --dbg-package=cupsys-dbg
 DEB_DH_FIXPERMS_ARGS := -Xusr/lib/cups/backend-available
 DEB_DH_COMPRESS_ARGS := -Xusr/share/doc/libcupsys2-dev/examples/scripting



More information about the Pkg-cups-devel mailing list