2009-03-10 08:37:29 +00:00
|
|
|
# Template file for 'ntp'
|
|
|
|
pkgname=ntp
|
2009-05-19 09:19:44 +00:00
|
|
|
version=4.2.4p7
|
2009-10-04 13:03:32 +00:00
|
|
|
revision=1
|
2009-03-10 08:37:29 +00:00
|
|
|
distfiles="http://archive.ntp.org/ntp4/$pkgname-$version.tar.gz"
|
|
|
|
build_style=gnu_configure
|
|
|
|
configure_args="--enable-linuxcaps --enable-getifaddrs=glibc
|
|
|
|
--enable-all-clocks --enable-parse-clocks --with-crypto=openssl
|
2009-03-13 22:55:25 +00:00
|
|
|
--enable-accurate-adjtime --without-rpath --enable-ipv6"
|
2009-03-10 08:37:29 +00:00
|
|
|
short_desc="The Network Time Protocol"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2009-05-19 09:19:44 +00:00
|
|
|
checksum=5681883ce5cd0666d73c1b907e284653964a25ad4c02a308ab11b54aca8f01c3
|
2009-03-10 08:37:29 +00:00
|
|
|
long_desc="
|
|
|
|
The Network Time Protocol (NTP) is used to synchronize a computer's
|
|
|
|
time with another reference time source. This package includes ntpd
|
|
|
|
(a daemon which continuously adjusts system time) and utilities used
|
|
|
|
to query and configure the ntpd daemon."
|
|
|
|
|
|
|
|
subpackages="perl"
|
2009-03-29 14:47:54 +00:00
|
|
|
conf_files="/etc/ntp.conf"
|
2009-05-10 15:52:04 +00:00
|
|
|
openrc_services="ntpd default"
|
2009-03-10 08:37:29 +00:00
|
|
|
|
|
|
|
Add_dependency full glibc
|
2009-10-04 13:03:32 +00:00
|
|
|
Add_dependency full readline
|
2009-03-10 08:37:29 +00:00
|
|
|
Add_dependency full openssl
|
2009-05-10 18:28:40 +00:00
|
|
|
Add_dependency full libcap
|
2009-03-10 08:37:29 +00:00
|
|
|
|
|
|
|
post_install()
|
|
|
|
{
|
2009-05-10 15:52:04 +00:00
|
|
|
install -d ${DESTDIR}/var/chroot/ntpd
|
|
|
|
install -d ${DESTDIR}/etc/init.d ${DESTDIR}/etc/conf.d
|
2009-10-04 13:03:32 +00:00
|
|
|
install -d ${DESTDIR}/usr/share/ntp ${DESTDIR}/etc/cron.hourly
|
2009-03-11 05:31:56 +00:00
|
|
|
install -d ${DESTDIR}/usr/share/doc/ntp
|
2009-05-10 15:52:04 +00:00
|
|
|
install -m 644 ${FILESDIR}/ntpd.confd ${DESTDIR}/etc/conf.d/ntpd
|
|
|
|
install -m 755 ${FILESDIR}/ntpd.rc ${DESTDIR}/etc/init.d/ntpd
|
2009-03-11 05:31:56 +00:00
|
|
|
install -m 644 ${FILESDIR}/ntp.conf ${DESTDIR}/etc/ntp.conf
|
2009-10-04 13:03:32 +00:00
|
|
|
install -m 744 ${FILESDIR}/ntpd.cron-hourly \
|
|
|
|
${DESTDIR}/etc/cron.hourly/ntpd_recheck
|
2009-03-11 05:31:56 +00:00
|
|
|
cp -a ${wrksrc}/html ${DESTDIR}/usr/share/doc/ntp
|
|
|
|
cp -a ${wrksrc}/conf ${DESTDIR}/usr/share/ntp
|
2009-03-10 08:37:29 +00:00
|
|
|
}
|