2017-04-09 22:02:35 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=http://net-tools.sourceforge.net/
|
|
|
|
TERMUX_PKG_DESCRIPTION="Configuration tools for Linux networking"
|
2019-01-21 13:53:58 +01:00
|
|
|
TERMUX_PKG_LICENSE="GPL-2.0"
|
2020-12-20 14:16:34 +01:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2017-04-15 13:16:58 +02:00
|
|
|
TERMUX_PKG_VERSION=1.60.2017.02.21
|
2019-12-30 01:05:41 +01:00
|
|
|
TERMUX_PKG_REVISION=3
|
2020-08-01 08:48:19 +02:00
|
|
|
commit=479bb4a7e11a4084e2935c0a576388f92469225b
|
2017-04-15 13:16:58 +02:00
|
|
|
# We use a mirror to avoid using
|
|
|
|
# https://sourceforge.net/code-snapshots/git/n/ne/net-tools/code.git/net-tools-code-$commit.zip
|
|
|
|
# which does not work all the time (sourceforge caching system):
|
|
|
|
TERMUX_PKG_SRCURL=https://dl.bintray.com/termux/upstream/net-tools-code-${commit}.zip
|
2020-01-13 02:00:07 +01:00
|
|
|
TERMUX_PKG_SHA256=7e9f8e8dcbabed0c8eeb976100496567abae7ac9d92c72cebd1a9d965473e943
|
2017-04-09 22:02:35 +02:00
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
2017-04-09 22:24:24 +02:00
|
|
|
TERMUX_PKG_EXTRA_MAKE_ARGS="BINDIR=$TERMUX_PREFIX/bin SBINDIR=$TERMUX_PREFIX/bin HAVE_HOSTNAME_TOOLS=0"
|
2017-04-09 22:02:35 +02:00
|
|
|
|
2019-02-08 10:37:29 +01:00
|
|
|
termux_step_configure() {
|
2017-04-09 22:02:35 +02:00
|
|
|
CFLAGS="$CFLAGS -D_LINUX_IN6_H -Dindex=strchr -Drindex=strrchr"
|
|
|
|
sed -i "s#/usr#$TERMUX_PREFIX#" $TERMUX_PKG_SRCDIR/man/Makefile
|
|
|
|
yes "" | make config || true
|
|
|
|
}
|
|
|
|
|
2019-02-08 10:37:29 +01:00
|
|
|
termux_step_make_install() {
|
2017-04-09 22:02:35 +02:00
|
|
|
make $TERMUX_PKG_EXTRA_MAKE_ARGS update
|
|
|
|
}
|