commit: c0b6cd5412d603ec5f2eaeb2c3cb42e3c5c70bb0 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Thu Oct 2 04:43:49 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Thu Oct 2 04:43:49 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c0b6cd54
net-libs/libtirpc: add 1.3.7 Bug: https://bugs.gentoo.org/943709 Signed-off-by: Sam James <sam <AT> gentoo.org> net-libs/libtirpc/Manifest | 1 + net-libs/libtirpc/libtirpc-1.3.7.ebuild | 64 +++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+) diff --git a/net-libs/libtirpc/Manifest b/net-libs/libtirpc/Manifest index e19e3a603dda..dbc617947544 100644 --- a/net-libs/libtirpc/Manifest +++ b/net-libs/libtirpc/Manifest @@ -1,2 +1,3 @@ DIST libtirpc-1.3.6.tar.bz2 566384 BLAKE2B 521e1e3d2ceefd668f1b0d52b7c0342b97952d322eeb7bf740bb1eb1fb88a14b0a2fce57f07a9fd3797d289f57f511085924bba3d8984f15c799468d30f47500 SHA512 f3ccc45f9de8d517ccc10dd4b68b844bbe71a2cb61ca5819995d97319353f7e24cfee205e09dddf65cf47605314176aee161091d7379b6113ee8d1f5077c93d0 +DIST libtirpc-1.3.7.tar.bz2 569442 BLAKE2B b6a42add32c1a8bef4d974bb6c527131c0215179a303360d902110b03ce2217280efcb8dcad3a4da00f7ab971a1376e0bc30d6e3ecf6f98f1d4c2161a9276f86 SHA512 50c0153bc72a3f9578eb7a9dc123ea531df83c455f19b03d2bc59563d8453fcd278a025eef05865d1218b2c9358a9152ee069ce0e4d11dfea4ca0a8a24221fad DIST libtirpc-glibc-nfs.tar.xz 8948 BLAKE2B 7316623d9f2b6928e296137fe2bf6794b208d549c2ffba9e4a35b47f7b04bf023798a09f38c02d039debf6adc466d7689cf3c8274d71a22eaff08729642c0a28 SHA512 90255bf0a27af16164e0710dd940778609925d473f4343093ff19d98cc4f23023788bf4edf0178eae1961afc0ba8b69b273de95b7d7e2afdb706701d8ba6f7ba diff --git a/net-libs/libtirpc/libtirpc-1.3.7.ebuild b/net-libs/libtirpc/libtirpc-1.3.7.ebuild new file mode 100644 index 000000000000..5e56f8c45ab1 --- /dev/null +++ b/net-libs/libtirpc/libtirpc-1.3.7.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic libtool multilib-minimal + +DESCRIPTION="Transport Independent RPC library (SunRPC replacement)" +HOMEPAGE="https://sourceforge.net/projects/libtirpc/ https://git.linux-nfs.org/?p=steved/libtirpc.git" +SRC_URI=" + https://downloads.sourceforge.net/${PN}/${P}.tar.bz2 + https://dev.gentoo.org/~sam/distfiles/${PN}-glibc-nfs.tar.xz +" + +LICENSE="BSD BSD-2 BSD-4 LGPL-2.1+" +SLOT="0/3" # subslot matches SONAME major +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" +IUSE="kerberos static-libs" + +RDEPEND="kerberos? ( >=virtual/krb5-0-r1[${MULTILIB_USEDEP}] )" +DEPEND=" + ${RDEPEND} + elibc_musl? ( sys-libs/queue-standalone ) +" +BDEPEND=" + app-arch/xz-utils + virtual/pkgconfig +" + +src_prepare() { + cp -ra "${WORKDIR}"/tirpc "${S}"/ || die + + default + elibtoolize +} + +multilib_src_configure() { + # bug #911863 + append-lfs-flags + + local myeconfargs=( + $(use_enable kerberos gssapi) + $(use_enable static-libs static) + KRB5_CONFIG="${ESYSROOT}"/usr/bin/krb5-config + ) + + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" +} + +multilib_src_install_all() { + einstalldocs + + insinto /etc + doins doc/netconfig + + insinto /usr/include/tirpc + doins -r "${WORKDIR}"/tirpc/* + + # makes sure that the linking order for nfs-utils is proper, as + # libtool would inject a libgssglue dependency in the list. + if ! use static-libs ; then + find "${ED}" -name "*.la" -delete || die + fi +}
