diff options
author | sumikawa <sumikawa@FreeBSD.org> | 2005-07-18 21:05:27 +0800 |
---|---|---|
committer | sumikawa <sumikawa@FreeBSD.org> | 2005-07-18 21:05:27 +0800 |
commit | f1e01f8acfe3f26cb55250d9c5858f3771aff8f5 (patch) | |
tree | 089b542e9145363279bb550e5c40cbd7f782824f /net | |
parent | b589802b82edfdc2472922886dcc4269e3953324 (diff) | |
download | freebsd-ports-gnome-f1e01f8acfe3f26cb55250d9c5858f3771aff8f5.tar.gz freebsd-ports-gnome-f1e01f8acfe3f26cb55250d9c5858f3771aff8f5.tar.zst freebsd-ports-gnome-f1e01f8acfe3f26cb55250d9c5858f3771aff8f5.zip |
OPTIONify.
Requested by: ignacio.arquelatour@gmail.com
Diffstat (limited to 'net')
-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 |