mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
58 lines
1.7 KiB
Bash
58 lines
1.7 KiB
Bash
# 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
|
|
_pkgver=4.2.8p10
|
|
pkgver=${_pkgver/p/.p}
|
|
pkgrel=1
|
|
pkgdesc='Network Time Protocol reference implementation'
|
|
url='http://www.ntp.org/'
|
|
license=('custom')
|
|
arch=('i686' 'x86_64')
|
|
depends=('openssl' 'libcap' 'libedit')
|
|
backup=('etc/ntp.conf')
|
|
source=("https://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/${_pkgname}-${_pkgver}.tar.gz"
|
|
'0001-disable-pthread-warmup-on-ARM.patch'
|
|
'ntp.conf'
|
|
'ntpd.service'
|
|
'ntpdate.service')
|
|
sha1sums=('503d68cfd3e6a9354e0e28dd38b39d850b1228b2'
|
|
'ec9bd3894b65edca8efdb34ce12b3eb144336294'
|
|
'ad1d6ee2e9aca64a84a7224c88bf6008ac6c69e1'
|
|
'0cccca872385e0142888ab48d273fec0669b30a8'
|
|
'059b382d1af0c55202e2d17f2ae065a2cbfec9ee')
|
|
|
|
options=('!emptydirs')
|
|
install=ntp.install
|
|
|
|
prepare() {
|
|
cd "${srcdir}/${_pkgname}-${_pkgver}"
|
|
|
|
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
|
|
install -Dm644 COPYRIGHT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
|
|
install -d -o 87 "${pkgdir}"/var/lib/ntp
|
|
echo > "${pkgdir}/var/lib/ntp/.placeholder"
|
|
}
|