2013-04-08 23:26:54 +02:00
|
|
|
# Created by: andreas
|
1999-08-30 16:24:37 +02:00
|
|
|
# $FreeBSD$
|
1998-05-05 22:05:23 +02:00
|
|
|
|
2000-04-09 20:14:07 +02:00
|
|
|
PORTNAME= ntp
|
2012-01-12 19:40:05 +01:00
|
|
|
PORTVERSION?= 4.2.6p5
|
2013-04-08 07:10:58 +02:00
|
|
|
PORTREVISION= 2
|
2004-08-30 16:00:15 +02:00
|
|
|
CATEGORIES= net ipv6
|
2008-01-13 05:17:07 +01:00
|
|
|
MASTER_SITES= ftp://ftp.udel.edu/pub/ntp/ntp4/ \
|
|
|
|
http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ \
|
|
|
|
ftp://ftp.archive.de.uu.net/pub/unix/ntp/ntp4/ \
|
|
|
|
ftp://ftp.netlab.is.tsukuba.ac.jp/pub/network/ntp/ntp4/
|
2009-12-30 20:10:14 +01:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION:S/P/p/:S/.r/-RC/}
|
1998-05-05 22:05:23 +02:00
|
|
|
|
2001-12-30 05:48:07 +01:00
|
|
|
MAINTAINER= cy@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= The Network Time Protocol Distribution
|
1998-05-05 22:05:23 +02:00
|
|
|
|
2004-02-07 05:14:39 +01:00
|
|
|
LATEST_LINK= ${PORTNAME}
|
2004-08-30 16:00:15 +02:00
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
2010-12-04 08:34:27 +01:00
|
|
|
USE_AUTOTOOLS= automake libtool
|
1998-05-05 22:05:23 +02:00
|
|
|
|
2009-12-23 01:40:57 +01:00
|
|
|
MAN1= sntp.1 \
|
|
|
|
ntpd.1 \
|
|
|
|
ntpdc.1 \
|
|
|
|
ntpq.1 \
|
|
|
|
ntpsnmpd.1 \
|
|
|
|
ntp-keygen.1 \
|
|
|
|
|
2013-09-21 00:10:23 +02:00
|
|
|
NO_STAGE= yes
|
2011-11-27 20:43:27 +01:00
|
|
|
.include "Makefile.inc"
|
2009-12-23 01:40:57 +01:00
|
|
|
|
2010-12-02 15:26:21 +01:00
|
|
|
.include <bsd.port.options.mk>
|
2009-12-23 01:40:57 +01:00
|
|
|
|
2013-04-08 23:26:54 +02:00
|
|
|
.if ${PORT_OPTIONS:MNTPSNMPD}
|
2011-11-27 20:43:27 +01:00
|
|
|
PLIST_FILES+= bin/ntpsnmpd
|
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/include/net-snmp/net-snmp-config.h:${PORTSDIR}/net-mgmt/net-snmp
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/include/net-snmp/net-snmp-config.h:${PORTSDIR}/net-mgmt/net-snmp
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-ntpsnmpd
|
2001-12-30 05:48:07 +01:00
|
|
|
.endif
|
|
|
|
|
2013-04-08 23:26:54 +02:00
|
|
|
.if ${PORT_OPTIONS:MSSL}
|
2004-08-30 16:00:15 +02:00
|
|
|
USE_OPENSSL= yes
|
|
|
|
CONFIGURE_ARGS+= --with-openssl-incdir=${OPENSSLINC} \
|
|
|
|
--with-openssl-libdir=${OPENSSLLIB}
|
|
|
|
PLIST_SUB+= SSL=""
|
2013-04-08 23:26:54 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-crypto
|
|
|
|
PLIST_SUB+= SSL="@comment "
|
2004-08-30 16:00:15 +02:00
|
|
|
.endif
|
|
|
|
|
2013-04-08 23:26:54 +02:00
|
|
|
.if ${PORT_OPTIONS:MIPV6}
|
2011-11-27 21:09:48 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-ipv6
|
|
|
|
.endif
|
|
|
|
|
2013-04-08 23:26:54 +02:00
|
|
|
.if ${PORT_OPTIONS:MNTP_SIGND}
|
2013-02-18 22:17:12 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-ntp-signd
|
|
|
|
.endif
|
|
|
|
|
2011-11-27 20:43:27 +01:00
|
|
|
.for D in ${NTP_DRIVERS}
|
2013-04-08 23:26:54 +02:00
|
|
|
.if ${PORT_OPTIONS:M${D}}
|
2011-11-27 20:43:27 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-${D}
|
2009-12-23 01:40:57 +01:00
|
|
|
.endif
|
2011-11-27 20:43:27 +01:00
|
|
|
.endfor
|
2006-10-06 20:30:49 +02:00
|
|
|
|
2012-05-11 22:38:09 +02:00
|
|
|
AUTOTOOLSFILES= aclocal.m4
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|1.11.1|%%AUTOMAKE_APIVER%%|g' \
|
|
|
|
${WRKSRC}/aclocal.m4
|
|
|
|
|
1998-05-05 22:05:23 +02:00
|
|
|
post-install:
|
2004-08-30 16:00:15 +02:00
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/conf/* ${EXAMPLESDIR}
|
2013-04-08 23:26:54 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2004-08-30 16:00:15 +02:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
@${FIND} ${WRKSRC}/html -type f | ${XARGS} ${CHMOD} ${SHAREMODE}
|
|
|
|
@cd ${WRKSRC}/html && ${FIND} . -print | \
|
|
|
|
${CPIO} -pdu -R ${SHAREOWN}:${SHAREGRP} --quiet ${DOCSDIR}
|
2000-04-01 06:28:04 +02:00
|
|
|
.endif
|
1998-05-05 22:05:23 +02:00
|
|
|
|
2010-12-02 15:26:21 +01:00
|
|
|
.include <bsd.port.mk>
|