From c955b685baf27df2e3d4145f0337bcf8077789bb Mon Sep 17 00:00:00 2001 From: Reuben Thomas Date: Sun, 9 Dec 2007 19:52:40 +0000 Subject: Remove Debian files --- debian/plptools.postinst | 115 ----------------------------------------------- 1 file changed, 115 deletions(-) delete mode 100644 debian/plptools.postinst (limited to 'debian/plptools.postinst') diff --git a/debian/plptools.postinst b/debian/plptools.postinst deleted file mode 100644 index 97c6825..0000000 --- a/debian/plptools.postinst +++ /dev/null @@ -1,115 +0,0 @@ -#! /bin/sh -# postinst script for plptools -# -# see: dh_installdeb(1) - -set -e -. /usr/share/debconf/confmodule - -# summary of how this script can be called: -# * `configure' -# * `abort-upgrade' -# * `abort-remove' `in-favour' -# -# * `abort-deconfigure' `in-favour' -# `removing' -# -# for details, see /usr/share/doc/packaging-manual/ -# -# quoting from the policy: -# Any necessary prompting should almost always be confined to the -# post-installation script, and should be protected with a conditional -# so that unnecessary prompting doesn't happen if a package's -# installation fails and the `postinst' is called with `abort-upgrade', -# `abort-remove' or `abort-deconfigure'. - -case "$1" in - configure) - START_NCPD=no - START_PLPNFSD=no - START_PLPPRINTD=no - NCPD_ARGS= - PLPNFSD_ARGS= - PLPPRINTD_ARGS= - FREM= - db_get plptools/ncpd/start - if [ "$RET" = "true" ] ; then - START_NCPD=yes - db_get plptools/ncpd/serial - if [ "$RET" != "/dev/ttyS0" ] ; then - NCPD_ARGS="$NCPD_ARGS -s $RET" - fi - db_get plptools/ncpd/listenat - case "$RET" in - 127.0.0.1) - ;; - 127.0.0.1:7501) - ;; - *) - NCPD_ARGS="$NCPD_ARGS -p $RET" - ;; - esac - else - db_get plptools/frontends/remoteaddr - case "$RET" in - 127.0.0.1) - ;; - 127.0.0.1:7501) - ;; - *) - FREM="-p $RET" - ;; - esac - fi - db_get plptools/plpnfsd/start - if [ "$RET" = "true" ] ; then - START_PLPNFSD=yes - PLPNFSD_ARGS="$FREM" - fi - db_get plptools/plpprintd/start - if [ "$RET" = "true" ] ; then - START_PLPPRINTD=yes - PLPPRINTD_ARGS="$FREM" - db_get plptools/plpprintd/printqueue - if [ "$RET" != "psion" ] ; then - PLPPRINTD_ARGS="$PLPPRINTD_ARGS -s \"lpr -P$RET\"" - fi - fi - cp /etc/plptools.conf /etc/plptools.conf.$$ - cat /etc/plptools.conf.$$ | sed \ - -e "s@START_NCPD=.*@START_NCPD=$START_NCPD@" \ - -e "s@START_PLPNFSD=.*@START_PLPNFSD=$START_PLPNFSD@" \ - -e "s@START_PLPPRINTD=.*@START_PLPPRINTD=$START_PLPPRINTD@" \ - -e "s@NCPD_ARGS=.*@NCPD_ARGS=\"$NCPD_ARGS\"@" \ - -e "s@PLPNFSD_ARGS=.*@PLPNFSD_ARGS=\"$PLPNFSD_ARGS\"@" \ - -e "s@PLPPRINTD_ARGS=.*@PLPPRINTD_ARGS=\"$PLPPRINTD_ARGS\"@" \ - > /etc/plptools.conf \ - && rm -f /etc/plptools.conf.$$ \ - || mv /etc/plptools.conf.$$ /etc/plptools.conf || : - db_get plptools/plpnfsd/suid - if [ "$RET" = "true" ] ; then - chmod u+s /usr/sbin/plpnfsd - else - chmod u-s /usr/sbin/plpnfsd - fi - ;; - - abort-upgrade|abort-remove|abort-deconfigure) - ;; - - *) - echo "postinst called with unknown argument \`$1'" >&2 - exit 0 - ;; -esac - -# dh_installdeb will replace this with shell code automatically -# generated by other debhelper scripts. - -#DEBHELPER# - -db_stop - -exit 0 - - -- cgit v1.2.3