ntp: provide a logrotate file, purge stuff for chroot init.
This commit is contained in:
parent
4a125a4a1f
commit
715b8253a7
|
@ -3,9 +3,8 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
case "${ACTION}" in
|
case "${ACTION}" in
|
||||||
post)
|
purge)
|
||||||
if [ -d var/chroot/ntpd ]; then
|
[ -d var/chroot/ntpd ] && rm -rf var/chroot/ntpd
|
||||||
rm -rf var/chroot/ntpd
|
[ -f var/db/ntpd.drift ] && rm -f var/db/ntpd.drift
|
||||||
fi
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
/var/log/ntpd.log {
|
||||||
|
missingok
|
||||||
|
sharedscripts
|
||||||
|
postrotate
|
||||||
|
/etc/init.d/ntpd reload >/dev/null 2>&1 || true
|
||||||
|
endscript
|
||||||
|
}
|
|
@ -1,6 +1,7 @@
|
||||||
# Template file for 'ntp'
|
# Template file for 'ntp'
|
||||||
pkgname=ntp
|
pkgname=ntp
|
||||||
version=4.2.6p4
|
version=4.2.6p4
|
||||||
|
revision=1
|
||||||
homepage="http://www.ntp.org/"
|
homepage="http://www.ntp.org/"
|
||||||
distfiles="http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-$version.tar.gz"
|
distfiles="http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-$version.tar.gz"
|
||||||
build_style=gnu_configure
|
build_style=gnu_configure
|
||||||
|
@ -31,15 +32,16 @@ Add_dependency build libcap-devel
|
||||||
|
|
||||||
post_install()
|
post_install()
|
||||||
{
|
{
|
||||||
install -d ${DESTDIR}/var/chroot/ntpd
|
vmkdir var/chroot/ntpd
|
||||||
install -d ${DESTDIR}/etc/init.d ${DESTDIR}/etc/conf.d
|
vmkdir usr/share/ntp
|
||||||
install -d ${DESTDIR}/usr/share/ntp ${DESTDIR}/etc/cron.hourly
|
vmkdir usr/share/doc/ntp
|
||||||
install -d ${DESTDIR}/usr/share/doc/ntp
|
|
||||||
install -m 644 ${FILESDIR}/ntpd.confd ${DESTDIR}/etc/conf.d/ntpd
|
vinstall ${FILESDIR}/ntpd.confd 644 etc/conf.d ntpd
|
||||||
install -m 755 ${FILESDIR}/ntpd.rc ${DESTDIR}/etc/init.d/ntpd
|
vinstall ${FILESDIR}/ntpd.rc 755 etc/init.d ntpd
|
||||||
install -m 644 ${FILESDIR}/ntp.conf ${DESTDIR}/etc/ntp.conf
|
vinstall ${FILESDIR}/ntp.conf 644 etc
|
||||||
install -m 744 ${FILESDIR}/ntpd.cron-hourly \
|
vinstall ${FILESDIR}/ntpd.cron-hourly 744 etc/cron.hourly ntpd_recheck
|
||||||
${DESTDIR}/etc/cron.hourly/ntpd_recheck
|
vinstall ${FILESDIR}/ntpd.logrotate 644 etc/logrotate.d ntpd
|
||||||
cp -a ${wrksrc}/html ${DESTDIR}/usr/share/doc/ntp
|
|
||||||
cp -a ${wrksrc}/conf ${DESTDIR}/usr/share/ntp
|
vcopy html usr/share/doc/ntp
|
||||||
|
vcopy conf usr/share/ntp
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue