From 99136e3a2e9f6f07a7ff08d5721bce354b853c8b Mon Sep 17 00:00:00 2001 From: root Date: Tue, 20 Mar 2012 00:01:23 +0000 Subject: Tue Mar 20 00:01:23 UTC 2012 --- community/openntpd/PKGBUILD | 40 ++++++++++++++++++---------------------- 1 file changed, 18 insertions(+), 22 deletions(-) (limited to 'community/openntpd/PKGBUILD') diff --git a/community/openntpd/PKGBUILD b/community/openntpd/PKGBUILD index 3d9ba5ab7..3d82658ca 100644 --- a/community/openntpd/PKGBUILD +++ b/community/openntpd/PKGBUILD @@ -1,53 +1,49 @@ -# $Id: PKGBUILD 31923 2010-11-07 21:40:10Z lcarlier $ +# $Id: PKGBUILD 68196 2012-03-18 22:40:01Z arodseth $ # Maintainer: Vesa Kaihlavirta # Contributor: Mark Rosenstand # Contributor: Giorgio Lando (adjtimex patch) +# Contributor: Alexander Rødseth pkgname=openntpd pkgver=3.9p1 -pkgrel=13 +pkgrel=14 pkgdesc="Free, easy to use implementation of the Network Time Protocol." url="http://www.openntpd.org/" -arch=('i686' 'x86_64') +arch=('x86_64' 'i686') license=('BSD') depends=('openssl') backup=('etc/ntpd.conf' 'etc/conf.d/openntpd') -install=openntpd.install +install=$pkgname.install source=(ftp://ftp.openbsd.org/pub/OpenBSD/OpenNTPD/$pkgname-$pkgver.tar.gz 'openntpd' 'openntpd.conf' 'linux-adjtimex.patch') -md5sums=('afc34175f38d08867c1403d9008600b3' - '2422b40f16acf8c92e9051e3e07fc96a' - 'ab38a035cbebe7a52888db6c573944a5' - '6e04eecf89ee794d6f1ae79f03742cf9') +sha256sums=('83dd7c1e8ec8b4567afe49af539271b5a73562fb7a3ca51df73eccba89ec8c49' + '14b08ad387b4e16293c43386f25758699461b8b57afe41a49cc795a5e517f71e' + '77a0d1f3439d779c2ce259becf3fa583c21a16682a4f5327094da2e9837f6f96' + '3abcec94c072b5913ef7156a22049d796ff04e19105befe1ea81a66522928fd2') build() { - cd $srcdir/$pkgname-$pkgver + cd "$srcdir/$pkgname-$pkgver" patch -Np1 -i ../linux-adjtimex.patch - - # fixes FS#19509 - [openntpd] builds without linux-adjtimex.patch autoreconf -fi - #autoconf - ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --with-privsep-user=ntp \ --with-privsep-path=/var/run/openntpd/ \ --with-adjtimex - make } package() { - cd $srcdir/$pkgname-$pkgver - - make DESTDIR=$pkgdir install + cd "$srcdir/$pkgname-$pkgver" - install -D -m755 $srcdir/openntpd $pkgdir/etc/rc.d/openntpd - install -D -m644 $srcdir/openntpd.conf $pkgdir/etc/conf.d/openntpd - install -D -m644 $srcdir/$pkgname-$pkgver/LICENCE $pkgdir/usr/share/licenses/$pkgname/LICENCE - - # FS#16893 + make DESTDIR="$pkgdir" install + install -Dm755 "$srcdir/$pkgname" "$pkgdir/etc/rc.d/$pkgname" + install -Dm644 "$srcdir/$pkgname.conf" "$pkgdir/etc/conf.d/$pkgname" + install -Dm644 "$srcdir/$pkgname-$pkgver/LICENCE" \ + "$pkgdir/usr/share/licenses/$pkgname/LICENCE" sed -i 's/\*/0.0.0.0/' $pkgdir/etc/ntpd.conf } + +# vim:set ts=2 sw=2 et: -- cgit v1.2.3-54-g00ecf