source: packages/net/ipset/Makefile @ 31383

Last change on this file since 31383 was 31383, checked in by jow, 5 years ago

[packages] ipset: fix compilations against Linux v3.3 and newer (ipv6_addr_copy() got removed in favor to a direct structure copy) (#11310)

File size: 1.9 KB
Line 
1 
2# Copyright (C) 2009-2012 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7#
8include $(TOPDIR)/rules.mk
9include $(INCLUDE_DIR)/kernel.mk
10
11PKG_NAME:=ipset
12PKG_VERSION:=6.11
13PKG_RELEASE:=2
14
15PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16PKG_SOURCE_URL:=http://ipset.netfilter.org
17PKG_MD5SUM:=bfcc92e30a0fcf10ae6e7c4affa03c84
18
19PKG_FIXUP:=autoreconf
20PKG_INSTALL:=1
21
22include $(INCLUDE_DIR)/package.mk
23
24define Package/ipset/Default
25  DEPENDS:= @(!(TARGET_ps3||TARGET_pxcab)||BROKEN)
26endef
27
28define Package/ipset
29$(call Package/ipset/Default)
30  SECTION:=net
31  CATEGORY:=Network
32  DEPENDS+= +iptables-mod-ipset +kmod-ipt-ipset +libmnl
33  TITLE:=IPset administration utility
34  URL:=http://ipset.netfilter.org/
35endef
36
37include $(INCLUDE_DIR)/kernel-defaults.mk
38
39CONFIGURE_ARGS += \
40        --with-kbuild="$(LINUX_DIR)"
41
42IPSET_MODULES:= \
43        ipset/ip_set \
44        ipset/ip_set_bitmap_ip \
45        ipset/ip_set_bitmap_ipmac \
46        ipset/ip_set_bitmap_port \
47        ipset/ip_set_hash_ip \
48        ipset/ip_set_hash_ipport \
49        ipset/ip_set_hash_ipportip \
50        ipset/ip_set_hash_ipportnet \
51        ipset/ip_set_hash_net \
52        ipset/ip_set_hash_netiface \
53        ipset/ip_set_hash_netport \
54        ipset/ip_set_list_set \
55        xt_set \
56
57define Build/Compile
58        $(call Build/Compile/Default)
59        $(call Build/Compile/Default,modules)
60endef
61
62define Package/ipset/install
63        $(INSTALL_DIR) $(1)/usr/sbin
64        $(CP) $(PKG_INSTALL_DIR)/usr/sbin/ipset $(1)/usr/sbin/
65        $(INSTALL_DIR) $(1)/usr/lib
66        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libipset*.so* $(1)/usr/lib/
67endef
68
69define KernelPackage/ipt-ipset
70$(call Package/ipset/Default)
71  SUBMENU:=Netfilter Extensions
72  TITLE:=IPset netfilter modules
73  DEPENDS+= kmod-ipt-core +kmod-nfnetlink
74  FILES:=$(foreach mod,$(IPSET_MODULES),$(PKG_BUILD_DIR)/kernel/net/netfilter/$(mod).ko)
75  AUTOLOAD:=$(call AutoLoad,49,$(notdir $(IPSET_MODULES)))
76endef
77
78$(eval $(call BuildPackage,ipset))
79$(eval $(call KernelPackage,ipt-ipset))
Note: See TracBrowser for help on using the repository browser.