[Pkg-samba-maint] r4076 - trunk/samba/debian

bubulle at alioth.debian.org bubulle at alioth.debian.org
Wed May 9 16:02:40 UTC 2012


tags 644963 pending
thanks

Author: bubulle
Date: 2012-05-09 16:02:40 +0000 (Wed, 09 May 2012)
New Revision: 4076

Added:
   trunk/samba/debian/swat.prerm
Removed:
   trunk/samba/debian/swat.postrm
Modified:
   trunk/samba/debian/changelog
   trunk/samba/debian/samba.postrm
   trunk/samba/debian/samba.prerm
Log:
Move update-inetd calls from postrm scripts to prerm.
Closes: #644963

Modified: trunk/samba/debian/changelog
===================================================================
--- trunk/samba/debian/changelog	2012-05-09 13:41:57 UTC (rev 4075)
+++ trunk/samba/debian/changelog	2012-05-09 16:02:40 UTC (rev 4076)
@@ -29,6 +29,8 @@
     prefer this over removing the waf binary and repack upstream
     tarball.
     Closes: #654499
+  * Move update-inetd calls from postrm scripts to prerm.
+    Closes: #644963
 
  -- Christian Perrier <bubulle at debian.org>  Mon, 07 May 2012 22:16:32 +0200
 

Modified: trunk/samba/debian/samba.postrm
===================================================================
--- trunk/samba/debian/samba.postrm	2012-05-09 13:41:57 UTC (rev 4075)
+++ trunk/samba/debian/samba.postrm	2012-05-09 16:02:40 UTC (rev 4076)
@@ -10,15 +10,6 @@
 	# Remove init.d configuration file
 	echo  Removing configuration file /etc/default/samba...  >&2
 	rm -f /etc/default/samba
-
-	# Remove NetBIOS entries from /etc/inetd.conf
-	if [ -x /usr/sbin/update-inetd ]; then
-		update-inetd --remove netbios-ssn
-	fi
-else
-	# Not purging, do not remove NetBIOS entries from /etc/inetd.conf
-	update-inetd --disable netbios-ssn
-
 fi
 
 #DEBHELPER#

Modified: trunk/samba/debian/samba.prerm
===================================================================
--- trunk/samba/debian/samba.prerm	2012-05-09 13:41:57 UTC (rev 4075)
+++ trunk/samba/debian/samba.prerm	2012-05-09 16:02:40 UTC (rev 4076)
@@ -6,6 +6,16 @@
 	update-alternatives --remove smbstatus /usr/bin/smbstatus.samba3
 fi
 
+if [ "$1" = purge ]; then
+	# Remove NetBIOS entries from /etc/inetd.conf
+	if [ -x /usr/sbin/update-inetd ]; then
+		update-inetd --remove netbios-ssn
+	fi
+else
+	# Not purging, do not remove NetBIOS entries from /etc/inetd.conf
+	update-inetd --disable netbios-ssn
+fi
+
 #DEBHELPER#
 
 exit 0

Deleted: trunk/samba/debian/swat.postrm
===================================================================
--- trunk/samba/debian/swat.postrm	2012-05-09 13:41:57 UTC (rev 4075)
+++ trunk/samba/debian/swat.postrm	2012-05-09 16:02:40 UTC (rev 4076)
@@ -1,24 +0,0 @@
-#!/bin/sh
-
-set -e
-case "$1" in
-	purge)
-		if [ -x /usr/sbin/update-inetd ]; then
-			update-inetd --remove swat
-		fi
-		;;
-	remove)
-		update-inetd --disable swat
-		;;
-	upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
-		;;
-	*)
-		echo "$0: unknown action \"$1\""
-		exit 0
-		;;
-esac
-
-#DEBHELPER#
-
-exit 0
-

Copied: trunk/samba/debian/swat.prerm (from rev 4073, trunk/samba/debian/swat.postrm)
===================================================================
--- trunk/samba/debian/swat.prerm	                        (rev 0)
+++ trunk/samba/debian/swat.prerm	2012-05-09 16:02:40 UTC (rev 4076)
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+set -e
+case "$1" in
+	purge)
+		if [ -x /usr/sbin/update-inetd ]; then
+			update-inetd --remove swat
+		fi
+		;;
+	remove)
+		update-inetd --disable swat
+		;;
+	upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+		;;
+	*)
+		echo "$0: unknown action \"$1\""
+		exit 0
+		;;
+esac
+
+#DEBHELPER#
+
+exit 0
+





More information about the Pkg-samba-maint mailing list