preinst is in socklog-run 2.1.0-8.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 18 19 20 21 22 23 | #!/bin/sh
set -e
test "$1" = 'install' || test "$1" = 'upgrade' || exit 0
dpkg --compare-versions "$2" lt '2.1.0-0' || exit 0
check_conffile() {
test -e "$1" || return 0
md5=`md5sum <"$1"`
md5=${md5%% *}
md5orig=`grep " $1 " </var/lib/dpkg/status || :`
md5orig=${md5orig## * }
test "$md5" != "$md5orig" || rm -f "$1"
}
for i in unix/log/run unix/check unix/run klog/log/run klog/run \
inet/log/run inet/run ucspi-tcp/log/run ucspi-tcp/run notify/run; do
check_conffile /etc/socklog/$i
done
for i in unix klog inet ucspi-tcp; do
rm -rf /var/run/socklog-$i /var/run/socklog-$i.log
done
rm -rf /var/run/socklog-notify
|