commit: f1367051f359503107ca26cc9971f5513da9f50d Author: Mathieu Tortuyaux <mtortuyaux <AT> microsoft <DOT> com> AuthorDate: Sat Jul 9 14:20:09 2022 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Thu Jul 14 11:06:03 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f1367051
net-analyzer/nmap: add symlink from ncat to nc For compatiblity, it's good to have `nc` in the PATH too. [sam: keep it as an extra flag to avoid more blockers; it's useful to be able to evaluate two implementations.] Closes: https://github.com/gentoo/gentoo/pull/26287 Signed-off-by: Mathieu Tortuyaux <mtortuyaux <AT> microsoft.com> Signed-off-by: Sam James <sam <AT> gentoo.org> net-analyzer/nmap/metadata.xml | 1 + net-analyzer/nmap/{nmap-7.92.ebuild => nmap-7.92-r1.ebuild} | 9 +++++++-- net-analyzer/nmap/nmap-9999.ebuild | 9 +++++++-- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/net-analyzer/nmap/metadata.xml b/net-analyzer/nmap/metadata.xml index 21fee1f7bbb0..4ca312aa6de6 100644 --- a/net-analyzer/nmap/metadata.xml +++ b/net-analyzer/nmap/metadata.xml @@ -18,6 +18,7 @@ <flag name="ncat">Install the ncat utility</flag> <flag name="nping">Install the nping utility</flag> <flag name="nse">Include support for the Nmap Scripting Engine (NSE)</flag> + <flag name="symlink">Install symlink to nc</flag> <flag name="system-lua">Use <pkg>dev-lang/lua</pkg> instead of the bundled liblua</flag> </use> </pkgmetadata> diff --git a/net-analyzer/nmap/nmap-7.92.ebuild b/net-analyzer/nmap/nmap-7.92-r1.ebuild similarity index 94% rename from net-analyzer/nmap/nmap-7.92.ebuild rename to net-analyzer/nmap/nmap-7.92-r1.ebuild index 8d80c56138aa..752a2273e4f7 100644 --- a/net-analyzer/nmap/nmap-7.92.ebuild +++ b/net-analyzer/nmap/nmap-7.92-r1.ebuild @@ -29,8 +29,11 @@ else fi SLOT="0" -IUSE="ipv6 libssh2 ncat nping +nse ssl +system-lua" -REQUIRED_USE="system-lua? ( nse ${LUA_REQUIRED_USE} )" +IUSE="ipv6 libssh2 ncat nping +nse ssl symlink +system-lua" +REQUIRED_USE=" + system-lua? ( nse ${LUA_REQUIRED_USE} ) + symlink? ( ncat ) +" RDEPEND=" dev-libs/liblinear:= @@ -130,4 +133,6 @@ src_install() { install dodoc CHANGELOG HACKING docs/README docs/*.txt + + use symlink && dosym /usr/bin/ncat /usr/bin/nc } diff --git a/net-analyzer/nmap/nmap-9999.ebuild b/net-analyzer/nmap/nmap-9999.ebuild index 2812d6599000..3b55f48a5dbd 100644 --- a/net-analyzer/nmap/nmap-9999.ebuild +++ b/net-analyzer/nmap/nmap-9999.ebuild @@ -29,8 +29,11 @@ else fi SLOT="0" -IUSE="ipv6 libssh2 ncat nping +nse ssl +system-lua" -REQUIRED_USE="system-lua? ( nse ${LUA_REQUIRED_USE} )" +IUSE="ipv6 libssh2 ncat nping +nse ssl symlink +system-lua" +REQUIRED_USE=" + system-lua? ( nse ${LUA_REQUIRED_USE} ) + symlink? ( ncat ) +" RDEPEND=" dev-libs/liblinear:= @@ -131,4 +134,6 @@ src_install() { install dodoc CHANGELOG HACKING docs/README docs/*.txt + + use symlink && dosym /usr/bin/ncat /usr/bin/nc }
