From a42517f49e12d154bfdc2eac03376c84f5efef40 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 18 Feb 2013 21:04:36 +0100 Subject: [PATCH] traceroute: rebuild for -dbg pkg; cross build support. --- srcpkgs/traceroute/template | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/srcpkgs/traceroute/template b/srcpkgs/traceroute/template index 7564a4b45d..519f7f4c53 100644 --- a/srcpkgs/traceroute/template +++ b/srcpkgs/traceroute/template @@ -1,17 +1,25 @@ # Template file for 'traceroute' pkgname=traceroute version=2.0.19 -revision=1 -build_style=gnu-makefile -make_install_args="prefix=/usr" -short_desc="traceroute(8) for linux" +revision=2 +short_desc="Traces the route taken by packets over an IPv4/IPv6 network" maintainer="Juan RP " license="GPL-2" homepage="http://traceroute.sourceforge.net" distfiles="$SOURCEFORGE_SITE/$pkgname/$pkgname-$version.tar.gz" checksum=082be58ec3e6fe9717a52160150e2f6d52fa90f8ecb82abf3b363c8150b0607e -long_desc=" - Traceroute tracks the route packets taken from an IP network on their way to - a given host. It utilizes the IP protocol's time to live (TTL) field and - attempts to elicit an ICMP TIME_EXCEEDED response from each gateway along - the path to the host." + +do_build() { + if [ -n "$XBPS_CROSS_TRIPLET" ]; then + make LDFLAGS="-L${wrksrc}/libsupp" \ + CROSS=${XBPS_CROSS_TRIPLET}- \ + CFLAGS="$CFLAGS" ${makejobs} + else + make CFLAGS="$CFLAGS" ${makejobs} + fi +} + +do_install() { + vinstall traceroute/traceroute 755 usr/bin + vinstall traceroute/traceroute.8 644 usr/share/man/man1 +}