commit: 0a14b53b52da72dae91599757dfed14049abf6c5 Author: Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at> AuthorDate: Sat Sep 16 20:07:35 2023 +0000 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> CommitDate: Sun Sep 17 14:33:48 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0a14b53b
net-misc/netkit-bootparamd: EAPI8 bump Signed-off-by: Michael Mair-Keimberger <mmk <AT> levelnine.at> Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> .../netkit-bootparamd-0.17-r5.ebuild | 56 ++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/net-misc/netkit-bootparamd/netkit-bootparamd-0.17-r5.ebuild b/net-misc/netkit-bootparamd/netkit-bootparamd-0.17-r5.ebuild new file mode 100644 index 000000000000..59faca2de934 --- /dev/null +++ b/net-misc/netkit-bootparamd/netkit-bootparamd-0.17-r5.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs flag-o-matic + +DESCRIPTION="Netkit - bootparamd: Net-boot support daemon" +HOMEPAGE="https://wiki.linuxfoundation.org/networking/netkit" +SRC_URI="mirror://debian/pool/main/n/${PN}/${PN}_${PV}.orig.tar.gz" + +LICENSE="BSD GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~mips ~ppc ~sparc ~x86" +IUSE="+libtirpc" + +DEPEND=" + !<=net-misc/netkit-bootpd-0.17-r2 + libtirpc? ( net-libs/rpcsvc-proto net-libs/libtirpc ) + !libtirpc? ( sys-libs/glibc[rpc(-)] ) +" +RDEPEND=${DEPEND} + +PATCHES=( + "${FILESDIR}"/0.17-jumpstart.patch + "${FILESDIR}"/0.17-libtirpc.patch +) + +src_prepare() { + # don't reset LDFLAGS (bug #335457), manpages into /usr/share/man + sed -i -e '/^LDFLAGS=/d ; /MANDIR=/s:man:share/man:' configure || die + sed -i -e 's:install -s:install:' rpc.bootparamd/Makefile || die + default +} + +src_configure() { + if use libtirpc ; then + append-cflags -I/usr/include/tirpc + sed -i -e 's:^LIBS=$:LIBS=-ltirpc:' configure || die + fi + + # Note this is not an autoconf configure + CC="$(tc-getCC)" LDFLAGS="${LDFLAGS}" CFLAGS="${CFLAGS}" ./configure || die +} + +src_install() { + dodir usr/bin usr/sbin usr/share/man/man8 + emake INSTALLROOT="${D}" install + + newconfd "${FILESDIR}"/bootparamd.confd bootparamd + newinitd "${FILESDIR}"/bootparamd.initd bootparamd + + doman rpc.bootparamd/bootparams.5 + dodoc README ChangeLog + newdoc rpc.bootparamd/README README.bootparamd +}
