Hi mate

I kindly propose the following NMU patch. It adds an if condition to the 
update-inetd call and changes the dependency from netbase to update-inetd.
Please consider this NMU. Feel free to upload yourself, give some feedback or 
give me permission to go ahead :)

Cheers
Steffen
diff -u gnats-4.1.0/debian/gnats.postrm.in gnats-4.1.0/debian/gnats.postrm.in
--- gnats-4.1.0/debian/gnats.postrm.in
+++ gnats-4.1.0/debian/gnats.postrm.in
@@ -31,7 +31,9 @@
 
 if [ "$1" = purge ]; then
   # Remove the inetd setting when purging this package.
-  update-inetd --remove "#?support.*"
+  if [ -e "/usr/sbin/update-inetd" ] ; then
+  	update-inetd --remove "#?support.*"
+  fi
 
   # Remove debconf templates and data
   db_purge || true
diff -u gnats-4.1.0/debian/changelog gnats-4.1.0/debian/changelog
--- gnats-4.1.0/debian/changelog
+++ gnats-4.1.0/debian/changelog
@@ -1,3 +1,13 @@
+gnats (4.1.0-0.3) unstable; urgency=medium
+
+  * Non-maintainer upload
+  * Fix unconditional use of update-inetd in gnats.postrm script,
+    because update-inetd is not essential (Closes: #431526)
+  * Change dependency from netbase to update-inetd, because
+    update-inetd was moved into a seperate package (Closes: #43532)
+
+ -- Steffen Joeris <[EMAIL PROTECTED]>  Tue, 31 Jul 2007 17:31:11 +1000
+
 gnats (4.1.0-0.2) unstable; urgency=high
 
   * Non-maintainer upload during BSP
diff -u gnats-4.1.0/debian/control gnats-4.1.0/debian/control
--- gnats-4.1.0/debian/control
+++ gnats-4.1.0/debian/control
@@ -32,7 +32,7 @@
 
 Package: gnats
 Architecture: any
-Depends: gnats-user (>=4.0-4), exim4 | mail-transport-agent, debianutils (>= 1.6), ${misc:Depends}, ${shlibs:Depends}, adduser, netbase
+Depends: gnats-user (>=4.0-4), exim4 | mail-transport-agent, debianutils (>= 1.6), ${misc:Depends}, ${shlibs:Depends}, adduser, update-inetd
 Suggests: gnatsweb
 Description: The GNU problem report management system (central database)
  GNATS is a bug-tracking tool designed for use at a central "Support

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to