summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkroeckx <kroeckx@0070b5ef-2f16-0410-befa-9a02bd1d6ddb>2010-05-24 16:32:16 +0000
committerkroeckx <kroeckx@0070b5ef-2f16-0410-befa-9a02bd1d6ddb>2010-05-24 16:32:16 +0000
commitc590f0aa7c6225d5c2a85e3b979fb356c5aeb1cd (patch)
treec3583304f5fbfb21481225e794799f691a99aaa4
parent6377e6245845ce07f6c39b0462136f7d7dda6f43 (diff)
downloadntp-c590f0aa7c6225d5c2a85e3b979fb356c5aeb1cd.tar.gz
Also remove obsolete ntpdate config files.
git-svn-id: svn://svn.debian.org/pkg-ntp/ntp/trunk@308 0070b5ef-2f16-0410-befa-9a02bd1d6ddb
-rw-r--r--debian/changelog3
-rw-r--r--debian/ntpdate.postinst11
-rw-r--r--debian/ntpdate.postrm5
-rw-r--r--debian/ntpdate.preinst11
4 files changed, 29 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog
index e460863..4823fa6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -9,7 +9,8 @@ ntp (1:4.2.6.p1+dfsg-1) unstable; urgency=low
a Pre-Depends to work, else it's never going to be removed.
(Closes: #569530)
* Remove the obsolete config file /etc/dhcp3/dhclient-enter-hooks.d/ntp,
- it was replaced by /etc/dhcp3/dhclient-exit-hooks.d/ntp in 1:4.2.4p4+dfsg-3
+ and /etc/dhcp3/dhclient-enter-hooks.d/ntpdate. They were replaced by
+ exit hooks in 1:4.2.4p4+dfsg-3.
* Remove the obsolete config file /etc/network/if-up.d/ntp,
it was removed in 1:4.2.4p0+dfsg-1
diff --git a/debian/ntpdate.postinst b/debian/ntpdate.postinst
new file mode 100644
index 0000000..ca7c985
--- /dev/null
+++ b/debian/ntpdate.postinst
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+set -e
+
+if dpkg-maintscript-helper supports rm_conffile; then
+ dpkg-maintscript-helper rm_conffile \
+ /etc/dhcp3/dhclient-enter-hooks.d/ntpdate 1:4.2.6+dfsg-1 -- "$@"
+fi
+
+#DEBHELPER#
+
diff --git a/debian/ntpdate.postrm b/debian/ntpdate.postrm
index 2670320..025fd6e 100644
--- a/debian/ntpdate.postrm
+++ b/debian/ntpdate.postrm
@@ -2,6 +2,11 @@
set -e
+if dpkg-maintscript-helper supports rm_conffile; then
+ dpkg-maintscript-helper rm_conffile \
+ /etc/dhcp3/dhclient-enter-hooks.d/ntpdate 1:4.2.6+dfsg-1 -- "$@"
+fi
+
#DEBHELPER#
if [ "$1" = "purge" ]; then
diff --git a/debian/ntpdate.preinst b/debian/ntpdate.preinst
new file mode 100644
index 0000000..ca7c985
--- /dev/null
+++ b/debian/ntpdate.preinst
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+set -e
+
+if dpkg-maintscript-helper supports rm_conffile; then
+ dpkg-maintscript-helper rm_conffile \
+ /etc/dhcp3/dhclient-enter-hooks.d/ntpdate 1:4.2.6+dfsg-1 -- "$@"
+fi
+
+#DEBHELPER#
+