void-packages/srcpkgs/ntp/template

53 lines
1.5 KiB
Text
Raw Normal View History

# Template file for 'ntp'
pkgname=ntp
2014-11-24 10:03:41 +00:00
version=4.2.7p481
revision=1
wrksrc="ntp-dev-${version}"
build_style=gnu-configure
configure_args="--with-crypto --enable-linuxcap --enable-ipv6 --enable-ntp-signd
ol_cv_pthread_select_yields=yes"
hostmakedepends="pkg-config bison"
makedepends="libedit-devel libressl-devel libcap-devel libevent-devel"
short_desc="The Network Time Protocol daemon and utilities"
license="BSD"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.ntp.org/"
2014-11-03 13:04:52 +00:00
update_pkgname=ntp-dev
distfiles="http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-dev/ntp-dev-${version}.tar.gz"
2014-11-24 10:03:41 +00:00
checksum=a7859375aa33bce21910d8700b4c45983196d9c277f94b9533c394670650ee9c
make_dirs="/var/db/ntpd 0755 ntpd ntpd"
conf_files="/etc/ntp.conf"
system_accounts="ntpd"
2014-10-10 05:24:11 +00:00
ntpd_homedir="/var/db/ntpd"
provides="ntp-daemon-0_1"
2014-11-18 12:34:50 +00:00
replaces="ntp-daemon>=0"
build_options="systemd"
2012-07-09 21:26:16 +00:00
post_install() {
if [ "$build_option_systemd" ]; then
# ntpd service
vinstall ${FILESDIR}/ntpd.tmpfiles 644 usr/lib/tmpfiles.d ntpd.conf
vinstall ${FILESDIR}/ntpd.service 644 usr/lib/systemd/system
# ntpdate service
vinstall ${FILESDIR}/ntpdate.service 644 usr/lib/systemd/system
# For systemd-timedated.
vmkdir usr/lib/systemd/ntp-units.d
echo "ntpd.service" > ${DESTDIR}/usr/lib/systemd/ntp-units.d/60-ntp.list
fi
2014-10-10 06:07:20 +00:00
vconf ${FILESDIR}/ntp.conf
2014-10-13 15:25:06 +00:00
vsv ntpd
2014-10-10 06:07:20 +00:00
rm -r ${DESTDIR}/usr/share/doc
}
ntp-perl_package() {
2014-06-27 09:42:18 +00:00
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
}
}