File hping3.spec of Package hping

#
# spec file for package hping
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           hping3
Version:        upstream
Release:        0
Summary:        Command-line oriented TCP/IP packet assembler/analyzer
License:        GPL-2.0
Group:          Productivity/Networking/Diagnostic
Url:            https://salsa.debian.org/debian/hping3/-/tree/upstream?ref_type=heads
# Downloaded from https://salsa.debian.org/debian/hping3/-/tree/upstream?ref_type=heads
# Packed as tar.bz2
# Source:         hping3_3.a2.ds2.orig.tar.gz
Source:         hping3-upstream.tar.gz
Patch0: fix-bytesex-x86.patch
Patch1: fix-makefile.patch
Patch2: fix-libpcap.patch
Patch3: fix-scriptc.patch
Patch4: fix-hping.patch
BuildRequires:  libpcap-devel
BuildRequires:  tcl-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
hping3 is a network tool able to send custom TCP/IP packets and to display
target replies like ping do with ICMP replies. hping3 can handle
fragmentation, and almost arbitrary packet size and content, using the
command line interface.

Since version 3, hping implements scripting capabilties, read the API.txt
file under the /docs directory to know more about it.

As a command line utility, hping is useful to test at many kind of
networking devices like firewalls, routers, and so. It can be used as
a traceroute alike program over all the supported protocols, firewalk usage,
OS fingerprinting, port-scanner (see the --scan option introduced with hping3),
TCP/IP stack auditing.

%package -n %{name}-doc
Summary:        Documentation for the hping
Group:          Documentation
BuildArch:      noarch

%description -n %{name}-doc
hping3 is a network tool able to send custom TCP/IP packets and to display
target replies like ping do with ICMP replies. hping3 can handle
fragmentation, and almost arbitrary packet size and content, using the
command line interface.

Since version 3, hping implements scripting capabilties, read the API.txt
file under the /docs directory to know more about it.

As a command line utility, hping is useful to test at many kind of
networking devices like firewalls, routers, and so. It can be used as
a traceroute alike program over all the supported protocols, firewalk usage,
OS fingerprinting, port-scanner (see the --scan option introduced with hping3),
TCP/IP stack auditing.

Documentation for the package hping.

%prep
%setup -q -n %{name}
%patch -P 1 -p0
%patch -P 0 -p0
%patch -P 2 -p0
%patch -P 3 -p0
%patch -P 4 -p0

%build
%configure
make 
%install
mkdir -p %{buildroot}%{_sbindir}
mkdir -p %{buildroot}%{_mandir}/man8
install -m 0755 hping3 %{buildroot}%{_sbindir}/hping3
install -m 0644 ./docs/hping3.8 %{buildroot}%{_mandir}/man8/hping3.8

%files
%defattr(-,root,root,-)
%{_sbindir}/hping*
%{_mandir}/man8/%{name}.8.gz


%changelog





openSUSE Build Service is sponsored by