]> eyrie.org Git - kerberos/kftgt.git/commitdiff
* Only try to add the inetd.conf entry for kftgtd on the initial debian/1.13-2
authorRuss Allbery <rra@stanford.edu>
Sat, 14 Apr 2007 01:46:07 +0000 (01:46 +0000)
committerRuss Allbery <rra@stanford.edu>
Mon, 15 Mar 2010 06:05:56 +0000 (23:05 -0700)
  install.
* Support reconfigure in the kftgtd postinst script.

debian/changelog
debian/kftgtd.postinst
debian/kftgtd.prerm

index a0d7a505c74e60a4b1de75b55730370ea375fb78..b4dbd87d7331ebc906ed9d53ac001c301c932907 100644 (file)
@@ -1,9 +1,12 @@
 kftgt (1.13-2) unstable; urgency=low
 
+  * Only try to add the inetd.conf entry for kftgtd on the initial
+    install.
+  * Support reconfigure in the kftgtd postinst script.
   * Recommend openbsd-inetd | inet-superserver for kftgtd.
   * Update debhelper compatibility level to V5.
 
- -- Russ Allbery <rra@debian.org>  Fri, 13 Apr 2007 18:37:24 -0700
+ -- Russ Allbery <rra@debian.org>  Fri, 13 Apr 2007 18:46:02 -0700
 
 kftgt (1.13-1) unstable; urgency=low
 
index d1ac6ec7a1c6fc7582a1a60c20a0f55c6ea4c7b9..5d5fa86a015f8d159880f55beae19367d0063315 100644 (file)
@@ -1,8 +1,15 @@
-#! /bin/sh -e
+#! /bin/sh
 
-if [ "$1" = configure ] ; then
-    update-inetd --add \
+set -e
+
+if [ "$1" = "configure" ] || [ "$1" = "reconfigure" ] ; then
+    # Only try to add the inetd line on an initial installation.
+    if [ -z "$2" ] || [ x"$2" = x"<unknown>" ] ; then
+        update-inetd --add \
         '2109\tstream\ttcp\tnowait\troot\t/usr/sbin/tcpd\t/usr/sbin/kftgtd'
+    fi
 fi
 
 #DEBHELPER#
+
+exit 0
index e044a39f9f29945281926f6c13425fe0328c2990..1f492b00f0a91981c7da7e3af2f40023b55070da 100644 (file)
@@ -1,7 +1,11 @@
-#! /bin/sh -e
+#! /bin/sh
+
+set -e
 
 if [ "$1" = "remove" ] || [ "$1" = "deconfigure" ] ; then
     update-inetd --remove '2109.*/usr/sbin/kftgtd'
 fi
 
 #DEBHELPER#
+
+exit 0