Different versions of iptables for different kernel revisions.

This commit is contained in:
fewtarius 2022-07-03 12:38:57 -04:00
parent 0735f65f24
commit 99639f168e
No known key found for this signature in database
GPG key ID: F4AE55305D1B8C1A

View file

@ -4,28 +4,35 @@
# Copyright (C) 2018-present Team CoreELEC (https://coreelec.org)
PKG_NAME="iptables"
PKG_VERSION="1.8.3"
PKG_SHA256="a23cac034181206b4545f4e7e730e76e08b5f3dd78771ba9645a6756de9cdd80"
PKG_LICENSE="GPL"
PKG_SITE="http://www.netfilter.org/"
PKG_URL="http://www.netfilter.org/projects/iptables/files/$PKG_NAME-$PKG_VERSION.tar.bz2"
PKG_URL="http://www.netfilter.org/projects/iptables/files/${PKG_NAME}-${PKG_VERSION}.tar.bz2"
PKG_DEPENDS_TARGET="toolchain linux libmnl libnftnl"
PKG_LONGDESC="IP packet filter administration."
PKG_TOOLCHAIN="autotools"
case "${TARGET_ARCH}" in
arm|aarch64)
PKG_VERSION="1.8.3"
;;
*)
PKG_VERSION="1.8.8"
;;
esac
PKG_CONFIGURE_OPTS_TARGET="--with-kernel=$(kernel_path)
CPPFLAGS=-I${SYSROOT_PREFIX}/usr/include"
post_makeinstall_target() {
mkdir -p $INSTALL/usr/config/iptables/
cp -PR $PKG_DIR/config/README $INSTALL/usr/config/iptables/
mkdir -p ${INSTALL}/usr/config/iptables/
cp -PR ${PKG_DIR}/config/README ${INSTALL}/usr/config/iptables/
mkdir -p $INSTALL/etc/iptables/
cp -PR $PKG_DIR/config/* $INSTALL/etc/iptables/
mkdir -p ${INSTALL}/etc/iptables/
cp -PR ${PKG_DIR}/config/* ${INSTALL}/etc/iptables/
mkdir -p $INSTALL/usr/lib/coreelec
cp $PKG_DIR/scripts/iptables_helper $INSTALL/usr/lib/coreelec
mkdir -p ${INSTALL}/usr/lib/coreelec
cp ${PKG_DIR}/scripts/iptables_helper ${INSTALL}/usr/lib/coreelec
}
post_install() {