vp-build/srcpkgs/ntp/template
Juan RP 5c88c0ca73 ntp: remove name assignment from rc script, bumprev.
--HG--
extra : convert_revision : 2a4d453f68158243b686fcb537cd4efec39126c3
2009-11-30 21:07:19 +01:00

42 lines
1.5 KiB
Plaintext

# Template file for 'ntp'
pkgname=ntp
version=4.2.4p7
revision=2
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=5681883ce5cd0666d73c1b907e284653964a25ad4c02a308ab11b54aca8f01c3
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"
Add_dependency full glibc
Add_dependency full readline
Add_dependency full openssl
Add_dependency full libcap
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
}