[packages] ipset: update to v6.11 (#10378)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@30895 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
e803c0e4e1
commit
fb615e6ace
@ -1,5 +1,5 @@
|
|||||||
#
|
|
||||||
# Copyright (C) 2009 OpenWrt.org
|
# Copyright (C) 2009-2012 OpenWrt.org
|
||||||
#
|
#
|
||||||
# This is free software, licensed under the GNU General Public License v2.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
@ -9,12 +9,15 @@ include $(TOPDIR)/rules.mk
|
|||||||
include $(INCLUDE_DIR)/kernel.mk
|
include $(INCLUDE_DIR)/kernel.mk
|
||||||
|
|
||||||
PKG_NAME:=ipset
|
PKG_NAME:=ipset
|
||||||
PKG_VERSION:=4.2
|
PKG_VERSION:=6.11
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
||||||
PKG_SOURCE_URL:=http://ipset.netfilter.org
|
PKG_SOURCE_URL:=http://ipset.netfilter.org
|
||||||
PKG_MD5SUM:=9060d549a18c1c0794fa47a71343d627
|
PKG_MD5SUM:=bfcc92e30a0fcf10ae6e7c4affa03c84
|
||||||
|
|
||||||
|
PKG_FIXUP:=autoreconf
|
||||||
|
PKG_INSTALL:=1
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
@ -26,58 +29,50 @@ define Package/ipset
|
|||||||
$(call Package/ipset/Default)
|
$(call Package/ipset/Default)
|
||||||
SECTION:=net
|
SECTION:=net
|
||||||
CATEGORY:=Network
|
CATEGORY:=Network
|
||||||
DEPENDS+= +iptables-mod-ipset +kmod-ipt-ipset
|
DEPENDS+= +iptables-mod-ipset +kmod-ipt-ipset +libmnl
|
||||||
TITLE:=IPset administration utility
|
TITLE:=IPset administration utility
|
||||||
URL:=http://ipset.netfilter.org/
|
URL:=http://ipset.netfilter.org/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/kernel-defaults.mk
|
include $(INCLUDE_DIR)/kernel-defaults.mk
|
||||||
|
|
||||||
IPSET_MAKEOPTS:= -C $(PKG_BUILD_DIR) \
|
CONFIGURE_ARGS += \
|
||||||
$(TARGET_CONFIGURE_OPTS) \
|
--with-kbuild="$(LINUX_DIR)"
|
||||||
COPT_FLAGS="$(TARGET_CFLAGS)" \
|
|
||||||
LDFLAGS="-rdynamic" \
|
|
||||||
NO_EXTRA_WARN_FLAGS=yes \
|
|
||||||
KERNEL_DIR="$(LINUX_DIR)" \
|
|
||||||
PREFIX=/usr \
|
|
||||||
|
|
||||||
IPSET_MODULES:= \
|
IPSET_MODULES:= \
|
||||||
ip_set \
|
ipset/ip_set \
|
||||||
ip_set_iphash \
|
ipset/ip_set_bitmap_ip \
|
||||||
ip_set_ipmap \
|
ipset/ip_set_bitmap_ipmac \
|
||||||
ip_set_ipporthash \
|
ipset/ip_set_bitmap_port \
|
||||||
ip_set_ipportiphash \
|
ipset/ip_set_hash_ip \
|
||||||
ip_set_ipportnethash \
|
ipset/ip_set_hash_ipport \
|
||||||
ip_set_iptree \
|
ipset/ip_set_hash_ipportip \
|
||||||
ip_set_iptreemap \
|
ipset/ip_set_hash_ipportnet \
|
||||||
ip_set_macipmap \
|
ipset/ip_set_hash_net \
|
||||||
ip_set_nethash \
|
ipset/ip_set_hash_netiface \
|
||||||
ip_set_portmap \
|
ipset/ip_set_hash_netport \
|
||||||
ip_set_setlist \
|
ipset/ip_set_list_set \
|
||||||
ipt_set \
|
xt_set \
|
||||||
ipt_SET \
|
|
||||||
|
|
||||||
define Build/Compile
|
define Build/Compile
|
||||||
mkdir -p $(PKG_INSTALL_DIR)
|
$(call Build/Compile/Default)
|
||||||
$(MAKE) $(IPSET_MAKEOPTS) binaries
|
$(call Build/Compile/Default,modules)
|
||||||
$(MAKE) $(KERNEL_MAKEOPTS) M="$(PKG_BUILD_DIR)/kernel" IP_NF_SET_MAX="256" IP_NF_SET_HASHSIZE="1024" modules
|
|
||||||
$(MAKE) $(IPSET_MAKEOPTS) DESTDIR="$(PKG_INSTALL_DIR)" binaries_install
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/ipset/install
|
define Package/ipset/install
|
||||||
$(INSTALL_DIR) $(1)/usr/sbin
|
$(INSTALL_DIR) $(1)/usr/sbin
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/ipset $(1)/usr/sbin/
|
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/ipset $(1)/usr/sbin/
|
||||||
$(INSTALL_DIR) $(1)/usr/lib/ipset
|
$(INSTALL_DIR) $(1)/usr/lib
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/ipset/libipset*.so $(1)/usr/lib/ipset/
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libipset*.so* $(1)/usr/lib/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define KernelPackage/ipt-ipset
|
define KernelPackage/ipt-ipset
|
||||||
$(call Package/ipset/Default)
|
$(call Package/ipset/Default)
|
||||||
SUBMENU:=Netfilter Extensions
|
SUBMENU:=Netfilter Extensions
|
||||||
TITLE:=IPset netfilter modules
|
TITLE:=IPset netfilter modules
|
||||||
DEPENDS+= kmod-ipt-core
|
DEPENDS+= kmod-ipt-core +kmod-nfnetlink
|
||||||
FILES:=$(foreach mod,$(IPSET_MODULES),$(PKG_BUILD_DIR)/kernel/$(mod).ko)
|
FILES:=$(foreach mod,$(IPSET_MODULES),$(PKG_BUILD_DIR)/kernel/net/netfilter/$(mod).ko)
|
||||||
AUTOLOAD:=$(call AutoLoad,46,$(IPSET_MODULES))
|
AUTOLOAD:=$(call AutoLoad,46,$(notdir $(IPSET_MODULES)))
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,ipset))
|
$(eval $(call BuildPackage,ipset))
|
||||||
|
@ -1,62 +0,0 @@
|
|||||||
--- a/kernel/ipt_set.c
|
|
||||||
+++ b/kernel/ipt_set.c
|
|
||||||
@@ -83,10 +83,14 @@ match(const struct sk_buff *skb,
|
|
||||||
int offset,
|
|
||||||
unsigned int protoff,
|
|
||||||
bool *hotdrop)
|
|
||||||
-#else /* LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,28) */
|
|
||||||
+#elif LINUX_VERSION_CODE < KERNEL_VERSION(2,6,35)
|
|
||||||
static bool
|
|
||||||
match(const struct sk_buff *skb,
|
|
||||||
const struct xt_match_param *par)
|
|
||||||
+#else /* LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35) */
|
|
||||||
+static bool
|
|
||||||
+match(const struct sk_buff *skb,
|
|
||||||
+ struct xt_action_param *par)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,28)
|
|
||||||
@@ -136,9 +140,12 @@ checkentry(const char *tablename,
|
|
||||||
const struct xt_match *match,
|
|
||||||
void *matchinfo,
|
|
||||||
unsigned int hook_mask)
|
|
||||||
-#else /* LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,28) */
|
|
||||||
+#elif LINUX_VERSION_CODE < KERNEL_VERSION(2,6,35)
|
|
||||||
static bool
|
|
||||||
checkentry(const struct xt_mtchk_param *par)
|
|
||||||
+#else /* LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35) */
|
|
||||||
+static int
|
|
||||||
+checkentry(const struct xt_mtchk_param *par)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,28)
|
|
||||||
--- a/kernel/ipt_SET.c
|
|
||||||
+++ b/kernel/ipt_SET.c
|
|
||||||
@@ -64,9 +64,12 @@ target(struct sk_buff *skb,
|
|
||||||
unsigned int hooknum,
|
|
||||||
const struct xt_target *target,
|
|
||||||
const void *targinfo)
|
|
||||||
-#else /* LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,28) */
|
|
||||||
+#elif LINUX_VERSION_CODE < KERNEL_VERSION(2,6,35)
|
|
||||||
target(struct sk_buff *skb,
|
|
||||||
const struct xt_target_param *par)
|
|
||||||
+#else /* LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35) */
|
|
||||||
+target(struct sk_buff *skb,
|
|
||||||
+ const struct xt_action_param *par)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,28)
|
|
||||||
@@ -127,9 +130,12 @@ checkentry(const char *tablename,
|
|
||||||
const struct xt_target *target,
|
|
||||||
void *targinfo,
|
|
||||||
unsigned int hook_mask)
|
|
||||||
-#else /* LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,28) */
|
|
||||||
+#elif LINUX_VERSION_CODE < KERNEL_VERSION(2,6,35)
|
|
||||||
static bool
|
|
||||||
checkentry(const struct xt_tgchk_param *par)
|
|
||||||
+#else /* LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35) */
|
|
||||||
+static int
|
|
||||||
+checkentry(const struct xt_tgchk_param *par)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,28)
|
|
Loading…
x
Reference in New Issue
Block a user