Name: netcat-openbsd Version: 1.89 Release: %mkrel 4 Summary: Reads and writes data across network connections using TCP or UDP Group: Networking/Other License: BSD URL: http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/nc/ # source is CVS checkout Source0: netcat-openbsd-%{version}.tar.gz Patch0: openbsd-compat.patch Patch1: socks-b64-prototype.patch Patch2: silence-z.patch Patch3: glib-strlcpy.patch Patch4: no-strtonum.patch Patch5: pollhup.patch Patch6: reuseaddr.patch # add a timeout on connexion Patch7: connect-timeout.patch Patch8: udp-scan-timeout.patch # be verbose when receiving a connexion ( show port number ) Patch9: verbose-numeric-port.patch Patch10: send-crlf.patch Patch11: help-version-exit.patch Patch12: quit-timer.patch Patch13: getservbyname.patch Patch14: gcc-warnings.patch # add support for non openbsd plateform Patch20: netcat-openbsd-1.89-makefile.patch Patch21: netcat-openbsd-1.89-openbsd-compat.patch Requires: glib2 BuildRequires: glib2-devel Obsoletes: netcat-bsd Conflicts: netcat < 1.0 Provides: netcat = 1.0 Conflicts: netcat-traditional Conflicts: netcat-gnu BuildRoot: %{_tmppath}/%{name}-%{version} %description The nc package contains Netcat (the program is actually nc), a simple utility for reading and writing data across network connections, using the TCP or UDP protocols. Netcat is intended to be a reliable back-end tool which can be used directly or easily driven by other programs and scripts. Netcat is also a feature-rich network debugging and exploration tool, since it can create many different connections and has many built-in capabilities. You may want to install the netcat package if you are administering a network and you'd like to use its debugging and network exploration capabilities. %prep %setup -q -n netcat-openbsd-%{version}.orig %patch20 -p1 %patch21 -p1 %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 %patch5 -p1 %patch6 -p1 %patch7 -p1 %patch8 -p1 %patch9 -p1 %patch10 -p1 %patch11 -p1 %patch12 -p1 %patch13 -p1 %patch14 -p1 %build %make %install rm -rf %{buildroot} install -d %{buildroot}%{_bindir} install -m 755 nc %{buildroot}%{_bindir} (cd %{buildroot}%{_bindir} && ln -s nc netcat) install -d %{buildroot}%{_mandir}/man1 install -m 644 nc.1 %{buildroot}%{_mandir}/man1 (cd %{buildroot}%{_mandir}/man1 && ln -s nc.1 netcat.1) %clean rm -rf %{buildroot} %files %defattr(-,root,root) %{_bindir}/nc %{_bindir}/netcat %{_mandir}/man1/nc.1* %{_mandir}/man1/netcat.1* %changelog * Tue Apr 05 2011 misc <misc> 1.89-4.mga1 + Revision: 80683 - comment some patches ( but there is too much of them for now ) - rebuild and import on Mageia - imported package netcat-openbsd * Wed Jan 21 2009 Guillaume Rousse <guillomovitch@mandriva.org> 1.89-3mdv2009.1 + Revision: 332126 - provides a versionned netcat virtual package * Mon Jan 19 2009 Guillaume Rousse <guillomovitch@mandriva.org> 1.89-2mdv2009.1 + Revision: 331436 - package renaming - ship netcat binary and man page - provides netcat virtual package - package renaming * Fri Jan 16 2009 Guillaume Rousse <guillomovitch@mandriva.org> 1.89-1mdv2009.1 + Revision: 330355 - sync with debian package * Tue Jul 29 2008 Thierry Vignaud <tvignaud@mandriva.com> 1.84-3mdv2009.0 + Revision: 253765 - rebuild * Thu Jan 03 2008 Olivier Blin <oblin@mandriva.com> 1.84-1mdv2008.1 + Revision: 140994 - restore BuildRoot + Thierry Vignaud <tvignaud@mandriva.com> - kill re-definition of %%buildroot on Pixel's request * Sun Sep 23 2007 Herton Ronaldo Krzesinski <herton@mandriva.com.br> 1.84-1mdv2008.0 + Revision: 92310 - Fixed License tag (BSD instead of GPL). + Guillaume Rousse <guillomovitch@mandriva.org> - import netcat-bsd