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"
|
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"
|
2021-12-15 20:03:51 +01:00
|
|
|
TERMUX_PKG_VERSION=20211215
|
2021-02-05 22:04:12 +01:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/iputils/iputils/archive/${TERMUX_PKG_VERSION}.tar.gz
|
2021-12-15 20:03:51 +01:00
|
|
|
TERMUX_PKG_SHA256=b6f67fc705490673ff4471d006221b4a2f1b1180b929d9fefd771352621ccedf
|
2021-10-04 12:43:31 +02:00
|
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
|
|
TERMUX_PKG_AUTO_UPDATE_TAG_REGEXP="\d{8}"
|
2019-08-12 17:28:41 +02:00
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
2015-11-19 23:53:32 +01:00
|
|
|
|
2019-02-08 10:37:29 +01:00
|
|
|
termux_step_configure() {
|
2018-07-04 16:43:34 +02:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2019-02-08 10:37:29 +01:00
|
|
|
termux_step_make() {
|
2016-08-15 00:30:33 +02:00
|
|
|
return
|
2015-11-19 23:53:32 +01:00
|
|
|
}
|
|
|
|
|
2019-02-08 10:37:29 +01:00
|
|
|
termux_step_make_install() {
|
2019-05-07 23:35:12 +02:00
|
|
|
CPPFLAGS+=" -DPACKAGE_VERSION=\"$TERMUX_PKG_VERSION\" -DHAVE_ERROR_H"
|
|
|
|
$CC $CFLAGS $CPPFLAGS $LDFLAGS -o $TERMUX_PREFIX/bin/tracepath iputils_common.c tracepath.c
|
|
|
|
|
2015-11-19 23:53:32 +01:00
|
|
|
local MANDIR=$TERMUX_PREFIX/share/man/man8
|
|
|
|
mkdir -p $MANDIR
|
2019-05-07 23:35:12 +02:00
|
|
|
cd $TERMUX_PKG_SRCDIR/doc
|
|
|
|
xsltproc \
|
|
|
|
--stringparam man.output.quietly 1 \
|
|
|
|
--stringparam funcsynopsis.style ansi \
|
|
|
|
--stringparam man.th.extra1.suppress 1 \
|
|
|
|
--stringparam iputils.version $TERMUX_PKG_VERSION \
|
|
|
|
custom-man.xsl \
|
|
|
|
tracepath.xml
|
|
|
|
cp 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
|
|
|
}
|