annotate debian/dcc-common.postrm.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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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-common.postrm
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
2 +++ dcc-1.2.74/debian/dcc-common.postrm
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
3 @@ -0,0 +1,54 @@
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 +# postrm 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 +# * <postrm> `remove'
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
13 +# * <postrm> `purge'
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
14 +# * <old-postrm> `upgrade' <new-version>
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
15 +# * <new-postrm> `failed-upgrade' <old-version>
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
16 +# * <new-postrm> `abort-install'
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
17 +# * <new-postrm> `abort-install' <old-version>
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
18 +# * <new-postrm> `abort-upgrade' <old-version>
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
19 +# * <disappearer's-postrm> `disappear' <r>overwrit>r> <new-version>
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
20 +# 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
21 +# the debian-policy package
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
22 +
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
23 +
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
24 +case "$1" in
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
25 + purge)
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
26 +
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
27 + rm -rf /var/log/dcc /var/lib/dcc/log /var/lib/dcc/map /var/lib/dcc/map.txt /var/lib/dcc/ids /etc/dcc /var/lib/dcc/whiteclnt /var/lib/dcc /var/run/dcc
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 + if getent passwd dcc >/dev/null; then
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
30 + userdel dcc || echo "dcc: Could not remove dcc user" >&2
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
31 + fi
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
32 +
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
33 +
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
34 + if getent group dcc >/dev/null; then
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
35 + groupdel dcc || echo "dcc: Could not remove dcc group" >&2
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
36 + fi
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
37 +
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
38 +
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 + remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
42 +
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 "postrm 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