summaryrefslogtreecommitdiff
path: root/net/netcat6
diff options
context:
space:
mode:
authorghen <ghen@pkgsrc.org>2005-12-28 15:49:41 +0000
committerghen <ghen@pkgsrc.org>2005-12-28 15:49:41 +0000
commit5449285f4e2418513f2b51c42365a82526dfa8c5 (patch)
treee2dab152f339e05a7d86ef665f88c0e8b504db20 /net/netcat6
parentf1d88f337fe1a77ac3482e9d2e363f70d48fd643 (diff)
downloadpkgsrc-5449285f4e2418513f2b51c42365a82526dfa8c5.tar.gz
Import netcat6 from pkgsrc-wip.
Netcat6 is a total rewrite of netcat, with several advantages: * It fully supports IPv6. * It is far more efficient, utilizing flexible buffering and minimal (or no) data copying or analysis. * The source is well structured, documented and very easy to follow. One of the main objectives of netcat6 is to produce an excellent example of AF independent networking and efficient data transfer. The code has minimal dependency on the address family or protocol type and can be trivially extended to talk many layer 3 protocols. * Greatly improved configuration and platform independence. * Can support servers or clients that use TCP half-close. Some features of the original netcat are not present in netcat6, either because they haven't yet been implemented or because there exists better tools for the job. See the TODO file included in the netcat6 package for more information.
Diffstat (limited to 'net/netcat6')
-rw-r--r--net/netcat6/DESCR16
-rw-r--r--net/netcat6/Makefile23
-rw-r--r--net/netcat6/PLIST4
-rw-r--r--net/netcat6/distinfo6
-rw-r--r--net/netcat6/options.mk10
-rw-r--r--net/netcat6/patches/patch-aa18
6 files changed, 77 insertions, 0 deletions
diff --git a/net/netcat6/DESCR b/net/netcat6/DESCR
new file mode 100644
index 00000000000..eaebd8ea30b
--- /dev/null
+++ b/net/netcat6/DESCR
@@ -0,0 +1,16 @@
+Netcat6 is a total rewrite of netcat, with several advantages:
+
+ * It fully supports IPv6.
+ * It is far more efficient, utilizing flexible buffering and minimal (or
+ no) data copying or analysis.
+ * The source is well structured, documented and very easy to follow. One of
+ the main objectives of netcat6 is to produce an excellent example of AF
+ independent networking and efficient data transfer. The code has minimal
+ dependency on the address family or protocol type and can be trivially
+ extended to talk many layer 3 protocols.
+ * Greatly improved configuration and platform independence.
+ * Can support servers or clients that use TCP half-close.
+
+Some features of the original netcat are not present in netcat6, either because
+they haven't yet been implemented or because there exists better tools for the
+job. See the TODO file included in the netcat6 package for more information.
diff --git a/net/netcat6/Makefile b/net/netcat6/Makefile
new file mode 100644
index 00000000000..b8b454ad57f
--- /dev/null
+++ b/net/netcat6/Makefile
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1.1.1 2005/12/28 15:49:41 ghen Exp $
+
+DISTNAME= nc6-0.5
+PKGNAME= ${DISTNAME:S/nc/netcat/}
+CATEGORIES= net
+MASTER_SITES= ftp://ftp.deepspace6.net/pub/ds6/sources/nc6/
+MASTER_SITES+= http://ftp.deepspace6.net/pub/ds6/sources/nc6/
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= ghen@NetBSD.org
+COMMENT= Network swiss army knife
+HOMEPAGE= http://www.deepspace6.net/projects/netcat6.html
+
+GNU_CONFIGURE= yes
+
+# don't auto-detect IPv6, use options.mk:
+CONFIGURE_ARGS+= --disable-stack-guess
+
+USE_PKGLOCALEDIR= yes
+
+.include "options.mk"
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/netcat6/PLIST b/net/netcat6/PLIST
new file mode 100644
index 00000000000..fbf99609ca6
--- /dev/null
+++ b/net/netcat6/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2005/12/28 15:49:41 ghen Exp $
+bin/nc6
+man/man1/nc6.1
+${PKGLOCALEDIR}/locale/it/LC_MESSAGES/nc6.mo
diff --git a/net/netcat6/distinfo b/net/netcat6/distinfo
new file mode 100644
index 00000000000..6c5c25d59fe
--- /dev/null
+++ b/net/netcat6/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2005/12/28 15:49:41 ghen Exp $
+
+SHA1 (nc6-0.5.tar.bz2) = e9a7350012ee04dff70d2c6f715d322c790976c5
+RMD160 (nc6-0.5.tar.bz2) = a840829c7bc0d2f9b7cb0d26e5de138207e1c2dd
+Size (nc6-0.5.tar.bz2) = 200077 bytes
+SHA1 (patch-aa) = 003961ddf49cc78e229581c781186514f35146cb
diff --git a/net/netcat6/options.mk b/net/netcat6/options.mk
new file mode 100644
index 00000000000..e0347f070bc
--- /dev/null
+++ b/net/netcat6/options.mk
@@ -0,0 +1,10 @@
+# $NetBSD: options.mk,v 1.1.1.1 2005/12/28 15:49:41 ghen Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.netcat6
+PKG_SUPPORTED_OPTIONS= inet6
+
+.include "../../mk/bsd.options.mk"
+
+.if empty(PKG_OPTIONS:Minet6)
+CONFIGURE_ARGS+= --disable-ipv6
+.endif
diff --git a/net/netcat6/patches/patch-aa b/net/netcat6/patches/patch-aa
new file mode 100644
index 00000000000..7d0e2502a7a
--- /dev/null
+++ b/net/netcat6/patches/patch-aa
@@ -0,0 +1,18 @@
+$NetBSD: patch-aa,v 1.1.1.1 2005/12/28 15:49:41 ghen Exp $
+
+NetBSD/DragonFly/*BSD/Linux/Solaris have alloca defined in either <stdlib.h>
+or <alloca.h>, so drop this test because it breaks on DragonFly.
+
+--- src/filter.c.orig 2003-04-14 09:00:50.000000000 +0000
++++ src/filter.c
+@@ -37,10 +37,6 @@
+ #else
+ #ifdef _AIX
+ #pragma alloca
+-#else
+-#ifndef alloca /* predefined by HP cc +Olibcalls */
+-char *alloca();
+-#endif
+ #endif
+ #endif
+