[pkg-dhcp-commits] [SCM] ISC DHCP packaging for Debian branch, master, updated. upstream/4.1.1-67-g8080e19
Andrew Pollock
apollock at debian.org
Tue Jul 6 06:26:09 UTC 2010
The following commit has been merged in the master branch:
commit 8080e19738387eb92036fd883a026376268049a1
Author: Andrew Pollock <apollock at debian.org>
Date: Mon Jul 5 23:25:16 2010 -0700
[dhcp3-server] Clean up after transition
Reinstate dhcp3-server's postrm to try and remove /var/lib/dhcp3
diff --git a/debian/changelog b/debian/changelog
index fd33358..6e1e533 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
isc-dhcp (4.1.1-P1-8) UNRELEASED; urgency=low
* debian/dhcp3-client.postrm: bring back to clean up cruft (closes: #588203)
+ * debian/dhcp3-server.postrm: bring back to clean up cruft
-- Andrew Pollock <apollock at debian.org> Mon, 05 Jul 2010 23:09:34 -0700
diff --git a/debian/dhcp3-server.postrm b/debian/dhcp3-server.postrm
new file mode 100644
index 0000000..31954be
--- /dev/null
+++ b/debian/dhcp3-server.postrm
@@ -0,0 +1,30 @@
+#!/bin/sh
+
+set -e
+
+case "$1" in
+ remove)
+ # nothing to do
+ ;;
+
+ purge)
+ # Remove old database
+ rm -f /var/lib/dhcp3/dhcpd.leases /var/lib/dhcp3/dhcpd.leases~
+
+ # Remove old database directory
+ if [ -d /var/lib/dhcp3 ]; then
+ rmdir --ignore-fail-on-non-empty /var/lib/dhcp3/
+ fi
+
+ # Remove init.d configuration file
+ rm -f /etc/default/dhcp3-server
+ ;;
+
+ upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+ # Nothing to do
+ ;;
+esac
+
+#DEBHELPER#
+
+exit 0
--
ISC DHCP packaging for Debian
More information about the pkg-dhcp-commits
mailing list