Signed-off-by: Bernhard Walle <bernh...@bwalle.de>
---
 rules/iptables.in   |    7 +++++++
 rules/iptables.make |    6 +++++-
 2 Dateien geändert, 12 Zeilen hinzugefügt(+), 1 Zeile entfernt(-)

diff --git a/rules/iptables.in b/rules/iptables.in
index b7bc478..134a2f2 100644
--- a/rules/iptables.in
+++ b/rules/iptables.in
@@ -24,6 +24,13 @@ config IPTABLES_IPV4
        bool
        prompt "IPv4 support"
 
+config IPTABLES_LIBIPQ
+       bool
+       prompt "Enable libipq"
+       help
+         Builds and installs libipq (the iptables userspace packet
+         queuing library).
+
 config IPTABLES_INSTALL_TOOLS
        bool "install executables"
        help
diff --git a/rules/iptables.make b/rules/iptables.make
index 4f4ba7a..9030703 100644
--- a/rules/iptables.make
+++ b/rules/iptables.make
@@ -53,7 +53,7 @@ IPTABLES_AUTOCONF := \
        --enable-devel \
        --$(call ptx/endis, PTXCONF_IPTABLES_IPV4)-ipv4 \
        --$(call ptx/endis, PTXCONF_IPTABLES_IPV6)-ipv6 \
-       --disable-libipq
+       --$(call ptx/endis, PTXCONF_IPTABLES_LIBIPQ)-libipq
 
 # ----------------------------------------------------------------------------
 # Install
@@ -83,6 +83,10 @@ $(STATEDIR)/iptables.targetinstall:
        @$(call install_lib, iptables, 0, 0, 0644, libiptc)
        @$(call install_lib, iptables, 0, 0, 0644, libxtables)
 
+ifdef PTXCONF_IPTABLES_LIBIPQ
+       @$(call install_lib, iptables, 0, 0, 0644, libipq)
+endif
+
        @cd $(IPTABLES_PKGDIR)/usr/lib && \
                for file in libxt_*.so; do \
                        $(call install_copy, iptables, 0, 0, 0644, -,\
-- 
1.7.10.2


-- 
ptxdist mailing list
ptxdist@pengutronix.de

Reply via email to