preinst is in fluxbox 1.3.5-2.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | #!/bin/sh
set -e
# Remove old diverts
if [ "$1" = "upgrade" ]; then
if dpkg-divert --list | grep -q fluxbox; then
dpkg-divert --package fluxbox --remove --rename --divert \
/usr/bin/bsetroot.blackbox /usr/bin/bsetroot
dpkg-divert --package fluxbox --remove --rename --divert \
/usr/share/man/man1/bsetroot.blackbox.1.gz \
/usr/share/man/man1/bsetroot.1.gz
fi
# old version contain 'fluxbox' current - 'startfluxbox'
update-alternatives --remove x-window-manager /usr/bin/fluxbox
fi
|