summaryrefslogtreecommitdiff
path: root/package/iptables
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-08-11 21:26:44 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-08-11 21:26:44 +0000
commit09bc84f55bfb5fa17f3c0fdda36054f8fe4d4962 (patch)
tree1afadfc035f861ba9e203f900b714c65641e3aeb /package/iptables
parent82a05d1a19136748ef8683db1e3056db55a1f641 (diff)
downloadmtk-20170518-09bc84f55bfb5fa17f3c0fdda36054f8fe4d4962.zip
mtk-20170518-09bc84f55bfb5fa17f3c0fdda36054f8fe4d4962.tar.gz
mtk-20170518-09bc84f55bfb5fa17f3c0fdda36054f8fe4d4962.tar.bz2
iptables: drop iptables-utils and ip6tables-utils, ship needed symlinks in iptables and ip6tables packages (#9691)
SVN-Revision: 27961
Diffstat (limited to 'package/iptables')
-rw-r--r--package/iptables/Makefile34
1 files changed, 5 insertions, 29 deletions
diff --git a/package/iptables/Makefile b/package/iptables/Makefile
index 1286062..67dedca 100644
--- a/package/iptables/Makefile
+++ b/package/iptables/Makefile
@@ -10,7 +10,7 @@ include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=iptables
PKG_VERSION:=1.4.10
-PKG_RELEASE:=3
+PKG_RELEASE:=4
PKG_MD5SUM:=f382fe693f0b59d87bd47bea65eca198
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
@@ -332,11 +332,6 @@ U32 iptables extensions.
endef
-define Package/iptables-utils
-$(call Package/iptables/Module, )
- TITLE:=iptables save and restore utilities
-endef
-
define Package/ip6tables
$(call Package/iptables/Default)
DEPENDS:=+kmod-ip6tables +libip6tc +libxtables
@@ -345,13 +340,6 @@ $(call Package/iptables/Default)
MENU:=1
endef
-define Package/ip6tables-utils
-$(call Package/iptables/Default)
- DEPENDS:=ip6tables
- CATEGORY:=IPv6
- TITLE:=ip6tables save and restore utilities
-endef
-
define Package/libiptc
$(call Package/iptables/Default)
SECTION:=libs
@@ -438,6 +426,8 @@ endef
define Package/iptables/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/iptables $(1)/usr/sbin/
+ $(LN) iptables $(1)/usr/sbin/iptables-save
+ $(LN) iptables $(1)/usr/sbin/iptables-restore
$(INSTALL_DIR) $(1)/usr/lib/iptables
(cd $(PKG_INSTALL_DIR)/usr/lib/iptables ; \
for m in $(patsubst xt_%,ipt_%,$(IPT_BUILTIN)) $(patsubst ipt_%,xt_%,$(IPT_BUILTIN)); do \
@@ -448,29 +438,17 @@ define Package/iptables/install
)
endef
-define Package/iptables-utils/install
- $(INSTALL_DIR) $(1)/usr/sbin
- $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/iptables-multi $(1)/usr/sbin/
- $(LN) iptables-multi $(1)/usr/sbin/iptables-save
- $(LN) iptables-multi $(1)/usr/sbin/iptables-restore
-endef
-
define Package/ip6tables/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/ip6tables $(1)/usr/sbin/
+ $(LN) ip6tables $(1)/usr/sbin/ip6tables-save
+ $(LN) ip6tables $(1)/usr/sbin/ip6tables-restore
$(INSTALL_DIR) $(1)/usr/lib/iptables
(cd $(PKG_INSTALL_DIR)/usr/lib/iptables ; \
$(CP) libip6t_*.so $(1)/usr/lib/iptables/ \
)
endef
-define Package/ip6tables-utils/install
- $(INSTALL_DIR) $(1)/usr/sbin
- $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/ip6tables-multi $(1)/usr/sbin/
- $(LN) ip6tables-multi $(1)/usr/sbin/ip6tables-save
- $(LN) ip6tables-multi $(1)/usr/sbin/ip6tables-restore
-endef
-
define Package/libiptc/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libiptc.so* $(1)/usr/lib/
@@ -516,7 +494,6 @@ L7_INSTALL:=\
$(eval $(call BuildPackage,iptables))
-$(eval $(call BuildPackage,iptables-utils))
$(eval $(call BuildPlugin,iptables-mod-conntrack,$(IPT_CONNTRACK-m)))
$(eval $(call BuildPlugin,iptables-mod-conntrack-extra,$(IPT_CONNTRACK_EXTRA-m)))
$(eval $(call BuildPlugin,iptables-mod-extra,$(IPT_EXTRA-m)))
@@ -534,7 +511,6 @@ $(eval $(call BuildPlugin,iptables-mod-tproxy,$(IPT_TPROXY-m)))
$(eval $(call BuildPlugin,iptables-mod-tee,$(IPT_TEE-m)))
$(eval $(call BuildPlugin,iptables-mod-u32,$(IPT_U32-m)))
$(eval $(call BuildPackage,ip6tables))
-$(eval $(call BuildPackage,ip6tables-utils))
$(eval $(call BuildPackage,libiptc))
$(eval $(call BuildPackage,libip4tc))
$(eval $(call BuildPackage,libip6tc))