Files
Arch-R/packages/network/iptables/package.mk
2019-12-03 17:43:11 +00:00

33 lines
1006 B
Makefile

# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
PKG_NAME="iptables"
PKG_VERSION="1.8.4"
PKG_SHA256="993a3a5490a544c2cbf2ef15cf7e7ed21af1845baf228318d5c36ef8827e157c"
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_DEPENDS_TARGET="toolchain linux libmnl libnftnl"
PKG_LONGDESC="IP packet filter administration."
PKG_TOOLCHAIN="autotools"
PKG_CONFIGURE_OPTS_TARGET="--with-kernel=$(kernel_path)"
post_makeinstall_target() {
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/usr/lib/libreelec
cp $PKG_DIR/scripts/iptables_helper $INSTALL/usr/lib/libreelec
}
post_install() {
enable_service iptables.service
}