void-packages/srcpkgs/traceroute/template
2016-02-19 08:10:16 +01:00

25 lines
813 B
Bash

# Template file for 'traceroute'
pkgname=traceroute
version=2.0.22
revision=1
short_desc="Traces the route taken by packets over an IPv4/IPv6 network"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2"
homepage="http://traceroute.sourceforge.net"
distfiles="$SOURCEFORGE_SITE/$pkgname/$pkgname-$version.tar.gz"
checksum=ee36c35a7dd0ea859734778c1fe95b49a861d30dbf64496ac673c2429f539ada
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
vman traceroute/traceroute.8
ln -s traceroute $DESTDIR/usr/bin/traceroute6
ln -s traceroute.8 $DESTDIR/usr/share/man/man8/traceroute6.8
}