netkit-routed-0.17-r5.ebuild 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. DESCRIPTION="Netkit - routed"
  6. HOMEPAGE="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/"
  7. SRC_URI="mirror://debian/pool/main/n/netkit-routed/${PN}_${PV}.orig.tar.gz"
  8. LICENSE="BSD GPL-2"
  9. SLOT="0"
  10. KEYWORDS="alpha ~amd64 ~mips ppc sparc x86"
  11. IUSE=""
  12. src_prepare() {
  13. sed -i configure -e '/^LDFLAGS=/d' || die
  14. epatch "${FILESDIR}"/${P}-time.patch
  15. epatch "${FILESDIR}"/${P}-printf.patch #529992
  16. }
  17. src_configure() {
  18. # Not an autotools generated configure script
  19. ./configure --with-c-compiler=$(tc-getCC) || die
  20. }
  21. src_install() {
  22. # ripquery
  23. dosbin ripquery/ripquery
  24. doman ripquery/ripquery.8
  25. # routed
  26. dosbin routed/routed
  27. dosym routed /usr/sbin/in.routed
  28. doman routed/routed.8
  29. dosym routed.8 /usr/share/man/man8/in.routed.8
  30. # docs
  31. dodoc README ChangeLog
  32. newdoc routed/README README.routed
  33. # init scripts
  34. newconfd "${FILESDIR}"/routed.confd routed
  35. newinitd "${FILESDIR}"/routed.initd routed
  36. }