netkit-rusers-0.17-r1.ebuild 930 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # Copyright 1999-2010 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI="2"
  4. inherit eutils toolchain-funcs
  5. DESCRIPTION="Netkit - rup rpc.rusersd rusers"
  6. HOMEPAGE="http://www.hcs.harvard.edu/~dholland/computers/netkit.html"
  7. SRC_URI="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/${P}.tar.gz"
  8. SLOT="0"
  9. LICENSE="BSD"
  10. KEYWORDS="~amd64 ~x86"
  11. IUSE=""
  12. src_prepare() {
  13. epatch "${FILESDIR}"/${P}-include.patch
  14. sed -i configure -e '/^LDFLAGS=/d' || die "sed configure"
  15. }
  16. src_configure() {
  17. ./configure --with-c-compiler=$(tc-getCC) || die
  18. sed -i MCONFIG -e "s:-O2::" -e "s:-Wpointer-arith::" || die "sed MCONFIG"
  19. }
  20. src_compile() {
  21. # see bug #244867 for parallel make issues
  22. emake -j1 || die
  23. }
  24. src_install() {
  25. into /usr
  26. dobin rup/rup
  27. doman rup/rup.1
  28. dobin rpc.rusersd/rusersd
  29. doman rpc.rusersd/rpc.rusersd.8
  30. dobin rusers/rusers
  31. doman rusers/rusers.1
  32. dodoc README ChangeLog
  33. }