That means that version comparators are not supported anymore in hostmakedepends and makedepends. This will ensure that a pkg is always built with the same build dependencies everywhere, if the srcpkgs tree is uptodate.
51 lines
1.5 KiB
Bash
51 lines
1.5 KiB
Bash
# Template file for 'ntp'
|
|
pkgname=ntp
|
|
version=4.2.8p1
|
|
revision=3
|
|
build_pie=yes
|
|
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/"
|
|
distfiles="http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-${version}.tar.gz"
|
|
checksum=948274b88f1ed002d867ced6aaefdfd0999668b11285ac2b3a67ff2629d59d88
|
|
|
|
make_dirs="/var/db/ntpd 0755 ntpd ntpd"
|
|
conf_files="/etc/ntp.conf"
|
|
system_accounts="ntpd"
|
|
ntpd_homedir="/var/db/ntpd"
|
|
provides="ntp-daemon-0_1"
|
|
replaces="ntp-daemon>=0"
|
|
build_options="systemd"
|
|
|
|
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
|
|
vconf ${FILESDIR}/ntp.conf
|
|
vsv ntpd
|
|
rm -r ${DESTDIR}/usr/share/doc
|
|
}
|
|
|
|
ntp-perl_package() {
|
|
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
|
|
}
|
|
}
|