traceroute-nanog-6.4.2-r1.ebuild 908 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit eutils toolchain-funcs
  5. MY_P="${PN}_${PV}"
  6. DEB_PL="1"
  7. DESCRIPTION="Traceroute with AS lookup, TOS support, MTU discovery and other features"
  8. HOMEPAGE="http://packages.debian.org/traceroute-nanog"
  9. SRC_URI="
  10. https://dev.gentoo.org/~jer/${MY_P}.orig.tar.gz
  11. https://dev.gentoo.org/~jer/${MY_P}-${DEB_PL}.diff.gz
  12. "
  13. RESTRICT="mirror"
  14. LICENSE="BSD"
  15. SLOT="0"
  16. KEYWORDS="amd64 ~arm ~ppc x86"
  17. S="${S}.orig"
  18. src_prepare() {
  19. EPATCH_SUFFIX="dpatch" epatch \
  20. "${WORKDIR}/${MY_P}-${DEB_PL}.diff" \
  21. "${WORKDIR}/${P}.orig/${P}/debian/patches/"
  22. }
  23. src_compile() {
  24. $(tc-getCC) traceroute.c -o ${PN} ${CFLAGS} -DSTRING ${LDFLAGS} -lresolv -lm \
  25. || die
  26. }
  27. src_install() {
  28. dosbin traceroute-nanog
  29. dodoc 0_readme.txt faq.txt
  30. newman ${P}/debian/traceroute-nanog.genuine.8 traceroute-nanog.8
  31. }