2017-01-14 21:15:43 +00:00
|
|
|
# Maintainer: Lukas Fleischer <lfleischer@archlinux.org>
|
|
|
|
# Contributor: Gaetan Bisson <bisson@archlinux.org>
|
|
|
|
# Contributor: kevin <kevin@archlinux.org>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - disable pthread warmup on 32-bit ARM
|
|
|
|
|
|
|
|
pkgname=ntp
|
|
|
|
_pkgname=ntp #-dev
|
2020-07-01 20:26:49 +00:00
|
|
|
_pkgver=4.2.8p15
|
2017-01-14 21:15:43 +00:00
|
|
|
pkgver=${_pkgver/p/.p}
|
2022-11-05 02:30:31 +00:00
|
|
|
pkgrel=2
|
2017-01-14 21:15:43 +00:00
|
|
|
pkgdesc='Network Time Protocol reference implementation'
|
|
|
|
url='http://www.ntp.org/'
|
|
|
|
license=('custom')
|
2018-03-07 19:28:02 +00:00
|
|
|
arch=('x86_64')
|
2020-02-09 12:39:05 +00:00
|
|
|
depends=('openssl' 'perl' 'libcap' 'libedit')
|
2017-01-14 21:15:43 +00:00
|
|
|
backup=('etc/ntp.conf')
|
|
|
|
source=("https://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/${_pkgname}-${_pkgver}.tar.gz"
|
2022-11-05 02:30:31 +00:00
|
|
|
'ntp-4.2.8_p15-glibc-2.34.patch'
|
2017-01-14 21:15:43 +00:00
|
|
|
'0001-disable-pthread-warmup-on-ARM.patch'
|
|
|
|
'ntp.conf'
|
|
|
|
'ntpd.service'
|
2018-05-20 16:05:42 +00:00
|
|
|
'ntpdate.service'
|
|
|
|
'ntp.sysusers')
|
2020-07-01 20:26:49 +00:00
|
|
|
sha1sums=('e34e5b6f48c3ed1bbcfb03080dec1b8f91e19381'
|
2022-11-05 02:30:31 +00:00
|
|
|
'1423b8ef72a3806ed74affc1973f66ed7cfa2afb'
|
2017-01-14 21:15:43 +00:00
|
|
|
'ec9bd3894b65edca8efdb34ce12b3eb144336294'
|
|
|
|
'ad1d6ee2e9aca64a84a7224c88bf6008ac6c69e1'
|
|
|
|
'0cccca872385e0142888ab48d273fec0669b30a8'
|
2018-05-20 16:05:42 +00:00
|
|
|
'059b382d1af0c55202e2d17f2ae065a2cbfec9ee'
|
|
|
|
'e8d1c895eabeb45b1a5f096fa5fc3c088eb3ee71')
|
2017-01-14 21:15:43 +00:00
|
|
|
options=('!emptydirs')
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd "${srcdir}/${_pkgname}-${_pkgver}"
|
|
|
|
|
2022-11-05 02:30:31 +00:00
|
|
|
patch -Np1 -i ../ntp-4.2.8_p15-glibc-2.34.patch
|
2017-01-14 21:15:43 +00:00
|
|
|
patch -p1 -i ../0001-disable-pthread-warmup-on-ARM.patch
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "${srcdir}/${_pkgname}-${_pkgver}"
|
|
|
|
|
|
|
|
./configure --prefix=/usr --libexecdir=/usr/lib --enable-linuxcaps --enable-ntp-signd
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "${srcdir}/${_pkgname}-${_pkgver}"
|
|
|
|
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
|
|
|
|
install -Dm644 ../ntp.conf "${pkgdir}"/etc/ntp.conf
|
|
|
|
install -Dm644 ../ntpd.service "${pkgdir}"/usr/lib/systemd/system/ntpd.service
|
|
|
|
install -Dm644 ../ntpdate.service "${pkgdir}"/usr/lib/systemd/system/ntpdate.service
|
2018-05-20 16:05:42 +00:00
|
|
|
install -Dm644 ../ntp.sysusers "${pkgdir}"/usr/lib/sysusers.d/ntp.conf
|
2017-01-14 21:15:43 +00:00
|
|
|
install -Dm644 COPYRIGHT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
|
|
|
|
|
|
install -d -o 87 "${pkgdir}"/var/lib/ntp
|
|
|
|
echo > "${pkgdir}/var/lib/ntp/.placeholder"
|
|
|
|
}
|