32 lines
1.0 KiB
Bash
32 lines
1.0 KiB
Bash
# Template file for 'traceroute'
|
|
pkgname=traceroute
|
|
version=2.1.2
|
|
revision=1
|
|
short_desc="Traces the route taken by packets over an IPv4/IPv6 network"
|
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
|
license="GPL-2.0-or-later, LGPL-2.1-or-later"
|
|
homepage="https://traceroute.sourceforge.net"
|
|
distfiles="${SOURCEFORGE_SITE}/traceroute/traceroute-${version}.tar.gz"
|
|
checksum=507c268f2977b4e218ce73e7ebed45ba0d970a8ca4995dd9cbb1ffe8e99b5b1f
|
|
|
|
alternatives="
|
|
traceroute:traceroute:/usr/bin/linux-traceroute
|
|
traceroute:traceroute.8:/usr/share/man/man8/linux-traceroute.8
|
|
"
|
|
|
|
do_build() {
|
|
if [ "$CROSS_BUILD" ]; then
|
|
make LDFLAGS="-L${wrksrc}/libsupp $LDFLAGS" CFLAGS="$CFLAGS $CPPFLAGS" CROSS=${XBPS_CROSS_TRIPLET}- ${makejobs}
|
|
else
|
|
make CFLAGS="$CFLAGS $CPPFLAGS" LDFLAGS="$LDFLAGS" ${makejobs}
|
|
fi
|
|
}
|
|
|
|
do_install() {
|
|
vbin traceroute/traceroute linux-traceroute
|
|
vman traceroute/traceroute.8 linux-traceroute.8
|
|
|
|
ln -s linux-traceroute $DESTDIR/usr/bin/traceroute6
|
|
ln -s linux-traceroute.8 $DESTDIR/usr/share/man/man8/traceroute6.8
|
|
}
|