python-texttable: update to 1.3.1
[void-packages.git] / srcpkgs / ntp / template
blob1359c8213d06a81ce258ab3b4ff68cc864c7514b
1 # Template file for 'ntp'
2 pkgname=ntp
3 version=4.2.8p11
4 revision=2
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"
22 alternatives="
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"
27 post_extract() {
28         sed -i 's/linux/GLIBC/g' ntpd/ntpd.c
30 post_install() {
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
37         vsv isc-ntpd
38         rm -r ${DESTDIR}/usr/share/doc
39         vlicense COPYRIGHT
42 ntp-perl_package() {
43         depends="ntp>=$version perl"
44         noarch=yes
45         short_desc+=" - perl scripts"
46         pkg_install() {
47                 vmove usr/bin/ntp-wait
48                 vmove usr/bin/ntptrace
49                 vmove usr/share/ntp/lib
50         }