2 # Copyright (C) 2009-2012 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
9 include $(INCLUDE_DIR
)/kernel.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
16 PKG_SOURCE_URL
:=http
://ipset.netfilter.org
17 PKG_MD5SUM
:=8831b8f01458bf2abacc222884195a62
19 PKG_MAINTAINER
:=Jo-Philipp Wich
<jow@openwrt.org
>
25 include $(INCLUDE_DIR
)/package.mk
30 DEPENDS
+= +kmod-ipt-ipset
+libmnl
31 TITLE
:=IPset administration utility
32 URL
:=http
://ipset.netfilter.org
/
36 --with-kbuild
="$(LINUX_DIR)"
39 ARCH
="$(LINUX_KARCH)" \
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_ipmark \
49 ipset
/ip_set_hash_ipport \
50 ipset
/ip_set_hash_ipportip \
51 ipset
/ip_set_hash_ipportnet \
52 ipset
/ip_set_hash_net \
53 ipset
/ip_set_hash_netiface \
54 ipset
/ip_set_hash_netport \
55 ipset
/ip_set_list_set \
59 $(call Build
/Compile
/Default
)
60 $(call Build
/Compile
/Default
,modules
)
63 define Package
/ipset
/install
64 $(INSTALL_DIR
) $(1)/usr
/sbin
65 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/ipset
$(1)/usr
/sbin
/
66 $(INSTALL_DIR
) $(1)/usr
/lib
67 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libipset
*.so
* $(1)/usr
/lib
/
70 define KernelPackage
/ipt-ipset
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
)))
78 $(eval
$(call BuildPackage
,ipset
))
79 $(eval
$(call KernelPackage
,ipt-ipset
))