1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/net/ntp-devel/Makefile
2013-02-27 07:13:03 +00:00

97 lines
2.4 KiB
Makefile

# New ports collection makefile for: ntp
# Date created: Di 5 Mai 1998 21:31:03 CEST
# Whom: andreas
#
# $FreeBSD$
#
PORTNAME= ntp
PORTVERSION= 4.2.7p357
CATEGORIES= net ipv6
MASTER_SITES= ftp://ftp.udel.edu/pub/ntp/ntp4/ntp-dev/ \
http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-dev/ \
ftp://ftp.archive.de.uu.net/pub/unix/ntp/ntp4/ntp-dev/ \
ftp://ftp.netlab.is.tsukuba.ac.jp/pub/network/ntp/ntp4/ntp-dev/
DISTNAME= ${PORTNAME}-dev-${PORTVERSION:S/.r/-rc/}
MAINTAINER= cy@FreeBSD.org
COMMENT= The Network Time Protocol Distribution
LATEST_LINK= ${PORTNAME}-dev
GNU_CONFIGURE= yes
USE_AUTOTOOLS= automake libtool
USE_GNOME= gnomehack
MAN5= ntp.conf.5 ntp.keys.5
MAN8= ntp-keygen.8 ntpd.8 ntpdc.8 ntpq.8 sntp.8 ntp-wait.8
.include "Makefile.inc"
.include <bsd.port.options.mk>
.if defined(WITHOUT_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
.if !defined(WITH_NTP_SIGND)
CONFIGURE_ARGS+= --enable-ntp-signd
.endif
.if defined(WITH_NTPSNMPD)
PLIST_FILES+= sbin/ntpsnmpd
MAN8+= ntpsnmpd.8
BUILD_DEPENDS+= ${LOCALBASE}/include/net-snmp/net-snmp-config.h:${PORTSDIR}/net-mgmt/net-snmp
LIB_DEPENDS= netsnmp:${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
.for D in ${NTP_DRIVERS}
.if defined(WITH_${D})
CONFIGURE_ARGS+= --enable-${D}
.endif
.endfor
.if defined(WITH_MX4200)
BROKEN= Fails to compile when MX4200 is enabled.
.endif
.include <bsd.port.pre.mk>
pre-everything::
@${ECHO}
@${ECHO} If you wish to build this port with SNMP support, please make
@${ECHO} sure that the net-mgmt/net-snmp port is installed before
@${ECHO} building and installing this port.
@${ECHO}
AUTOTOOLSFILES= aclocal.m4
post-patch:
@${REINPLACE_CMD} -e 's|1.11.1|%%AUTOMAKE_APIVER%%|g' \
${WRKSRC}/aclocal.m4
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 <bsd.port.post.mk>