netkit-rwho-0.17-r4.ebuild 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # Copyright 1999-2015 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 - ruptime/rwho/rwhod"
  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. https://dev.gentoo.org/~jer/${P}-patches.tar.bz2"
  9. LICENSE="BSD"
  10. SLOT="0"
  11. KEYWORDS="alpha amd64 arm ~mips ppc s390 sh sparc x86"
  12. IUSE=""
  13. src_prepare() {
  14. epatch "${WORKDIR}"/000{1,2,3,4}-*.patch
  15. epatch "${FILESDIR}"/${P}-printf.patch #529974
  16. }
  17. src_configure() {
  18. # Not an autotools build system
  19. ./configure --with-c-compiler=$(tc-getCC) || die
  20. sed -i \
  21. -e "s:-O2::" \
  22. -e "s:-Wpointer-arith::" \
  23. MCONFIG || die
  24. }
  25. src_install() {
  26. keepdir /var/spool/rwho
  27. into /usr
  28. dobin ruptime/ruptime rwho/rwho
  29. dosbin rwhod/rwhod
  30. doman ruptime/ruptime.1 rwho/rwho.1 rwhod/rwhod.8
  31. dodoc README ChangeLog
  32. newinitd "${FILESDIR}"/${P}-rc rwhod
  33. newconfd "${FILESDIR}"/${P}-confd rwhod
  34. exeinto /etc/cron.monthly
  35. doexe "${FILESDIR}"/${P}-cron
  36. }