2
# postinst script for #PACKAGE#
4
# see: dh_installdeb(1)
8
# summary of how this script can be called:
9
# * <postinst> `configure' <most-recently-configured-version>
10
# * <old-postinst> `abort-upgrade' <new version>
11
# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
13
# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
14
# <failed-install-package> <version> `removing'
15
# <conflicting-package> <version>
16
# for details, see /usr/share/doc/packaging-manual/
18
# quoting from the policy:
19
# Any necessary prompting should almost always be confined to the
20
# post-installation script, and should be protected with a conditional
21
# so that unnecessary prompting doesn't happen if a package's
22
# installation fails and the `postinst' is called with `abort-upgrade',
23
# `abort-remove' or `abort-deconfigure'.
25
OLDKEEPERS="/etc/apt/keepers"
26
NEWKEEPERS="/var/lib/debfoster/keepers"
30
if [ -f $OLDKEEPERS -a \! -f $NEWKEEPERS ] ; then
31
echo "$OLDKEEPERS exists, do you want me to move it"
32
echo -n "to its new location, $NEWKEEPERS? [Y/n] "
36
mv -fv $OLDKEEPERS $NEWKEEPERS
39
echo "You don't want to move the file. Fine, but you will be asked"
40
echo "again which packages you want to keep when you run debfoster."
41
echo "Or you could move $OLDKEEPERS to $NEWKEEPERS by hand."
47
abort-upgrade|abort-remove|abort-deconfigure)
52
echo "postinst called with unknown argument \`$1'" >&2
57
# dh_installdeb will replace this with shell code automatically
58
# generated by other debhelper scripts.