[Pkg-samba-maint] r857 - branches/samba4
Steinar H. Gunderson
sesse at costa.debian.org
Tue Jan 3 22:14:40 UTC 2006
Author: sesse
Date: 2006-01-03 22:14:39 +0000 (Tue, 03 Jan 2006)
New Revision: 857
Added:
branches/samba4/samba-common.postrm
branches/samba4/samba.postrm
Removed:
branches/samba4/TODO
Modified:
branches/samba4/changelog
Log:
Support purging properly in postrm, both for samba and samba-common (adapted
from the Samba 3 packaging).
Deleted: branches/samba4/TODO
===================================================================
--- branches/samba4/TODO 2006-01-03 22:07:59 UTC (rev 856)
+++ branches/samba4/TODO 2006-01-03 22:14:39 UTC (rev 857)
@@ -1 +0,0 @@
-- Really purge on purge.
Modified: branches/samba4/changelog
===================================================================
--- branches/samba4/changelog 2006-01-03 22:07:59 UTC (rev 856)
+++ branches/samba4/changelog 2006-01-03 22:14:39 UTC (rev 857)
@@ -25,8 +25,10 @@
* Don't give --pidfile to start-stop-daemon when stopping -- current
versions of Samba 4 won't die when the parent is killed.
* Removed debmake comment from debian/rules, it's hardly relevant any more.
+ * Support purging properly in postrm, both for samba and samba-common
+ (adapted from the Samba 3 packaging).
- -- Steinar H. Gunderson <sesse at debian.org> Tue, 3 Jan 2006 22:46:06 +0100
+ -- Steinar H. Gunderson <sesse at debian.org> Tue, 3 Jan 2006 23:13:28 +0100
samba (3.9.0+SVN12395-1) unstable; urgency=low
Copied: branches/samba4/samba-common.postrm (from rev 856, trunk/samba-common.postrm)
===================================================================
--- trunk/samba-common.postrm 2006-01-03 22:07:59 UTC (rev 856)
+++ branches/samba4/samba-common.postrm 2006-01-03 22:14:39 UTC (rev 857)
@@ -0,0 +1,10 @@
+#! /bin/sh
+
+set -e
+
+if [ "$1" = purge ]; then
+ # Remove any files left in /etc/samba/
+ rm -Rf /etc/samba/
+fi
+
+#DEBHELPER#
Copied: branches/samba4/samba.postrm (from rev 856, trunk/samba.postrm)
===================================================================
--- trunk/samba.postrm 2006-01-03 22:07:59 UTC (rev 856)
+++ branches/samba4/samba.postrm 2006-01-03 22:14:39 UTC (rev 857)
@@ -0,0 +1,14 @@
+#! /bin/sh -e
+
+set -e
+
+if [ "$1" = purge ]; then
+
+ # Remove Samba's state files, both volatile and non-volatile
+ rm -Rf /var/run/samba/ /var/cache/samba/ /var/lib/samba
+
+ # Remove log files
+ rm -Rf /var/log/samba/
+fi
+
+#DEBHELPER#
More information about the Pkg-samba-maint
mailing list