diff --git a/README.md b/README.md index 7239758..92e34f4 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ # netcat-openbsd +A simple Unix utility which reads and writes data across network connections using TCP or UDP protocol. 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. +This package contains the OpenBSD rewrite of netcat, including support for IPv6, proxies, and Unix sockets. + diff --git a/netcat-openbsd.spec b/netcat-openbsd.spec new file mode 100644 index 0000000..9700da2 --- /dev/null +++ b/netcat-openbsd.spec @@ -0,0 +1,50 @@ +%define majver %(echo %version | cut -d_ -f1) +%define pkgver %(echo %version | tr _ -) +Name: netcat-openbsd +Version: 1.105_7 +Release: 1mamba +Summary: A simple Unix utility which reads and writes data across network connections using TCP or UDP protocol +Group: Applications/Networking +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://packages.debian.org/sid/netcat-openbsd +Source: http://ftp.de.debian.org/debian/pool/main/n/netcat-openbsd/netcat-openbsd_%{majver}.orig.tar.gz +Source1: http://ftp.de.debian.org/debian/pool/main/n/netcat-openbsd/netcat-openbsd_%{pkgver}.debian.tar.gz +License: BSD +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libbsd-devel +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +A simple Unix utility which reads and writes data across network connections using TCP or UDP protocol. 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. +This package contains the OpenBSD rewrite of netcat, including support for IPv6, proxies, and Unix sockets. + +%debug_package + +%prep +%setup -q -n %{name}-%{majver} -a1 +for f in debian/patches/*.patch; do patch -p1 <$f; done + +%build +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +install -D -m0755 nc %{buildroot}%{_bindir}/nc +install -D -m0644 nc.1 %{buildroot}%{_mandir}/man1/nc.1 + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_bindir}/nc +%{_mandir}/man1/nc.1* +%doc debian/copyright + +%changelog +* Tue Oct 14 2014 Silvan Calarco 1.105_7-1mamba +- package created using the webbuild interface