package created using the webbuild interface [release 1.105_7-1mamba;Tue Oct 14 2014]

This commit is contained in:
Silvan Calarco 2024-01-06 07:35:39 +01:00
parent 73b3989727
commit 0e4e72f131
2 changed files with 53 additions and 0 deletions

View File

@ -1,2 +1,5 @@
# netcat-openbsd # 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.

50
netcat-openbsd.spec Normal file
View File

@ -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 <silvan.calarco@mambasoft.it>
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 <silvan.calarco@mambasoft.it> 1.105_7-1mamba
- package created using the webbuild interface