blob: 3d82658ca26057cbbf0b83ec672cac722052da93 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# $Id: PKGBUILD 68196 2012-03-18 22:40:01Z arodseth $
# Maintainer: Vesa Kaihlavirta <vegai@iki.fi>
# Contributor: Mark Rosenstand <mark@borkware.net>
# Contributor: Giorgio Lando <patroclo7@gmail.com> (adjtimex patch)
# Contributor: Alexander Rødseth <rodseth@gmail.com>
pkgname=openntpd
pkgver=3.9p1
pkgrel=14
pkgdesc="Free, easy to use implementation of the Network Time Protocol."
url="http://www.openntpd.org/"
arch=('x86_64' 'i686')
license=('BSD')
depends=('openssl')
backup=('etc/ntpd.conf' 'etc/conf.d/openntpd')
install=$pkgname.install
source=(ftp://ftp.openbsd.org/pub/OpenBSD/OpenNTPD/$pkgname-$pkgver.tar.gz
'openntpd' 'openntpd.conf' 'linux-adjtimex.patch')
sha256sums=('83dd7c1e8ec8b4567afe49af539271b5a73562fb7a3ca51df73eccba89ec8c49'
'14b08ad387b4e16293c43386f25758699461b8b57afe41a49cc795a5e517f71e'
'77a0d1f3439d779c2ce259becf3fa583c21a16682a4f5327094da2e9837f6f96'
'3abcec94c072b5913ef7156a22049d796ff04e19105befe1ea81a66522928fd2')
build() {
cd "$srcdir/$pkgname-$pkgver"
patch -Np1 -i ../linux-adjtimex.patch
autoreconf -fi
./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 -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:
|