# $Id: PKGBUILD 31923 2010-11-07 21:40:10Z lcarlier $ # Maintainer: Vesa Kaihlavirta # Contributor: Mark Rosenstand # Contributor: Giorgio Lando (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 }