diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/openntpd/PKGBUILD |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/openntpd/PKGBUILD')
-rw-r--r-- | community/openntpd/PKGBUILD | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/community/openntpd/PKGBUILD b/community/openntpd/PKGBUILD new file mode 100644 index 000000000..3d9ba5ab7 --- /dev/null +++ b/community/openntpd/PKGBUILD @@ -0,0 +1,53 @@ +# $Id: PKGBUILD 31923 2010-11-07 21:40:10Z lcarlier $ +# Maintainer: Vesa Kaihlavirta <vegai@iki.fi> +# Contributor: Mark Rosenstand <mark@borkware.net> +# Contributor: Giorgio Lando <patroclo7@gmail.com> (adjtimex patch) + +pkgname=openntpd +pkgver=3.9p1 +pkgrel=13 +pkgdesc="Free, easy to use implementation of the Network Time Protocol." +url="http://www.openntpd.org/" +arch=('i686' 'x86_64') +license=('BSD') +depends=('openssl') +backup=('etc/ntpd.conf' 'etc/conf.d/openntpd') +install=openntpd.install +source=(ftp://ftp.openbsd.org/pub/OpenBSD/OpenNTPD/$pkgname-$pkgver.tar.gz + 'openntpd' 'openntpd.conf' 'linux-adjtimex.patch') +md5sums=('afc34175f38d08867c1403d9008600b3' + '2422b40f16acf8c92e9051e3e07fc96a' + 'ab38a035cbebe7a52888db6c573944a5' + '6e04eecf89ee794d6f1ae79f03742cf9') + +build() { + 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 + + 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 + sed -i 's/\*/0.0.0.0/' $pkgdir/etc/ntpd.conf +} |