postinst is in upx-ucl 3.94-4.
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 | #!/bin/sh
set -e
update_alt()
{
# arguments: link program priority
if ! update-alternatives --display "$1" | grep -q "^/usr/bin/$2" ; then
update-alternatives --install "/usr/bin/$1" "$1" "/usr/bin/$2" "$3" \
--slave "/usr/share/man/man1/$1.1.gz" "$1.1.gz" \
"/usr/share/man/man1/$2.1.gz"
fi
}
if [ "$1" = "configure" ] ; then
update_alt upx upx-ucl 30
fi
exit 0
|