diff options
author | Munechika SUMIKAWA <sumikawa@FreeBSD.org> | 2005-07-18 13:05:27 +0000 |
---|---|---|
committer | Munechika SUMIKAWA <sumikawa@FreeBSD.org> | 2005-07-18 13:05:27 +0000 |
commit | 9485c42b3c695e77746d5aafeaf9f4e6d43bc19f (patch) | |
tree | 6a9605f4357b27ab429a3c6010cbad7251af3d7c /net/netcat | |
parent | 9d658f56fa7fa8f67c127b0f9fffa5941a44cebc (diff) | |
download | ports-9485c42b3c695e77746d5aafeaf9f4e6d43bc19f.tar.gz ports-9485c42b3c695e77746d5aafeaf9f4e6d43bc19f.zip |
Notes
Diffstat (limited to 'net/netcat')
-rw-r--r-- | net/netcat/Makefile | 22 | ||||
-rw-r--r-- | net/netcat/files/patch-ab | 6 |
2 files changed, 24 insertions, 4 deletions
diff --git a/net/netcat/Makefile b/net/netcat/Makefile index 67acfc0ac24c..cfb868dba32b 100644 --- a/net/netcat/Makefile +++ b/net/netcat/Makefile @@ -26,10 +26,30 @@ COMMENT= Simple utility which reads and writes data across network connections NO_WRKSUBDIR= yes ALL_TARGET= freebsd +OPTIONS= IPV6 "enable IPv6 support" on \ + TELNET "enable TELNET support" on \ + GAPING "enable GAPING_SECURITY_HOLE support" on + PLIST_FILES= bin/nc PORTDOCS= README MAN1= nc.1 +.include <bsd.port.pre.mk> + +.if defined (WITH_IPV6) +XFLAGS+= -DIPV6 +.endif + +.if defined (WITH_TELNET) +XFLAGS+= -DTELNET +.endif + +.if defined (WITH_GAPING) +XFLAGS+= -DGAPING_SECURITY_HOLE +.endif + +MAKE_ENV= XFLAGS="$(XFLAGS)" + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/nc ${PREFIX}/bin ${INSTALL_MAN} ${FILESDIR}/nc.1 ${PREFIX}/man/man1 @@ -38,4 +58,4 @@ do-install: ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} .endif -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/net/netcat/files/patch-ab b/net/netcat/files/patch-ab index da96b424bb32..4ded35297111 100644 --- a/net/netcat/files/patch-ab +++ b/net/netcat/files/patch-ab @@ -1,12 +1,12 @@ --- Makefile.orig Tue Mar 19 19:16:06 1996 +++ Makefile Sat Jul 24 13:30:04 1999 -@@ -9,12 +9,12 @@ +@@ -9,12 +9,11 @@ # pick gcc if you'd rather , and/or do -g instead of -O if debugging # debugging # DFLAGS = -DTEST -DDEBUG -CFLAGS = -O +-XFLAGS = # xtra cflags, set by systype targets +CFLAGS ?= -O - XFLAGS = # xtra cflags, set by systype targets XLIBS = # xtra libs if necessary? # -Bstatic for sunos, -static for gcc, etc. You want this, trust me. STATIC = @@ -29,7 +29,7 @@ # virtually the same as netbsd/bsd44lite/whatever freebsd: - make -e $(ALL) $(MFLAGS) XFLAGS='-DFREEBSD' STATIC=-static -+ make -e $(ALL) $(MFLAGS) XFLAGS='-DFREEBSD -DGAPING_SECURITY_HOLE -DTELNET -DINET6' STATIC=-static ++ make -e $(ALL) $(MFLAGS) XFLAGS='-DFREEBSD $(XFLAGS)' STATIC=-static bsdi: make -e $(ALL) $(MFLAGS) XFLAGS='-DBSDI' STATIC=-Bstatic |