1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-14 11:49:01 +00:00
Files
nmap/nping/nping.spec
david ed2ba4e168 Copy nping, nsock, nbase, zenmap, ncat from their homes in /.
If you have trouble updating after this revision you need to follow
these instructions. You have probably just seen an error like this:

svn: URL 'svn://svn.insecure.org/nping' of existing directory 'nping'
does not match expected URL 'svn://svn.insecure.org/nmap/nping'

This is caused by the replacement of SVN externals.

Here's what you need to do. First, save any local changes you might have
in the nping, nsock, nbase, ncat, and zenmap directories. (For example
by running "cd nping; svn diff > ../nping.diff".) If you don't have any
local changes you can skip this step.

Then run these commands:

rm -rf nping/ nsock/ nbase/ ncat/ zenmap/
svn update
svn cleanup

If all else fails, you can just delete your whole working directory and
check out anew:

svn co --username guest --password "" svn://svn.insecure.org/nmap

There may be further discussion in the mailing list thread at
http://seclists.org/nmap-dev/2011/q4/303.
2011-11-16 21:49:44 +00:00

55 lines
1.5 KiB
RPMSpec

%define prerelease BETA2
Name: nping
Version: 0.1
Release: 0.1.%{prerelease}%{?dist}
Summary: Network packet generation, response analysis and response time measurement
Group: Applications/Internet
License: GPLv2 with exceptions
URL: http://nmap.org/nping/
Source0: http://nmap.org/%{name}/dist/%{name}-%{version}%{prerelease}/%{name}-%{version}%{prerelease}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%description
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.
%prep
%setup -q -n %{name}-%{version}%{prerelease}
sed -i '/\$(STRIP)/d' Makefile.in
# Remove exec bit from source files
find | egrep "*\.[cc,h]" | xargs chmod a-x
%build
%configure
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc CHANGELOG
%{_bindir}/nping
%{_mandir}/man1/nping.1*
%changelog
* Thu Sep 24 2009 Steve 'Ashcrow' Milner <me@stevemilner.org> 0.1-0.1.BETA2
- Initial package