Blame view

buildroot/buildroot-2016.08.1/package/nmap/nmap.mk 1.26 KB
6b13f685e   김민수   BSP 최초 추가
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
  ################################################################################
  #
  # nmap
  #
  ################################################################################
  
  NMAP_VERSION = 7.12
  NMAP_SITE = http://nmap.org/dist
  NMAP_SOURCE = nmap-$(NMAP_VERSION).tar.bz2
  NMAP_DEPENDENCIES = libpcap pcre
  NMAP_CONF_OPTS = --without-liblua --without-zenmap \
  	--with-libdnet=included --with-liblinear=included \
  	--with-libpcre="$(STAGING_DIR)/usr" --without-ncat
  NMAP_LICENSE = GPLv2
  NMAP_LICENSE_FILES = COPYING
  
  # 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_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
  
  # ndiff only works with python2.x
  ifeq ($(BR2_PACKAGE_PYTHON),y)
  NMAP_DEPENDENCIES += python
  else
  NMAP_CONF_OPTS += --without-ndiff
  endif
  
  $(eval $(autotools-package))