preinst is in cups-daemon 1.7.2-0ubuntu1.11.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | #!/bin/sh
set -e
case "$1" in
upgrade)
if dpkg --compare-versions "$2" le "1.6.1" && [ -e /etc/cups/cupsd.conf ]; then
# Move cupsd.conf away as it becomes a non-conffile
mv /etc/cups/cupsd.conf /etc/cups/cupsd.conf.conffile-bak
fi
esac
# Automatically added by dh_installinit
if [ "$1" = install ] || [ "$1" = upgrade ]; then
if [ -e "/etc/init.d/cups" ] && [ -L "/etc/init.d/cups" ] \
&& [ $(readlink -f "/etc/init.d/cups") = /lib/init/upstart-job ]
then
rm -f "/etc/init.d/cups"
fi
fi
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper rm_conffile /etc/cups/cupsd.conf.default 1.7.1-3~ -- "$@"
# End automatically added section
exit 0
|