netkit-fingerd-0.17-r3.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. MY_PN="${PN/netkit/bsd}"
  6. MY_PN="${MY_PN/rd/r}"
  7. DESCRIPTION="Netkit - fingerd and finger client"
  8. HOMEPAGE="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/"
  9. SRC_URI="mirror://debian/pool/main/b/${MY_PN}/${MY_PN}_${PV}.orig.tar.gz"
  10. LICENSE="BSD"
  11. SLOT="0"
  12. KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86"
  13. IUSE=""
  14. S=${WORKDIR}/${MY_PN}-${PV}
  15. src_prepare() {
  16. epatch "${FILESDIR}"/${P}-r2-gentoo.diff
  17. epatch "${FILESDIR}"/${P}-name-check.patch #80286
  18. }
  19. src_configure() {
  20. # We'll skip this stage as the configure script is crappy and not really
  21. # needed -- src_install installs all files by hand.
  22. touch MCONFIG
  23. tc-export CC
  24. }
  25. src_compile() {
  26. emake CC="${CC}"
  27. }
  28. src_install() {
  29. dobin finger/finger
  30. dosbin fingerd/fingerd
  31. dosym fingerd /usr/sbin/in.fingerd
  32. doman finger/finger.1 fingerd/fingerd.8
  33. dosym fingerd.8 /usr/share/man/man8/in.fingerd.8
  34. dodoc README ChangeLog BUGS
  35. insinto /etc/xinetd.d
  36. newins "${FILESDIR}"/fingerd.xinetd fingerd
  37. }