d8e6bb470a
--HG-- extra : convert_revision : c4a40d020f6aa132836167ea175cf2de7a47b0d3
38 lines
1.4 KiB
Text
38 lines
1.4 KiB
Text
# Template file for 'ntp'
|
|
pkgname=ntp
|
|
sourcepkg=ntp
|
|
version=4.2.4p6
|
|
distfiles="http://archive.ntp.org/ntp4/$pkgname-$version.tar.gz"
|
|
build_style=gnu_configure
|
|
configure_args="--enable-linuxcaps --enable-getifaddrs=glibc
|
|
--enable-all-clocks --enable-parse-clocks --with-crypto=openssl
|
|
--enable-accurate-adjtime --without-rpath --mandir=/usr/share/man
|
|
--enable-ipv6"
|
|
make_install_target="DESTDIR=$XBPS_DESTDIR/$pkgname-$version install"
|
|
short_desc="The Network Time Protocol"
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
checksum=647640067c7c6a4c568af54c139ce07bbf9f69b54bf9be2704b4c99c56651067
|
|
long_desc="
|
|
The Network Time Protocol (NTP) is used to synchronize a computer's
|
|
time with another reference time source. This package includes ntpd
|
|
(a daemon which continuously adjusts system time) and utilities used
|
|
to query and configure the ntpd daemon."
|
|
|
|
subpackages="perl"
|
|
|
|
Add_dependency full glibc
|
|
Add_dependency full openssl
|
|
|
|
post_install()
|
|
{
|
|
local destdir=$XBPS_DESTDIR/$pkgname-$version
|
|
|
|
install -d ${destdir}/etc/rc.d
|
|
install -d ${destdir}/usr/share/ntp
|
|
install -d ${destdir}/usr/share/doc/ntp
|
|
install -m 755 ${FILESDIR}/ntpd ${destdir}/etc/rc.d/ntpd
|
|
install -m 755 ${FILESDIR}/ntpdate ${destdir}/etc/rc.d/ntpdate
|
|
install -m 644 ${FILESDIR}/ntp.conf ${destdir}/etc/ntp.conf
|
|
cp -a ${wrksrc}/html ${destdir}/usr/share/doc/ntp
|
|
cp -a ${wrksrc}/conf ${destdir}/usr/share/ntp
|
|
}
|