openbsd-ports/net/ntp/Makefile
jca 4617bc3b59 A PLIST change got lost in previous borked commit.
Bump REVISION since people might have started builds since.
2014-12-24 16:35:12 +00:00

46 lines
1.2 KiB
Makefile

# $OpenBSD: Makefile,v 1.61 2014/12/24 16:35:12 jca Exp $
COMMENT= Network Time Protocol reference implementation
# NTP has a 'pN' in its version number, which we don't want
# to confuse with the ports system's 'pN' convention, so we
# convert it to 'pl' for local use.
VERSION= 4.2.8
DISTNAME= ntp-${VERSION}
PKGNAME= ntp-${VERSION:S/p/pl/}
REVISION= 0
CATEGORIES= net
MASTER_SITES= http://archive.ntp.org/ntp4/ntp-4.2/
HOMEPAGE= http://www.ntp.org/
# modified ISC
PERMIT_PACKAGE_CDROM= Yes
WANTLIB += c crypto edit event_core event_pthreads
WANTLIB += m pthread ssl termcap
# enabling SEPARATE_BUILD causes the parser to be rebuilt .y -> .c,
# which requires bison
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS= --docdir=${TRUEPREFIX}/share/doc/ntp \
--enable-parse-clocks \
--with-binsubdir=sbin \
--without-ntpsnmpd
CONFIGURE_ENV= CPPFLAGS='-DCONFIG_FILE="\"${SYSCONFDIR}/ntp.conf\"" \
-DKEYFILE="\"${SYSCONFDIR}/ntp.keys\""'
LIB_DEPENDS= devel/libevent2
post-patch:
cp ${WRKSRC}/sntp/loc/freebsd ${WRKSRC}/sntp/loc/openbsd
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/ntp
@cd ${WRKSRC}/conf && pax -rw * ${PREFIX}/share/examples/ntp
.include <bsd.port.mk>