2008-04-24 04:47:38 +02:00
|
|
|
#
|
2011-04-21 13:40:58 +02:00
|
|
|
# spec file for package netcat-openbsd
|
2008-04-24 04:47:38 +02:00
|
|
|
#
|
2018-11-14 14:18:05 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2008-04-24 04:47:38 +02:00
|
|
|
#
|
2009-02-20 21:28:10 +01:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-11-14 14:18:05 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2008-04-24 04:47:38 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: netcat-openbsd
|
2018-11-14 14:18:05 +01:00
|
|
|
Version: 1.195
|
2013-09-02 21:53:10 +02:00
|
|
|
Release: 0
|
2008-04-24 04:47:38 +02:00
|
|
|
Summary: TCP/IP swiss army knife
|
2013-09-02 21:53:10 +02:00
|
|
|
License: BSD-3-Clause
|
|
|
|
Group: Productivity/Networking/Other
|
2018-11-14 14:18:05 +01:00
|
|
|
URL: http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/nc/
|
2017-07-17 15:26:12 +02:00
|
|
|
Source0: http://http.debian.net/debian/pool/main/n/netcat-openbsd/netcat-openbsd_%{version}.orig.tar.gz
|
2018-11-14 14:18:05 +01:00
|
|
|
#Patches from: http://http.debian.net/debian/pool/main/n/netcat-openbsd/netcat-openbsd_%{version}-1.debian.tar.xz
|
2017-07-17 15:26:12 +02:00
|
|
|
Patch0: port-to-linux-with-libsd.patch
|
2018-11-14 14:18:05 +01:00
|
|
|
Patch1: build-without-TLS-support.patch
|
2017-07-17 15:26:12 +02:00
|
|
|
Patch2: connect-timeout.patch
|
|
|
|
Patch3: get-sev-by-name.patch
|
|
|
|
Patch4: send-crlf.patch
|
|
|
|
Patch5: quit-timer.patch
|
|
|
|
Patch6: udp-scan-timeout.patch
|
|
|
|
Patch7: verbose-numeric-port.patch
|
|
|
|
Patch8: dccp-support.patch
|
2018-11-14 14:18:05 +01:00
|
|
|
Patch9: broadcast-support.patch
|
|
|
|
Patch10: serialized-handling-multiple-clients.patch
|
|
|
|
Patch11: set-TCP-MD5SIG-correctly-for-client-connections.patch
|
|
|
|
Patch12: destination-port-list.patch
|
|
|
|
Patch13: use-flags-to-specify-listen-address.patch
|
|
|
|
Patch14: misc-failures-and-features.patch
|
2017-07-17 15:26:12 +02:00
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: pkgconfig(libbsd)
|
2013-09-02 21:53:10 +02:00
|
|
|
Provides: nc6 = %{version}
|
|
|
|
Provides: netcat = %{version}
|
|
|
|
Obsoletes: nc6 <= 1.0
|
|
|
|
Obsoletes: netcat <= 1.10
|
2008-04-24 04:47:38 +02:00
|
|
|
|
|
|
|
%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
|
2011-07-17 20:42:23 +02:00
|
|
|
"back-end" tool that can be used directly or easily driven by other
|
2008-04-24 04:47:38 +02:00
|
|
|
programs and scripts. At the same time it is a feature-rich network
|
2011-07-17 20:42:23 +02:00
|
|
|
debugging and exploration tool, since it can create almost any kind of
|
2008-04-24 04:47:38 +02:00
|
|
|
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.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2017-07-17 15:26:12 +02:00
|
|
|
%autopatch -p1
|
2008-04-24 04:47:38 +02:00
|
|
|
|
|
|
|
%build
|
2017-07-17 15:26:12 +02:00
|
|
|
make %{?_smp_mflags} \
|
|
|
|
CFLAGS="%{optflags}"
|
2008-04-24 04:47:38 +02:00
|
|
|
|
|
|
|
%install
|
2017-07-17 15:26:12 +02:00
|
|
|
install -D -m0755 nc %{buildroot}%{_bindir}/nc
|
|
|
|
install -D -m0644 nc.1 %{buildroot}/%{_mandir}/man1/nc.1
|
2013-09-02 21:53:10 +02:00
|
|
|
ln -s -f %{_bindir}/nc %{buildroot}/%{_bindir}/netcat
|
2017-07-17 15:26:12 +02:00
|
|
|
ln -s -f nc.1%{ext_man} %{buildroot}/%{_mandir}/man1/netcat.1%{ext_man}
|
2008-04-24 04:47:38 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%{_bindir}/nc
|
2017-07-17 15:26:12 +02:00
|
|
|
%{_bindir}/netcat
|
2018-11-14 14:18:05 +01:00
|
|
|
%{_mandir}/man1/nc.1%{?ext_man}
|
|
|
|
%{_mandir}/man1/netcat.1%{?ext_man}
|
2008-04-24 04:47:38 +02:00
|
|
|
|
|
|
|
%changelog
|