postinst is in gpsd-clients 3.9-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/bash
# postinst script for gpsd-clients
set -e
if [ "$1" = "configure" ] ; then
#remove the old xgps config file
if dpkg --compare-versions "$2" lt "2.91"; then
[ ! -f /etc/X11/app-defaults/xgps ] || rm -f /etc/X11/app-defaults/xgps || true
fi
#remove the old xgpsspeed config file
if dpkg --compare-versions "$2" lt "2.91-2"; then
[ ! -f /etc/X11/app-defaults/xgpsspeed ] || rm -f /etc/X11/app-defaults/xgpsspeed || true
fi
fi
# Automatically added by dh_installmenu
if [ "$1" = "configure" ] && [ -x "`which update-menus 2>/dev/null`" ]; then
update-menus
fi
# End automatically added section
exit 0
|