summaryrefslogtreecommitdiff
path: root/packages/iptables/iptables.inc
diff options
context:
space:
mode:
authorMichael Lauer <mickey@vanille-media.de>2008-07-19 12:45:48 +0000
committerMichael Lauer <mickey@vanille-media.de>2008-07-19 12:45:48 +0000
commita967e9db239d0fdcdb13f24e88d6faa98a1eee68 (patch)
treeb531ef5ef10220749117b479f2558c0f4e55a40f /packages/iptables/iptables.inc
parent209683be7cf9b41732cee885d046ea97a7978eb2 (diff)
iptables: add .inc file
Diffstat (limited to 'packages/iptables/iptables.inc')
-rw-r--r--packages/iptables/iptables.inc32
1 files changed, 32 insertions, 0 deletions
diff --git a/packages/iptables/iptables.inc b/packages/iptables/iptables.inc
new file mode 100644
index 0000000000..0f4bacaf14
--- /dev/null
+++ b/packages/iptables/iptables.inc
@@ -0,0 +1,32 @@
+DESCRIPTION = "iptables network filtering tools"
+HOMEPAGE = "http://www.netfilter.org/"
+SECTION = "console/utils"
+LICENSE = "GPL"
+
+SRC_URI = "http://netfilter.org/projects/iptables/files/iptables-${PV}.tar.bz2"
+S = "${WORKDIR}/iptables-${PV}"
+
+PARALLEL_MAKE = ""
+
+export COPT_FLAGS = "${CFLAGS}"
+export KERNEL_DIR = "${STAGING_INCDIR}"
+
+do_compile () {
+ unset CFLAGS
+ oe_runmake BINDIR=${D}${sbindir} LIBDIR=${D}${libdir} MANDIR=${D}${mandir} NO_SHARED_LIBS=1
+}
+
+do_install () {
+ unset CFLAGS
+ oe_runmake BINDIR=${D}${sbindir} LIBDIR=${D}${libdir} MANDIR=${D}${mandir} install NO_SHARED_LIBS=1
+}
+
+PACKAGES =+ "${PN}-utils"
+FILES_${PN}-utils = "${sbindir}/iptables-save ${sbindir}/iptables-restore"
+FILES_${PN}-doc += "${mandir}"
+
+RRECOMMENDS = "\
+ kernel-module-ip-tables \
+ kernel-module-iptable-nat \
+ kernel-module-iptable-filter \
+"