48 lines
1.3 KiB
Makefile
48 lines
1.3 KiB
Makefile
# $OpenBSD: Makefile,v 1.45 2010/10/18 18:36:50 espie Exp $
|
|
|
|
COMMENT= Network Time Protocol reference implementation
|
|
|
|
# ISC's 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.6p2
|
|
DISTNAME= ntp-${VERSION}
|
|
PKGNAME= ntp-${VERSION:S/p/pl/}
|
|
CATEGORIES= net
|
|
MASTER_SITES= http://archive.ntp.org/ntp4/ntp-4.2/
|
|
|
|
HOMEPAGE= http://www.ntp.org/
|
|
|
|
# modified ISC
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
WANTLIB= c crypto edit kvm m termcap
|
|
|
|
# enabling SEPARATE_BUILD causes the parser to be rebuilt .y -> .c,
|
|
# which requires bison
|
|
|
|
USE_LIBTOOL= Yes
|
|
USE_GROFF = Yes
|
|
CONFIGURE_STYLE=gnu
|
|
CONFIGURE_ARGS= --enable-parse-clocks \
|
|
--with-binsubdir=sbin
|
|
CONFIGURE_ENV= CPPFLAGS='-DCONFIG_FILE="\"${SYSCONFDIR}/ntp.conf\"" \
|
|
-DKEYFILE="\"${SYSCONFDIR}/ntp.keys\""'
|
|
|
|
post-build:
|
|
@${SUBST_CMD} -c ${FILESDIR}/README.OpenBSD ${WRKBUILD}/README.OpenBSD
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/ntp
|
|
@cd ${WRKSRC}/html && pax -rw * ${PREFIX}/share/doc/ntp
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/ntp
|
|
@cd ${WRKSRC}/conf && pax -rw * ${PREFIX}/share/examples/ntp
|
|
${INSTALL_DATA} ${WRKBUILD}/README.OpenBSD \
|
|
${PREFIX}/share/examples/ntp/
|
|
|
|
.include <bsd.port.mk>
|