Changeset 5e38a08 in freewrt for package/iptables/Makefile


Ignore:
Timestamp:
Aug 16, 2025, 10:34:52 AM (3 months ago)
Author:
Waldemar Brodkorb <wbx@…>
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)
Message:

iptables: update to latest, need more work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • package/iptables/Makefile

    rbcea6cd r5e38a08  
    1 # $FreeWRT$
    2 #-
    31# This file is part of the FreeWRT project. FreeWRT is copyrighted
    42# material, please see the LICENCE file in the top-level directory
    5 # or at http://www.freewrt.org/licence for details.
    63
    74include $(TOPDIR)/rules.mk
    85
    96PKG_NAME:=              iptables
    10 PKG_VERSION:=           1.3.8
     7PKG_VERSION:=           1.8.11
    118PKG_RELEASE:=           1
    12 PKG_MD5SUM:=            0a9209f928002e5eee9cdff8fef4d4b3
     9PKG_MD5SUM:=            44191ce12055da9790a92429c771ba50
    1310PKG_INIT:=              45
    1411
    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 
     12PKG_SOURCE_URL:=        http://www.netfilter.org/projects/iptables/files
     13PKG_SOURCE:=            $(PKG_NAME)-$(PKG_VERSION).tar.xz
    2114
    2215define IPKG_plugin_template
    2316
    2417$$(IPKG_$(1)):
    25         install -m0755 -d $$(IDIR_$(1))/usr/lib/iptables
    26         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/ ; \
    2821        done
    2922        @[ -z "$(3)" ] || $(MAKE) $(3)
     
    6154
    6255$(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        );
    6363        touch $@
    6464
    6565$(WRKBUILD)/.built:
    66         chmod a+x $(WRKBUILD)/extensions/.*-test*
    6766        $(MAKE) -C $(WRKBUILD) \
    6867                $(TARGET_CONFIGURE_OPTS) \
     
    7069                KERNEL_DIR=$(LINUX_DIR) PREFIX=/usr \
    7170                DESTDIR="$(WRKINST)" \
    72                 all install install-devel
     71                all install
    7372        touch $@
    7473
    7574$(IPKG_IPTABLES):
    7675        $(INSTALL_DIR) $(IDIR_IPTABLES)/usr/sbin
    77         $(INSTALL_DIR) $(IDIR_IPTABLES)/usr/lib/iptables
     76        $(INSTALL_DIR) $(IDIR_IPTABLES)/usr/lib/xtables
    7877        $(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/ \
    8183        )
    8284        $(RSTRIP) $(IDIR_IPTABLES)
     
    100102        $(INSTALL_DIR) $(IDIR_IP6TABLES)/usr/lib/iptables
    101103        $(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/ \
    104106        )
    105107        $(RSTRIP) $(IDIR_IP6TABLES)
    106108        $(IPKG_BUILD) $(IDIR_IP6TABLES) $(PACKAGE_DIR)
    107109
    108 $(STAGING_DIR)/usr/lib/libipq.a: $(WRKBUILD)/.built
    109         $(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-devel
    115 
    116110layer7-install:
    117111        $(INSTALL_DIR) $(IDIR_IPTABLES_MOD_FILTER)/etc/l7-protocols
    118112        $(INSTALL_DATA) files/l7/*.pat $(IDIR_IPTABLES_MOD_FILTER)/etc/l7-protocols/
    119 
    120 install-dev: $(STAGING_DIR)/usr/lib/libipq.a
    121 
    122 uninstall-dev:
    123         rm -rf $(STAGING_DIR)/usr/include/libipq.h
    124         rm -rf $(STAGING_DIR)/usr/lib/libipq.a
    125 
    126 compile-targets: install-dev
    127 clean-targets: uninstall-dev
Note: See TracChangeset for help on using the changeset viewer.