4
# see: dh_installdeb(1)
8
# summary of how this script can be called:
9
# * <new-preinst> `install'
10
# * <new-preinst> `install' <old-version>
11
# * <new-preinst> `upgrade' <old-version>
12
# * <old-preinst> `abort-upgrade' <new-version>
14
# for details, see http://www.debian.org/doc/debian-policy/ or
15
# the debian-policy package
18
if md5sum $1 2>/dev/null |grep -q $2; then
20
sed -e '/^[^#]*[ \t]*password[ \t]*required[ \t]*pam_unix.so/ s/ md5$//' $1 >$1.post-upgrade \
21
&& mv $1.post-upgrade $1
28
if [ "x$2" != "x" ] ; then
29
if dpkg --compare-versions $2 lt 1:4.0.3 ; then
30
remove_md5 /etc/pam.d/passwd 23a5d1465bbc1e39ca6e0c32f22a75c9
40
echo "preinst called with unknown argument \`$1'" >&2
45
# dh_installdeb will replace this with shell code automatically
46
# generated by other debhelper scripts.