From edd33065e5f723b62e1950d13f522475d7391f84 Mon Sep 17 00:00:00 2001 From: Till Maas Date: Jun 13 2016 05:02:23 +0000 Subject: Revert "2016-05-31: Retired orphaned package, because it was orphaned for" This reverts commit 9ced5be5e129235b0b3163e73ce8ba0241fd8b15. --- diff --git a/dead.package b/dead.package deleted file mode 100644 index fa67d4a..0000000 --- a/dead.package +++ /dev/null @@ -1,3 +0,0 @@ -2016-05-31: Retired orphaned package, because it was orphaned for -more than six weeks. - diff --git a/nc6-1.0-afindep-close-the-accepted-socket-when-done.patch b/nc6-1.0-afindep-close-the-accepted-socket-when-done.patch new file mode 100644 index 0000000..397790c --- /dev/null +++ b/nc6-1.0-afindep-close-the-accepted-socket-when-done.patch @@ -0,0 +1,31 @@ +From 9f043d704320942bfbc5cd7773e91a7beff5522b Mon Sep 17 00:00:00 2001 +From: Aaron Lu +Date: Fri, 7 Nov 2014 14:27:36 +0800 +Subject: [PATCH] afindep: close the accepted socket when done + +The accepted socket ns isn't closed when done and that caused the socket +to keep in the CLOSE_WAIT state until the program quits. But since nc6 +is used to continuous accpet more connections and not quit with a +client, this would cause more and more sockets to stay in CLOSE_WAIT +state and eventually new connections will be refused. + +Signed-off-by: Aaron Lu +--- + src/afindep.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/afindep.c b/src/afindep.c +index 6645d6d..bf06e8b 100644 +--- a/src/afindep.c ++++ b/src/afindep.c +@@ -548,6 +548,7 @@ int afindep_listener(const struct addrinfo *hints, + } + + callback(ns, socktype, cdata); ++ close(ns); + + if (max_accept > 0 && --max_accept == 0) + break; +-- +1.9.3 + diff --git a/nc6-1.0-dnl.patch b/nc6-1.0-dnl.patch new file mode 100644 index 0000000..74bd082 --- /dev/null +++ b/nc6-1.0-dnl.patch @@ -0,0 +1,18 @@ +diff --git a/configure.ac b/configure.ac +index cd5dc28..cf3ef43 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -3,9 +3,11 @@ AC_INIT(nc6, 1.0, [ds6-devel@deepspace6.net]) + AC_CONFIG_AUX_DIR(config) + AC_CONFIG_SRCDIR(src/main.c) + AM_GNU_GETTEXT_VERSION(0.14.1) +-AM_INIT_AUTOMAKE(1.6) dnl Automake 1.6 or better is required ++dnl Automake 1.6 or better is required ++AM_INIT_AUTOMAKE(1.6) + AM_CONFIG_HEADER(config.h) +-AC_PREREQ(2.52) dnl Autoconf 2.52 or better is required ++AC_PREREQ(2.52) ++dnl Autoconf 2.52 or better is required + + + dnl Checks for programs. diff --git a/nc6.spec b/nc6.spec new file mode 100644 index 0000000..336991b --- /dev/null +++ b/nc6.spec @@ -0,0 +1,120 @@ +Summary: Netcat with IPv6 Support +Name: nc6 +Version: 1.0 +Release: 23%{?dist} +Group: Applications/Internet +URL: http://www.deepspace6.net/projects/netcat6.html +License: GPLv2+ +Source: ftp://ftp.deepspace6.net/pub/ds6/sources/nc6/%{name}-%{version}.tar.bz2 +# Given that the trailing newlines are now a part of the comments, +# some macros with comments on the same line break. +Patch0: %{name}-1.0-dnl.patch +# rhbz#1161432 +Patch1: %{name}-1.0-afindep-close-the-accepted-socket-when-done.patch +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: gettext-devel + +%description +netcat6 is an IPv6-enabled clone of the original netcat utility. + +"Netcat is a simple Unix utility which reads and writes data across +network connections. It is designed to be a reliable "back-end" tool +that can be used directly or easily driven by other programs and +scripts. At the same time, it is a feature-rich network debugging and +exploration tool, since it can create almost any kind of connection you +would need and has several interesting built-in capabilities. Netcat, +or "nc" as the actual program is named, should have been supplied long +ago as another one of those cryptic but standard Unix tools." + +%prep +%setup -q +%patch0 -p1 +%patch1 -p1 + +%build +autoreconf -fiv +%configure --prefix=%{_prefix} --mandir=%{_mandir} CFLAGS="%{optflags} -D_GNU_SOURCE" +make %{?_smp_mflags} + +%install +make DESTDIR="%{buildroot}" install + +%files +%{_bindir}/%{name} +%doc %{_mandir}/man1/nc6.1* +%doc README AUTHORS COPYING NEWS TODO + +%changelog +* Thu Feb 04 2016 Fedora Release Engineering - 1.0-23 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Wed Jun 17 2015 Fedora Release Engineering - 1.0-22 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Fri Nov 07 2014 Petr Šabata - 1.0-21 +- Close sockets after the client disconnects (#1161432) + +* Sun Aug 17 2014 Fedora Release Engineering - 1.0-20 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Tue Jun 10 2014 Petr Šabata - 1.0-19 +- Fix FTBFS with the current autoconf + +* Sat Jun 07 2014 Fedora Release Engineering - 1.0-18 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sat Aug 03 2013 Fedora Release Engineering - 1.0-17 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Tue Mar 26 2013 Petr Šabata - 1.0-16 +- Upstream bootstrap isn't enough; call autoreconf -fiv instead + +* Mon Mar 25 2013 Petr Šabata - 1.0-15 +- Run bootstrap to utilize Fedora autoconf (#926203) +- Minor cleanup +- Build in parallel + +* Thu Feb 14 2013 Fedora Release Engineering - 1.0-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Fri Jul 20 2012 Fedora Release Engineering - 1.0-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Fri Jan 13 2012 Fedora Release Engineering - 1.0-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Tue Mar 01 2011 Petr Sabata - 1.0-11 +- Buildroot garbage cleanup + +* Tue Feb 08 2011 Fedora Release Engineering - 1.0-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Sat Jul 25 2009 Fedora Release Engineering - 1.0-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Wed Feb 25 2009 Fedora Release Engineering - 1.0-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Mon Aug 11 2008 Tom "spot" Callaway - 1.0-7 +- fix license tag + +* Tue Feb 12 2008 Jan Safranek 1.0-6 +- fix compilation with gcc 4.3 + +* Thu Aug 23 2007 Radek Vokál 1.0-5 +- rebuilt + +* Mon Sep 11 2006 Radek Vokal 1.0-4 +- rebuilt for FC6 + +* Mon Mar 13 2006 Radek Vokál 1.0-3 +- add ?dist and rebuilt in extras + +* Wed Mar 8 2006 Radek Vokál 1.0-2 +- clean RPM_BUILD_ROOT before install +- group Application/Internet +- fix BuildRoot + +* Tue Mar 7 2006 Radek Vokál 1.0-1 +- initial build for Fedora Extras diff --git a/sources b/sources new file mode 100644 index 0000000..adb9d10 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +5074bc51989420a1f68716f93322030f nc6-1.0.tar.bz2