mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-18 03:46:03 +00:00
4a4ec28d37
Since FreeBSD 8.4 and FreeBSD 9.1 make(1) do support :tu and :tl as a replacement for :U and :L (which has been marked as deprecated) bmake which is the default on FreeBSD 10+ only support by default :tu/:tl a hack has been added at the time to support :U and :L to ease migration. This hack is now not necessary anymore Note that this makes the ports tree incompatible with make(1) from FreeBSD 8.3 or earlier With hat: portmgr
52 lines
1.4 KiB
Makefile
52 lines
1.4 KiB
Makefile
# Created by: David O'Brien (obrien@cs.ucdavis.edu)
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= netcat
|
|
PORTVERSION= 1.10
|
|
PORTREVISION= 3
|
|
CATEGORIES= net ipv6
|
|
MASTER_SITES= SF/${DISTNAME}/unix%20netcat%20${PORTVERSION}%20by%20_Hobbit_/%5BUnnamed%20release%5D
|
|
DISTNAME= nc${PORTVERSION:S/.//}
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
#PATCH_SITES= ftp://sith.mimuw.edu.pl/pub/users/baggins/IPv6/
|
|
PATCH_SITES= ${MASTER_SITE_GENTOO}
|
|
PATCH_SITE_SUBDIR= distfiles
|
|
PATCHFILES= nc-v6-20000918.patch.gz
|
|
PATCH_DIST_STRIP= -p1
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Simple utility which reads and writes data across network connections
|
|
|
|
OPTIONS_DEFINE= IPV6 TELNET GAPING DOCS
|
|
OPTIONS_DEFAULT=IPV6 TELNET GAPING
|
|
TELNET_DESC= Enable TELNET support
|
|
GAPING_DESC= Enable GAPING_SECURITY_HOLE support
|
|
|
|
NO_WRKSUBDIR= yes
|
|
|
|
CFLAGS+= -D${OPSYS:tu}
|
|
LDFLAGS+= -static
|
|
|
|
PORTDOCS= README
|
|
PLIST_FILES= bin/netcat man/man1/netcat.1.gz
|
|
|
|
IPV6_CFLAGS= -DINET6
|
|
TELNET_CFLAGS= -DTELNET
|
|
GAPING_CFLAGS= -DGAPING_SECURITY_HOLE
|
|
|
|
post-patch:
|
|
@${SED} -e 's|%%DOCSDIR%%|${DOCSDIR}|g' ${FILESDIR}/nc.1 \
|
|
> ${WRKDIR}/${PORTNAME}.1
|
|
|
|
do-build:
|
|
cd ${WRKSRC} && ${CC} ${CFLAGS} ${PORTNAME}.c -o ${PORTNAME} ${LDFLAGS}
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
|
|
${INSTALL_MAN} ${WRKDIR}/${PORTNAME}.1 ${STAGEDIR}${MANPREFIX}/man/man1
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|