summaryrefslogtreecommitdiffstats
path: root/rules/iptables.make
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2010-01-12 12:03:12 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2010-04-06 19:13:17 +0200
commitff8425daf601be113c3dc52c15dc89449b028c35 (patch)
treec2e790bcbe19dbcfd3a3eb214d80177f0f2a5507 /rules/iptables.make
parentbefe8aaf684872a3e1d6f4aceae51c28cdfc2591 (diff)
downloadptxdist-ff8425daf601be113c3dc52c15dc89449b028c35.tar.gz
ptxdist-ff8425daf601be113c3dc52c15dc89449b028c35.tar.xz
[iptables] install iptables-apply to pkgdir
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/iptables.make')
-rw-r--r--rules/iptables.make17
1 files changed, 14 insertions, 3 deletions
diff --git a/rules/iptables.make b/rules/iptables.make
index b9789c2db..c47d0077c 100644
--- a/rules/iptables.make
+++ b/rules/iptables.make
@@ -51,6 +51,17 @@ IPTABLES_AUTOCONF := \
--with-xtlibdir=/usr/lib
# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/iptables.install:
+ @$(call targetinfo)
+ @$(call install, IPTABLES)
+ install $(IPTABLES_DIR)/iptables-apply $(IPTABLES_PKGDIR)/usr/sbin
+ @$(touch)
+
+
+# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
@@ -99,7 +110,7 @@ endif
# install the IPv6 relevant shared feature libraries
ifdef PTXCONF_IPTABLES_INSTALL_IPV6_TOOLS
- @cd $(IPTABLES_DIR)/extensions && \
+ @cd $(IPTABLES_PKGDIR)/usr/lib && \
for file in libip6t_*.so; do \
$(call install_copy, iptables, 0, 0, 0644, -, \
/usr/lib/$$file); \
@@ -130,7 +141,7 @@ endif
# install all shared feature libraries to get full runtime support
ifdef PTXCONF_IPTABLES_INSTALL_IPV4_TOOLS
- @cd $(IPTABLES_DIR)/extensions && \
+ @cd $(IPTABLES_PKGDIR)/usr/lib && \
for file in libipt_*.so libxt_*.so; do \
$(call install_copy, iptables, 0, 0, 0644, -,\
/usr/lib/$$file); \
@@ -142,7 +153,7 @@ ifdef PTXCONF_IPTABLES_INSTALL_IPTABLES_XML
endif
ifdef PTXCONF_IPTABLES_INSTALL_IPTABLES_APPLY
- @$(call install_copy, iptables, 0, 0, 0755, $(IPTABLES_DIR)/iptables-apply, /usr/sbin/iptables-apply)
+ @$(call install_copy, iptables, 0, 0, 0755, -, /usr/sbin/iptables-apply)
endif
@$(call install_finish, iptables)