2009-03-10 09:37:29 +01:00
|
|
|
# Template file for 'ntp'
|
|
|
|
pkgname=ntp
|
2011-10-06 09:29:27 +02:00
|
|
|
version=4.2.6p4
|
|
|
|
homepage="http://www.ntp.org/"
|
|
|
|
distfiles="http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-$version.tar.gz"
|
2009-03-10 09:37:29 +01:00
|
|
|
build_style=gnu_configure
|
2011-10-06 09:29:27 +02:00
|
|
|
configure_args="--enable-linuxcap"
|
2009-03-10 09:37:29 +01:00
|
|
|
short_desc="The Network Time Protocol"
|
2011-10-06 09:29:27 +02:00
|
|
|
license="BSD"
|
2009-03-10 09:37:29 +01:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-10-06 09:29:27 +02:00
|
|
|
checksum=dec30ea700d57b2d306ae61a3bcd8bc843443404a819a2f708b23a0ffc8581f3
|
2009-03-10 09:37:29 +01: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."
|
|
|
|
|
2009-11-22 08:31:44 +01:00
|
|
|
subpackages="$pkgname-perl"
|
2009-03-29 16:47:54 +02:00
|
|
|
conf_files="/etc/ntp.conf"
|
2010-04-16 22:09:33 +02:00
|
|
|
openrc_services="ntpd default true"
|
2009-12-11 12:07:29 +01:00
|
|
|
system_accounts="ntpd"
|
|
|
|
ntpd_homedir="/var/chroot/ntpd"
|
2009-03-10 09:37:29 +01:00
|
|
|
|
2009-12-08 23:08:46 +01:00
|
|
|
Add_dependency run glibc
|
|
|
|
Add_dependency run readline
|
2010-11-02 08:31:35 +01:00
|
|
|
Add_dependency run libssl
|
2009-12-08 23:08:46 +01:00
|
|
|
Add_dependency run libcap
|
|
|
|
Add_dependency build readline-devel
|
|
|
|
Add_dependency build openssl-devel
|
|
|
|
Add_dependency build libcap-devel
|
2009-03-10 09:37:29 +01:00
|
|
|
|
|
|
|
post_install()
|
|
|
|
{
|
2009-05-10 17:52:04 +02:00
|
|
|
install -d ${DESTDIR}/var/chroot/ntpd
|
|
|
|
install -d ${DESTDIR}/etc/init.d ${DESTDIR}/etc/conf.d
|
2009-10-04 15:03:32 +02:00
|
|
|
install -d ${DESTDIR}/usr/share/ntp ${DESTDIR}/etc/cron.hourly
|
2009-03-11 06:31:56 +01:00
|
|
|
install -d ${DESTDIR}/usr/share/doc/ntp
|
2009-05-10 17:52:04 +02: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 06:31:56 +01:00
|
|
|
install -m 644 ${FILESDIR}/ntp.conf ${DESTDIR}/etc/ntp.conf
|
2009-10-04 15:03:32 +02:00
|
|
|
install -m 744 ${FILESDIR}/ntpd.cron-hourly \
|
|
|
|
${DESTDIR}/etc/cron.hourly/ntpd_recheck
|
2009-03-11 06:31:56 +01:00
|
|
|
cp -a ${wrksrc}/html ${DESTDIR}/usr/share/doc/ntp
|
|
|
|
cp -a ${wrksrc}/conf ${DESTDIR}/usr/share/ntp
|
2009-03-10 09:37:29 +01:00
|
|
|
}
|