summaryrefslogtreecommitdiffstats
path: root/usr.bin/nc
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2005-02-06 14:44:27 +0000
committerdelphij <delphij@FreeBSD.org>2005-02-06 14:44:27 +0000
commit3302f9bcc3967059e43ceb7fce6b42276339a114 (patch)
tree0205d7f40b32ed67ae0d36b08c13e6888ac4a3a9 /usr.bin/nc
parentde15cfcd1d928d995f6be111d0c21e4e56900cd3 (diff)
downloadFreeBSD-src-3302f9bcc3967059e43ceb7fce6b42276339a114.zip
FreeBSD-src-3302f9bcc3967059e43ceb7fce6b42276339a114.tar.gz
Finish the import of nc(1) from OpenBSD. This includes:
- Bring IPsec support from the ports collection [1]. - Bring -o ("once only") option from the ports collection [2]. - Adopt the Makefile framework into usr.bin/nc/Makefile. - Add a knob to control whether to build nc(1), NO_NETCAT. - Bump __FreeBSD_version so ports collection can detect this change. Original patchset are contributed to the ports collection by: [1] nectar, [2] joerg. Note: WARNS?=6 patchset spined off in this commit, in order not to take too many files off the vendor branch.
Diffstat (limited to 'usr.bin/nc')
-rw-r--r--usr.bin/nc/Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/usr.bin/nc/Makefile b/usr.bin/nc/Makefile
new file mode 100644
index 0000000..6ff368d
--- /dev/null
+++ b/usr.bin/nc/Makefile
@@ -0,0 +1,11 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../contrib/netcat
+
+PROG= nc
+SRCS= netcat.c atomicio.c socks.c
+
+CFLAGS+=-DIPSEC
+LDADD+= -lipsec
+
+.include <bsd.prog.mk>
OpenPOWER on IntegriCloud