1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00
freebsd-ports/net/ntp-rc/Makefile
Cy Schubert b3eaa12cf6 Forbidden because of CVE-2013-5211 / VU#348126.
Does not configure. Flag as broken.

Security:	CVE-2013-5211 / VU#348126
2014-03-14 19:24:32 +00:00

71 lines
1.8 KiB
Makefile

# Created by: andreas
# $FreeBSD$
PORTNAME= ntp
PORTVERSION?= 4.2.6p5.r1
PORTREVISION= 4
CATEGORIES= net ipv6
PKGNAMESUFFIX= -rc
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
IGNORE= RC branch not currently active
FORBIDDEN= CVE-2013-5211 / VU#348126
BROKEN= Does not configure
GNU_CONFIGURE= yes
USE_AUTOTOOLS= automake libtool
.include "Makefile.inc"
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNTPSNMPD}
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 ${PORT_OPTIONS:MSSL}
USE_OPENSSL= yes
CONFIGURE_ARGS+= --with-openssl-incdir=${OPENSSLINC} \
--with-openssl-libdir=${OPENSSLLIB}
PLIST_SUB+= SSL=""
.else
CONFIGURE_ARGS+= --without-crypto
PLIST_SUB+= SSL="@comment "
.endif
.if ${PORT_OPTIONS:MIPV6}
CONFIGURE_ARGS+= --enable-ipv6
.endif
.if ${PORT_OPTIONS:MNTP_SIGND}
CONFIGURE_ARGS+= --enable-ntp-signd
.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}
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@${FIND} ${WRKSRC}/html -type f | ${XARGS} ${CHMOD} ${SHAREMODE}
@cd ${WRKSRC}/html && ${FIND} . -print | \
${CPIO} -pdu -R ${SHAREOWN}:${SHAREGRP} --quiet ${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.mk>