ntp: remove var/chroot/ntpd dir if removing the pkg, bumprev.
This commit is contained in:
parent
a45436b0ef
commit
7558413556
3 changed files with 12 additions and 3 deletions
|
@ -3,8 +3,6 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
case "${ACTION}" in
|
case "${ACTION}" in
|
||||||
pre)
|
|
||||||
;;
|
|
||||||
post)
|
post)
|
||||||
# Fix ntpd initialization with -i (chrooted).
|
# Fix ntpd initialization with -i (chrooted).
|
||||||
if [ ! -d var/chroot/ntpd/var/db ]; then
|
if [ ! -d var/chroot/ntpd/var/db ]; then
|
||||||
|
|
11
srcpkgs/ntp/REMOVE
Normal file
11
srcpkgs/ntp/REMOVE
Normal 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
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'ntp'
|
# Template file for 'ntp'
|
||||||
pkgname=ntp
|
pkgname=ntp
|
||||||
version=4.2.6p2
|
version=4.2.6p2
|
||||||
revision=1
|
revision=2
|
||||||
distfiles="http://archive.ntp.org/ntp4/$pkgname-$version.tar.gz"
|
distfiles="http://archive.ntp.org/ntp4/$pkgname-$version.tar.gz"
|
||||||
build_style=gnu_configure
|
build_style=gnu_configure
|
||||||
configure_args="--enable-linuxcaps --with-crypto=openssl
|
configure_args="--enable-linuxcaps --with-crypto=openssl
|
||||||
|
|
Loading…
Add table
Reference in a new issue