annotate debian/dcc-milter.postinst @ 4:d329bb5c36d0

Changes making it compile the new upstream release
author Peter Gervai <grin@grin.hu>
date Tue, 10 Mar 2009 14:57:12 +0100
parents f6716cb00029
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
1 #! /bin/sh
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
2 # postinst script for dcc
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
3 #
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
4 # see: dh_installdeb(1)
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
5
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
6 set +e
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
7
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
8 # summary of how this script can be called:
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
9 # * <postinst> `configure' <most-recently-configured-version>
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
10 # * <old-postinst> `abort-upgrade' <new version>
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
11 # * <conflictor's-postinst> `abort-remove' `in-favour' <package>
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
12 # <new-version>
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
13 # * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
14 # <failed-install-package> <version> `removing'
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
15 # <conflicting-package> <version>
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
16 # for details, see http://www.debian.org/doc/debian-policy/ or
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
17 # the debian-policy package
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
18 #
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
19 # quoting from the policy:
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
20 # Any necessary prompting should almost always be confined to the
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
21 # post-installation script, and should be protected with a conditional
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
22 # so that unnecessary prompting doesn't happen if a package's
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
23 # installation fails and the `postinst' is called with `abort-upgrade',
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
24 # `abort-remove' or `abort-deconfigure'.
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
25
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
26 case "$1" in
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
27 configure)
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
28 if [ -x /usr/sbin/dccm ]; then
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
29 chown dcc:dcc /usr/sbin/dccm
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
30 chmod 04755 /usr/sbin/dccm
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
31 fi
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
32
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
33 ;;
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
34
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
35 abort-upgrade|abort-remove|abort-deconfigure)
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
36
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
37 ;;
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
38
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
39 *)
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
40 echo "postinst called with unknown argument \`$1'" >&2
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
41 exit 1
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
42 ;;
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
43 esac
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
44
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
45 # dh_installdeb will replace this with shell code automatically
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
46 # generated by other debhelper scripts.
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
47
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
48 #DEBHELPER#
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
49
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
50 exit 0
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
51
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
52