postrm is in sendfile 2.1b.20080616-5.3.
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 24 25 26 | #! /bin/sh
# post removal script for the Debian GNU/Linux sendfile package
set -e
if [ "$1" = "purge" ]
then
rm -rf /var/log/sendfile >/dev/null
if [ -d /var/spool/sendfile ]
then
cd /var/spool/sendfile
if [ -n "`ls`" ]; then
for u in *; do
for num in 7 6 5 4 3 2 1; do
if [ -f $u/log.$num ]; then rm -f $u/log.$num; fi
done
done
fi
cd /
rm -rf /var/spool/sendfile >/dev/null
fi
fi
test ! -x update-inetd || update-inetd --remove saft
|