Sophie

Sophie

distrib > Mageia > cauldron > x86_64 > media > core-release-src > by-pkgid > 676522a1b3eb404ef0e4f22a89ac726e > files > 9

netcat-openbsd-1.89-13.mga9.src.rpm

Name:       netcat-openbsd
Version:    1.89
Release:    %mkrel 13
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

%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_build CFLAGS="%{optflags}"

%install
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)

%files
%{_bindir}/nc
%{_bindir}/netcat
%{_mandir}/man1/nc.1*
%{_mandir}/man1/netcat.1*


%changelog
* Thu Mar 17 2022 umeabot <umeabot> 1.89-13.mga9
+ Revision: 1795144
- Mageia 9 Mass Rebuild

* Thu Feb 13 2020 umeabot <umeabot> 1.89-12.mga8
+ Revision: 1515341
- Mageia 8 Mass Rebuild

* Sun Sep 23 2018 umeabot <umeabot> 1.89-11.mga7
+ Revision: 1299700
- Mageia 7 Mass Rebuild

* Thu Aug 31 2017 daviddavid <daviddavid> 1.89-10.mga7
+ Revision: 1148848
- honor user CFLAGS thus fixing empty debugsourcefiles.list

* Tue Feb 02 2016 umeabot <umeabot> 1.89-9.mga6
+ Revision: 930923
- Mageia 6 Mass Rebuild

* Wed Oct 15 2014 umeabot <umeabot> 1.89-8.mga5
+ Revision: 742827
- Second Mageia 5 Mass Rebuild

* Tue Sep 16 2014 umeabot <umeabot> 1.89-7.mga5
+ Revision: 682843
- Mageia 5 Mass Rebuild

* Fri Oct 18 2013 umeabot <umeabot> 1.89-6.mga4
+ Revision: 508320
- Mageia 4 Mass Rebuild
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* 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