summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rules/iptables.in7
-rw-r--r--rules/libnfnetlink.in15
-rw-r--r--rules/libnfnetlink.make51
3 files changed, 73 insertions, 0 deletions
diff --git a/rules/iptables.in b/rules/iptables.in
index 134a2f268..1d23a4903 100644
--- a/rules/iptables.in
+++ b/rules/iptables.in
@@ -7,6 +7,7 @@ menuconfig IPTABLES
select LIBC_M
select LIBC_DL
select GCCLIBS_GCC_S
+ select LIBNFNETLINK if IPTABLES_LIBNFNETLINK
help
Iptables is used to set up, maintain, and inspect the
tables of IP packet filter rules in the Linux kernel.
@@ -54,4 +55,10 @@ config IPTABLES_INSTALL_IPTABLES_APPLY
existing connection, the user will not be able to answer
affirmatively.
+config IPTABLES_LIBNFNETLINK
+ bool
+ prompt "configure libnfnetlink"
+ help
+ Select if iptables should be build against libnfnetlink
+
endif
diff --git a/rules/libnfnetlink.in b/rules/libnfnetlink.in
new file mode 100644
index 000000000..868413173
--- /dev/null
+++ b/rules/libnfnetlink.in
@@ -0,0 +1,15 @@
+## SECTION=networking
+
+config LIBNFNETLINK
+ tristate
+ prompt "libnfnetlink"
+ help
+ libnfnetlink is the low-level library for netfilter
+ related kernel/userspace communication. It provides a generic
+ messaging infrastructure for in-kernel netfilter subsystems
+ (such as nfnetlink_log) and their respective users and/or
+ management tools in userspace.
+ This library is not meant as a public API for application
+ developers. It is only used by other netfilter.org projects,
+ such as libnetfilter_log,
+
diff --git a/rules/libnfnetlink.make b/rules/libnfnetlink.make
new file mode 100644
index 000000000..bde731686
--- /dev/null
+++ b/rules/libnfnetlink.make
@@ -0,0 +1,51 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2011 by Hans Kortenoeven <hans.kortenoeven@home.nl>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_LIBNFNETLINK) += libnfnetlink
+
+#
+# Paths and names
+#
+LIBNFNETLINK_VERSION := 1.0.0
+LIBNFNETLINK_MD5 := 016fdec8389242615024c529acc1adb8
+LIBNFNETLINK := libnfnetlink-$(LIBNFNETLINK_VERSION)
+LIBNFNETLINK_SUFFIX := tar.bz2
+LIBNFNETLINK_URL := http://ftp.netfilter.org/pub/libnfnetlink/$(LIBNFNETLINK).$(LIBNFNETLINK_SUFFIX)
+LIBNFNETLINK_SOURCE := $(SRCDIR)/$(LIBNFNETLINK).$(LIBNFNETLINK_SUFFIX)
+LIBNFNETLINK_DIR := $(BUILDDIR)/$(LIBNFNETLINK)
+LIBNFNETLINK_LICENSE := GPL2
+
+#
+# autoconf
+#
+LIBNFNETLINK_CONF_TOOL := autoconf
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/libnfnetlink.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, libnfnetlink)
+ @$(call install_fixup, libnfnetlink,PRIORITY,optional)
+ @$(call install_fixup, libnfnetlink,SECTION,base)
+ @$(call install_fixup, libnfnetlink,AUTHOR,"Hans Kortenoeven <hans.kortenoeven@home.nl>")
+ @$(call install_fixup, libnfnetlink,DESCRIPTION,missing)
+
+ @$(call install_lib, libnfnetlink, 0, 0, 0644, libnfnetlink)
+
+ @$(call install_finish, libnfnetlink)
+
+ @$(call touch)
+