summaryrefslogtreecommitdiff
path: root/extra/ntp/PKGBUILD
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-05-09 03:36:00 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-05-09 03:36:00 +0000
commit66018e3cb2f893ec3add478fcd86ed3334e46fa9 (patch)
tree3336c03eb23042b17727e6ab856ce359443b2d48 /extra/ntp/PKGBUILD
parent740a52614d0b18baf8d2177a89036a29c8cd3bd8 (diff)
Fri May 9 03:32:12 UTC 2014
Diffstat (limited to 'extra/ntp/PKGBUILD')
-rw-r--r--extra/ntp/PKGBUILD34
1 files changed, 15 insertions, 19 deletions
diff --git a/extra/ntp/PKGBUILD b/extra/ntp/PKGBUILD
index a599fb9c8..0d2396f64 100644
--- a/extra/ntp/PKGBUILD
+++ b/extra/ntp/PKGBUILD
@@ -1,11 +1,12 @@
-# $Id: PKGBUILD 207491 2014-03-11 04:40:40Z bisson $
+# $Id: PKGBUILD 212134 2014-05-08 17:10:10Z bisson $
# Maintainer: Gaetan Bisson <bisson@archlinux.org>
# Contributor: kevin <kevin@archlinux.org>
pkgname=ntp
-pkgver=4.2.6.p5
-_realver=4.2.6p5
-pkgrel=19
+_pkgname=ntp-dev
+_pkgver=4.2.7p441
+pkgver=${_pkgver/p/.p}
+pkgrel=1
pkgdesc='Network Time Protocol reference implementation'
url='http://www.ntp.org/'
license=('custom')
@@ -13,24 +14,24 @@ arch=('i686' 'x86_64')
makedepends=('perl-html-parser')
depends=('openssl' 'libcap' 'libedit')
backup=('etc/ntp.conf')
-source=("http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-${_realver}.tar.gz"
+source=("http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/${_pkgname}/${_pkgname}-${_pkgver}.tar.gz"
'ntp.conf'
'ntpd.service'
'ntpdate.service')
-sha1sums=('4a5353a4791b6f4315a66c28d504ec6c7926b192'
+sha1sums=('81444413350982f92f99885f201b50df24a14201'
'd3496dbeb7d531dd6ab071dbce3262c3c9618d8b'
'dd24216e8333e12d5080965696602591c72537b1'
- '059b382d1af0c55202e2d17f2ae065a2cbfec9ee'
-)
+ '059b382d1af0c55202e2d17f2ae065a2cbfec9ee')
+options=('!emptydirs')
install=install
build() {
- cd "${srcdir}/${pkgname}-${_realver}"
+ cd "${srcdir}/${_pkgname}-${_pkgver}"
./configure \
--prefix=/usr \
- --mandir=/usr/share/man \
+ --libexecdir=/usr/lib \
--enable-linuxcaps \
--enable-ntp-signd \
@@ -38,22 +39,17 @@ build() {
}
package() {
- cd "${srcdir}/${pkgname}-${_realver}"
+ cd "${srcdir}/${_pkgname}-${_pkgver}"
make DESTDIR="${pkgdir}" install
- rmdir "${pkgdir}"/usr/{lib,sbin}
- install -d -o 87 "${pkgdir}"/var/lib/ntp
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"
-
- cd html
- ../scripts/html2man
- install -d "${pkgdir}"/usr/share/man
- mv man/man* "${pkgdir}"/usr/share/man
- mv "${pkgdir}/usr/share/man/man8/ntpd.8" "${pkgdir}/usr/share/man/man8/ntp-ntpd.8" # we should ditch openntpd
+
+ install -d -o 87 "${pkgdir}"/var/lib/ntp
+ echo > "${pkgdir}/var/lib/ntp/.placeholder"
install -dm755 "${pkgdir}/usr/lib/systemd/ntp-units.d"
echo 'ntpd.service' > "${pkgdir}/usr/lib/systemd/ntp-units.d/${pkgname}.list"