The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / nmap / nmap.mk
1 ################################################################################
2 #
3 # nmap
4 #
5 ################################################################################
6
7 NMAP_VERSION = 6.47
8 NMAP_SITE = http://nmap.org/dist
9 NMAP_SOURCE = nmap-$(NMAP_VERSION).tar.bz2
10 NMAP_DEPENDENCIES = libpcap pcre
11 NMAP_CONF_OPTS = --without-liblua --without-zenmap \
12         --with-libdnet=included --with-liblinear=included \
13         --with-libpcre="$(STAGING_DIR)/usr" --without-ncat
14 NMAP_LICENSE = GPLv2
15 NMAP_LICENSE_FILES = COPYING
16
17 # needed by libpcap
18 NMAP_LIBS_FOR_STATIC_LINK += $(shell $(STAGING_DIR)/usr/bin/pcap-config --static --additional-libs)
19
20 ifeq ($(BR2_STATIC_LIBS),y)
21 NMAP_CONF_ENV += LIBS='$(NMAP_LIBS_FOR_STATIC_LINK)'
22 endif
23
24 # for 0001-libdnet-wrapper-configure.patch
25 define NMAP_WRAPPER_EXEC
26         chmod +x $(@D)/libdnet-stripped/configure.gnu
27 endef
28 NMAP_POST_PATCH_HOOKS += NMAP_WRAPPER_EXEC
29
30 ifeq ($(BR2_PACKAGE_OPENSSL),y)
31 NMAP_CONF_OPTS += --with-openssl="$(STAGING_DIR)/usr"
32 NMAP_DEPENDENCIES += host-pkgconf openssl
33 NMAP_LIBS_FOR_STATIC_LINK += $(shell $(PKG_CONFIG_HOST_BINARY) --libs --static openssl)
34 else
35 NMAP_CONF_OPTS += --without-openssl
36 endif
37
38 # ndiff only works with python2.x
39 ifeq ($(BR2_PACKAGE_PYTHON),y)
40 NMAP_DEPENDENCIES += python
41 else
42 NMAP_CONF_OPTS += --without-ndiff
43 endif
44
45 $(eval $(autotools-package))