summaryrefslogtreecommitdiff
path: root/net-libs/xrootd
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-07-27 15:01:59 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-07-27 15:01:59 +0100
commitd1d8adbfd346340c3784c72a9fa0868dde6ff736 (patch)
treee10785da8133e519147d7b5fdc5e3b634a041f8b /net-libs/xrootd
parentd305208ca7a258fb77809f63c895764345c61919 (diff)
gentoo auto-resync : 27:07:2022 - 15:01:59
Diffstat (limited to 'net-libs/xrootd')
-rw-r--r--net-libs/xrootd/Manifest5
-rw-r--r--net-libs/xrootd/metadata.xml1
-rw-r--r--net-libs/xrootd/xrootd-5.4.3-r1.ebuild134
-rw-r--r--net-libs/xrootd/xrootd-5.4.3.ebuild2
4 files changed, 139 insertions, 3 deletions
diff --git a/net-libs/xrootd/Manifest b/net-libs/xrootd/Manifest
index 4566db9332a3..432f794b6cb7 100644
--- a/net-libs/xrootd/Manifest
+++ b/net-libs/xrootd/Manifest
@@ -8,5 +8,6 @@ AUX xrootd.initd 858 BLAKE2B 306970196c9f69db3f94c095c8518b837f5f4723a1cbae27327
DIST xrootd-5.0.3.tar.gz 2766694 BLAKE2B 1fe7743de4d09c95257c3d761c2056024ba3ba59b7cd86b5926f2d32cc2f85dcd0af69e6e5969967591a2bba293902b757395e0f9375cbbbb39577eed9e450eb SHA512 e085af48e4196a44e9ebd63bf1234cf4401f158d23d03ffb38fcfe43284d025abe6c0b5e46b2808b28f300b933ff12523f64ac2d86d3f344aa2e0aea95e30cb0
DIST xrootd-5.4.3.tar.gz 3182127 BLAKE2B ed3f6a943167eafb5f6d7f78ca34f44c9a18b5ed672a4e622acb1e6e6997bd21756a30bf24f0b799ab4f16e7e1fb3f61a042f4e5e00f965b898fc5a287bf995a SHA512 189ec8e20901fd07093494187502e031a60d4ade22af33067313fad7a1bf6a6feb5c5d9d59d3a86d13a6a767e5a93cf4836da02e9cae11c81ccac07199898d72
EBUILD xrootd-5.0.3-r1.ebuild 2666 BLAKE2B 553cea29036e2bfc922ab6604f66d001acc838c800b478131f46a674406b3f6302a7c4439e162496507a13ff7b0ef7665abe37edfcf5eadeff96720a5a908592 SHA512 daa560edcd935fc8ae9c21013fc5c83257ffc1eace97f2bf9aa90666d615b5206c817462f5f5fef84573a6e86db23f71a66afb5443829bfa7495bca716a8b384
-EBUILD xrootd-5.4.3.ebuild 3138 BLAKE2B 74fb850f61ca7371af660cdc26f41f7f7ae8447fc172781248065c7b0427aa4ecfe6412e4df6fede080c0bcc9a3937f7082723d3606011fd7fb010d3e254b3a9 SHA512 3c3590d68432769452ee34705b81a08deb56ae4d3c2813ef2095d1c4548bca97fc5af9f7acc09f020e7da8f3a20c611af2233a3ddde0414ba9f976ad7fdd4585
-MISC metadata.xml 1033 BLAKE2B fa55ef316f5229b73667fb7f220071793053ed09df89b171afb7db8d81e4c7b70cc2ef4b44468ce1a5fbb8483192fed0545910b98e3a9c7dc8d081a1d49597e3 SHA512 f19fa16717d3c76d11caab1b2c28dc756df1407f0e57d9a72be324c4083a59ef5df8fe53310e8ef4df1d31540b8fbcc8dd734b319baa51ef0c70cd3a479b65f9
+EBUILD xrootd-5.4.3-r1.ebuild 3186 BLAKE2B 11ebc33ff90f56cd8ca3b6a04adcd027ec9c1edc54ab598044c0331f6d1d261d848876c9375205d0a306e6628a7bbe4beb2ede20942a4ba121a6b6b4eeed9abc SHA512 1d5be3e207c57a361c3fd7d0a273949620c7ff70f637ed41d6d862961e1c1680f055b7794022477d9571b518905196a415f417a488a95ee984e07606086d8e66
+EBUILD xrootd-5.4.3.ebuild 3137 BLAKE2B 839e9cbbb844367956aadd7cb365267e766c159ee3634a9aea77bf90ee529d4a30e9d96fa67f0e9c1a5e8f9e2a050c727b6dcb98265dde0d701c0129b68325a6 SHA512 f7e5bf988d800a6b3224593ba718764cd342849db9f33014165230d75f607fb0adc53cd17314c4f8a3e7995318c64777cc4d73d68ed0d998f4bc9bcb3870f63d
+MISC metadata.xml 1124 BLAKE2B 28d63d184e1d3c53c1cc1ec05f9508e0cc99a0a6a14e405aa8cdeddcf20cff0e825d814531826544b58e51b4996948718407ba1269966037ad7f00ab8807b2c7 SHA512 3aac33a0c6eea3f0ea2e105a0c5b000a0d9d423ed1d2cfc10619142aa5de35fa4b27fba6aa224bd95020c5d9ec278a89bbd0468c38d674fb53e989bc738f001e
diff --git a/net-libs/xrootd/metadata.xml b/net-libs/xrootd/metadata.xml
index a8b5e8a0921c..6ce87563fdb9 100644
--- a/net-libs/xrootd/metadata.xml
+++ b/net-libs/xrootd/metadata.xml
@@ -18,5 +18,6 @@
<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="server">Install xrootd server and related plug-ins</flag>
+ <flag name="test-suite">Install additional components useful for testing xrootd</flag>
</use>
</pkgmetadata>
diff --git a/net-libs/xrootd/xrootd-5.4.3-r1.ebuild b/net-libs/xrootd/xrootd-5.4.3-r1.ebuild
new file mode 100644
index 000000000000..abceb452f877
--- /dev/null
+++ b/net-libs/xrootd/xrootd-5.4.3-r1.ebuild
@@ -0,0 +1,134 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# Upstream does not support the building of Python bindings
+# via CMake for more than one implementation at a time.
+PYTHON_COMPAT=( python3_{8..11} )
+
+inherit cmake python-single-r1
+
+DESCRIPTION="Extended ROOT remote file server"
+HOMEPAGE="https://xrootd.slac.stanford.edu/"
+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="doc examples fuse http kerberos +libxml2 python readline +server systemd test-suite"
+
+# No actual build-time test suite
+RESTRICT="test"
+
+CDEPEND="acct-group/xrootd
+ acct-user/xrootd
+ dev-libs/openssl:0=
+ sys-libs/zlib
+ virtual/libcrypt:=
+ fuse? ( sys-fs/fuse:0= )
+ http? ( net-misc/curl:= )
+ kerberos? ( virtual/krb5 )
+ libxml2? ( dev-libs/libxml2:2= )
+ python? ( ${PYTHON_DEPS} )
+ readline? ( sys-libs/readline:0= )
+ systemd? ( sys-apps/systemd:= )
+ test-suite? ( dev-util/cppunit )
+"
+DEPEND="${CDEPEND}"
+BDEPEND="
+ doc? (
+ app-doc/doxygen[dot]
+ virtual/latex-base
+ python? ( dev-python/sphinx )
+ )
+ python? ( $(python_gen_cond_dep 'dev-python/pip[${PYTHON_USEDEP}]') )
+"
+RDEPEND="${CDEPEND}
+ dev-lang/perl
+"
+REQUIRED_USE="
+ http? ( kerberos )
+ python? ( ${PYTHON_REQUIRED_USE} )
+ test-suite? ( server )
+"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-4.8.3-crc32.patch
+ "${FILESDIR}"/${PN}-5.4.3-no_automagic.patch
+)
+
+# xrootd plugins are not intended to be linked with,
+# they are to be loaded at runtime by xrootd,
+# see https://github.com/xrootd/xrootd/issues/447
+QA_SONAME="/usr/lib.*/libXrd.*-$(ver_cut 1)\.so
+ /usr/lib.*/libXrdClTests\.so"
+
+pkg_setup() {
+ use python && python_setup
+}
+
+# FIXME: support xrdec - currently only builds against bundled isa-l
+src_configure() {
+ local mycmakeargs=(
+ -DENABLE_FUSE=$(usex fuse)
+ -DENABLE_HTTP=$(usex http)
+ -DENABLE_KRB5=$(usex kerberos)
+ -DENABLE_LIBXML2=$(usex libxml2)
+ -DENABLE_PYTHON=$(usex python)
+ -DENABLE_READLINE=$(usex readline)
+ -DENABLE_TESTS=$(usex test-suite)
+ -DENABLE_VOMS=no
+ -DFORCE_ENABLED=yes
+ -DXRDCL_ONLY=$(usex server "no" "yes")
+ )
+ cmake_src_configure
+}
+
+src_compile() {
+ cmake_src_compile
+ if use doc; then
+ doxygen Doxyfile || die
+ if use python; then
+ emake -C bindings/python/docs html
+ fi
+ fi
+}
+
+src_install() {
+ use doc && HTML_DOCS=( doxydoc/html/. )
+ dodoc docs/ReleaseNotes.txt
+ cmake_src_install
+ find "${D}" \( -iname '*.md5' -o -iname '*.map' \) -delete || die
+
+ # base configs
+ insinto /etc/xrootd
+ doins packaging/common/*.cfg
+
+ fowners root:xrootd /etc/xrootd
+ keepdir /var/log/xrootd
+ fowners xrootd:xrootd /var/log/xrootd
+
+ if use server; then
+ local i
+ for i in cmsd frm_purged frm_xfrd xrootd; do
+ newinitd "${FILESDIR}"/${i}.initd ${i}
+ done
+ # all daemons MUST use single master config file
+ newconfd "${FILESDIR}"/xrootd.confd xrootd
+ fi
+
+ if use python; then
+ python_optimize "${D}/$(python_get_sitedir)"
+
+ if use doc; then
+ docinto python
+ docompress -x "/usr/share/doc/${PF}/python/html"
+ dodoc -r bindings/python/docs/build/html
+ fi
+ if use examples; then
+ docinto python
+ dodoc -r bindings/python/examples
+ fi
+ fi
+}
diff --git a/net-libs/xrootd/xrootd-5.4.3.ebuild b/net-libs/xrootd/xrootd-5.4.3.ebuild
index a8edf6912fda..453660aff968 100644
--- a/net-libs/xrootd/xrootd-5.4.3.ebuild
+++ b/net-libs/xrootd/xrootd-5.4.3.ebuild
@@ -15,7 +15,7 @@ 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"
+KEYWORDS="~amd64 x86 ~amd64-linux ~x86-linux"
IUSE="doc examples fuse http kerberos +libxml2 python readline +server systemd test"
RESTRICT="!test? ( test )"