comparison debian/dcc-milter.postinst.diff @ 1:9b8d79ac0dc3

blindly adding debian patch for old version
author Peter Gervai <grin@grin.hu>
date Tue, 10 Mar 2009 14:25:08 +0100
parents
children
comparison
equal deleted inserted replaced
0:c7f6b056b673 1:9b8d79ac0dc3
1 --- dcc-1.2.74.orig/debian/dcc-milter.postinst
2 +++ dcc-1.2.74/debian/dcc-milter.postinst
3 @@ -0,0 +1,52 @@
4 +#! /bin/sh
5 +# postinst script for dcc
6 +#
7 +# see: dh_installdeb(1)
8 +
9 +set +e
10 +
11 +# summary of how this script can be called:
12 +# * <postinst> `configure' <most-recently-configured-version>
13 +# * <old-postinst> `abort-upgrade' <new version>
14 +# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
15 +# <new-version>
16 +# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
17 +# <failed-install-package> <version> `removing'
18 +# <conflicting-package> <version>
19 +# for details, see http://www.debian.org/doc/debian-policy/ or
20 +# the debian-policy package
21 +#
22 +# quoting from the policy:
23 +# Any necessary prompting should almost always be confined to the
24 +# post-installation script, and should be protected with a conditional
25 +# so that unnecessary prompting doesn't happen if a package's
26 +# installation fails and the `postinst' is called with `abort-upgrade',
27 +# `abort-remove' or `abort-deconfigure'.
28 +
29 +case "$1" in
30 + configure)
31 + if [ -x /usr/sbin/dccm ]; then
32 + chown dcc:dcc /usr/sbin/dccm
33 + chmod 04755 /usr/sbin/dccm
34 + fi
35 +
36 + ;;
37 +
38 + abort-upgrade|abort-remove|abort-deconfigure)
39 +
40 + ;;
41 +
42 + *)
43 + echo "postinst called with unknown argument \`$1'" >&2
44 + exit 1
45 + ;;
46 +esac
47 +
48 +# dh_installdeb will replace this with shell code automatically
49 +# generated by other debhelper scripts.
50 +
51 +#DEBHELPER#
52 +
53 +exit 0
54 +
55 +