2011-07-11 13:43:14 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.53 2011/07/11 17:43:14 landry Exp $
|
2001-03-16 11:35:19 -05:00
|
|
|
|
2009-01-27 05:21:38 -05:00
|
|
|
COMMENT= Network Time Protocol reference implementation
|
2001-02-07 12:43:21 -05:00
|
|
|
|
2011-07-11 13:43:14 -04:00
|
|
|
# NTP has a 'pN' in its version number, which we don't want
|
2009-01-26 18:26:02 -05:00
|
|
|
# to confuse with the ports system's 'pN' convention, so we
|
|
|
|
# convert it to 'pl' for local use.
|
|
|
|
|
2010-07-10 15:48:32 -04:00
|
|
|
VERSION= 4.2.6p2
|
2009-01-27 05:21:38 -05:00
|
|
|
DISTNAME= ntp-${VERSION}
|
2010-07-02 22:49:43 -04:00
|
|
|
PKGNAME= ntp-${VERSION:S/p/pl/}
|
2011-07-11 13:43:14 -04:00
|
|
|
REVISION= 7
|
2004-06-05 00:54:53 -04:00
|
|
|
CATEGORIES= net
|
2010-07-02 22:49:43 -04:00
|
|
|
MASTER_SITES= http://archive.ntp.org/ntp4/ntp-4.2/
|
2004-06-05 00:54:53 -04:00
|
|
|
|
|
|
|
HOMEPAGE= http://www.ntp.org/
|
|
|
|
|
2010-07-02 22:49:43 -04:00
|
|
|
# modified ISC
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
2004-06-05 00:54:53 -04:00
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
2010-07-02 22:49:43 -04:00
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
2004-06-05 00:54:53 -04:00
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2010-07-02 22:49:43 -04:00
|
|
|
WANTLIB= c crypto edit kvm m termcap
|
|
|
|
|
2010-07-10 15:48:32 -04:00
|
|
|
# enabling SEPARATE_BUILD causes the parser to be rebuilt .y -> .c,
|
|
|
|
# which requires bison
|
2004-06-05 00:54:53 -04:00
|
|
|
|
2009-01-26 18:26:02 -05:00
|
|
|
USE_LIBTOOL= Yes
|
2010-10-18 14:36:45 -04:00
|
|
|
USE_GROFF = Yes
|
2010-07-02 22:49:43 -04:00
|
|
|
CONFIGURE_STYLE=gnu
|
|
|
|
CONFIGURE_ARGS= --enable-parse-clocks \
|
|
|
|
--with-binsubdir=sbin
|
|
|
|
CONFIGURE_ENV= CPPFLAGS='-DCONFIG_FILE="\"${SYSCONFDIR}/ntp.conf\"" \
|
|
|
|
-DKEYFILE="\"${SYSCONFDIR}/ntp.keys\""'
|
|
|
|
|
2004-06-05 00:54:53 -04:00
|
|
|
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
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|