1cd5c27755
Commit 78dc1f185b
forgot to update the
license file from COPYING to LICENSE.
Here is an extract of the ChangeLog for Nmap 7.90 [2020-10-03]:
Upgraded the Nmap license form a sort of hacked-up version of GPLv2 to a
cleaner and better organized version (still based on GPLv2) now called
the Nmap Public Source License to avoid confusion. See
https://nmap.org/npsl/ for more details and annotated license text. This
NPSL project was started in 2006 (community discussion here:
https://seclists.org/nmap-dev/2006/q4/126) and then it lost momentum for
7 years until it was restarted in 2013
(https://seclists.org/nmap-dev/2013/q1/399) and then we got distracted
by development again. We still have some ideas for improving the NPSL,
but it's already much better than the current license, so we're applying
NPSL Version 0.92 to the code now and can make improvements later if
needed. This does not change the license of previous Nmap releases.
Fixes:
- http://autobuild.buildroot.org/results/8cef6a5e99ae341cced405a389346e2faccf6eec
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Reviewed-by: Peter Seiderer <ps.report@gmx.net>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
88 lines
2.4 KiB
Makefile
88 lines
2.4 KiB
Makefile
################################################################################
|
|
#
|
|
# nmap
|
|
#
|
|
################################################################################
|
|
|
|
NMAP_VERSION = 7.91
|
|
NMAP_SITE = https://nmap.org/dist
|
|
NMAP_SOURCE = nmap-$(NMAP_VERSION).tar.bz2
|
|
NMAP_DEPENDENCIES = liblinear libpcap
|
|
NMAP_CONF_OPTS = --without-liblua --without-zenmap \
|
|
--with-libdnet=included
|
|
NMAP_LICENSE = nmap license
|
|
NMAP_LICENSE_FILES = LICENSE
|
|
|
|
# needed by libpcap
|
|
NMAP_LIBS_FOR_STATIC_LINK += `$(STAGING_DIR)/usr/bin/pcap-config --static --additional-libs`
|
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
|
NMAP_CONF_ENV += LIBS="$(NMAP_LIBS_FOR_STATIC_LINK)"
|
|
endif
|
|
|
|
# for 0001-libdnet-wrapper-configure.patch
|
|
define NMAP_WRAPPER_EXEC
|
|
chmod +x $(@D)/libdnet-stripped/configure.gnu
|
|
endef
|
|
NMAP_POST_PATCH_HOOKS += NMAP_WRAPPER_EXEC
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBSSH2),y)
|
|
NMAP_CONF_OPTS += --with-libssh2="$(STAGING_DIR)/usr"
|
|
NMAP_DEPENDENCIES += libssh2
|
|
NMAP_LIBS_FOR_STATIC_LINK += `$(PKG_CONFIG_HOST_BINARY) --libs libssh2`
|
|
else
|
|
NMAP_CONF_OPTS += --without-libssh2
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
NMAP_CONF_OPTS += --with-openssl="$(STAGING_DIR)/usr"
|
|
NMAP_DEPENDENCIES += host-pkgconf openssl
|
|
NMAP_LIBS_FOR_STATIC_LINK += `$(PKG_CONFIG_HOST_BINARY) --libs openssl`
|
|
else
|
|
NMAP_CONF_OPTS += --without-openssl
|
|
endif
|
|
|
|
NMAP_INSTALL_TARGET_OPTS = DESTDIR=$(TARGET_DIR)
|
|
|
|
ifeq ($(BR2_PACKAGE_NMAP_NCAT),y)
|
|
NMAP_CONF_OPTS += --with-ncat
|
|
NMAP_MAKE_OPTS += build-ncat
|
|
NMAP_INSTALL_TARGET_OPTS += install-ncat
|
|
else
|
|
NMAP_CONF_OPTS += --without-ncat
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_NMAP_NDIFF),y)
|
|
NMAP_DEPENDENCIES += python
|
|
NMAP_CONF_OPTS += --with-ndiff
|
|
NMAP_MAKE_OPTS += build-ndiff
|
|
NMAP_INSTALL_TARGET_OPTS += install-ndiff
|
|
else
|
|
NMAP_CONF_OPTS += --without-ndiff
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_NMAP_NMAP),y)
|
|
NMAP_DEPENDENCIES += pcre
|
|
NMAP_CONF_OPTS += --with-libpcre="$(STAGING_DIR)/usr"
|
|
NMAP_MAKE_OPTS += nmap
|
|
NMAP_INSTALL_TARGET_OPTS += install-nmap
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_NMAP_NPING),y)
|
|
NMAP_CONF_OPTS += --with-nping
|
|
NMAP_MAKE_OPTS += build-nping
|
|
NMAP_INSTALL_TARGET_OPTS += install-nping
|
|
else
|
|
NMAP_CONF_OPTS += --without-nping
|
|
endif
|
|
|
|
# Add a symlink to "nc" if none of the competing netcats is selected
|
|
ifeq ($(BR2_PACKAGE_NMAP_NCAT):$(BR2_PACKAGE_NETCAT)$(BR2_PACKAGE_NETCAT_OPENBSD),y:)
|
|
define NMAP_INSTALL_NCAT_SYMLINK
|
|
ln -fs ncat $(TARGET_DIR)/usr/bin/nc
|
|
endef
|
|
NMAP_POST_INSTALL_TARGET_HOOKS += NMAP_INSTALL_NCAT_SYMLINK
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|