2007-09-15 18:36:51 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.34 2007/09/15 22:36:56 merdely Exp $
|
2001-03-16 11:35:19 -05:00
|
|
|
|
2007-09-15 18:36:51 -04:00
|
|
|
COMMENT-main= network time protocol implementation
|
|
|
|
COMMENT-doc= network time protocol documentation
|
2001-02-07 12:43:21 -05:00
|
|
|
|
2004-06-05 00:54:53 -04:00
|
|
|
NTP_VERSION= 4.2.0a
|
2005-03-07 23:16:42 -05:00
|
|
|
DISTNAME= ntp-stable-${NTP_VERSION}-20050303
|
2006-11-24 16:23:19 -05:00
|
|
|
PKGNAME-main= ntp-${NTP_VERSION}p3
|
2005-03-07 23:16:42 -05:00
|
|
|
PKGNAME-doc= ntp-doc-${NTP_VERSION}p1
|
2004-06-05 00:54:53 -04:00
|
|
|
CATEGORIES= net
|
2005-03-07 23:16:42 -05:00
|
|
|
MASTER_SITES= http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/snapshots/ntp-stable/2005/03/ \
|
|
|
|
ftp://ftp.udel.edu/pub/ntp/ntp4/snapshots/ntp-stable/2005/03/ \
|
|
|
|
ftp://ftp.cs.umn.edu/ftp00/ftp.udel.edu/pub/ntp/ntp4/snapshots/ntp-stable/2005/03/
|
2004-06-05 00:54:53 -04:00
|
|
|
|
|
|
|
HOMEPAGE= http://www.ntp.org/
|
|
|
|
|
|
|
|
MAINTAINER= Dan Harnett <danh@openbsd.org>
|
|
|
|
|
|
|
|
# modified ISC license. However, some files include different
|
|
|
|
# copyrights.
|
|
|
|
#
|
|
|
|
PERMIT_PACKAGE_CDROM= No
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= No
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2006-11-24 16:23:19 -05:00
|
|
|
MULTI_PACKAGES= -main -doc
|
2004-06-05 00:54:53 -04:00
|
|
|
|
2006-11-24 16:23:19 -05:00
|
|
|
PKG_ARCH-doc= *
|
|
|
|
WANTLIB-main= c crypto curses kvm m readline
|
2004-06-05 00:54:53 -04:00
|
|
|
|
|
|
|
SEPARATE_BUILD= concurrent
|
|
|
|
AUTOCONF_VERSION= 2.58
|
|
|
|
CONFIGURE_STYLE= autoconf
|
|
|
|
CONFIGURE_ENV= CFLAGS="${CFLAGS} -DHAVE_IPV6"
|
|
|
|
CONFIGURE_ARGS+= --bindir='${PREFIX}/sbin' \
|
|
|
|
--enable-accurate-adjtime --disable-IRIG \
|
2004-08-02 12:56:12 -04:00
|
|
|
--enable-parse-clocks \
|
2004-06-05 00:54:53 -04:00
|
|
|
--with-openssl-libdir=/usr/lib \
|
|
|
|
--with-openssl-incdir=/usr/include \
|
|
|
|
--with-crypto=openssl
|
|
|
|
|
|
|
|
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
|
2004-07-27 10:39:31 -04:00
|
|
|
@sed -e s#!!PREFIX!!#${TRUEPREFIX}#g \
|
|
|
|
-e s#!!SYSCONFDIR!!#${SYSCONFDIR}#g \
|
|
|
|
${FILESDIR}/README.OpenBSD > ${WRKBUILD}/README.OpenBSD
|
|
|
|
${INSTALL_DATA} ${WRKBUILD}/README.OpenBSD \
|
|
|
|
${PREFIX}/share/examples/ntp/
|
2004-06-05 00:54:53 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|