Package: spong
Version: 2.7.7-12
Severity: normal
Tags: patch

Hi,

Attached is the diff for my spong 2.7.7-12 NMU.
diff -u spong-2.7.7/debian/control spong-2.7.7/debian/control
--- spong-2.7.7/debian/control
+++ spong-2.7.7/debian/control
@@ -2,8 +2,8 @@
 Section: net
 Priority: optional
 Maintainer: Clément Stenac <[EMAIL PROTECTED]>
-Build-Depends-Indep: debhelper (>= 4.1.16), dpatch
-Standards-Version: 3.6.2
+Build-Depends: debhelper (>= 4.1.16), dpatch
+Standards-Version: 3.7.2
 
 Package: spong-common
 Architecture: all
diff -u spong-2.7.7/debian/spong-client.init.d 
spong-2.7.7/debian/spong-client.init.d
--- spong-2.7.7/debian/spong-client.init.d
+++ spong-2.7.7/debian/spong-client.init.d
@@ -1,7 +1,12 @@
 #! /bin/sh
-#
-# Start or stop the spong system monitoring client
-#
+### BEGIN INIT INFO
+# Provides:          spong-client
+# Required-Start:    $local_fs
+# Required-Stop:     $local_fs
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
+# Short-Description: Start or stop the spong system monitoring client
+### END INIT INFO
 
 test -x /usr/sbin/spong-client || exit 0
 
diff -u spong-2.7.7/debian/spong-www.postrm spong-2.7.7/debian/spong-www.postrm
--- spong-2.7.7/debian/spong-www.postrm
+++ spong-2.7.7/debian/spong-www.postrm
@@ -17,7 +17,7 @@
       if [ -x /usr/sbin/invoke-rc.d ] ; then
        /usr/sbin/invoke-rc.d $reload reload 
       else
-       /etc/init.d/$reload reload
+       /usr/sbin/invoke-rc.d $reload reload
       fi
     fi
   done
diff -u spong-2.7.7/debian/spong-common.postinst 
spong-2.7.7/debian/spong-common.postinst
--- spong-2.7.7/debian/spong-common.postinst
+++ spong-2.7.7/debian/spong-common.postinst
@@ -13,9 +13,10 @@
 spong_localcfg=/etc/spong/spong.conf.`hostname -s`
 db_get spong-common/server_where
 
-if [ ! -f $spong_localcfg ] && [ "$RET" ]; then
+if [ "$RET" ]; then
+  if [ ! -f $spong_localcfg ]; then
 
-  cat <<EOF> $spong_localcfg
+    cat <<EOF> $spong_localcfg
 # This file is automatically created by debconf, yet all modifications
 # will be preserved.
 
@@ -24,11 +25,12 @@
 1;
 EOF
 
- else
+  else
 
-  sed -i -e "s/\(^$SPONGSERVER *= *\)\".*\".*$/\1\"$RET\"/" $spong_localcfg
+    sed -i -e "s/\(^$SPONGSERVER *= *\)\".*\".*$/\1\"$RET\"/" $spong_localcfg
   
 
+  fi
 fi
 
 if [ "$1" = "configure" ] && dpkg --compare-versions "$2" "<=" "2.7.1-4" ; then
diff -u spong-2.7.7/debian/spong-server.init.d 
spong-2.7.7/debian/spong-server.init.d
--- spong-2.7.7/debian/spong-server.init.d
+++ spong-2.7.7/debian/spong-server.init.d
@@ -1,7 +1,12 @@
 #! /bin/sh -e
-#
-# Start or stop the spong daemon
-#
+### BEGIN INIT INFO
+# Provides:          spong-server
+# Required-Start:    $local_fs
+# Required-Stop:     $local_fs
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
+# Short-Description: Start or stop the spong daemon
+### END INIT INFO
 
 test -x /usr/sbin/spong-server || exit 0
 
diff -u spong-2.7.7/debian/changelog spong-2.7.7/debian/changelog
--- spong-2.7.7/debian/changelog
+++ spong-2.7.7/debian/changelog
@@ -1,3 +1,16 @@
+spong (2.7.7-12.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Do not create local spong.conf when debconf question is not shown.
+    (Closes: #389246)
+  * Updated Standards-Version.
+  * Replaced direct calls to init scripts in spong-www.postint and
+    spong-www.postrm.
+  * Replaced Builds-Depends-Indep by Build-Depends.
+  * Added lsb section in init.d scripts.
+
+ -- Alexis Darrasse <[EMAIL PROTECTED]>  Sat,  7 Oct 2006 22:28:25 +0200
+
 spong (2.7.7-12) unstable; urgency=low
  
   * Stop patching upstream sources directly, use patches only
diff -u spong-2.7.7/debian/spong-www.postinst 
spong-2.7.7/debian/spong-www.postinst
--- spong-2.7.7/debian/spong-www.postinst
+++ spong-2.7.7/debian/spong-www.postinst
@@ -46,7 +46,7 @@
          if [ -x /usr/sbin/invoke-rc.d ] ; then
            /usr/sbin/invoke-rc.d ${reload} reload 
          else
-           /etc/init.d/${reload} reload
+           /usr/sbin/invoke-rc.d ${reload} reload
          fi
        fi
       fi

Reply via email to