remove now-useless RCS IDs from CVS
[alioth/cvs.git] / debian / postrm
1 #!/bin/sh
2
3 set -e
4
5 # This maintainer script can be called the following ways:
6 #
7 # * postrm "remove"
8 # * postrm "purge"
9 # * old-postrm "upgrade" $new_version
10 # * disappearers-postrm "disappear" $overwriter $o_version
11 # The package's files have been removed or replaced; only Essential pak-
12 # kages may be available; skip gracefully actions requiring Depends.
13 #
14 # * new-postrm "failed-upgrade" $old_version
15 # Called when 'old-postrm "upgrade"' fails; the new package is unpacked,
16 # Essential packages and Pre-Depends are available; the latter have been
17 # configured and never removed but may be Unpacked or Half-Configured.
18 #
19 # * new-postrm "abort-install" [$old_version]
20 # * new-postrm "abort-upgrade" $old_version
21 # Called when preinst fails; package is not unpacked. Essential packages
22 # and (unpacked or Half-Configured) Pre-Depends are available.
23
24 case $1 in
25 remove)
26         ;;
27
28 purge)
29         rm -f /etc/cvs.conf /etc/cvs-cron.conf /etc/cvs-pserver.conf /etc/cron.weekly/cvs /etc/pam.d/cvs
30         test -x /usr/sbin/update-inetd && update-inetd --remove "^cvspserver"
31         (delgroup --system --only-if-empty _cvsadmin || :)
32         ;;
33
34 upgrade|disappear|failed-upgrade|abort-install|abort-upgrade)
35         ;;
36
37 *)
38         echo >&2 "postrm called with unknown subcommand '$1'"
39         exit 1
40         ;;
41 esac
42
43 # dh_installdeb will replace this with shell code automatically
44 # generated by other debhelper scripts.
45
46 #DEBHELPER#
47
48 exit 0