vp-build/srcpkgs/ntp/template
Juan RP ba07bfe64b avahi, hal, ntp: bumprev after new shadow rundep.
--HG--
extra : convert_revision : 35675675f74544e8c7d97c375781defca026d690
2009-12-19 05:03:18 +01:00

47 lines
1.7 KiB
Plaintext

# Template file for 'ntp'
pkgname=ntp
version=4.2.6
revision=1
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
--enable-accurate-adjtime --without-rpath --enable-ipv6"
short_desc="The Network Time Protocol"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=0b0d4c62ae0138e7fa0e318dc5cb5577a7618de895c20834339a138068a98a11
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="$pkgname-perl"
conf_files="/etc/ntp.conf"
openrc_services="ntpd default"
system_accounts="ntpd"
ntpd_homedir="/var/chroot/ntpd"
Add_dependency run glibc
Add_dependency run readline
Add_dependency run openssl
Add_dependency run libcap
Add_dependency build readline-devel
Add_dependency build openssl-devel
Add_dependency build libcap-devel
post_install()
{
install -d ${DESTDIR}/var/chroot/ntpd
install -d ${DESTDIR}/etc/init.d ${DESTDIR}/etc/conf.d
install -d ${DESTDIR}/usr/share/ntp ${DESTDIR}/etc/cron.hourly
install -d ${DESTDIR}/usr/share/doc/ntp
install -m 644 ${FILESDIR}/ntpd.confd ${DESTDIR}/etc/conf.d/ntpd
install -m 755 ${FILESDIR}/ntpd.rc ${DESTDIR}/etc/init.d/ntpd
install -m 644 ${FILESDIR}/ntp.conf ${DESTDIR}/etc/ntp.conf
install -m 744 ${FILESDIR}/ntpd.cron-hourly \
${DESTDIR}/etc/cron.hourly/ntpd_recheck
cp -a ${wrksrc}/html ${DESTDIR}/usr/share/doc/ntp
cp -a ${wrksrc}/conf ${DESTDIR}/usr/share/ntp
}