From f30a1dcf2c6788bacb2da41ad1d519e5e7355866 Mon Sep 17 00:00:00 2001 From: david Date: Mon, 29 Mar 2010 20:27:39 +0000 Subject: [PATCH] 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. --- nmap.spec.in | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/nmap.spec.in b/nmap.spec.in index bbfccf9d6..ca68557bf 100644 --- a/nmap.spec.in +++ b/nmap.spec.in @@ -2,6 +2,8 @@ # --define "static 1" # to the rpmbuild command line. To build without Ncat, add # --define "buildncat 0" +# To build without Nping, add +# --define "buildnping 0" # # To specify openssl dir, add something like: # --define "openssl /usr/local/ssl" @@ -51,6 +53,9 @@ both console and graphical versions are available. %if "%{buildncat}" == "0" %configure --without-ncat %endif +%if "%{buildnping}" == "0" +%configure --without-nping +%endif %if "%{static}" == "1" make static %else @@ -102,6 +107,28 @@ uses. %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 * Sat Jun 06 2009 Fyodor (fyodor(a)insecure.org)