preinst is in epic4 1:2.10.2-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 14 15 16 17 | #!/bin/sh
set -e
if [ "$1" = "upgrade" -o "$1" = "install" ]; then
install -m 755 -d /etc/epic4
# this file needs to be preserved, then deleted
if [ -e /etc/irc/servers-epic4 ]; then
cp /etc/irc/servers-epic4 /etc/epic4/servers
rm /etc/irc/servers-epic4
fi
# this one we use only if we don't have anything else to use ...
if [ ! -e /etc/epic4/servers -a -e /etc/irc/servers ]; then
install -m 644 /etc/irc/servers /etc/epic4/servers
fi
fi
|