commit:     65a50a61ad81413be21d2e08e532c9f24875db8e
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 28 12:40:54 2023 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Mon Aug 28 12:40:54 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=65a50a61

net-libs/ntirpc: add 5.0

Bug: https://bugs.gentoo.org/902995
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 net-libs/ntirpc/Manifest                           |  1 +
 .../ntirpc/files/ntirpc-5.0-include-assert.h.patch | 12 ++++++++
 net-libs/ntirpc/ntirpc-5.0.ebuild                  | 33 ++++++++++++++++++++++
 3 files changed, 46 insertions(+)

diff --git a/net-libs/ntirpc/Manifest b/net-libs/ntirpc/Manifest
index 77fdaa5407b3..4042f7941869 100644
--- a/net-libs/ntirpc/Manifest
+++ b/net-libs/ntirpc/Manifest
@@ -1,2 +1,3 @@
 DIST ntirpc-4.2.tar.gz 388418 BLAKE2B 
af875834515ae84d324302f2c0a36a7f34bb60ff95d2e30372f21541d558cec4337955fb72f1fbf43e3fcae75d706441dee658420bffe1f315578959405afb72
 SHA512 
fe241e3ac0e988d42425fe14c84970577693bd9ab1831069c753a18369150fb236fafea3d9b6c9d93faf93e918a93bf5367b914db819762c76e432ccffcb9328
 DIST ntirpc-4.3.tar.gz 388433 BLAKE2B 
5d9051f6cad28d89172a85c6f0b9fd4fa81d34a90e1677822f3e9f0a11cedbbee7aed40456edc854f71aa92f9dfa6d133537453b7da3d9967293b1ecec4c8a55
 SHA512 
4728cea5ee920e96dcd0b94784c72d2e75b95a3de6599127531107e14676b10704d37180afe918315d818ced79d40eac4999eed69cf07ebe9799d68cdff1a758
+DIST ntirpc-5.0.tar.gz 390950 BLAKE2B 
b97265eb0af7964b9810f2b4e285531bdd467c9b7385cfcdc75987a6c275e5675d2044e05f560e27a6d5cd4af80b6b27e484ce7cd333878dedf6d1d5fa1e434e
 SHA512 
f73a1bf8a7188bd3fb50ce735ebd18dead63cb93ea8c347aef267082673c40580402b0381d1ed6c7fdecf7752718c059e406dff3051a739632ed8097eccc6646

diff --git a/net-libs/ntirpc/files/ntirpc-5.0-include-assert.h.patch 
b/net-libs/ntirpc/files/ntirpc-5.0-include-assert.h.patch
new file mode 100644
index 000000000000..ad52bbcda007
--- /dev/null
+++ b/net-libs/ntirpc/files/ntirpc-5.0-include-assert.h.patch
@@ -0,0 +1,12 @@
+https://bugs.gentoo.org/902995
+
+--- a/src/work_pool.c
++++ b/src/work_pool.c
+@@ -39,6 +39,7 @@
+ 
+ #include "config.h"
+ 
++#include <assert.h>
+ #include <sys/types.h>
+ #if !defined(_WIN32)
+ #include <netinet/in.h>

diff --git a/net-libs/ntirpc/ntirpc-5.0.ebuild 
b/net-libs/ntirpc/ntirpc-5.0.ebuild
new file mode 100644
index 000000000000..c6d615747227
--- /dev/null
+++ b/net-libs/ntirpc/ntirpc-5.0.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="Transport Independent RPC library for nfs-ganesha"
+HOMEPAGE="https://github.com/nfs-ganesha/ntirpc";
+SRC_URI="https://github.com/nfs-ganesha/ntirpc/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="gssapi rdma"
+
+# Since the GSS option only controls some extra files to be enabled,
+# there's nothing to list in the depend string for it.
+RDEPEND="
+       dev-libs/userspace-rcu:=
+       rdma? ( sys-cluster/rdma-core )
+"
+DEPEND="${RDEPEND}"
+
+PATCHES=( "${FILESDIR}"/${P}-include-assert.h.patch )
+
+src_configure() {
+       local mycmakeargs=(
+               -DUSE_GSS=$(usex gssapi)
+               -DUSE_RPC_RDMA=$(usex rdma)
+       )
+       cmake_src_configure
+}

Reply via email to