summaryrefslogtreecommitdiffstats
path: root/net-analyzer
diff options
context:
space:
mode:
Diffstat (limited to 'net-analyzer')
-rw-r--r--net-analyzer/gnu-netcat/Manifest5
-rw-r--r--net-analyzer/gnu-netcat/files/gnu-netcat-LC_CTYPE.patch19
-rw-r--r--net-analyzer/gnu-netcat/files/gnu-netcat-close.patch16
-rw-r--r--net-analyzer/gnu-netcat/files/gnu-netcat-flagcount.patch22
-rw-r--r--net-analyzer/gnu-netcat/gnu-netcat-0.7.1-r3.ebuild37
5 files changed, 99 insertions, 0 deletions
diff --git a/net-analyzer/gnu-netcat/Manifest b/net-analyzer/gnu-netcat/Manifest
new file mode 100644
index 0000000..3e7159e
--- /dev/null
+++ b/net-analyzer/gnu-netcat/Manifest
@@ -0,0 +1,5 @@
+AUX gnu-netcat-LC_CTYPE.patch 479 BLAKE2B a458dc0df5d2f085b30b10d6f33f3ca6beb1b56348e8671098f2b3360da010311ae84d0ca69449df0b535d054ca0a1bff0ad6ca3943e583eb0964657118c4e6f SHA512 9ec66fe94fe5d6b76d94959d1e26a3b5ae7f1b09b9d863c73867a1325a14b3691e475ce7db54612f16ef4cc954815d268fb19a16cf5bfce4b0d585e40b690293
+AUX gnu-netcat-close.patch 440 BLAKE2B 537e086dd131a69c4701dd3c9512bfcdb5bf0c2cb8ce9ca09a6272f4c01f7f95ec41b5c82c60c8f2e894c528ccb7c89da4ddecb88e5f9defb59c8be636b4ea65 SHA512 3dcf4c75ee6989ce7e5f2cf288c1c566ccb9b6a98f1fa6c0caf72c646a9eec5df1221721ed2d0c7d913cd4613fec91914c99acce12134c12f78a93cdc5b11c2f
+AUX gnu-netcat-flagcount.patch 582 BLAKE2B 6b5c41d67e3135a27bf1b5ae212d8e17ab8a438c9ed5cf2d9239385f8190f3cb47b93aada65cdfb31f9df7f61f4eed8898605356702d09b4a58557d189a84553 SHA512 d341ff30dcc21170d956651956c519c25af9195090acba00459aed9f9c3425e845452cdbcf9f9e12d96857be335ad2ce9640e84c4f88343279700763c1351a0b
+DIST netcat-0.7.1.tar.bz2 325687 BLAKE2B a846fafcd006cc284f982fe66a3de5154ef1d74d20926344c54066f9b5e86f7bef06eb99313d5ec7f9f09bdb9b12ca82421b945bc6d3b8c6bb5f843cd6d31c2c SHA512 283c02f849c3bb62615a5ccb7796192804dafcecb34f3c6b553cbc12c715654963b81e253762923c6069be9768b93dde576a392b89b167912c323354f1376e83
+EBUILD gnu-netcat-0.7.1-r3.ebuild 1013 BLAKE2B 7bfbef4f84fa119ca73bfd8864a1a05e7f64e97962f31689b22c49d4cea59c612a7de5be81de90c27b3170031447dfda5e3fc375a234290487d3084813b2b39a SHA512 bfc5b734814b97f72648c6942726f6af789af4c14aa9112c9456713a3cf2326ef4b4735966a2ceb737a3ef8d0008ba85fa76573d61620ee77d33408d3d591bc4
diff --git a/net-analyzer/gnu-netcat/files/gnu-netcat-LC_CTYPE.patch b/net-analyzer/gnu-netcat/files/gnu-netcat-LC_CTYPE.patch
new file mode 100644
index 0000000..1c67f92
--- /dev/null
+++ b/net-analyzer/gnu-netcat/files/gnu-netcat-LC_CTYPE.patch
@@ -0,0 +1,19 @@
+In russian locale, netcat error messages display as '???????'
+
+Need to set LC_CTYPE along with LC_MESSAGES to correctly display messages in
+locales other then C/POSIX
+Required for correct i18n support in glibc.
+
+(bug #200875 by Михаил)
+
+
+--- a/src/netcat.c
++++ b/src/netcat.c
+@@ -157,6 +157,7 @@
+ connect_sock.domain = PF_INET;
+
+ #ifdef ENABLE_NLS
++ setlocale(LC_CTYPE, "");
+ setlocale(LC_MESSAGES, "");
+ bindtextdomain(PACKAGE, LOCALEDIR);
+ textdomain(PACKAGE);
diff --git a/net-analyzer/gnu-netcat/files/gnu-netcat-close.patch b/net-analyzer/gnu-netcat/files/gnu-netcat-close.patch
new file mode 100644
index 0000000..5c3e4fa
--- /dev/null
+++ b/net-analyzer/gnu-netcat/files/gnu-netcat-close.patch
@@ -0,0 +1,16 @@
+--- netcat-0.7.1.org/doc/netcat.1 2004-01-11 21:48:18.000000000 +0100
++++ netcat-0.7.1/doc/netcat.1 2010-02-12 17:03:02.000000000 +0100
+@@ -256,6 +256,13 @@
+ source address for the connecting socket.
+ .Sh "Advanced Options"
+ .IX Subsection "Advanced Options"
++.IP "\fB\-c" 4
++.IX Item "-c"
++.PD 0
++.IP "\fB\-\-close" 4
++.IX Item "--close"
++.PD
++closes connection on EOF from stdin.
+ .IP "\fB\-i \s-1SECS\s0\fR" 4
+ .IX Item "-i SECS"
+ .PD 0
diff --git a/net-analyzer/gnu-netcat/files/gnu-netcat-flagcount.patch b/net-analyzer/gnu-netcat/files/gnu-netcat-flagcount.patch
new file mode 100644
index 0000000..df029a6
--- /dev/null
+++ b/net-analyzer/gnu-netcat/files/gnu-netcat-flagcount.patch
@@ -0,0 +1,22 @@
+--- bad/netcat-0.7.1/src/flagset.c 2003-12-10 17:18:07.000000000 +0100
++++ good/netcat-0.7.1/src/flagset.c 2007-03-04 17:38:10.000000000 +0100
+@@ -134,7 +134,7 @@
+
+ int netcat_flag_count(void)
+ {
+- register char c;
++ register unsigned char c;
+ register int i;
+ int ret = 0;
+
+@@ -154,8 +154,8 @@
+ Assumed that the bit number 1 is the sign, and that we will shift the
+ bit 1 (or the bit that takes its place later) until the the most right,
+ WHY it has to keep the wrong sign? */
+- ret -= (c >> 7);
+- c <<= 1;
++ ret += (c & 1);
++ c >>= 1;
+ }
+ }
+
diff --git a/net-analyzer/gnu-netcat/gnu-netcat-0.7.1-r3.ebuild b/net-analyzer/gnu-netcat/gnu-netcat-0.7.1-r3.ebuild
new file mode 100644
index 0000000..7d2707d
--- /dev/null
+++ b/net-analyzer/gnu-netcat/gnu-netcat-0.7.1-r3.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/gnu-netcat/gnu-netcat-0.7.1-r3.ebuild,v 1.8 2013/02/17 23:20:20 zmedico Exp $
+
+EAPI="6"
+
+inherit eutils flag-o-matic
+
+DESCRIPTION="the GNU network swiss army knife"
+HOMEPAGE="http://netcat.sourceforge.net/"
+SRC_URI="mirror://sourceforge/netcat/netcat-${PV}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ~hppa ppc sparc x86 ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE="debug nls"
+
+S=${WORKDIR}/netcat-${PV}
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${PN}-flagcount.patch \
+ "${FILESDIR}"/${PN}-close.patch \
+ "${FILESDIR}"/${PN}-LC_CTYPE.patch
+
+}
+
+src_configure() {
+ use debug && append-flags -DDEBUG
+ econf $(use_enable nls)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ rm "${ED}"usr/bin/nc
+ dodoc AUTHORS ChangeLog NEWS README TODO
+}