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

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

Signed-off-by: Guilherme Amadio <amadio@gentoo.org>
This commit is contained in:
Guilherme Amadio
2023-06-08 13:58:48 +02:00
parent c7b5fe8078
commit f2e4bbc44e
2 changed files with 12 additions and 3 deletions
+2
View File
@@ -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>
@@ -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