Package: portsentry
Version: 1.2-11.3
Severity: wishlist
Tags: patch

This is the patch used in my NMU.

diff -u portsentry-1.2/debian/changelog portsentry-1.2/debian/changelog
--- portsentry-1.2/debian/changelog
+++ portsentry-1.2/debian/changelog
@@ -1,3 +1,17 @@
+portsentry (1.2-11.3) unstable; urgency=low
+
+  * Non-maintainer upload to fix release goal.
+  * Fix incorrect provides in init.d script (Closes: #542600).
+  * Make init.d script depend on $all to start last in the boot sequence
+    (Closes: #539257).
+  * Fix typo in portsentry(8) manual page (Closes: #431304).
+  * Remove redundant code from postinst.  The same code is inserted
+    by dh_installinit.
+  * Make sure errors are not ignored in prerm.
+  * Move to debhelper versjon 7.
+
+ -- Petter Reinholdtsen <[email protected]>  Thu, 17 Sep 2009 00:13:57 +0200
+
 portsentry (1.2-11.2) unstable; urgency=low
 
   * Non-maintainer upload to fix pending l10n issues.
diff -u portsentry-1.2/debian/compat portsentry-1.2/debian/compat
--- portsentry-1.2/debian/compat
+++ portsentry-1.2/debian/compat
@@ -1 +1 @@
-4
+7
diff -u portsentry-1.2/debian/control portsentry-1.2/debian/control
--- portsentry-1.2/debian/control
+++ portsentry-1.2/debian/control
@@ -2,7 +2,7 @@
 Section: net
 Priority: optional
 Maintainer: Bruno Barrera C. <[email protected]>
-Build-Depends: debhelper (>=4.1.16)
+Build-Depends: debhelper (>=7)
 Standards-Version: 3.6.2
 
 Package: portsentry
diff -u portsentry-1.2/debian/portsentry.8 portsentry-1.2/debian/portsentry.8
--- portsentry-1.2/debian/portsentry.8
+++ portsentry-1.2/debian/portsentry.8
@@ -87,7 +87,7 @@
 and all the IP addresses found on the machine via
 .BR ifconfig .
 
-.BR /etc/default/portsenty 
+.BR /etc/default/portsentry 
 specifies in which protocol modes
 .B portsentry 
 should be startet from
diff -u portsentry-1.2/debian/postinst portsentry-1.2/debian/postinst
--- portsentry-1.2/debian/postinst
+++ portsentry-1.2/debian/postinst
@@ -37,8 +37,6 @@
    fi
 fi
 
-update-rc.d portsentry defaults 99 >/dev/null
-
 # this is not a very nice way to do things, but it's the safest one
 if [ "`pidof /usr/sbin/portsentry`" ]; then
     echo -n "Stopping anti portscan daemon: "
@@ -49,10 +47,4 @@
-if [ -x /usr/sbin/invoke-rc.d ]; then
-    invoke-rc.d portsentry start
-else
-    /etc/init.d/portsentry start
-fi
-
 # until portsentry is fixed:
 db_stop
 
-#DEBHELPER#
\ No newline at end of file
+#DEBHELPER#
diff -u portsentry-1.2/debian/prerm portsentry-1.2/debian/prerm
--- portsentry-1.2/debian/prerm
+++ portsentry-1.2/debian/prerm
@@ -1,6 +1,8 @@
 #!/bin/sh
 #$Id: prerm,v 1.4 2003/09/08 18:09:03 agx Exp $
 
+set -e
+
 # rm symbolic link to /usr/doc/portsentry when package gets removed or
 # upgraded 
 # keep this for one stable release to get rid of the symlink
@@ -28 +30 @@
-#DEBHELPER#
\ No newline at end of file
+#DEBHELPER#
diff -u portsentry-1.2/debian/init.d portsentry-1.2/debian/init.d
--- portsentry-1.2/debian/init.d
+++ portsentry-1.2/debian/init.d
@@ -1,7 +1,7 @@
 #! /bin/sh
 ### BEGIN INIT INFO
-# Provides:          slpd
-# Required-Start:    $remote_fs $syslog
+# Provides:          portsentry
+# Required-Start:    $remote_fs $syslog $all
 # Required-Stop:     $remote_fs $syslog
 # Default-Start:     2 3 4 5
 # Default-Stop:      0 1 6
diff -u portsentry-1.2/debian/rules portsentry-1.2/debian/rules
--- portsentry-1.2/debian/rules
+++ portsentry-1.2/debian/rules
@@ -54,7 +54,7 @@
 install: build
        dh_testdir
        dh_testroot
-       dh_clean -k
+       dh_prep
        dh_installdirs
 
        # Add here commands to install the package into debian/portsentry.



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to