From 9b0fd75c0491a094743dbe4684a367113c651f45 Mon Sep 17 00:00:00 2001 From: "martin@piware.de" <> Date: Fri, 23 May 2008 10:14:05 +0200 Subject: * Rename the package to cups. This is the proper upstream name. Upstream has made it clear that the usual distro patches are not a trademark violation. This unbreaks all the documentation out there, which refers to "cups", not "cupsys" (including names of the init script), as well as unbreaks dependencies of openprinting.org's LSB printer driver packages. (Closes: #482296, LP: #233790) * debian/cups.{config,postinst}: Remove some old cruft. * debian/cups.preinst: Move conffiles to new names on upgrades, in a dpkg conffile question avoiding manner. --- debian/cups-client.postinst | 52 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 debian/cups-client.postinst (limited to 'debian/cups-client.postinst') diff --git a/debian/cups-client.postinst b/debian/cups-client.postinst new file mode 100644 index 000000000..108c9b82a --- /dev/null +++ b/debian/cups-client.postinst @@ -0,0 +1,52 @@ +#! /bin/sh +# postinst script for cups +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see /usr/doc/packaging-manual/ +# +# quoting from the policy: +# Any necessary prompting should almost always be confined to the +# post-installation script, and should be protected with a conditional +# so that unnecessary prompting doesn't happen if a package's +# installation fails and the `postinst' is called with `abort-upgrade', +# `abort-remove' or `abort-deconfigure'. + +case "$1" in + configure) + if [ -z "`getent group lpadmin`" ]; then + addgroup --system lpadmin + fi + + chown root:lpadmin /usr/bin/lppasswd + chmod u+s /usr/bin/lppasswd + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + -- cgit v1.2.3