preinst is in amule 1:2.3.2-2.
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 | #! /bin/sh
set -e
DIVERSIONS=`env LC_ALL=C dpkg-divert --list | grep -E 'by amule(-utils)?$'` || true
if [ -n "$DIVERSIONS" ]; then
echo "$DIVERSIONS" | while read diversion of FILE to DIVERTED by PACKAGE; do
dpkg-divert --package "$PACKAGE" --remove "$FILE"
done
for f in /usr/bin/ed2k* /usr/share/man/man1/ed2k*.1.gz; do
echo "Deleting $f"
rm -f "$f"
done
fi
|