# New ports collection makefile for: ntp # Date created: Di 5 Mai 1998 21:31:03 CEST # Whom: andreas # # $FreeBSD$ # PORTNAME= ntp PORTVERSION?= 4.2.6p5.r1 PORTREVISION= 2 CATEGORIES= net ipv6 MASTER_SITES= ftp://ftp.udel.edu/pub/ntp/ntp4/ \ http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ \ ftp://ftp.archive.de.uu.net/pub/unix/ntp/ntp4/ntp-4.2/ \ ftp://ftp.netlab.is.tsukuba.ac.jp/pub/network/ntp/ntp4/ntp-4.2/ DISTNAME= ${PORTNAME}-${PORTVERSION:S/P/p/:S/.r/-RC/:S/.b/-beta/} MAINTAINER= cy@FreeBSD.org COMMENT= The Network Time Protocol Distribution LATEST_LINK= ${PORTNAME}-rc GNU_CONFIGURE= yes USE_AUTOTOOLS= automake libtool MAN1= sntp.1 \ ntpd.1 \ ntpdc.1 \ ntpq.1 \ ntpsnmpd.1 \ ntp-keygen.1 \ .include "Makefile.inc" .include .if defined(WITH_NTPSNMPD) 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 .endif .if !defined(WITH_SSL) CONFIGURE_ARGS+= --without-crypto PLIST_SUB+= SSL="@comment " .else USE_OPENSSL= yes CONFIGURE_ARGS+= --with-openssl-incdir=${OPENSSLINC} \ --with-openssl-libdir=${OPENSSLLIB} PLIST_SUB+= SSL="" .endif .if !defined(DISABLE_IPV6) CONFIGURE_ARGS+= --enable-ipv6 .endif .for D in ${NTP_DRIVERS} .if defined(WITH_${D}) CONFIGURE_ARGS+= --enable-${D} .endif .endfor post-install: @${MKDIR} ${EXAMPLESDIR} @${INSTALL_DATA} ${WRKSRC}/conf/* ${EXAMPLESDIR} .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} @${FIND} ${WRKSRC}/html -type f | ${XARGS} ${CHMOD} ${SHAREMODE} @cd ${WRKSRC}/html && ${FIND} . -print | \ ${CPIO} -pdu -R ${SHAREOWN}:${SHAREGRP} --quiet ${DOCSDIR} .endif .include