37375312b9
In issue https://github.com/termux/termux-packages/issues/6160 I have found that community repo "its-pointless.github.io" specifies us as maintainer for its packages. This is NOT TRUE and potentially misleads people using these packages. Now TERMUX_PKG_MAINTAINER will contain a default value which is neutral and not specify maintainer. So all packages now have to override it to the correct value. [skip ci] %ci:no-build
40 lines
1.3 KiB
Bash
40 lines
1.3 KiB
Bash
TERMUX_PKG_HOMEPAGE=https://github.com/iputils/iputils
|
|
TERMUX_PKG_DESCRIPTION="Tool to trace the network path to a remote host"
|
|
TERMUX_PKG_LICENSE="GPL-2.0"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION=20200821
|
|
TERMUX_PKG_SRCURL=https://github.com/iputils/iputils/archive/s${TERMUX_PKG_VERSION}.tar.gz
|
|
TERMUX_PKG_SHA256=f265da0d02dd2259efd8c57a9c2e0c8bb3361abb14639fcffb26707be5783a5b
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
|
|
termux_step_configure() {
|
|
return
|
|
}
|
|
|
|
termux_step_make() {
|
|
return
|
|
}
|
|
|
|
termux_step_make_install() {
|
|
CPPFLAGS+=" -DPACKAGE_VERSION=\"$TERMUX_PKG_VERSION\" -DHAVE_ERROR_H"
|
|
$CC $CFLAGS $CPPFLAGS $LDFLAGS -o $TERMUX_PREFIX/bin/tracepath iputils_common.c tracepath.c
|
|
|
|
local MANDIR=$TERMUX_PREFIX/share/man/man8
|
|
mkdir -p $MANDIR
|
|
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/
|
|
|
|
# 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)
|
|
}
|