diff options
-rw-r--r-- | debian/changelog | 3 | ||||
-rw-r--r-- | debian/ntpdate.postinst | 11 | ||||
-rw-r--r-- | debian/ntpdate.postrm | 5 | ||||
-rw-r--r-- | debian/ntpdate.preinst | 11 |
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# + |