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