void-packages/srcpkgs/ntp/template

54 lines
1.4 KiB
Text
Raw Normal View History

# Template file for 'ntp'
pkgname=ntp
2011-12-28 05:04:35 +00:00
version=4.2.6p5
revision=12
build_style=gnu-configure
2013-03-25 07:24:14 +00:00
configure_args="--with-crypto --enable-linuxcap --enable-ipv6 --with-lineeditlibs=readline"
hostmakedepends="bison perl-HTML-Parser"
makedepends="readline-devel openssl-devel libcap-devel"
short_desc="The Network Time Protocol daemon and utilities"
2011-10-06 07:29:27 +00:00
license="BSD"
maintainer="Juan RP <xtraeme@gmail.com>"
2012-07-09 21:26:16 +00:00
homepage="http://www.ntp.org/"
distfiles="http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-$version.tar.gz"
2011-12-28 05:04:35 +00:00
checksum=d6ab8371f9d31e594eb6922823d5ccd03dcc4e9d84b0e23ea25ac1405432f91c
2012-07-09 21:26:16 +00:00
post_install() {
# ntpd service
2012-07-09 21:26:16 +00:00
vinstall ${FILESDIR}/ntpd.service 644 usr/lib/systemd/system
vinstall ${FILESDIR}/ntp.conf 644 etc
# ntpdate service
vinstall ${FILESDIR}/ntpdate.service 644 usr/lib/systemd/system
2012-08-21 18:15:21 +00:00
# For systemd-timedated.
vmkdir usr/lib/systemd/ntp-units.d
echo "ntpd.service" > ${DESTDIR}/usr/lib/systemd/ntp-units.d/60-ntp.list
# Convert html to manual pages.
cd html
../scripts/html2man
vmkdir usr/share/man
mv man/man* ${DESTDIR}/usr/share/man
}
ntp-perl_package() {
depends="ntp>=$version perl>=0"
noarch=yes
short_desc+=" - perl scripts"
pkg_install() {
for f in ntp-wait ntptrace; do
vmove usr/bin/${f}
done
}
}
ntp_package() {
depends="shadow"
conf_files="/etc/ntp.conf"
systemd_services="ntpdate.service on ntpd.service on"
system_accounts="ntpd"
provides="ntp-daemon-0"
replaces="ntp-daemon>=0"
pkg_install() {
vmove all
}
}