Blame view

buildroot/buildroot-2016.08.1/package/xtables-addons/xtables-addons.mk 1.08 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
  ################################################################################
  #
  # xtables-addons
  #
  ################################################################################
  
  XTABLES_ADDONS_VERSION = 2.11
  XTABLES_ADDONS_SOURCE = xtables-addons-$(XTABLES_ADDONS_VERSION).tar.xz
  XTABLES_ADDONS_SITE = http://downloads.sourceforge.net/project/xtables-addons/Xtables-addons/$(XTABLES_ADDONS_VERSION)
  XTABLES_ADDONS_DEPENDENCIES = iptables linux host-pkgconf
  XTABLES_ADDONS_LICENSE = GPLv2+
  XTABLES_ADDONS_LICENSE_FILES = LICENSE
  
  XTABLES_ADDONS_CONF_OPTS = \
  	--with-kbuild="$(LINUX_DIR)" \
  	--with-xtables="$(STAGING_DIR)/usr" \
  	--with-xtlibdir="/usr/lib/xtables"
  
  # geoip helpers need perl with modules and unzip so disable
  define XTABLES_DISABLE_GEOIP_HELPERS
  	$(SED) 's/ geoip//' $(@D)/Makefile.in
  endef
  XTABLES_ADDONS_POST_PATCH_HOOKS += XTABLES_DISABLE_GEOIP_HELPERS
  
  define XTABLES_ADDONS_BUILD_CMDS
  	$(MAKE) -C $(@D) $(LINUX_MAKE_FLAGS)
  endef
  
  define XTABLES_ADDONS_INSTALL_TARGET_CMDS
  	$(MAKE) -C $(@D) $(LINUX_MAKE_FLAGS) DESTDIR="$(TARGET_DIR)" install
  endef
  
  $(eval $(autotools-package))