1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-26 01:34:40 +02:00

map xt_ to ipt_ for iptables modules

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@3586 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2006-04-02 21:59:18 +00:00
parent 167bb923af
commit e5b8ab02ef

View File

@ -21,7 +21,7 @@ define IPKG_plugin_template
$$(IPKG_$(1)): $$(IPKG_$(1)):
install -m0755 -d $$(IDIR_$(1))/usr/lib/iptables install -m0755 -d $$(IDIR_$(1))/usr/lib/iptables
for m in $(2); do \ for m in $$(patsubst xt_%,ipt_%,$(2)); do \
$(CP) $(PKG_INSTALL_DIR)/usr/lib/iptables/lib$$$${m}.so $$(IDIR_$(1))/usr/lib/iptables/ ; \ $(CP) $(PKG_INSTALL_DIR)/usr/lib/iptables/lib$$$${m}.so $$(IDIR_$(1))/usr/lib/iptables/ ; \
done done
@[ -z "$(3)" ] || $(MAKE) $(3) @[ -z "$(3)" ] || $(MAKE) $(3)
@ -76,7 +76,7 @@ $(IPKG_IPTABLES):
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/iptables $(IDIR_IPTABLES)/usr/sbin/ $(CP) $(PKG_INSTALL_DIR)/usr/sbin/iptables $(IDIR_IPTABLES)/usr/sbin/
install -d -m0755 $(IDIR_IPTABLES)/usr/lib/iptables install -d -m0755 $(IDIR_IPTABLES)/usr/lib/iptables
(cd $(PKG_INSTALL_DIR)/usr/lib/iptables ; \ (cd $(PKG_INSTALL_DIR)/usr/lib/iptables ; \
$(CP) $(patsubst %,lib%.so,$(IPT_BUILTIN)) $(IDIR_IPTABLES)/usr/lib/iptables/ \ $(CP) $(patsubst %,lib%.so,$(IPT_BUILTIN:xt_%=ipt_%)) $(IDIR_IPTABLES)/usr/lib/iptables/ \
) )
$(RSTRIP) $(IDIR_IPTABLES) $(RSTRIP) $(IDIR_IPTABLES)
$(IPKG_BUILD) $(IDIR_IPTABLES) $(PACKAGE_DIR) $(IPKG_BUILD) $(IDIR_IPTABLES) $(PACKAGE_DIR)