void-packages/srcpkgs/ntp/template
2015-10-22 08:07:23 +02:00

40 lines
1.1 KiB
Bash

# Template file for 'ntp'
pkgname=ntp
version=4.2.8p4
revision=1
build_pie=yes
build_style=gnu-configure
configure_args="--with-crypto --enable-linuxcap --enable-ipv6 --enable-ntp-signd
--enable-all-clocks ol_cv_pthread_select_yields=yes"
hostmakedepends="pkg-config bison perl"
makedepends="libedit-devel libressl-devel libcap-devel libevent-devel pps-tools-devel"
short_desc="The Network Time Protocol daemon and utilities"
license="BSD"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://www.ntp.org/"
distfiles="http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-${version}.tar.gz"
checksum=0d6961572548d2c4af96f58f763e22ac620f5afef717384ddc317a0e365cfdb9
make_dirs="/var/db/ntpd 0755 ntpd ntpd"
conf_files="/etc/ntp.conf"
system_accounts="ntpd"
ntpd_homedir="/var/db/ntpd"
provides="ntp-daemon-0_1"
replaces="ntp-daemon>=0"
post_install() {
vconf ${FILESDIR}/ntp.conf
vsv ntpd
rm -r ${DESTDIR}/usr/share/doc
}
ntp-perl_package() {
depends="ntp>=$version perl"
noarch=yes
short_desc+=" - perl scripts"
pkg_install() {
vmove usr/bin/ntp-wait
vmove usr/bin/ntptrace
vmove usr/share/ntp/lib
}
}