commit:     f2e4bbc44ec1f90456cf73a2c96daffe607a2a4f
Author:     Guilherme Amadio <amadio <AT> gentoo <DOT> org>
AuthorDate: Thu Jun  8 11:57:46 2023 +0000
Commit:     Guilherme Amadio <amadio <AT> gentoo <DOT> org>
CommitDate: Thu Jun  8 11:58:48 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f2e4bbc4

net-libs/xrootd: add support for macaroons and scitokens

Closes: https://bugs.gentoo.org/834109

Signed-off-by: Guilherme Amadio <amadio <AT> gentoo.org>

 net-libs/xrootd/metadata.xml                                |  2 ++
 .../xrootd/{xrootd-5.5.5.ebuild => xrootd-5.5.5-r1.ebuild}  | 13 ++++++++++---
 2 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/net-libs/xrootd/metadata.xml b/net-libs/xrootd/metadata.xml
index 16c259164057..3b614243b413 100644
--- a/net-libs/xrootd/metadata.xml
+++ b/net-libs/xrootd/metadata.xml
@@ -20,6 +20,8 @@
     <flag name="fuse">Enable the <pkg>sys-fs/fuse</pkg> filesystem 
driver</flag>
     <flag name="http">Enable http protocol support</flag>
     <flag name="libxml2">Use <pkg>dev-libs/libxml2</pkg> for XML parsing 
(preferred) instead of bundled tinyxml</flag>
+    <flag name="macaroons">Enable support for macaroons with 
<pkg>dev-libs/libmacaroons</pkg></flag>
+    <flag name="scitokens">Enable support for scitokens with 
<pkg>dev-cpp/scitokens-cpp</pkg></flag>
     <flag name="server">Install xrootd server and related plug-ins</flag>
     <flag name="xrdec">Enable erasure coding support (XrdEc plugin) with 
<pkg>dev-libs/isa-l</pkg></flag>
   </use>

diff --git a/net-libs/xrootd/xrootd-5.5.5.ebuild 
b/net-libs/xrootd/xrootd-5.5.5-r1.ebuild
similarity index 93%
rename from net-libs/xrootd/xrootd-5.5.5.ebuild
rename to net-libs/xrootd/xrootd-5.5.5-r1.ebuild
index 9137e1925da2..7b7be06008c8 100644
--- a/net-libs/xrootd/xrootd-5.5.5.ebuild
+++ b/net-libs/xrootd/xrootd-5.5.5-r1.ebuild
@@ -23,7 +23,12 @@ 
SRC_URI="https://xrootd.slac.stanford.edu/download/v${PV}/${P}.tar.gz";
 LICENSE="LGPL-3"
 SLOT="0"
 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
-IUSE="examples fuse http kerberos +libxml2 python readline +server systemd 
test xrdec"
+IUSE="examples fuse http kerberos +libxml2 macaroons python readline scitokens 
+server systemd test xrdec"
+
+REQUIRED_USE="
+               macaroons? ( server )
+               scitokens? ( server )
+"
 
 RESTRICT="!test? ( test )"
 
@@ -39,8 +44,10 @@ CDEPEND="acct-group/xrootd
        )
        kerberos? ( virtual/krb5 )
        libxml2? ( dev-libs/libxml2:2= )
+       macaroons? ( dev-libs/libmacaroons )
        python? ( ${PYTHON_DEPS} )
        readline? ( sys-libs/readline:0= )
+       scitokens? ( dev-cpp/scitokens-cpp )
        systemd? ( sys-apps/systemd:= )
        xrdec? ( dev-libs/isa-l )
 "
@@ -98,10 +105,10 @@ src_configure() {
                -DENABLE_FUSE=$(usex fuse)
                -DENABLE_HTTP=$(usex http)
                -DENABLE_KRB5=$(usex kerberos)
-               -DENABLE_MACAROONS=no
+               -DENABLE_MACAROONS=$(usex macaroons)
                -DENABLE_PYTHON=$(usex python)
                -DENABLE_READLINE=$(usex readline)
-               -DENABLE_SCITOKENS=no
+               -DENABLE_SCITOKENS=$(usex scitokens)
                -DENABLE_TESTS=$(usex test)
                -DENABLE_VOMS=no
                -DENABLE_XRDCL=yes

Reply via email to