2 # $MirOS: contrib/hosted/tg/deb/cvs/debian/postinst,v 1.5 2012/04/22 15:03:47 tg Exp $
6 # This maintainer script can be called the following ways:
8 # * new-postinst "configure" [$most_recently_configured_version]
9 # The package is unpacked; all dependencies are unpacked and, when there
10 # are no circular dependencies, configured.
12 # * old-postinst "abort-upgrade" $new_version
13 # * conflictors-postinst "abort-remove" "in-favour" $package
15 # * postinst "abort-remove"
16 # * deconfigureds-postinst "abort-deconfigure" "in-favour"
17 # $failed_install_package $fip_version ["removing"
18 # $conflicting_package $cp_version]
19 # The package is unpacked; all dependencies are at least Half-Installed,
20 # previously been configured, and not removed. In some error situations,
21 # dependencies may not be even fully unpacked.
23 # * postinst "triggered" "${triggers[*]}"
24 # For trigger-only calls, i.e. if "configure" is not called.
26 # upgrade case from Debian CVS
27 nukes='/etc/cvs.conf /etc/cvs-cron.conf /etc/cvs-pserver.conf /etc/cron.weekly/cvs /etc/pam.d/cvs'
29 test -e "$x" || continue
31 test -x /usr/sbin/update-inetd && update-inetd --remove "^cvspserver"
37 addgroup --force-badname --system _cvsadmin
40 abort-upgrade|abort-remove|abort-deconfigure)
47 echo >&2 "postinst called with unknown subcommand '$1'"
52 # dh_installdeb will replace this with shell code automatically
53 # generated by other debhelper scripts.