ntp: remove var/chroot/ntpd dir if removing the pkg, bumprev.

This commit is contained in:
Juan RP 2010-11-03 17:49:07 +01:00
parent a45436b0ef
commit 7558413556
3 changed files with 12 additions and 3 deletions

View file

@ -3,8 +3,6 @@
#
case "${ACTION}" in
pre)
;;
post)
# Fix ntpd initialization with -i (chrooted).
if [ ! -d var/chroot/ntpd/var/db ]; then

11
srcpkgs/ntp/REMOVE Normal file
View file

@ -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

View file

@ -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