1 # Template file for 'ntp'
5 build_style=gnu-configure
6 configure_args="--with-crypto --enable-linuxcap --enable-ipv6 --enable-ntp-signd
7 --enable-all-clocks ol_cv_pthread_select_yields=yes"
8 hostmakedepends="pkg-config bison perl"
9 makedepends="libedit-devel libressl-devel libcap-devel libevent-devel pps-tools-devel"
10 short_desc="The Network Time Protocol daemon and utilities"
11 license="2-clause-BSD"
12 maintainer="Juan RP <xtraeme@voidlinux.eu>"
13 homepage="http://www.ntp.org/"
14 distfiles="http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-${version}.tar.gz"
15 checksum=f14a39f753688252d683ff907035ffff106ba8d3db21309b742e09b5c3cd278e
17 make_dirs="/var/db/ntpd 0755 ntpd ntpd"
18 conf_files="/etc/ntp.conf"
19 system_accounts="ntpd"
20 ntpd_homedir="/var/db/ntpd"
21 provides="ntp-daemon-0_1"
23 ntpd:ntpd:/usr/bin/isc-ntpd
24 ntpd:ntpd.8:/usr/share/man/man8/isc-ntpd.8
25 ntpd:ntpd:/etc/sv/isc-ntpd"
28 sed -i 's/linux/GLIBC/g' ntpd/ntpd.c
31 # Rename files for alternatives.
32 vmkdir usr/share/man/man8
33 mv ${DESTDIR}/usr/bin/{ntpd,isc-ntpd}
34 mv ${DESTDIR}/usr/share/man/man1/ntpd.1 \
35 ${DESTDIR}/usr/share/man/man8/isc-ntpd.8
36 vconf ${FILESDIR}/ntp.conf
38 rm -r ${DESTDIR}/usr/share/doc
43 depends="ntp>=$version perl"
45 short_desc+=" - perl scripts"
47 vmove usr/bin/ntp-wait
48 vmove usr/bin/ntptrace
49 vmove usr/share/ntp/lib