From d0ced35123360f30b69a51fe959179d04cf8aa00 Mon Sep 17 00:00:00 2001 From: Flatcar Buildbot Date: Mon, 24 Apr 2023 07:14:46 +0000 Subject: [PATCH] net-analyzer/nmap: Sync with Gentoo It's from Gentoo commit 54c3961cd8fd050411752bc036f2e6d24b1aa075. --- .../portage-stable/net-analyzer/nmap/metadata.xml | 1 - .../{nmap-7.92-r2.ebuild => nmap-7.92-r3.ebuild} | 14 ++++++++------ .../{nmap-7.93-r2.ebuild => nmap-7.93-r3.ebuild} | 14 ++++++++------ .../net-analyzer/nmap/nmap-9999.ebuild | 15 +++++++++------ 4 files changed, 25 insertions(+), 19 deletions(-) rename sdk_container/src/third_party/portage-stable/net-analyzer/nmap/{nmap-7.92-r2.ebuild => nmap-7.92-r3.ebuild} (91%) rename sdk_container/src/third_party/portage-stable/net-analyzer/nmap/{nmap-7.93-r2.ebuild => nmap-7.93-r3.ebuild} (92%) diff --git a/sdk_container/src/third_party/portage-stable/net-analyzer/nmap/metadata.xml b/sdk_container/src/third_party/portage-stable/net-analyzer/nmap/metadata.xml index e31f57e3f5..c93c9fdc44 100644 --- a/sdk_container/src/third_party/portage-stable/net-analyzer/nmap/metadata.xml +++ b/sdk_container/src/third_party/portage-stable/net-analyzer/nmap/metadata.xml @@ -16,7 +16,6 @@ Install the nping utility Include support for the Nmap Scripting Engine (NSE) Install symlink to nc - Use dev-lang/lua instead of the bundled liblua Install the GTK+ based nmap GUI, zenmap diff --git a/sdk_container/src/third_party/portage-stable/net-analyzer/nmap/nmap-7.92-r2.ebuild b/sdk_container/src/third_party/portage-stable/net-analyzer/nmap/nmap-7.92-r3.ebuild similarity index 91% rename from sdk_container/src/third_party/portage-stable/net-analyzer/nmap/nmap-7.92-r2.ebuild rename to sdk_container/src/third_party/portage-stable/net-analyzer/nmap/nmap-7.92-r3.ebuild index 2c418afbe2..62e1a494d0 100644 --- a/sdk_container/src/third_party/portage-stable/net-analyzer/nmap/nmap-7.92-r2.ebuild +++ b/sdk_container/src/third_party/portage-stable/net-analyzer/nmap/nmap-7.92-r3.ebuild @@ -26,9 +26,9 @@ else fi SLOT="0" -IUSE="ipv6 libssh2 ncat nping +nse ssl symlink +system-lua" +IUSE="ipv6 libssh2 ncat nping +nse ssl symlink" REQUIRED_USE=" - system-lua? ( nse ${LUA_REQUIRED_USE} ) + nse? ( ${LUA_REQUIRED_USE} ) symlink? ( ncat ) " @@ -40,13 +40,15 @@ RDEPEND=" net-libs/libssh2[zlib] sys-libs/zlib ) - nse? ( sys-libs/zlib ) + nse? ( + ${LUA_DEPS} + sys-libs/zlib + ) ssl? ( dev-libs/openssl:0= ) symlink? ( !net-analyzer/netcat !net-analyzer/openbsd-netcat ) - system-lua? ( ${LUA_DEPS} ) " DEPEND="${RDEPEND}" @@ -67,7 +69,7 @@ PATCHES=( ) pkg_setup() { - use system-lua && lua-single_pkg_setup + use nse && lua-single_pkg_setup } src_prepare() { @@ -99,9 +101,9 @@ src_configure() { $(use_with libssh2) \ $(use_with ncat) \ $(use_with nping) \ + $(use_with nse liblua) \ $(use_with ssl openssl) \ $(usex libssh2 --with-zlib) \ - $(usex nse --with-liblua=$(usex system-lua yes included '' '') --without-liblua) \ $(usex nse --with-zlib) \ --cache-file="${S}"/config.cache \ --with-libdnet=included \ diff --git a/sdk_container/src/third_party/portage-stable/net-analyzer/nmap/nmap-7.93-r2.ebuild b/sdk_container/src/third_party/portage-stable/net-analyzer/nmap/nmap-7.93-r3.ebuild similarity index 92% rename from sdk_container/src/third_party/portage-stable/net-analyzer/nmap/nmap-7.93-r2.ebuild rename to sdk_container/src/third_party/portage-stable/net-analyzer/nmap/nmap-7.93-r3.ebuild index 0b02e213c5..d2a477897b 100644 --- a/sdk_container/src/third_party/portage-stable/net-analyzer/nmap/nmap-7.93-r2.ebuild +++ b/sdk_container/src/third_party/portage-stable/net-analyzer/nmap/nmap-7.93-r3.ebuild @@ -28,9 +28,9 @@ fi # https://github.com/nmap/nmap/issues/2199 LICENSE="|| ( NPSL-0.94 NPSL-0.95 )" SLOT="0" -IUSE="ipv6 libssh2 ncat nping +nse ssl symlink +system-lua" +IUSE="ipv6 libssh2 ncat nping +nse ssl symlink" REQUIRED_USE=" - system-lua? ( nse ${LUA_REQUIRED_USE} ) + nse? ( ${LUA_REQUIRED_USE} ) symlink? ( ncat ) " @@ -42,7 +42,10 @@ RDEPEND=" net-libs/libssh2[zlib] sys-libs/zlib ) - nse? ( sys-libs/zlib ) + nse? ( + ${LUA_DEPS} + sys-libs/zlib + ) ssl? ( dev-libs/openssl:0= ) symlink? ( ncat? ( @@ -50,7 +53,6 @@ RDEPEND=" !net-analyzer/openbsd-netcat ) ) - system-lua? ( ${LUA_DEPS} ) " DEPEND="${RDEPEND}" BDEPEND=" @@ -79,7 +81,7 @@ PATCHES=( pkg_setup() { python-any-r1_pkg_setup - use system-lua && lua-single_pkg_setup + use nse && lua-single_pkg_setup } src_prepare() { @@ -114,9 +116,9 @@ src_configure() { $(use_with libssh2) \ $(use_with ncat) \ $(use_with nping) \ + $(use_with nse liblua) \ $(use_with ssl openssl) \ $(usex libssh2 --with-zlib) \ - $(usex nse --with-liblua=$(usex system-lua yes included '' '') --without-liblua) \ $(usex nse --with-zlib) \ --cache-file="${S}"/config.cache \ --with-libdnet=included \ diff --git a/sdk_container/src/third_party/portage-stable/net-analyzer/nmap/nmap-9999.ebuild b/sdk_container/src/third_party/portage-stable/net-analyzer/nmap/nmap-9999.ebuild index 8617f57210..f18840ef88 100644 --- a/sdk_container/src/third_party/portage-stable/net-analyzer/nmap/nmap-9999.ebuild +++ b/sdk_container/src/third_party/portage-stable/net-analyzer/nmap/nmap-9999.ebuild @@ -30,10 +30,10 @@ fi # https://github.com/nmap/nmap/issues/2199 LICENSE="NPSL-0.95" SLOT="0" -IUSE="ipv6 libssh2 ncat ndiff nping nls +nse ssl symlink +system-lua zenmap" +IUSE="ipv6 libssh2 ncat ndiff nping nls +nse ssl symlink zenmap" REQUIRED_USE=" ${PYTHON_REQUIRED_USE} - system-lua? ( nse ${LUA_REQUIRED_USE} ) + nse? ( ${LUA_REQUIRED_USE} ) symlink? ( ncat ) " @@ -47,7 +47,10 @@ RDEPEND=" sys-libs/zlib ) nls? ( virtual/libintl ) - nse? ( sys-libs/zlib ) + nse? ( + ${LUA_DEPS} + sys-libs/zlib + ) ssl? ( dev-libs/openssl:= ) symlink? ( ncat? ( @@ -55,7 +58,6 @@ RDEPEND=" !net-analyzer/openbsd-netcat ) ) - system-lua? ( ${LUA_DEPS} ) zenmap? ( ${PYTHON_DEPS} $(python_gen_cond_dep ' @@ -64,6 +66,7 @@ RDEPEND=" ) " DEPEND="${RDEPEND}" +# Python is always needed at build time for some scripts BDEPEND=" ${PYTHON_DEPS} virtual/pkgconfig @@ -90,7 +93,7 @@ PATCHES=( pkg_setup() { python-single-r1_pkg_setup - use system-lua && lua-single_pkg_setup + use nse && lua-single_pkg_setup } src_prepare() { @@ -134,10 +137,10 @@ src_configure() { $(use_with ncat) $(use_with ndiff) $(use_with nping) + $(use_with nse liblua) $(use_with ssl openssl) $(use_with zenmap) $(usex libssh2 --with-zlib) - $(usex nse --with-liblua=$(usex system-lua yes included '' '') --without-liblua) $(usex nse --with-zlib) --cache-file="${S}"/config.cache # The bundled libdnet is incompatible with the version available in the