opt/openntpd/Pkgfile

36 lines
793 B
Plaintext
Raw Normal View History

# 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 16:26:10 +01:00
name=openntpd
2016-01-02 11:40:44 +01:00
version=5.7p4
2014-11-19 03:14:36 +01:00
release=4
2016-01-02 11:40:44 +01:00
source=(
ftp://ftp.openbsd.org/pub/OpenBSD/OpenNTPD/$name-$version.tar.gz
ntpd
openntpd-paths.patch
)
2006-02-23 16:26:10 +01:00
build() {
cd $name-$version
2016-01-02 11:40:44 +01:00
# change drift file and control socket locations
patch -p1 -i $SRC/openntpd-paths.patch
./configure \
--prefix=/usr \
--sysconfdir=/etc \
2016-01-02 11:40:44 +01:00
--localstatedir=/var \
--with-privsep-user=ntp \
2016-01-02 11:40:44 +01:00
--with-cacert=/etc/ssl/cert.pem
make
make DESTDIR=$PKG install
2016-01-02 11:40:44 +01:00
rmdir $PKG/var/db $PKG/var/run
install -D -m 0755 $SRC/ntpd $PKG/etc/rc.d/ntpd
2016-01-02 11:40:44 +01:00
# drift file will be created here
mkdir -p $PKG/var/lib/ntp
2006-02-23 16:26:10 +01:00
}