Changeset 5e38a08 in freewrt for package/iptables/Makefile
- Timestamp:
- Aug 16, 2025, 10:34:52 AM (3 months ago)
- Branches:
- freewrt_2_0
- Children:
- 37caad0e
- Parents:
- bcea6cd
- git-author:
- Waldemar Brodkorb <wbx@…> (08/16/25 08:41:03)
- git-committer:
- Waldemar Brodkorb <wbx@…> (08/16/25 10:34:52)
- File:
-
- 1 edited
-
package/iptables/Makefile (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
package/iptables/Makefile
rbcea6cd r5e38a08 1 # $FreeWRT$2 #-3 1 # This file is part of the FreeWRT project. FreeWRT is copyrighted 4 2 # material, please see the LICENCE file in the top-level directory 5 # or at http://www.freewrt.org/licence for details.6 3 7 4 include $(TOPDIR)/rules.mk 8 5 9 6 PKG_NAME:= iptables 10 PKG_VERSION:= 1. 3.87 PKG_VERSION:= 1.8.11 11 8 PKG_RELEASE:= 1 12 PKG_MD5SUM:= 0a9209f928002e5eee9cdff8fef4d4b39 PKG_MD5SUM:= 44191ce12055da9790a92429c771ba50 13 10 PKG_INIT:= 45 14 11 15 PKG_SOURCE_URL:= http://www.netfilter.org/projects/iptables/files \ 16 ftp://ftp.be.netfilter.org/pub/iptables \ 17 ftp://ftp.de.netfilter.org/pub/iptables \ 18 ftp://ftp.no.netfilter.org/pub/iptables 19 PKG_SOURCE:= $(PKG_NAME)-$(PKG_VERSION).tar.bz2 20 12 PKG_SOURCE_URL:= http://www.netfilter.org/projects/iptables/files 13 PKG_SOURCE:= $(PKG_NAME)-$(PKG_VERSION).tar.xz 21 14 22 15 define IPKG_plugin_template 23 16 24 17 $$(IPKG_$(1)): 25 install -m0755 -d $$(IDIR_$(1))/usr/lib/ iptables26 for m in $ $(patsubst xt_%,ipt_%,$(2)); do \27 $(INSTALL_DATA) $(WRKINST)/usr/lib/ iptables/lib$$$${m}.so $$(IDIR_$(1))/usr/lib/iptables/ ; \18 install -m0755 -d $$(IDIR_$(1))/usr/lib/xtables 19 for m in $(2); do \ 20 $(INSTALL_DATA) $(WRKINST)/usr/lib/xtables/lib$$$${m}.so $$(IDIR_$(1))/usr/lib/xtables/ ; \ 28 21 done 29 22 @[ -z "$(3)" ] || $(MAKE) $(3) … … 61 54 62 55 $(WRKBUILD)/.configured: 56 (PATH="$(TARGET_PATH)"; cd $(WRKBUILD); ./configure \ 57 --prefix=/usr \ 58 --target=$(GNU_TARGET_NAME) \ 59 --host=$(GNU_TARGET_NAME) \ 60 --build=$(GNU_HOST_NAME) \ 61 --disable-nftables \ 62 ); 63 63 touch $@ 64 64 65 65 $(WRKBUILD)/.built: 66 chmod a+x $(WRKBUILD)/extensions/.*-test*67 66 $(MAKE) -C $(WRKBUILD) \ 68 67 $(TARGET_CONFIGURE_OPTS) \ … … 70 69 KERNEL_DIR=$(LINUX_DIR) PREFIX=/usr \ 71 70 DESTDIR="$(WRKINST)" \ 72 all install install-devel71 all install 73 72 touch $@ 74 73 75 74 $(IPKG_IPTABLES): 76 75 $(INSTALL_DIR) $(IDIR_IPTABLES)/usr/sbin 77 $(INSTALL_DIR) $(IDIR_IPTABLES)/usr/lib/ iptables76 $(INSTALL_DIR) $(IDIR_IPTABLES)/usr/lib/xtables 78 77 $(INSTALL_BIN) $(WRKINST)/usr/sbin/iptables $(IDIR_IPTABLES)/usr/sbin/ 79 (cd $(WRKINST)/usr/lib/iptables ; \ 80 $(INSTALL_DATA) $(patsubst %,lib%.so,$(IPT_BUILTIN:xt_%=ipt_%)) $(IDIR_IPTABLES)/usr/lib/iptables/ \ 78 $(CP) $(WRKINST)/usr/lib/libxtables*.so* $(IDIR_IPTABLES)/usr/lib/ 79 $(CP) $(WRKINST)/usr/lib/libip4tc.so* $(IDIR_IPTABLES)/usr/lib/ 80 $(CP) $(WRKINST)/usr/lib/libip6tc.so* $(IDIR_IPTABLES)/usr/lib/ 81 (cd $(WRKINST)/usr/lib/xtables ; \ 82 $(INSTALL_DATA) libxt_standard.so libxt_tcp.so libxt_udp.so $(IDIR_IPTABLES)/usr/lib/xtables/ \ 81 83 ) 82 84 $(RSTRIP) $(IDIR_IPTABLES) … … 100 102 $(INSTALL_DIR) $(IDIR_IP6TABLES)/usr/lib/iptables 101 103 $(INSTALL_BIN) $(WRKINST)/usr/sbin/ip6tables $(IDIR_IP6TABLES)/usr/sbin/ 102 (cd $(WRKINST)/usr/lib/ iptables ; \103 $(INSTALL_DATA) libip6t_*.so $(IDIR_IP6TABLES)/usr/lib/ iptables/ \104 (cd $(WRKINST)/usr/lib/xtables ; \ 105 $(INSTALL_DATA) libip6t_*.so $(IDIR_IP6TABLES)/usr/lib/xtables/ \ 104 106 ) 105 107 $(RSTRIP) $(IDIR_IP6TABLES) 106 108 $(IPKG_BUILD) $(IDIR_IP6TABLES) $(PACKAGE_DIR) 107 109 108 $(STAGING_DIR)/usr/lib/libipq.a: $(WRKBUILD)/.built109 $(MAKE) -C $(WRKBUILD) \110 $(TARGET_CONFIGURE_OPTS) \111 CC=$(TARGET_CC) COPT_FLAGS="$(TARGET_CFLAGS)" \112 KERNEL_DIR=$(LINUX_DIR) PREFIX=/usr \113 DESTDIR="$(STAGING_DIR)" \114 install install-devel115 116 110 layer7-install: 117 111 $(INSTALL_DIR) $(IDIR_IPTABLES_MOD_FILTER)/etc/l7-protocols 118 112 $(INSTALL_DATA) files/l7/*.pat $(IDIR_IPTABLES_MOD_FILTER)/etc/l7-protocols/ 119 120 install-dev: $(STAGING_DIR)/usr/lib/libipq.a121 122 uninstall-dev:123 rm -rf $(STAGING_DIR)/usr/include/libipq.h124 rm -rf $(STAGING_DIR)/usr/lib/libipq.a125 126 compile-targets: install-dev127 clean-targets: uninstall-dev
Note:
See TracChangeset
for help on using the changeset viewer.
