core/ntp/PKGBUILD

50 lines
1.4 KiB
Bash
Raw Normal View History

2010-09-04 05:10:46 +08:00
pkgname=ntp
_pkgname=ntp #-dev
_pkgver=4.2.8p10
pkgver=${_pkgver/p/.p}
2017-05-17 22:15:35 +08:00
pkgrel=2
pkgdesc='Network Time Protocol reference implementation'
2010-09-04 05:10:46 +08:00
url="http://www.ntp.org/"
license=('custom')
arch=('x86_64')
depends=('openssl' 'libcap' 'libedit')
2010-09-04 05:10:46 +08:00
makedepends=('perl-html-parser')
2014-04-07 06:29:53 +08:00
backup=('etc/ntp.conf')
2017-05-17 22:15:35 +08:00
options=('!emptydirs')
source=("https://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/${_pkgname}-4.2/${_pkgname}-${_pkgver}.tar.gz"
'ntp.conf'
'ntpd.service'
'ntpdate.service')
sha1sums=('503d68cfd3e6a9354e0e28dd38b39d850b1228b2'
'76045019df8182c8b759828549dbd957e26c4d6e'
'0cccca872385e0142888ab48d273fec0669b30a8'
'059b382d1af0c55202e2d17f2ae065a2cbfec9ee')
install=install
2010-09-04 05:10:46 +08:00
build() {
cd "${srcdir}/${pkgname}-${_pkgver}"
2011-10-06 23:01:44 +08:00
./configure --prefix=/usr \
2015-02-02 20:58:07 +08:00
--libexecdir=/usr/lib \
--mandir=/usr/share/man \
2014-04-07 06:29:53 +08:00
--enable-linuxcaps \
--enable-ntp-signd
make
}
package() {
cd "${srcdir}/${pkgname}-${_pkgver}"
2012-06-20 04:30:36 +08:00
make DESTDIR="${pkgdir}" install
install -d -o 87 "${pkgdir}/var/lib/ntp"
2012-06-20 04:30:36 +08:00
install -Dm644 ../ntp.conf "${pkgdir}"/etc/ntp.conf
install -Dm644 ../ntpd.service "${pkgdir}"/usr/lib/systemd/system/ntpd.service
2014-04-07 06:29:53 +08:00
install -Dm644 ../ntpdate.service "${pkgdir}"/usr/lib/systemd/system/ntpdate.service
install -Dm644 COPYRIGHT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
2017-05-17 22:15:35 +08:00
install -d -o 87 "${pkgdir}"/var/lib/ntp
echo > "${pkgdir}/var/lib/ntp/.placeholder"
}