# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/traceroute/traceroute-1.4_p12-r4.ebuild,v 1.1 2006/03/09 18:07:30 vanquirius Exp $ inherit eutils flag-o-matic MY_P="${PN}-${PV/_p/a}" DESCRIPTION="Utility to trace the route of IP packets" HOMEPAGE="http://ee.lbl.gov/" SRC_URI="ftp://ee.lbl.gov/${MY_P}.tar.gz mirror://gentoo/${PN}-1.4-genpatches.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" IUSE="static" DEPEND="" S="${WORKDIR}/${MY_P}" src_unpack() { unpack ${A} cd "${S}" # nasty hack until bug 93363 is fixed chmod 644 config.{guess,sub} epatch "${WORKDIR}"/traceroute-1.4-target-resolv.patch epatch "${WORKDIR}"/traceroute-1.4a12-LDFLAGS.patch epatch "${WORKDIR}"/traceroute-1.4a5-bigpacklen.patch epatch "${WORKDIR}"/traceroute-1.4a12.patch epatch "${WORKDIR}"/traceroute-1.4a5-droproot.patch epatch "${WORKDIR}"/traceroute-1.4a5-llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch.patch epatch "${WORKDIR}"/traceroute-1.4a5-secfix.patch epatch "${WORKDIR}"/traceroute-1.4a5-unaligned.patch epatch "${WORKDIR}"/traceroute-1.4-emptylabel.patch epatch "${FILESDIR}"/traceroute-1.4a12-mpls-icmp-02.patch # assume linux by default #26699 sed -i '/^t=/s:generic:linux:' configure use static && append-ldflags -static append-ldflags $(bindnow-flags) -Wl,-z,relro } src_install() { dosbin traceroute || die "dosbin" fowners root:wheel /usr/sbin/traceroute fperms 4711 /usr/sbin/traceroute doman traceroute.8 dodoc CHANGES }