Gentoo Archives: gentoo-commits

From: Marek Szuba <marecki@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/xrootd/
Date: Thu, 14 May 2020 17:05:17
Message-Id: 1589475882.9d4e659d447d875308c95555a82218912be29148.marecki@gentoo
1 commit: 9d4e659d447d875308c95555a82218912be29148
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 14 10:56:36 2020 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Thu May 14 17:04:42 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9d4e659d
7
8 net-libs/xrootd: bump to 4.12.1
9
10 Bugfix release fixing a problem with Grid-related authentication
11 present in 4.12.0.
12
13 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
14
15 net-libs/xrootd/Manifest | 1 +
16 net-libs/xrootd/xrootd-4.12.1.ebuild | 113 +++++++++++++++++++++++++++++++++++
17 2 files changed, 114 insertions(+)
18
19 diff --git a/net-libs/xrootd/Manifest b/net-libs/xrootd/Manifest
20 index 45d3d07ef45..61aee4cf44d 100644
21 --- a/net-libs/xrootd/Manifest
22 +++ b/net-libs/xrootd/Manifest
23 @@ -1,3 +1,4 @@
24 DIST xrootd-4.11.1.tar.gz 2549971 BLAKE2B e131769291d33d2198c4afdedd0d9f9a0eac9459654277763554d2dfba211b7123f3d0dfc90fe365c7f4da2590d9bec6daf994ee7ae241897aa10b4500362c3c SHA512 7853de40d40f28177f70a18f17ee99f83c8b6c6ddf0b5e7ef64df83c5457bad11e6249c75f985c207c3292fab73a2181730ce9c8bf11979535a566c5364de8a1
25 DIST xrootd-4.12.0.tar.gz 2564041 BLAKE2B 6ea9c379aa482c81279168baa3e1381e880d34014fb3516c96961da64d54faf649295f024313ece445df9a62b6b5c818b7aa8a987025d3cd969188de072648c9 SHA512 5338c4fb5461918473dd4f41f4d29fae09a8fc6a9e2d8f00bb74d929dc5396fef73643462d1a4f1ba71ffe5cf92a1695a167ca3a766c674a9377dcf99aaa1778
26 +DIST xrootd-4.12.1.tar.gz 2564202 BLAKE2B df6334884d12ea68d98f5e8d1c83bb44d9a7d9232f1350323beff8de3815fd24711a90b5180824c9a9fd3f9e4f45ad3448bb32cde57efd646343bf2fd202237e SHA512 8d5c7029ccad8cb898ff41671e6f360154549df926b1fb5e7747503bed477f7bf1daec7addbc5a832b76f0f5c40ef8fdcda708907389fa790c3b87a944af4d93
27 DIST xrootd-4.8.3.tar.gz 2390520 BLAKE2B 1b97225c41f6a3a751f55a4d357f53fac2e4cc24f2456962a6d6282b78faaeb844db5d69bff34437acd2c015dbff4a2a5047d6295770abd200d3e5bedd89d4fe SHA512 6f605131be18f35115bf7cf5d829dfd5a36e004ac69aa77dd0cb34ab70f2b89ff07e7b3e3259fe672d81b6241596c78a537de02e5abad4537dc92ae745ae8911
28
29 diff --git a/net-libs/xrootd/xrootd-4.12.1.ebuild b/net-libs/xrootd/xrootd-4.12.1.ebuild
30 new file mode 100644
31 index 00000000000..6acdc5a472e
32 --- /dev/null
33 +++ b/net-libs/xrootd/xrootd-4.12.1.ebuild
34 @@ -0,0 +1,113 @@
35 +# Copyright 1999-2020 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=7
39 +
40 +PYTHON_COMPAT=( python2_7 python3_{6,7,8} )
41 +
42 +inherit cmake-utils python-single-r1
43 +
44 +DESCRIPTION="Extended ROOT remote file server"
45 +HOMEPAGE="http://xrootd.org/"
46 +SRC_URI="http://xrootd.org/download/v${PV}/${P}.tar.gz"
47 +
48 +LICENSE="LGPL-3"
49 +SLOT="0"
50 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
51 +IUSE="doc examples fuse http kerberos python readline ssl test"
52 +RESTRICT="!test? ( test )"
53 +
54 +CDEPEND="acct-group/xrootd
55 + acct-user/xrootd
56 + sys-libs/zlib
57 + fuse? ( sys-fs/fuse:= )
58 + kerberos? ( virtual/krb5 )
59 + python? ( ${PYTHON_DEPS} )
60 + readline? ( sys-libs/readline:0= )
61 + ssl? ( dev-libs/openssl:0= )
62 +"
63 +DEPEND="${CDEPEND}"
64 +BDEPEND="
65 + doc? (
66 + app-doc/doxygen[dot]
67 + python? ( dev-python/sphinx )
68 + )
69 + test? ( dev-util/cppunit )
70 +"
71 +RDEPEND="${CDEPEND}
72 + dev-lang/perl
73 +"
74 +REQUIRED_USE="
75 + http? ( kerberos ssl )
76 + python? ( ${PYTHON_REQUIRED_USE} )
77 +"
78 +
79 +PATCHES=( "${FILESDIR}"/xrootd-4.8.3-crc32.patch )
80 +
81 +# xrootd plugins are not intended to be linked with,
82 +# they are to be loaded at runtime by xrootd,
83 +# see https://github.com/xrootd/xrootd/issues/447
84 +QA_SONAME="/usr/lib.*/libXrd.*-$(ver_cut 1).so"
85 +
86 +pkg_setup() {
87 + use python && python_setup
88 +}
89 +
90 +src_configure() {
91 + local mycmakeargs=(
92 + -DENABLE_CRYPTO=$(usex ssl)
93 + -DENABLE_FUSE=$(usex fuse)
94 + -DENABLE_HTTP=$(usex http)
95 + -DENABLE_KRB5=$(usex kerberos)
96 + -DENABLE_PYTHON=$(usex python)
97 + -DENABLE_READLINE=$(usex readline)
98 + -DENABLE_TESTS=$(usex test)
99 + )
100 + cmake-utils_src_configure
101 +}
102 +
103 +src_compile() {
104 + cmake-utils_src_compile
105 + if use doc; then
106 + doxygen Doxyfile || die
107 + if use python; then
108 + emake -C bindings/python/docs html
109 + fi
110 + fi
111 +}
112 +
113 +src_install() {
114 + use doc && HTML_DOCS=( doxydoc/html/. )
115 + dodoc docs/ReleaseNotes.txt
116 + cmake-utils_src_install
117 + find "${D}" \( -iname '*.md5' -o -iname '*.map' \) -delete || die
118 +
119 + # base configs
120 + insinto /etc/xrootd
121 + doins packaging/common/*.cfg
122 +
123 + fowners root:xrootd /etc/xrootd
124 + keepdir /var/log/xrootd
125 + fowners xrootd:xrootd /var/log/xrootd
126 +
127 + local i
128 + for i in cmsd frm_purged frm_xfrd xrootd; do
129 + newinitd "${FILESDIR}"/${i}.initd ${i}
130 + done
131 + # all daemons MUST use single master config file
132 + newconfd "${FILESDIR}"/xrootd.confd xrootd
133 +
134 + if use python; then
135 + python_optimize "${D}/$(python_get_sitedir)"
136 +
137 + if use doc; then
138 + docinto python
139 + docompress -x "/usr/share/doc/${PF}/python/html"
140 + dodoc -r bindings/python/docs/build/html
141 + fi
142 + if use examples; then
143 + docinto python
144 + dodoc -r bindings/python/examples
145 + fi
146 + fi
147 +}