5 # This maintainer script can be called the following ways:
7 # * new-postinst "configure" [$most_recently_configured_version]
8 # The package is unpacked; all dependencies are unpacked and, when there
9 # are no circular dependencies, configured.
11 # * old-postinst "abort-upgrade" $new_version
12 # * conflictors-postinst "abort-remove" "in-favour" $package
14 # * postinst "abort-remove"
15 # * deconfigureds-postinst "abort-deconfigure" "in-favour"
16 # $failed_install_package $fip_version ["removing"
17 # $conflicting_package $cp_version]
18 # The package is unpacked; all dependencies are at least Half-Installed,
19 # previously been configured, and not removed. In some error situations,
20 # dependencies may not be even fully unpacked.
22 # * postinst "triggered" "${triggers[*]}"
23 # For trigger-only calls, i.e. if "configure" is not called.
25 # upgrade case from Epoch 1 Debian CVS
26 nukes='/etc/cvs.conf /etc/cvs-cron.conf /etc/cvs-pserver.conf /etc/cron.weekly/cvs /etc/pam.d/cvs'
28 test -e "$x" || continue
30 test -x /usr/sbin/update-inetd && update-inetd --remove "^cvspserver"
36 addgroup --force-badname --system _cvsadmin
39 abort-upgrade|abort-remove|abort-deconfigure)
46 echo >&2 "postinst called with unknown subcommand '$1'"
51 # dh_installdeb will replace this with shell code automatically
52 # generated by other debhelper scripts.