netkit-bootparamd-0.17-r3.ebuild 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # Copyright 1999-2012 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 - bootparamd"
  6. HOMEPAGE="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/"
  7. SRC_URI="mirror://debian/pool/main/n/${PN}/${PN}_${PV}.orig.tar.gz"
  8. LICENSE="BSD"
  9. SLOT="0"
  10. KEYWORDS="amd64 ~hppa ~mips ppc sparc x86"
  11. IUSE=""
  12. DEPEND="!<=net-misc/netkit-bootpd-0.17-r2"
  13. RDEPEND=${DEPEND}
  14. src_prepare() {
  15. epatch "${FILESDIR}"/0.17-jumpstart.patch
  16. # don't reset LDFLAGS (bug #335457), manpages into /usr/share/man
  17. sed -i -e '/^LDFLAGS=/d ; /MANDIR=/s:man:share/man:' configure || die
  18. sed -i -e 's:install -s:install:' rpc.bootparamd/Makefile || die
  19. }
  20. src_configure() {
  21. # Note this is not an autoconf configure
  22. CC="$(tc-getCC)" LDFLAGS="${LDFLAGS}" ./configure || die
  23. }
  24. src_install() {
  25. dodir usr/bin usr/sbin usr/share/man/man8 || die
  26. emake INSTALLROOT="${D}" install || die
  27. newconfd "${FILESDIR}"/bootparamd.confd bootparamd || die
  28. newinitd "${FILESDIR}"/bootparamd.initd bootparamd || die
  29. doman rpc.bootparamd/bootparams.5 || die
  30. dodoc README ChangeLog || die
  31. newdoc rpc.bootparamd/README README.bootparamd || die
  32. }