ports/net/ntp/Makefile
2014-10-07 08:01:52 +00:00

58 lines
1.6 KiB
Makefile

# Created by: andreas
# $FreeBSD$
PORTNAME= ntp
PORTVERSION?= 4.2.6p5
PORTREVISION= 4
CATEGORIES= net ipv6
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/
DISTNAME= ${PORTNAME}-${PORTVERSION:S/P/p/:S/.r/-RC/}
MAINTAINER= cy@FreeBSD.org
COMMENT= The Network Time Protocol Distribution
USES= libtool shebangfix
SHEBANG_FILES= ${WRKSRC}/scripts/ntptrace.in ${WRKSRC}/scripts/ntp-wait.in
perl_OLD_CMD= @PATH_PERL@
GNU_CONFIGURE= yes
OPTIONS_SUB= yes
.include "Makefile.inc"
NTPSNMPD_PLIST_FILES= bin/ntpsnmpd
NTPSNMPD_BUILD_DEPENDS= ${LOCALBASE}/include/net-snmp/net-snmp-config.h:${PORTSDIR}/net-mgmt/net-snmp
NTPSNMPD_RUN_DEPENDS= ${LOCALBASE}/include/net-snmp/net-snmp-config.h:${PORTSDIR}/net-mgmt/net-snmp
NTPSNMPD_CONFIGURE_OFF= --without-ntpsnmpd
SSL_USE= OPENSSL=yes
SSL_CONFIGURE_OFF= --without-crypto
IPV6_CONFIGURE_ENABLE= ipv6
NTP_SIGND_CONFIGURE_ENABLE= ntp-signd
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MSSL}
CONFIGURE_ARGS+= --with-openssl-incdir=${OPENSSLINC} \
--with-openssl-libdir=${OPENSSLLIB}
.endif
.for D in ${NTP_DRIVERS}
.if ${PORT_OPTIONS:M${D}}
CONFIGURE_ARGS+= --enable-${D}
.endif
.endfor
post-install:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
@${INSTALL_DATA} ${WRKSRC}/conf/* ${STAGEDIR}${EXAMPLESDIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@${FIND} ${WRKSRC}/html -type f | ${XARGS} ${CHMOD} ${SHAREMODE}
@cd ${WRKSRC}/html && ${FIND} . -print | \
${CPIO} -pdu -R ${SHAREOWN}:${SHAREGRP} --quiet ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>