blob: 3bf33f926cb0261242c2f6ceaccc167df7631307 (
plain)
1 # Description: Portable version of OpenBSD's NTP implementation
2 # URL: http://www.openntpd.org/
3 # Maintainer: Alan Mizrahi, alan at mizrahi dot com dot ve
4 # Packager: Matt Housh, jaeger at morpheus dot net
5
6 name=openntpd
7 version=6.2p3
8 release=1
9 source=(
10 http://ftp.openbsd.org/pub/OpenBSD/OpenNTPD/$name-$version.tar.gz
11 ntpd
12 openntpd-paths.patch
13 )
14
15 build() {
16 cd $name-$version
17
18 # change drift file and control socket locations
19 patch -p1 -i $SRC/openntpd-paths.patch
20
21 ./configure \
22 --prefix=/usr \
23 --sysconfdir=/etc \
24 --localstatedir=/var \
25 --with-privsep-user=ntp \
26 --disable-https-constraint
27 make
28 make DESTDIR=$PKG install
29
30 rmdir $PKG/var/db $PKG/var/run
31 install -D -m 0755 $SRC/ntpd $PKG/etc/rc.d/ntpd
32
33 # drift file will be created here
34 mkdir -p $PKG/var/lib/ntp
35 }
|