comparison 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
comparison
equal deleted inserted replaced
0:c7f6b056b673 1:9b8d79ac0dc3
1 --- dcc-1.2.74.orig/debian/dcc-common.postrm
2 +++ dcc-1.2.74/debian/dcc-common.postrm
3 @@ -0,0 +1,54 @@
4 +#! /bin/sh
5 +# postrm script for dcc
6 +#
7 +# see: dh_installdeb(1)
8 +
9 +set -e
10 +
11 +# summary of how this script can be called:
12 +# * <postrm> `remove'
13 +# * <postrm> `purge'
14 +# * <old-postrm> `upgrade' <new-version>
15 +# * <new-postrm> `failed-upgrade' <old-version>
16 +# * <new-postrm> `abort-install'
17 +# * <new-postrm> `abort-install' <old-version>
18 +# * <new-postrm> `abort-upgrade' <old-version>
19 +# * <disappearer's-postrm> `disappear' <r>overwrit>r> <new-version>
20 +# for details, see http://www.debian.org/doc/debian-policy/ or
21 +# the debian-policy package
22 +
23 +
24 +case "$1" in
25 + purge)
26 +
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
28 +
29 + if getent passwd dcc >/dev/null; then
30 + userdel dcc || echo "dcc: Could not remove dcc user" >&2
31 + fi
32 +
33 +
34 + if getent group dcc >/dev/null; then
35 + groupdel dcc || echo "dcc: Could not remove dcc group" >&2
36 + fi
37 +
38 +
39 + ;;
40 +
41 + remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
42 +
43 +
44 + ;;
45 +
46 + *)
47 + echo "postrm called with unknown argument \`$1'" >&2
48 + exit 1
49 +
50 +esac
51 +
52 +# dh_installdeb will replace this with shell code automatically
53 +# generated by other debhelper scripts.
54 +
55 +#DEBHELPER#
56 +
57 +exit 0