preinst is in libapache2-mod-perl2 2.0.5-5ubuntu1.
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
CONFFILE=/etc/apache2/mods-available/perl.conf
CONFLINK=/etc/apache2/mods-enabled/perl.conf
if [ -n "$2" ] && [ -e "$CONFFILE" ] \
&& dpkg --compare-versions "$2" lt 2.0.2-2.4
then
sed -i -e'/^[[:space:]]*PerlModule[[:space:]]\+Apache2[[:space:]]*/d' \
$CONFFILE
if [ ! -s "$CONFFILE" ]; then
rm $CONFFILE
if [ -L "$CONFLINK" ]; then
rm $CONFLINK
fi
fi
fi
|