Rev 2 | Blame | Compare with Previous | Last modification | View Log | RSS feed
#! /bin/sh# postinst script for pmk## see: dh_installdeb(1)conffile=/etc/pmk/pmk.confset -etest $DEBIAN_SCRIPT_DEBUG && set -v -xif [ -e /usr/share/debconf/confmodule ]; then. /usr/share/debconf/confmoduleficase "$1" inconfigure|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 } > $tempfilethenucf --three-way --debconf-ok $tempfile $conffilerm -f $tempfileucfr pmk $conffileelserm -f $tempfileexit 1fi# Clean out any remains of this package from the Debconf databaseif [ -e /usr/share/debconf/confmodule ]; thendb_purgefi;;abort-upgrade|abort-remove|abort-deconfigure);;*)echo "postinst called with unknown argument \`$1'" >&2exit 1;;esac# dh_installdeb will replace this with shell code automatically# generated by other debhelper scripts.#DEBHELPER#exit 0