33 lines
1 KiB
Text
33 lines
1 KiB
Text
# Template file for 'ntp'
|
|
pkgname=ntp
|
|
version=4.2.6p5
|
|
revision=6
|
|
build_style=gnu-configure
|
|
configure_args="--enable-linuxcap"
|
|
makedepends="readline-devel openssl-devel libcap-devel"
|
|
crossmakedepends="${makedepends}"
|
|
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-$version.tar.gz"
|
|
checksum=d6ab8371f9d31e594eb6922823d5ccd03dcc4e9d84b0e23ea25ac1405432f91c
|
|
|
|
subpackages="$pkgname-perl"
|
|
conf_files="/etc/ntp.conf"
|
|
systemd_services="ntpd.service on"
|
|
|
|
post_install() {
|
|
vinstall ${FILESDIR}/ntpd.service 644 usr/lib/systemd/system
|
|
vinstall ${FILESDIR}/ntp.conf 644 etc
|
|
vinstall ${FILESDIR}/ntpd.logrotate 644 etc/logrotate.d ntpd
|
|
|
|
vmkdir usr/share/ntp
|
|
vmkdir usr/share/doc/ntp
|
|
vcopy html usr/share/doc/ntp
|
|
vcopy conf usr/share/ntp
|
|
|
|
# For systemd-timedated.
|
|
vmkdir usr/lib/systemd/ntp-units.d
|
|
echo "ntpd.service" > ${DESTDIR}/usr/lib/systemd/ntp-units.d/60-ntp.list
|
|
}
|