diff options
author | Vladimir Sorokin <sorokin@altell.ru> | 2010-04-20 15:36:09 +0400 |
---|---|---|
committer | Roman I Khimov <khimov@altell.ru> | 2010-06-09 10:39:09 +0400 |
commit | e4d74a2f940ed1adb4c9afb100b5222bc32d208b (patch) | |
tree | 2e7e0e4033551049377350f7ac9ed1e509ed40ab /recipes/ipset/ipset.inc | |
parent | 803bf45d6d590d0b2586b5b5187c59ea3746cf11 (diff) |
ipset: Initial commit
If you want to
* store multiple IP addresses or port numbers and match against the collection
by iptables at one swoop;
* dynamically update iptables rules against IP addresses or ports without
performance penalty;
* express complex IP address and ports based rulesets with one single iptables
rule and benefit from the speed of IP sets
then ipset may be the proper tool for you.
Signed-off-by: Vladimir Sorokin <sorokin@altell.ru>
Signed-off-by: Roman I Khimov <khimov@altell.ru>
Diffstat (limited to 'recipes/ipset/ipset.inc')
-rw-r--r-- | recipes/ipset/ipset.inc | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/recipes/ipset/ipset.inc b/recipes/ipset/ipset.inc new file mode 100644 index 0000000000..512221d6be --- /dev/null +++ b/recipes/ipset/ipset.inc @@ -0,0 +1,31 @@ +DESCRIPTION = "IP set framework" +SECTION = "kernel/modules" +LICENSE = "GPLv2" +DEPENDS += "virtual/libc" + +inherit module + +PR="r0" + +SRC_URI = " \ + http://ipset.netfilter.org/ipset-${PV}.tar.bz2 \ + file://Makefile.patch \ + " + +PACKAGES += "${PN}-modules" + +FILES_${PN} = "${sbindir} ${libdir}" +FILES_${PN}-doc = "${mandir}" +FILES_${PN}-modules = "${base_libdir}/modules/${KERNEL_VERSION}/extra/ip_set*${KERNEL_OBJECT_SUFFIX} \ + ${base_libdir}/modules/${KERNEL_VERSION}/extra/ipt*${KERNEL_OBJECT_SUFFIX}" + +EXTRA_OEMAKE = "KERNEL_DIR=${KERNEL_SOURCE} MANDIR=${mandir}" + +do_compile () { + oe_runmake binaries + module_do_compile MAKE_TARGETS=modules +} + +do_install_append () { + oe_runmake binaries_install PREFIX=${prefix} DESTDIR=${D} +} |