diff options
author | Michael Hanson <hansonorders@verizon.net> | 2010-11-16 03:36:25 (GMT) |
---|---|---|
committer | Michael Hanson <hansonorders@verizon.net> | 2010-11-16 03:36:25 (GMT) |
commit | 32602a0e190aaa952845b41d03cef45e6f05398f (patch) | |
tree | 7adcdcb3022e69940900492e8dc1ff51d4763266 /abs/core/openntpd/PKGBUILD | |
parent | 98a17f32113b9127244f4e126cfe0defde4ecd66 (diff) | |
download | linhes_pkgbuild-32602a0e190aaa952845b41d03cef45e6f05398f.zip linhes_pkgbuild-32602a0e190aaa952845b41d03cef45e6f05398f.tar.gz linhes_pkgbuild-32602a0e190aaa952845b41d03cef45e6f05398f.tar.bz2 |
openntpd: initial include - replace ntp?
Diffstat (limited to 'abs/core/openntpd/PKGBUILD')
-rw-r--r-- | abs/core/openntpd/PKGBUILD | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/abs/core/openntpd/PKGBUILD b/abs/core/openntpd/PKGBUILD new file mode 100644 index 0000000..bcf4e5d --- /dev/null +++ b/abs/core/openntpd/PKGBUILD @@ -0,0 +1,54 @@ +# $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') +replaces=('ntp') +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 || return 1 +} + +package() { + cd $srcdir/$pkgname-$pkgver + + make DESTDIR=$pkgdir install || return 1 + + 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 +} |