126d5b5bb8
ndiff only works when target python2 is available, so disable it completely when it's not. Fixes: http://autobuild.buildroot.net/results/402/40269fd96a3b62fa187e9b26e5ab4ce4e7711f95/ Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
32 lines
839 B
Makefile
32 lines
839 B
Makefile
################################################################################
|
|
#
|
|
# nmap
|
|
#
|
|
################################################################################
|
|
|
|
NMAP_VERSION = 6.40
|
|
NMAP_SITE = http://nmap.org/dist
|
|
NMAP_SOURCE = nmap-$(NMAP_VERSION).tar.bz2
|
|
NMAP_DEPENDENCIES = libpcap pcre
|
|
NMAP_CONF_OPT = --without-liblua --without-zenmap \
|
|
--with-libdnet=included --with-liblinear=included \
|
|
--with-libpcre="$(STAGING_DIR)/usr" --without-ncat
|
|
NMAP_LICENSE = GPLv2
|
|
NMAP_LICENSE_FILES = COPYING
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
NMAP_CONF_OPT += --with-openssl="$(STAGING_DIR)/usr"
|
|
NMAP_DEPENDENCIES += openssl
|
|
else
|
|
NMAP_CONF_OPT += --without-openssl
|
|
endif
|
|
|
|
# ndiff only works with python2.x
|
|
ifeq ($(BR2_PACKAGE_PYTHON),y)
|
|
NMAP_DEPENDENCIES += python
|
|
else
|
|
NMAP_CONF_OPT += --without-ndiff
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|