mbox

Update nmap to 7.30

Message ID 1481207695-3347-1-git-send-email-jonatan.schlag@ipfire.org
State Accepted
Commit 87bc1697b8d532632ce054fe860e27ffad587dc5
Headers

Message

Jonatan Schlag Dec. 9, 2016, 1:34 a.m. UTC
  This patch updates nmap to version 7.30 and introduce a new package
nmap-ncat.

The nmap project provides since version 7.0 a netcat implementation
which is ipv4 and ipv6 able.

Netcat is a dependency of libvirt and to avoid unnecessary dependencies
the tool ncat is shipped in an extra package.
The symlink nc point to the ncat implementation and is necessary because
libvirt use /usr/bin/nc to execute netcat.
---
 nmap/nmap.nm | 19 ++++++++++++++++++-
 1 file changed, 18 insertions(+), 1 deletion(-)
  

Comments

Michael Tremer Dec. 9, 2016, 3:12 a.m. UTC | #1
Hi,

thank you very much. Merged.

The buildservice is playing up a bit at the moment, so not sure if the build
will run through immediately.

-Michael

On Thu, 2016-12-08 at 14:34 +0000, Jonatan Schlag wrote:
> This patch updates nmap to version 7.30 and introduce a new package
> nmap-ncat.
> 
> The nmap project provides since version 7.0 a netcat implementation
> which is ipv4 and ipv6 able.
> 
> Netcat is a dependency of libvirt and to avoid unnecessary dependencies
> the tool ncat is shipped in an extra package.
> The symlink nc point to the ncat implementation and is necessary because
> libvirt use /usr/bin/nc to execute netcat.
> ---
>  nmap/nmap.nm | 19 ++++++++++++++++++-
>  1 file changed, 18 insertions(+), 1 deletion(-)
> 
> diff --git a/nmap/nmap.nm b/nmap/nmap.nm
> index c57bf72..39726af 100644
> --- a/nmap/nmap.nm
> +++ b/nmap/nmap.nm
> @@ -4,7 +4,7 @@
>  #############################################################################
> ##
>  
>  name       = nmap
> -version    = 6.01
> +version    = 7.30
>  release    = 1
>  
>  groups     = Networking/Sniffer
> @@ -36,11 +36,28 @@ build
>  	configure_options += \
>  		--without-nmapfe \
>  		--without-zenmap
> +
> +	install_cmds
> +		ln -vfs ncat %{BUILDROOT}%{bindir}/nc
> +	end
>  end
>  
>  packages
>  	package %{name}
>  
> +	package %{name}-ncat
> +		summary = Ncat is an ipv4 and ipv6 able netcat implementation
> +		description
> +			This package provides an another netcat
> implementation
> +		end
> +		files
> +			%{bindir}/ncat
> +			%{bindir}/nc
> +			%{datadir}/ncat/*
> +			%{mandir}/man1/ncat.1*
> +		end
> +	end
> +
>  	package %{name}-debuginfo
>  		template DEBUGINFO
>  	end