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