From b140433ee2c59974021390ad16cdcc7c258d2620 Mon Sep 17 00:00:00 2001 From: kroeckx Date: Mon, 24 May 2010 16:21:02 +0000 Subject: Change maintainer scripts to remove all obsolete config files. git-svn-id: svn://svn.debian.org/pkg-ntp/ntp/trunk@306 0070b5ef-2f16-0410-befa-9a02bd1d6ddb --- debian/changelog | 4 ++++ debian/ntp.postinst | 4 ++++ debian/ntp.postrm | 4 ++++ debian/ntp.preinst | 4 ++++ 4 files changed, 16 insertions(+) diff --git a/debian/changelog b/debian/changelog index 2904e66..e460863 100644 --- a/debian/changelog +++ b/debian/changelog @@ -8,6 +8,10 @@ ntp (1:4.2.6.p1+dfsg-1) unstable; urgency=low Use dpkg 1.15.7.2's dpkg-maintscript-helper. This needs 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 + * Remove the obsolete config file /etc/network/if-up.d/ntp, + it was removed in 1:4.2.4p0+dfsg-1 -- Kurt Roeckx Mon, 24 May 2010 11:09:51 +0200 diff --git a/debian/ntp.postinst b/debian/ntp.postinst index db69f20..1ea3768 100644 --- a/debian/ntp.postinst +++ b/debian/ntp.postinst @@ -5,6 +5,10 @@ set -e if dpkg-maintscript-helper supports rm_conffile; then dpkg-maintscript-helper rm_conffile \ /etc/logcheck/ignore.d.server/ntp 1:4.2.6+dfsg-1 -- "$@" + dpkg-maintscript-helper rm_conffile \ + /etc/dhcp3/dhclient-enter-hooks.d/ntp 1:4.2.6+dfsg-1 -- "$@" + dpkg-maintscript-helper rm_conffile \ + /etc/network/if-up.d/ntp 1:4.2.6+dfsg-1 -- "$@" fi if [ "$1" = "configure" ]; then diff --git a/debian/ntp.postrm b/debian/ntp.postrm index cdfb039..9e11aff 100644 --- a/debian/ntp.postrm +++ b/debian/ntp.postrm @@ -5,6 +5,10 @@ set -e if dpkg-maintscript-helper supports rm_conffile; then dpkg-maintscript-helper rm_conffile \ /etc/logcheck/ignore.d.server/ntp 1:4.2.6+dfsg-1 -- "$@" + dpkg-maintscript-helper rm_conffile \ + /etc/dhcp3/dhclient-enter-hooks.d/ntp 1:4.2.6+dfsg-1 -- "$@" + dpkg-maintscript-helper rm_conffile \ + /etc/network/if-up.d/ntp 1:4.2.6+dfsg-1 -- "$@" fi installinit_error() { diff --git a/debian/ntp.preinst b/debian/ntp.preinst index dba6a6e..d728216 100644 --- a/debian/ntp.preinst +++ b/debian/ntp.preinst @@ -5,5 +5,9 @@ set -e if dpkg-maintscript-helper supports rm_conffile; then dpkg-maintscript-helper rm_conffile \ /etc/logcheck/ignore.d.server/ntp 1:4.2.6+dfsg-1 -- "$@" + dpkg-maintscript-helper rm_conffile \ + /etc/dhcp3/dhclient-enter-hooks.d/ntp 1:4.2.6+dfsg-1 -- "$@" + dpkg-maintscript-helper rm_conffile \ + /etc/network/if-up.d/ntp 1:4.2.6+dfsg-1 -- "$@" fi -- cgit v1.2.3