aboutsummaryrefslogtreecommitdiffstats
path: root/debian/plptools.postinst
diff options
context:
space:
mode:
authorReuben Thomas <rrt@sc3d.org>2007-12-09 19:52:40 +0000
committerReuben Thomas <rrt@sc3d.org>2007-12-09 19:52:40 +0000
commitc955b685baf27df2e3d4145f0337bcf8077789bb (patch)
tree6ab1d6e87e05c649c8bc91e826ac37fd894605d9 /debian/plptools.postinst
parent600afc7ff1df3aedc69dd34d7a3d8c0a40b10a82 (diff)
downloadplptools-c955b685baf27df2e3d4145f0337bcf8077789bb.tar.gz
plptools-c955b685baf27df2e3d4145f0337bcf8077789bb.tar.bz2
plptools-c955b685baf27df2e3d4145f0337bcf8077789bb.zip
Remove Debian files
Diffstat (limited to 'debian/plptools.postinst')
-rw-r--r--debian/plptools.postinst115
1 files changed, 0 insertions, 115 deletions
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:
-# * <postinst> `configure' <most-recently-configured-version>
-# * <old-postinst> `abort-upgrade' <new version>
-# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
-# <new-version>
-# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
-# <failed-install-package> <version> `removing'
-# <conflicting-package> <version>
-# 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
-
-