2009-03-10 08:37:29 +00:00
|
|
|
# Template file for 'ntp'
|
|
|
|
pkgname=ntp
|
2014-02-12 08:11:10 +00:00
|
|
|
version=4.2.7p421
|
2014-02-27 13:54:19 +00:00
|
|
|
revision=2
|
2014-02-12 08:11:10 +00:00
|
|
|
wrksrc="ntp-dev-${version}"
|
2011-10-24 12:14:47 +00:00
|
|
|
build_style=gnu-configure
|
2014-02-12 08:11:10 +00:00
|
|
|
configure_args="--with-crypto --enable-linuxcap --enable-ipv6
|
|
|
|
--with-lineeditlibs=readline ol_cv_pthread_select_yields=yes"
|
|
|
|
hostmakedepends="pkg-config bison"
|
2014-02-27 13:54:19 +00:00
|
|
|
makedepends="readline-devel>=6.3 openssl-devel libcap-devel libevent-devel"
|
2014-02-12 08:11:10 +00:00
|
|
|
short_desc="The Network Time Protocol daemon and utilities"
|
|
|
|
license="BSD"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
homepage="http://www.ntp.org/"
|
|
|
|
distfiles="http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-dev/ntp-dev-${version}.tar.gz"
|
|
|
|
checksum=cc362f1a5bce1658761283bf3dcb14674557de953a0688973bb04c501f8baf10
|
|
|
|
|
2014-01-01 15:10:11 +00:00
|
|
|
depends="shadow"
|
|
|
|
conf_files="/etc/ntp.conf"
|
|
|
|
system_accounts="ntpd"
|
|
|
|
provides="ntp-daemon-0"
|
|
|
|
replaces="ntp-daemon>=0"
|
2009-03-10 08:37:29 +00:00
|
|
|
|
2012-07-09 21:26:16 +00:00
|
|
|
post_install() {
|
2013-03-25 07:16:38 +00:00
|
|
|
# ntpd service
|
2013-12-09 12:23:56 +00:00
|
|
|
vinstall ${FILESDIR}/ntpd.tmpfiles 644 usr/lib/tmpfiles.d ntpd.conf
|
2012-07-09 21:26:16 +00:00
|
|
|
vinstall ${FILESDIR}/ntpd.service 644 usr/lib/systemd/system
|
2011-10-06 08:06:16 +00:00
|
|
|
vinstall ${FILESDIR}/ntp.conf 644 etc
|
2013-03-25 07:16:38 +00:00
|
|
|
# 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
|
2009-03-10 08:37:29 +00:00
|
|
|
}
|
2013-04-14 02:36:19 +00:00
|
|
|
|
|
|
|
ntp-perl_package() {
|
|
|
|
depends="ntp>=$version perl>=0"
|
|
|
|
noarch=yes
|
2013-07-19 08:06:43 +00:00
|
|
|
short_desc+=" - perl scripts"
|
2013-04-14 02:36:19 +00:00
|
|
|
pkg_install() {
|
|
|
|
for f in ntp-wait ntptrace; do
|
|
|
|
vmove usr/bin/${f}
|
|
|
|
done
|
2014-02-12 08:11:10 +00:00
|
|
|
vmove usr/share/ntp/lib
|
2013-04-14 02:36:19 +00:00
|
|
|
}
|
|
|
|
}
|