diff --git a/srcpkgs/ntp/INSTALL b/srcpkgs/ntp/INSTALL index ffa5f2280d6..3a63f2764b2 100644 --- a/srcpkgs/ntp/INSTALL +++ b/srcpkgs/ntp/INSTALL @@ -3,8 +3,6 @@ # case "${ACTION}" in -pre) - ;; post) # Fix ntpd initialization with -i (chrooted). if [ ! -d var/chroot/ntpd/var/db ]; then diff --git a/srcpkgs/ntp/REMOVE b/srcpkgs/ntp/REMOVE new file mode 100644 index 00000000000..47292275ece --- /dev/null +++ b/srcpkgs/ntp/REMOVE @@ -0,0 +1,11 @@ +# +# This script removes dirs for chroot initialization. +# + +case "${ACTION}" in +post) + if [ ! -d var/chroot/ntpd ]; then + rm -rf var/chroot/ntpd + fi + ;; +esac diff --git a/srcpkgs/ntp/template b/srcpkgs/ntp/template index ba31535d7f7..c2bfbf9b121 100644 --- a/srcpkgs/ntp/template +++ b/srcpkgs/ntp/template @@ -1,7 +1,7 @@ # Template file for 'ntp' pkgname=ntp version=4.2.6p2 -revision=1 +revision=2 distfiles="http://archive.ntp.org/ntp4/$pkgname-$version.tar.gz" build_style=gnu_configure configure_args="--enable-linuxcaps --with-crypto=openssl