2009-03-10 09:37:29 +01:00
|
|
|
# Template file for 'ntp'
|
|
|
|
pkgname=ntp
|
2014-12-20 00:25:23 +01:00
|
|
|
version=4.2.8
|
2014-12-31 10:49:15 +01:00
|
|
|
revision=5
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2014-11-23 09:03:07 +01:00
|
|
|
configure_args="--with-crypto --enable-linuxcap --enable-ipv6 --enable-ntp-signd
|
|
|
|
ol_cv_pthread_select_yields=yes"
|
2014-02-12 09:11:10 +01:00
|
|
|
hostmakedepends="pkg-config bison"
|
2014-11-23 09:03:07 +01:00
|
|
|
makedepends="libedit-devel libressl-devel libcap-devel libevent-devel"
|
2014-02-12 09:11:10 +01:00
|
|
|
short_desc="The Network Time Protocol daemon and utilities"
|
|
|
|
license="BSD"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
homepage="http://www.ntp.org/"
|
2014-12-20 00:25:23 +01:00
|
|
|
distfiles="http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-${version}.tar.gz"
|
|
|
|
checksum=2e920df8b6a5a410567a73767fa458c00c7f0acec3213e69ed0134414a50d8ee
|
2014-02-12 09:11:10 +01:00
|
|
|
|
2014-08-20 11:36:51 +02:00
|
|
|
make_dirs="/var/db/ntpd 0755 ntpd ntpd"
|
2014-01-01 16:10:11 +01:00
|
|
|
conf_files="/etc/ntp.conf"
|
|
|
|
system_accounts="ntpd"
|
2014-10-10 07:24:11 +02:00
|
|
|
ntpd_homedir="/var/db/ntpd"
|
2014-03-14 08:10:51 +01:00
|
|
|
provides="ntp-daemon-0_1"
|
2014-11-18 13:34:50 +01:00
|
|
|
replaces="ntp-daemon>=0"
|
2014-08-20 11:36:51 +02:00
|
|
|
build_options="systemd"
|
|
|
|
|
2012-07-09 23:26:16 +02:00
|
|
|
post_install() {
|
2014-08-20 11:36:51 +02:00
|
|
|
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 08:07:20 +02:00
|
|
|
vconf ${FILESDIR}/ntp.conf
|
2014-10-13 17:25:06 +02:00
|
|
|
vsv ntpd
|
2014-10-10 08:07:20 +02:00
|
|
|
rm -r ${DESTDIR}/usr/share/doc
|
2009-03-10 09:37:29 +01:00
|
|
|
}
|
2013-04-14 04:36:19 +02:00
|
|
|
|
|
|
|
ntp-perl_package() {
|
2014-06-27 11:42:18 +02:00
|
|
|
depends="ntp>=$version perl"
|
2013-04-14 04:36:19 +02:00
|
|
|
noarch=yes
|
2013-07-19 10:06:43 +02:00
|
|
|
short_desc+=" - perl scripts"
|
2013-04-14 04:36:19 +02:00
|
|
|
pkg_install() {
|
2014-03-14 08:10:51 +01:00
|
|
|
vmove usr/bin/ntp-wait
|
|
|
|
vmove usr/bin/ntptrace
|
2014-02-12 09:11:10 +01:00
|
|
|
vmove usr/share/ntp/lib
|
2013-04-14 04:36:19 +02:00
|
|
|
}
|
|
|
|
}
|