preinst is in fortunes-de 0.34-1.
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 | #!/bin/sh -e
if [ -f /usr/games/fortune.en ]; then
rm -f /usr/games/fortune
dpkg-divert --package fortunes-de --remove --rename \
--divert /usr/games/fortune.en /usr/games/fortune
fi
if [ -f /usr/share/man/man6/fortune.en.6.gz ]; then
rm -f /usr/share/man/man6/fortune.6.gz
dpkg-divert --package fortunes-de --remove --rename \
--divert /usr/share/man/man6/fortune.en.6.gz /usr/share/man/man6/fortune.6.gz
fi
|