2015-11-19 23:53:32 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://github.com/iputils/iputils
|
|
|
|
TERMUX_PKG_DESCRIPTION="Tool to trace the network path to a remote host"
|
2017-01-30 01:20:49 +01:00
|
|
|
TERMUX_PKG_VERSION=20161105
|
2018-04-02 00:23:07 +02:00
|
|
|
TERMUX_PKG_REVISION=1
|
2015-11-19 23:53:32 +01:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/iputils/iputils/archive/s${TERMUX_PKG_VERSION}.tar.gz
|
2017-01-30 01:20:49 +01:00
|
|
|
TERMUX_PKG_SHA256=f813092f03d17294fd23544b129b95cdb87fe19f7970a51908a6b88509acad8a
|
2015-11-19 23:53:32 +01:00
|
|
|
TERMUX_PKG_BUILD_IN_SRC=yes
|
|
|
|
TERMUX_PKG_DEPENDS="libidn"
|
|
|
|
|
|
|
|
termux_step_make () {
|
2016-08-15 00:30:33 +02:00
|
|
|
return
|
2015-11-19 23:53:32 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_make_install () {
|
|
|
|
$CC $CFLAGS $LDFLAGS -lidn -o $TERMUX_PREFIX/bin/tracepath tracepath.c
|
|
|
|
local MANDIR=$TERMUX_PREFIX/share/man/man8
|
|
|
|
mkdir -p $MANDIR
|
|
|
|
cp $TERMUX_PKG_BUILDER_DIR/tracepath.8 $MANDIR/
|
2017-01-30 01:20:49 +01:00
|
|
|
# Setup traceroute as an alias for tracepath, since traceroute
|
|
|
|
# requires root which most Termux user does not have, and tracepath
|
|
|
|
# is probably good enough for most:
|
|
|
|
(cd $TERMUX_PREFIX/bin && ln -f -s tracepath traceroute)
|
|
|
|
(cd $MANDIR && ln -f -s tracepath.8 traceroute.8)
|
2015-11-19 23:53:32 +01:00
|
|
|
}
|