vp-build/templates/ntp/template
Juan RP 9a3f2e7c3d Handle openrc_services more gracefully.
1) There's no need to specify the trigger anymore.
2) There's no need to add the OpenRC run dependency anymore.

Just specifying $openrc_services is enough.

--HG--
extra : convert_revision : 34e4d6d37a07a18837ef2216474ee0ca6fd55124
2009-05-14 21:26:44 +02:00

41 lines
1.4 KiB
Plaintext

# Template file for 'ntp'
pkgname=ntp
sourcepkg=$pkgname
version=4.2.4p6
revision=3
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=647640067c7c6a4c568af54c139ce07bbf9f69b54bf9be2704b4c99c56651067
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"
conf_files="/etc/ntp.conf"
openrc_services="ntpd default"
Add_dependency full glibc
Add_dependency full openssl
Add_dependency full libcap
Add_dependency run ncurses-libs
post_install()
{
install -d ${DESTDIR}/var/chroot/ntpd
install -d ${DESTDIR}/etc/init.d ${DESTDIR}/etc/conf.d
install -d ${DESTDIR}/usr/share/ntp
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
cp -a ${wrksrc}/html ${DESTDIR}/usr/share/doc/ntp
cp -a ${wrksrc}/conf ${DESTDIR}/usr/share/ntp
}