1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-23 07:59:03 +00:00

Merge r16806 from /nmap-exp/david/nmap-nping. This adds an nping

subpackage to nmap.spec.in. I missed this one revision when merging
before.
This commit is contained in:
david
2010-03-29 20:27:39 +00:00
parent 2e77f8f0d5
commit f30a1dcf2c

View File

@@ -2,6 +2,8 @@
# --define "static 1" # --define "static 1"
# to the rpmbuild command line. To build without Ncat, add # to the rpmbuild command line. To build without Ncat, add
# --define "buildncat 0" # --define "buildncat 0"
# To build without Nping, add
# --define "buildnping 0"
# #
# To specify openssl dir, add something like: # To specify openssl dir, add something like:
# --define "openssl /usr/local/ssl" # --define "openssl /usr/local/ssl"
@@ -51,6 +53,9 @@ both console and graphical versions are available.
%if "%{buildncat}" == "0" %if "%{buildncat}" == "0"
%configure --without-ncat %configure --without-ncat
%endif %endif
%if "%{buildnping}" == "0"
%configure --without-nping
%endif
%if "%{static}" == "1" %if "%{static}" == "1"
make static make static
%else %else
@@ -102,6 +107,28 @@ uses.
%endif %endif
# Nping subpackage
%if "%{buildnping}" != "0"
%package -n nping
Summary: Nping packet generator
Group: Applications/System
%description -n nping
Nping is an open source tool for network packet generation, response
analysis and response time measurement. Nping allows to generate network
packets of a wide range of protocols, letting users to tune virtually
any field of the protocol headers. While Nping can be used as a simple
ping utility to detect active hosts, it can also be used as a raw packet
generator for network stack stress tests, ARP poisoning, Denial of
Service attacks, route tracing, etc.
%files -n nping
%defattr(-,root,root)
%doc %{_prefix}/share/man/man1/nping.1.gz
%{_bindir}/nping
%endif
%changelog %changelog
* Sat Jun 06 2009 Fyodor (fyodor(a)insecure.org) * Sat Jun 06 2009 Fyodor (fyodor(a)insecure.org)