[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#408240: ffingerd: postinst fails: line 10: update-inetd: command not found



tag 408240 +patch
thanks

On Wednesday 24 January 2007, Lucas Nussbaum wrote:
> Setting up ffingerd (1.28-5) ...
> Adding and enabling ffingerd entry in /etc/inetd.conf.
> /var/lib/dpkg/info/ffingerd.postinst: line 10: update-inetd: command not
> found
> dpkg: error processing ffingerd (--configure):
>  subprocess post-installation script returned error exit status 127
>  Errors were encountered while processing:
>   ffingerd
>   E: Sub-process /usr/bin/dpkg returned an error code (1)

Hi!

A quick patch about tihs issue.

/Sune

-- 
Do you know how might I save the ADSL proxy?

You neither can disconnect the cable, nor must send the mouse for forwarding 
to a 97-bit kernel.
diff -u ffingerd-1.28/debian/changelog ffingerd-1.28/debian/changelog
--- ffingerd-1.28/debian/changelog
+++ ffingerd-1.28/debian/changelog
@@ -1,3 +1,11 @@
+ffingerd (1.28-7) unstable; urgency=low
+
+  * QA upload.
+  * Add depends on update-inetd (Closes: 408240)
+  * Guard update-inetd calls in postrm
+
+ -- Sune Vuorela <debian@pusling.com>  Thu, 25 Jan 2007 14:23:16 +0100
+
 ffingerd (1.28-6) unstable; urgency=low
 
   * Orphaning package. (closes: #390864)
diff -u ffingerd-1.28/debian/postrm ffingerd-1.28/debian/postrm
--- ffingerd-1.28/debian/postrm
+++ ffingerd-1.28/debian/postrm
@@ -5,9 +5,12 @@
 # This will be executed on removal and purging of the package.
 if [ "$1" = "remove" ]; then
 	# the next two lines shouldn't exist but, again, update-inetd isn't that perfect :)
-	update-inetd --comment-chars '#<removed>#' --pattern ffingerd --disable finger
-	update-inetd --comment-chars '#<ffingerd>#' --enable finger
-	update-inetd --remove ffingerd
+	if [ -x /usr/sbin/update-inetd ]
+	then 	
+		update-inetd --comment-chars '#<removed>#' --pattern ffingerd --disable finger
+		update-inetd --comment-chars '#<ffingerd>#' --enable finger
+		update-inetd --remove ffingerd
+	fi
 	if grep -s "^[^ *#]" /etc/xinetd.conf | grep -q ffingerd; then
 		echo "Please remove the ffingerd entry from your /etc/xinetd.conf file"
 		echo "manually!"
diff -u ffingerd-1.28/debian/control ffingerd-1.28/debian/control
--- ffingerd-1.28/debian/control
+++ ffingerd-1.28/debian/control
@@ -6,7 +6,7 @@
 
 Package: ffingerd
 Architecture: any
-Depends: ${shlibs:Depends}
+Depends: ${shlibs:Depends}, update-inetd
 Description: a secure finger daemon
  Secure fingerd replacement. This version of the finger daemon is invoked
  by inetd, but it's not meant to be run as root. Requests that may indicate

Attachment: pgpXHLdOxzoD9.pgp
Description: PGP signature


Reply to: