mirror of
https://github.com/termux/termux-packages.git
synced 2024-11-27 06:18:57 +00:00
22 lines
855 B
Bash
22 lines
855 B
Bash
TERMUX_PKG_HOMEPAGE=https://www.netfilter.org/projects/iptables
|
|
TERMUX_PKG_DESCRIPTION="Program used to configure the Linux 2.4 and later kernel packet filtering ruleset"
|
|
TERMUX_PKG_LICENSE="GPL-2.0"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION="1.8.10"
|
|
TERMUX_PKG_SRCURL=https://www.netfilter.org/projects/iptables/files/iptables-${TERMUX_PKG_VERSION}.tar.xz
|
|
TERMUX_PKG_SHA256=5cc255c189356e317d070755ce9371eb63a1b783c34498fb8c30264f3cc59c9c
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
TERMUX_PKG_DEPENDS="libmnl, libnftnl, libandroid-spawn"
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
--with-xt-lock-name=$TERMUX_PREFIX/var/run/xtables.lock
|
|
"
|
|
|
|
termux_step_post_get_source() {
|
|
cp $TERMUX_PKG_BUILDER_DIR/syslog-names.h ./extensions/
|
|
}
|
|
|
|
termux_step_pre_configure() {
|
|
export CFLAGS+=" -Dindex=strchr -Drindex=strrchr -D__STDC_FORMAT_MACROS=1"
|
|
}
|