[pkg-dhcp-commits] [SCM] ISC DHCP packaging for Debian branch, master, updated. upstream/4.1.1-65-g20ac777

Andrew Pollock apollock at debian.org
Tue Jul 6 06:12:41 UTC 2010


The following commit has been merged in the master branch:
commit 20ac777e355f9be8f16567165ac1cc3aa092c02d
Author: Andrew Pollock <apollock at debian.org>
Date:   Mon Jul 5 23:11:12 2010 -0700

    [dhcp3-client] Clean up after transition
    
    Reinstate dhcp3-client's postrm to try and remove /var/lib/dhcp3 for #588203

diff --git a/debian/changelog b/debian/changelog
index 885e138..fd33358 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+isc-dhcp (4.1.1-P1-8) UNRELEASED; urgency=low
+
+  * debian/dhcp3-client.postrm: bring back to clean up cruft (closes: #588203)
+
+ -- Andrew Pollock <apollock at debian.org>  Mon, 05 Jul 2010 23:09:34 -0700
+
 isc-dhcp (4.1.1-P1-7) unstable; urgency=low
 
   * The "There goes the neighbourhood" release
diff --git a/debian/dhcp3-client.postrm b/debian/dhcp3-client.postrm
new file mode 100644
index 0000000..faff4b6
--- /dev/null
+++ b/debian/dhcp3-client.postrm
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" == "purge" ]; then
+	# Remove old lease database
+	rm -f /var/lib/dhcp3/dhclient.leases*
+
+	# Try to remove old directory
+	if [ -d /var/lib/dhcp3 ]; then
+		rmdir --ignore-fail-on-non-empty /var/lib/dhcp3/
+	fi
+fi
+
+#DEBHELPER#

-- 
ISC DHCP packaging for Debian



More information about the pkg-dhcp-commits mailing list