2011-11-23 21:06:26 +09:00
|
|
|
# Description: Portable version of OpenBSD's NTP implementation
|
|
|
|
# URL: http://www.openntpd.org/
|
|
|
|
# Maintainer: Alan Mizrahi, alan at mizrahi dot com dot ve
|
|
|
|
# Packager: Matt Housh, jaeger at morpheus dot net
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
name=openntpd
|
2016-01-02 19:40:44 +09:00
|
|
|
version=5.7p4
|
2014-11-19 11:14:36 +09:00
|
|
|
release=4
|
2016-01-02 19:40:44 +09:00
|
|
|
source=(
|
|
|
|
ftp://ftp.openbsd.org/pub/OpenBSD/OpenNTPD/$name-$version.tar.gz
|
|
|
|
ntpd
|
|
|
|
openntpd-paths.patch
|
|
|
|
)
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
build() {
|
2011-11-23 21:06:26 +09:00
|
|
|
cd $name-$version
|
2016-01-02 19:40:44 +09:00
|
|
|
|
|
|
|
# change drift file and control socket locations
|
|
|
|
patch -p1 -i $SRC/openntpd-paths.patch
|
2008-06-18 02:27:51 +02:00
|
|
|
|
2011-11-23 21:06:26 +09:00
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
2016-01-02 19:40:44 +09:00
|
|
|
--localstatedir=/var \
|
2011-11-23 21:06:26 +09:00
|
|
|
--with-privsep-user=ntp \
|
2016-01-02 19:40:44 +09:00
|
|
|
--with-cacert=/etc/ssl/cert.pem
|
2011-11-23 21:06:26 +09:00
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
2008-06-18 02:27:51 +02:00
|
|
|
|
2016-01-02 19:40:44 +09:00
|
|
|
rmdir $PKG/var/db $PKG/var/run
|
2011-11-23 21:06:26 +09:00
|
|
|
install -D -m 0755 $SRC/ntpd $PKG/etc/rc.d/ntpd
|
2016-01-02 19:40:44 +09:00
|
|
|
|
|
|
|
# drift file will be created here
|
|
|
|
mkdir -p $PKG/var/lib/ntp
|
2006-02-23 15:26:10 +00:00
|
|
|
}
|