summaryrefslogtreecommitdiff
path: root/package/ipset
diff options
context:
space:
mode:
authorwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
committerwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
commit219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch)
treeb9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/ipset
Initial import
Diffstat (limited to 'package/ipset')
-rw-r--r--package/ipset/Config.in9
-rw-r--r--package/ipset/Makefile30
-rw-r--r--package/ipset/ipkg/ipset.control5
-rw-r--r--package/ipset/patches/patch-kernel_ip_set_c12
4 files changed, 56 insertions, 0 deletions
diff --git a/package/ipset/Config.in b/package/ipset/Config.in
new file mode 100644
index 000000000..d6e41c5a0
--- /dev/null
+++ b/package/ipset/Config.in
@@ -0,0 +1,9 @@
+config ADK_PACKAGE_IPSET
+ prompt "ipset............................. Netfilter ip sets administration utility"
+ tristate
+ default n
+ help
+ Netfilter ip sets administration utility
+
+ http://ipset.netfilter.org/
+
diff --git a/package/ipset/Makefile b/package/ipset/Makefile
new file mode 100644
index 000000000..c299bd88a
--- /dev/null
+++ b/package/ipset/Makefile
@@ -0,0 +1,30 @@
+# $Id$
+#-
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include ${TOPDIR}/rules.mk
+
+PKG_NAME:= ipset
+PKG_VERSION:= 2.3.3a
+PKG_RELEASE:= 1
+PKG_MD5SUM:= c7d2f165242edaef5581db0f7d5af520
+MASTER_SITES:= http://ipset.netfilter.org/
+DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
+
+include ${TOPDIR}/mk/package.mk
+
+$(eval $(call PKG_template,IPSET,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+
+XAKE_FLAGS+= KERNEL_DIR=${LINUX_DIR} PREFIX=/usr LD=$(TARGET_CROSS)ld
+BUILD_STYLE= auto
+INSTALL_STYLE= auto
+INSTALL_TARGET= binaries_install
+
+post-install:
+ ${INSTALL_DIR} ${IDIR_IPSET}/usr/sbin
+ ${INSTALL_DIR} ${IDIR_IPSET}/usr/lib/ipset
+ ${INSTALL_BIN} ${WRKINST}/usr/sbin/ipset ${IDIR_IPSET}/usr/sbin
+ ${CP} ${WRKINST}/usr/lib/ipset/*.so ${IDIR_IPSET}/usr/lib/ipset/
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/ipset/ipkg/ipset.control b/package/ipset/ipkg/ipset.control
new file mode 100644
index 000000000..f7f6ae0e6
--- /dev/null
+++ b/package/ipset/ipkg/ipset.control
@@ -0,0 +1,5 @@
+Package: ipset
+Priority: optional
+Section: net
+Description: Netfilter ip sets administration utility
+Depends: kmod-iptables-extra
diff --git a/package/ipset/patches/patch-kernel_ip_set_c b/package/ipset/patches/patch-kernel_ip_set_c
new file mode 100644
index 000000000..bf931398f
--- /dev/null
+++ b/package/ipset/patches/patch-kernel_ip_set_c
@@ -0,0 +1,12 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- ipset-2.3.3a.orig/kernel/ip_set.c 2008-07-16 19:17:55.000000000 +0200
++++ ipset-2.3.3a/kernel/ip_set.c 2008-10-20 16:38:11.000000000 +0200
+@@ -24,7 +24,7 @@
+ #include <linux/errno.h>
+ #include <asm/uaccess.h>
+ #include <asm/bitops.h>
+-#include <asm/semaphore.h>
++#include <linux/semaphore.h>
+ #include <linux/spinlock.h>
+ #include <linux/vmalloc.h>
+