pdf14.sty is for LaTeX only ☹
[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 # * new-postrm "failed-upgrade" $old_version $new_version # 1.18.5, stretch
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-install" $old_version $new_version # 1.18.5, stretch
22 # * new-postrm "abort-upgrade" $old_version
23 # * new-postrm "abort-upgrade" $old_version $new_version # 1.18.5, stretch
24 # Called when preinst fails; package is not unpacked. Essential packages
25 # and (unpacked or Half-Configured) Pre-Depends are available.
26
27 case $1 in
28 remove)
29         ;;
30
31 purge)
32         rm -f /etc/cvs.conf /etc/cvs-cron.conf /etc/cvs-pserver.conf /etc/cron.weekly/cvs /etc/pam.d/cvs
33         test -x /usr/sbin/update-inetd && update-inetd --remove "^cvspserver"
34         (delgroup --system --only-if-empty _cvsadmin || :)
35         ;;
36
37 upgrade|disappear|failed-upgrade|abort-install|abort-upgrade)
38         ;;
39
40 *)
41         echo >&2 "postrm called with unknown subcommand '$1'"
42         exit 1
43         ;;
44 esac
45
46 # dh_installdeb will replace this with shell code automatically
47 # generated by other debhelper scripts.
48
49 #DEBHELPER#
50
51 exit 0