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