summaryrefslogtreecommitdiff
path: root/package/iptables
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-11-23 00:29:07 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-11-23 00:29:07 +0000
commitc2211dc51e98fa27d565c44179c3044723e69253 (patch)
treed97c293836c481a19206daabf6f6dd18c5a1e2d3 /package/iptables
parentd48cc978a7c8c0b6466eec7bf063f78a99e287cb (diff)
downloadmtk-20170518-c2211dc51e98fa27d565c44179c3044723e69253.zip
mtk-20170518-c2211dc51e98fa27d565c44179c3044723e69253.tar.gz
mtk-20170518-c2211dc51e98fa27d565c44179c3044723e69253.tar.bz2
replace lots of manual install commands with INSTALL_* variables
SVN-Revision: 5624
Diffstat (limited to 'package/iptables')
-rw-r--r--package/iptables/Makefile26
1 files changed, 13 insertions, 13 deletions
diff --git a/package/iptables/Makefile b/package/iptables/Makefile
index 5fb069f..76014aa 100644
--- a/package/iptables/Makefile
+++ b/package/iptables/Makefile
@@ -191,30 +191,30 @@ define Build/UninstallDev
endef
define Package/iptables/install
- install -d -m0755 $(1)/etc/config
- install -m0644 ./files/firewall.config $(1)/etc/config/firewall
- install -d -m0755 $(1)/etc/init.d
- install -m0755 ./files/firewall.init $(1)/etc/init.d/firewall
- install -m0755 ./files/firewall.user $(1)/etc/
- install -d -m0755 $(1)/usr/lib
- install -m0644 ./files/firewall.awk $(1)/usr/lib
- install -d -m0755 $(1)/usr/sbin
+ $(INSTALL_DIR) $(1)/etc/config
+ $(INSTALL_DATA) ./files/firewall.config $(1)/etc/config/firewall
+ $(INSTALL_DIR) $(1)/etc/init.d
+ $(INSTALL_BIN) ./files/firewall.init $(1)/etc/init.d/firewall
+ $(INSTALL_BIN) ./files/firewall.user $(1)/etc/
+ $(INSTALL_DIR) $(1)/usr/lib
+ $(INSTALL_DATA) ./files/firewall.awk $(1)/usr/lib
+ $(INSTALL_DIR) $(1)/usr/sbin
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/iptables $(1)/usr/sbin/
- install -d -m0755 $(1)/usr/lib/iptables
+ $(INSTALL_DIR) $(1)/usr/lib/iptables
(cd $(PKG_INSTALL_DIR)/usr/lib/iptables ; \
$(CP) $(patsubst %,lib%.so,$(IPT_BUILTIN:xt_%=ipt_%)) $(1)/usr/lib/iptables/ \
)
endef
define Package/iptables-utils/install
- install -d -m0755 $(1)/usr/sbin
+ $(INSTALL_DIR) $(1)/usr/sbin
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/iptables-{save,restore} $(1)/usr/sbin/
endef
define Package/ip6tables/install
- install -d -m0755 $(1)/usr/sbin
+ $(INSTALL_DIR) $(1)/usr/sbin
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/ip6tables $(1)/usr/sbin/
- install -d -m0755 $(1)/usr/lib/iptables
+ $(INSTALL_DIR) $(1)/usr/lib/iptables
(cd $(PKG_INSTALL_DIR)/usr/lib/iptables ; \
$(CP) libip6t_*.so $(1)/usr/lib/iptables/ \
)
@@ -222,7 +222,7 @@ endef
define BuildPlugin
define Package/$(1)/install
- install -m0755 -d $$(1)/usr/lib/iptables
+ $(INSTALL_DIR) $$(1)/usr/lib/iptables
for m in $$(patsubst xt_%,ipt_%,$(2)); do \
$(CP) $(PKG_INSTALL_DIR)/usr/lib/iptables/lib$$$$$$$${m}.so $$(1)/usr/lib/iptables/ ; \
done