postrm is in hardening-wrapper 2.5ubuntu2.
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 -e
undiv()
{
dpkg-divert --package hardening-wrapper \
--rename --remove /usr/bin/"$1" || true
}
if [ "$1" = "remove" ] || [ "$1" = "abort-install" ]; then
# handle diversions (change debian/h-w.links, debian/h-w.preinst too)
for ver in 4.4 4.6 4.7 4.8 4.9
do
for i in gcc g++
do
undiv "$i-$ver"
done
done
undiv ld.bfd
case "$(uname -m)" in
aarch64) : ;;
*) undiv ld.gold
esac
fi
|