postinst is in pmk 0.10.4-1.
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 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | #! /bin/sh
# postinst script for pmk
#
# see: dh_installdeb(1)
conffile=/etc/pmk/pmk.conf
set -e
test $DEBIAN_SCRIPT_DEBUG && set -v -x
if [ -e /usr/share/debconf/confmodule ]; then
. /usr/share/debconf/confmodule
fi
case "$1" in
configure|reconfigure)
# Note that -s and -g are added by 25_pmksetup.dpatch;
# they are not documented in pmksetup(8).
tempfile=`mktemp -t pmksetup.XXXXXXXXXX`
settings="-u PREFIX=\"/usr\" \
-u BIN_CC=\"/usr/bin/gcc\" \
-u BIN_CXX=\"/usr/bin/g++\" \
-u PATH_BIN=\"/usr/local/bin:/usr/bin:/bin\" \
-u OS_ARCH=\"`dpkg --print-architecture`\""
if { if test $DEBIAN_SCRIPT_DEBUG; then pmksetup -V -s -g $settings;
else pmksetup -s -g $settings 2> /dev/null; fi } > $tempfile
then
ucf --three-way --debconf-ok $tempfile $conffile
rm -f $tempfile
ucfr pmk $conffile
else
rm -f $tempfile
exit 1
fi
# Clean out any remains of this package from the Debconf database
if [ -e /usr/share/debconf/confmodule ]; then
db_purge
fi
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
exit 0
|