Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/glusterfs/
Date: Mon, 22 Nov 2021 10:11:23
Message-Id: 1637575525.86d99f3a48fd3bc1a84a17a3f31f32be57b0e3c3.sam@gentoo
1 commit: 86d99f3a48fd3bc1a84a17a3f31f32be57b0e3c3
2 Author: Jaco Kroon <jaco <AT> uls <DOT> co <DOT> za>
3 AuthorDate: Fri Nov 12 08:25:28 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 22 10:05:25 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=86d99f3a
7
8 sys-cluster/glusterfs: prune 9.X, X<4.
9
10 These versions were made available for convenience. Seems glusterfs
11 release cycle as I understand aren't being adhered to, and 9.X is now
12 considered stable, should receive updates every 3 months. 10.X has just
13 been cut recently, which should get updates every month.
14
15 Package-Manager: Portage-3.0.28, Repoman-3.0.3
16 Signed-off-by: Jaco Kroon <jaco <AT> uls.co.za>
17 Signed-off-by: Sam James <sam <AT> gentoo.org>
18
19 sys-cluster/glusterfs/Manifest | 3 -
20 sys-cluster/glusterfs/glusterfs-9.1-r1.ebuild | 195 --------------------------
21 sys-cluster/glusterfs/glusterfs-9.2-r1.ebuild | 195 --------------------------
22 sys-cluster/glusterfs/glusterfs-9.3.ebuild | 195 --------------------------
23 4 files changed, 588 deletions(-)
24
25 diff --git a/sys-cluster/glusterfs/Manifest b/sys-cluster/glusterfs/Manifest
26 index 2f0292e58f62..d34ae42e54a3 100644
27 --- a/sys-cluster/glusterfs/Manifest
28 +++ b/sys-cluster/glusterfs/Manifest
29 @@ -2,7 +2,4 @@ DIST glusterfs-8.3.tar.gz 7829522 BLAKE2B 1ba60f7209db4f1ce21237c3adea94df1b9eae
30 DIST glusterfs-8.4.tar.gz 7833014 BLAKE2B c67f510c655465e9fbecaa7f391531543e37a2a84917592e699d88564b24fe55689b95770f385ac5b645069f287d4af974db76a77c0f44ea5d2e88f995b427f7 SHA512 a81394b3584c2e6c27060367b443c0879512054ed9287740bc24308603b9e3c11376179ed6589d5d38441982cd6415e3612f98ae4c97ddf7d5c747b42171d796
31 DIST glusterfs-8.5.tar.gz 7873397 BLAKE2B 6ababf15fda216c9a47c05859f7123847d711dd5a12e3ec2c5dcf8475f35830c9a32f7b21ad763ab1be59b06f1d93f83acc0cbb8f7635456a3638be73b162aa4 SHA512 e256141a76deb9a255be31422d76b0c81aad4a7e5b166d2be90a79d340ceb811cbff11f469166ef7582f40f58f47fb056aa05aafd4b35f094bf9c21a5c08f3bb
32 DIST glusterfs-8.6.tar.gz 7826147 BLAKE2B 3a8a488c9a8e4b1daf3ed01fa5e52a62cf791349c1169aaf8609252bfb8bc0a0534f9fc23fac27cfab11ac6fb5e3e1d9588b4ec8080b02cf97e679bf2c8fb5c2 SHA512 bb1125e5d6b4d424234bc40786847f217e7a05cecad1462dd91248cf9559569914f04e1f909e829051cb1db4079ecf906440a38af9de2bbf3bcf53ca8fa1f349
33 -DIST glusterfs-9.1.tar.gz 8206207 BLAKE2B dea099eb1d366704010247964c24de404fb09c00a375dde4af30a2af836d3b35689fab91a75268aa01dba45860eb50a6e0572913c059e53fb5799d2302c2f005 SHA512 2c26813f12fed7a0640cc470badc2b83f156b660ef475487a689dca6c3fa407192f4959aeaf7a981969a079cf5d2c7aace85ff818ea6133d5a085d90d226e1da
34 -DIST glusterfs-9.2.tar.gz 8212980 BLAKE2B 7fb42186c5d309c357f72e3037fc09d8b15f32770d74173dd4779bab91056d1ceb78a4a651fec2018faf1597357576d41593e9d7b04cf9af7f4742301b284b01 SHA512 34a0a1745029e2fad3c8fc6a044b4e4645f8cf11eddc3c8c8e94cce9733449248c577ce6066bc49010a65121d991daf67766393fe513ac694082f0efa1d4ef95
35 -DIST glusterfs-9.3.tar.gz 8167846 BLAKE2B 119e2c089ef250fafb2b2dfdcf71f40cc25fdda6ac1cbb38a8557a3c206f721227eceadd87b40341e6bf2b32a7cb24996910f45e061f25d193ab2ca4070ddc76 SHA512 0974cf57a6810505f767c490b53201e62bb73ca2fd3c5203d9882dcbe4088c816afb5445ef606d12fb797b1b1fa5e0994f2ea0816577f70e630637668a20f005
36 DIST glusterfs-9.4.tar.gz 8173625 BLAKE2B c35c63696717bf09f8fbf77dca16a6f45de278253e768c6ffc40c0c097da9ea1b32888233da412a5333281995e89e08d9ed23fd47aba7c506de84b08f9f80cea SHA512 2a17197bd2b425117e34af004a6177b7c5012807cd99b9c6d37a1081e0ab9def6b013bedd0ba4122d149969755e0e2985bef8aed9cf612a27a6452b8719a33bf
37
38 diff --git a/sys-cluster/glusterfs/glusterfs-9.1-r1.ebuild b/sys-cluster/glusterfs/glusterfs-9.1-r1.ebuild
39 deleted file mode 100644
40 index 481163386a99..000000000000
41 --- a/sys-cluster/glusterfs/glusterfs-9.1-r1.ebuild
42 +++ /dev/null
43 @@ -1,195 +0,0 @@
44 -# Copyright 1999-2021 Gentoo Authors
45 -# Distributed under the terms of the GNU General Public License v2
46 -
47 -EAPI=7
48 -
49 -PYTHON_COMPAT=( python3_{7..9} )
50 -
51 -inherit autotools elisp-common python-single-r1 tmpfiles
52 -
53 -SRC_URI="https://download.gluster.org/pub/gluster/${PN}/$(ver_cut 1)/${PV}/${P}.tar.gz"
54 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
55 -
56 -DESCRIPTION="GlusterFS is a powerful network/cluster filesystem"
57 -HOMEPAGE="https://www.gluster.org/ https://github.com/gluster/glusterfs/"
58 -
59 -LICENSE="|| ( GPL-2 LGPL-3+ )"
60 -SLOT="0/${PV%%.*}"
61 -IUSE="debug emacs +fuse +georeplication ipv6 +libtirpc rsyslog static-libs +syslog test +xml"
62 -
63 -REQUIRED_USE="georeplication? ( ${PYTHON_REQUIRED_USE} xml )
64 - ipv6? ( libtirpc )"
65 -
66 -# the tests must be run as root
67 -RESTRICT="test"
68 -
69 -# sys-apps/util-linux is required for libuuid
70 -RDEPEND="
71 - acct-group/gluster
72 - acct-user/gluster
73 - dev-libs/libaio
74 - dev-libs/userspace-rcu:=
75 - net-libs/rpcsvc-proto
76 - sys-apps/util-linux
77 - sys-libs/liburing:=
78 - sys-libs/readline:=
79 - emacs? ( >=app-editors/emacs-23.1:* )
80 - fuse? ( >=sys-fs/fuse-2.7.0:0 )
81 - georeplication? ( ${PYTHON_DEPS} )
82 - xml? ( dev-libs/libxml2 )
83 - !elibc_glibc? ( sys-libs/argp-standalone )
84 - libtirpc? ( net-libs/libtirpc:= )
85 - !libtirpc? ( elibc_glibc? ( sys-libs/glibc[rpc(-)] ) )
86 - dev-libs/openssl:=[-bindist(-)]
87 -"
88 -DEPEND="
89 - ${RDEPEND}
90 - sys-devel/bison
91 - sys-devel/flex
92 - virtual/acl
93 - test? ( >=dev-util/cmocka-1.0.1
94 - app-benchmarks/dbench
95 - dev-vcs/git
96 - net-fs/nfs-utils
97 - virtual/perl-Test-Harness
98 - dev-libs/yajl
99 - sys-fs/xfsprogs
100 - sys-apps/attr )
101 -"
102 -BDEPEND="
103 - virtual/pkgconfig
104 -"
105 -
106 -SITEFILE="50${PN}-mode-gentoo.el"
107 -
108 -DOCS=( AUTHORS ChangeLog NEWS README.md THANKS )
109 -
110 -# Maintainer notes:
111 -# * The build system will always configure & build argp-standalone but it'll never use it
112 -# if the argp.h header is found in the system. Which should be the case with
113 -# glibc or if argp-standalone is installed.
114 -
115 -pkg_setup() {
116 - python_setup "python3*"
117 - python-single-r1_pkg_setup
118 -}
119 -
120 -src_prepare() {
121 - default
122 -
123 - # build rpc-transport and xlators only once as shared libs
124 - find rpc/rpc-transport xlators -name Makefile.am -exec \
125 - sed -i 's|.*$(top_srcdir).*\.sym|\0 -shared|' {} + || die
126 -
127 - # fix execution permissions
128 - chmod +x libglusterfs/src/gen-defaults.py || die
129 -
130 - eautoreconf
131 -}
132 -
133 -src_configure() {
134 - econf \
135 - --disable-fusermount \
136 - $(use_enable debug) \
137 - $(use_enable fuse fuse-client) \
138 - $(use_enable georeplication) \
139 - $(use_enable static-libs static) \
140 - $(use_enable syslog) \
141 - $(use_enable test cmocka) \
142 - $(use_enable xml xml-output) \
143 - $(use libtirpc || echo --without-libtirpc) \
144 - $(use ipv6 && echo --with-ipv6-default) \
145 - --with-tmpfilesdir="${EPREFIX}"/usr/lib/tmpfiles.d \
146 - --localstatedir="${EPREFIX}"/var
147 -}
148 -
149 -src_compile() {
150 - default
151 - use emacs && elisp-compile extras/glusterfs-mode.el
152 -}
153 -
154 -src_test() {
155 - ./run-tests.sh || die
156 -}
157 -
158 -src_install() {
159 - default
160 -
161 - rm \
162 - "${ED}"/etc/glusterfs/glusterfs-{georep-,}logrotate \
163 - "${ED}"/etc/glusterfs/gluster-rsyslog-*.conf \
164 - "${ED}"/usr/share/doc/${PF}/glusterfs{-mode.el,.vim} || die "removing false files failed"
165 -
166 - insinto /etc/logrotate.d
167 - newins "${FILESDIR}"/glusterfs.logrotate glusterfs
168 -
169 - if use rsyslog ; then
170 - insinto /etc/rsyslog.d
171 - newins extras/gluster-rsyslog-7.2.conf 60-gluster.conf
172 - fi
173 -
174 - if use emacs ; then
175 - elisp-install ${PN} extras/glusterfs-mode.el*
176 - elisp-site-file-install "${FILESDIR}/${SITEFILE}"
177 - fi
178 -
179 - insinto /usr/share/vim/vimfiles/ftdetect; doins "${FILESDIR}"/${PN}.vim
180 - insinto /usr/share/vim/vimfiles/syntax; doins extras/${PN}.vim
181 -
182 - # insert some other tools which might be useful
183 - insinto /usr/share/glusterfs/scripts
184 - doins \
185 - extras/backend-{cleanup,xattr-sanitize}.sh \
186 - extras/clear_xattrs.sh \
187 - extras/migrate-unify-to-distribute.sh
188 -
189 - # correct permissions on installed scripts
190 - # fperms 0755 /usr/share/glusterfs/scripts/*.sh
191 - chmod 0755 "${ED}"/usr/share/glusterfs/scripts/*.sh || die
192 -
193 - newinitd "${FILESDIR}/${PN}-r1.initd" glusterfsd
194 - newinitd "${FILESDIR}/glusterd-r3.initd" glusterd
195 - newconfd "${FILESDIR}/${PN}.confd" glusterfsd
196 -
197 - keepdir /var/log/${PN}
198 - keepdir /var/lib/glusterd/{events,glusterfind/.keys}
199 -
200 - # QA
201 - rm -r "${ED}/var/run/" || die
202 - if ! use static-libs; then
203 - find "${D}" -type f -name '*.la' -delete || die
204 - fi
205 -
206 - python_optimize "${ED}"
207 -}
208 -
209 -pkg_postinst() {
210 - tmpfiles_process gluster.conf
211 -
212 - elog "Starting with ${PN}-3.1.0, you can use the glusterd daemon to configure your"
213 - elog "volumes dynamically. To do so, simply use the gluster CLI after running:"
214 - elog " /etc/init.d/glusterd start"
215 - echo
216 - elog "For static configurations, the glusterfsd startup script can be multiplexed."
217 - elog "The default startup script uses /etc/conf.d/glusterfsd to configure the"
218 - elog "separate service. To create additional instances of the glusterfsd service"
219 - elog "simply create a symlink to the glusterfsd startup script."
220 - echo
221 - elog "Example:"
222 - elog " # ln -s glusterfsd /etc/init.d/glusterfsd2"
223 - elog " # ${EDITOR} /etc/glusterfs/glusterfsd2.vol"
224 - elog "You can now treat glusterfsd2 like any other service"
225 - echo
226 - ewarn "You need to use a ntp client to keep the clocks synchronized across all"
227 - ewarn "of your servers. Setup a NTP synchronizing service before attempting to"
228 - ewarn "run GlusterFS."
229 - echo
230 - elog "If you are upgrading from a previous version of ${PN}, please read:"
231 - elog " http://docs.gluster.org/en/latest/Upgrade-Guide/upgrade_to_$(ver_cut '1-2')/"
232 -
233 - use emacs && elisp-site-regen
234 -}
235 -
236 -pkg_postrm() {
237 - use emacs && elisp-site-regen
238 -}
239
240 diff --git a/sys-cluster/glusterfs/glusterfs-9.2-r1.ebuild b/sys-cluster/glusterfs/glusterfs-9.2-r1.ebuild
241 deleted file mode 100644
242 index 8bc22e9cba26..000000000000
243 --- a/sys-cluster/glusterfs/glusterfs-9.2-r1.ebuild
244 +++ /dev/null
245 @@ -1,195 +0,0 @@
246 -# Copyright 1999-2021 Gentoo Authors
247 -# Distributed under the terms of the GNU General Public License v2
248 -
249 -EAPI=7
250 -
251 -PYTHON_COMPAT=( python3_{7..9} )
252 -
253 -inherit autotools elisp-common python-single-r1 tmpfiles
254 -
255 -DESCRIPTION="GlusterFS is a powerful network/cluster filesystem"
256 -HOMEPAGE="https://www.gluster.org/ https://github.com/gluster/glusterfs/"
257 -SRC_URI="https://download.gluster.org/pub/gluster/${PN}/$(ver_cut 1)/${PV}/${P}.tar.gz"
258 -
259 -LICENSE="|| ( GPL-2 LGPL-3+ )"
260 -SLOT="0/${PV%%.*}"
261 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
262 -
263 -IUSE="debug emacs +fuse +georeplication ipv6 +libtirpc rsyslog static-libs +syslog test +xml"
264 -
265 -REQUIRED_USE="georeplication? ( ${PYTHON_REQUIRED_USE} xml )
266 - ipv6? ( libtirpc )"
267 -
268 -# the tests must be run as root
269 -RESTRICT="test"
270 -
271 -# sys-apps/util-linux is required for libuuid
272 -RDEPEND="
273 - acct-group/gluster
274 - acct-user/gluster
275 - dev-libs/libaio
276 - dev-libs/userspace-rcu:=
277 - net-libs/rpcsvc-proto
278 - sys-apps/util-linux
279 - sys-libs/liburing:=
280 - sys-libs/readline:=
281 - emacs? ( >=app-editors/emacs-23.1:* )
282 - fuse? ( >=sys-fs/fuse-2.7.0:0 )
283 - georeplication? ( ${PYTHON_DEPS} )
284 - xml? ( dev-libs/libxml2 )
285 - !elibc_glibc? ( sys-libs/argp-standalone )
286 - libtirpc? ( net-libs/libtirpc:= )
287 - !libtirpc? ( elibc_glibc? ( sys-libs/glibc[rpc(-)] ) )
288 - dev-libs/openssl:=[-bindist(-)]
289 -"
290 -DEPEND="
291 - ${RDEPEND}
292 - sys-devel/bison
293 - sys-devel/flex
294 - virtual/acl
295 - test? ( >=dev-util/cmocka-1.0.1
296 - app-benchmarks/dbench
297 - dev-vcs/git
298 - net-fs/nfs-utils
299 - virtual/perl-Test-Harness
300 - dev-libs/yajl
301 - sys-fs/xfsprogs
302 - sys-apps/attr )
303 -"
304 -BDEPEND="
305 - virtual/pkgconfig
306 -"
307 -
308 -SITEFILE="50${PN}-mode-gentoo.el"
309 -
310 -DOCS=( AUTHORS ChangeLog NEWS README.md THANKS )
311 -
312 -# Maintainer notes:
313 -# * The build system will always configure & build argp-standalone but it'll never use it
314 -# if the argp.h header is found in the system. Which should be the case with
315 -# glibc or if argp-standalone is installed.
316 -
317 -pkg_setup() {
318 - python_setup "python3*"
319 - python-single-r1_pkg_setup
320 -}
321 -
322 -src_prepare() {
323 - default
324 -
325 - # build rpc-transport and xlators only once as shared libs
326 - find rpc/rpc-transport xlators -name Makefile.am -exec \
327 - sed -i 's|.*$(top_srcdir).*\.sym|\0 -shared|' {} + || die
328 -
329 - # fix execution permissions
330 - chmod +x libglusterfs/src/gen-defaults.py || die
331 -
332 - eautoreconf
333 -}
334 -
335 -src_configure() {
336 - econf \
337 - --disable-fusermount \
338 - $(use_enable debug) \
339 - $(use_enable fuse fuse-client) \
340 - $(use_enable georeplication) \
341 - $(use_enable static-libs static) \
342 - $(use_enable syslog) \
343 - $(use_enable test cmocka) \
344 - $(use_enable xml xml-output) \
345 - $(use libtirpc || echo --without-libtirpc) \
346 - $(use ipv6 && echo --with-ipv6-default) \
347 - --with-tmpfilesdir="${EPREFIX}"/usr/lib/tmpfiles.d \
348 - --localstatedir="${EPREFIX}"/var
349 -}
350 -
351 -src_compile() {
352 - default
353 - use emacs && elisp-compile extras/glusterfs-mode.el
354 -}
355 -
356 -src_test() {
357 - ./run-tests.sh || die
358 -}
359 -
360 -src_install() {
361 - default
362 -
363 - rm \
364 - "${ED}"/etc/glusterfs/glusterfs-{georep-,}logrotate \
365 - "${ED}"/etc/glusterfs/gluster-rsyslog-*.conf \
366 - "${ED}"/usr/share/doc/${PF}/glusterfs{-mode.el,.vim} || die "removing false files failed"
367 -
368 - insinto /etc/logrotate.d
369 - newins "${FILESDIR}"/glusterfs.logrotate glusterfs
370 -
371 - if use rsyslog ; then
372 - insinto /etc/rsyslog.d
373 - newins extras/gluster-rsyslog-7.2.conf 60-gluster.conf
374 - fi
375 -
376 - if use emacs ; then
377 - elisp-install ${PN} extras/glusterfs-mode.el*
378 - elisp-site-file-install "${FILESDIR}/${SITEFILE}"
379 - fi
380 -
381 - insinto /usr/share/vim/vimfiles/ftdetect; doins "${FILESDIR}"/${PN}.vim
382 - insinto /usr/share/vim/vimfiles/syntax; doins extras/${PN}.vim
383 -
384 - # insert some other tools which might be useful
385 - insinto /usr/share/glusterfs/scripts
386 - doins \
387 - extras/backend-{cleanup,xattr-sanitize}.sh \
388 - extras/clear_xattrs.sh \
389 - extras/migrate-unify-to-distribute.sh
390 -
391 - # correct permissions on installed scripts
392 - # fperms 0755 /usr/share/glusterfs/scripts/*.sh
393 - chmod 0755 "${ED}"/usr/share/glusterfs/scripts/*.sh || die
394 -
395 - newinitd "${FILESDIR}/${PN}-r1.initd" glusterfsd
396 - newinitd "${FILESDIR}/glusterd-r4.initd" glusterd
397 - newconfd "${FILESDIR}/${PN}.confd" glusterfsd
398 -
399 - keepdir /var/log/${PN}
400 - keepdir /var/lib/glusterd/{events,glusterfind/.keys}
401 -
402 - # QA
403 - rm -r "${ED}/var/run/" || die
404 - if ! use static-libs; then
405 - find "${D}" -type f -name '*.la' -delete || die
406 - fi
407 -
408 - python_optimize "${ED}"
409 -}
410 -
411 -pkg_postinst() {
412 - tmpfiles_process gluster.conf
413 -
414 - elog "Starting with ${PN}-3.1.0, you can use the glusterd daemon to configure your"
415 - elog "volumes dynamically. To do so, simply use the gluster CLI after running:"
416 - elog " /etc/init.d/glusterd start"
417 - echo
418 - elog "For static configurations, the glusterfsd startup script can be multiplexed."
419 - elog "The default startup script uses /etc/conf.d/glusterfsd to configure the"
420 - elog "separate service. To create additional instances of the glusterfsd service"
421 - elog "simply create a symlink to the glusterfsd startup script."
422 - echo
423 - elog "Example:"
424 - elog " # ln -s glusterfsd /etc/init.d/glusterfsd2"
425 - elog " # ${EDITOR} /etc/glusterfs/glusterfsd2.vol"
426 - elog "You can now treat glusterfsd2 like any other service"
427 - echo
428 - ewarn "You need to use a ntp client to keep the clocks synchronized across all"
429 - ewarn "of your servers. Setup a NTP synchronizing service before attempting to"
430 - ewarn "run GlusterFS."
431 - echo
432 - elog "If you are upgrading from a previous version of ${PN}, please read:"
433 - elog " http://docs.gluster.org/en/latest/Upgrade-Guide/upgrade_to_$(ver_cut '1-2')/"
434 -
435 - use emacs && elisp-site-regen
436 -}
437 -
438 -pkg_postrm() {
439 - use emacs && elisp-site-regen
440 -}
441
442 diff --git a/sys-cluster/glusterfs/glusterfs-9.3.ebuild b/sys-cluster/glusterfs/glusterfs-9.3.ebuild
443 deleted file mode 100644
444 index 8bc22e9cba26..000000000000
445 --- a/sys-cluster/glusterfs/glusterfs-9.3.ebuild
446 +++ /dev/null
447 @@ -1,195 +0,0 @@
448 -# Copyright 1999-2021 Gentoo Authors
449 -# Distributed under the terms of the GNU General Public License v2
450 -
451 -EAPI=7
452 -
453 -PYTHON_COMPAT=( python3_{7..9} )
454 -
455 -inherit autotools elisp-common python-single-r1 tmpfiles
456 -
457 -DESCRIPTION="GlusterFS is a powerful network/cluster filesystem"
458 -HOMEPAGE="https://www.gluster.org/ https://github.com/gluster/glusterfs/"
459 -SRC_URI="https://download.gluster.org/pub/gluster/${PN}/$(ver_cut 1)/${PV}/${P}.tar.gz"
460 -
461 -LICENSE="|| ( GPL-2 LGPL-3+ )"
462 -SLOT="0/${PV%%.*}"
463 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
464 -
465 -IUSE="debug emacs +fuse +georeplication ipv6 +libtirpc rsyslog static-libs +syslog test +xml"
466 -
467 -REQUIRED_USE="georeplication? ( ${PYTHON_REQUIRED_USE} xml )
468 - ipv6? ( libtirpc )"
469 -
470 -# the tests must be run as root
471 -RESTRICT="test"
472 -
473 -# sys-apps/util-linux is required for libuuid
474 -RDEPEND="
475 - acct-group/gluster
476 - acct-user/gluster
477 - dev-libs/libaio
478 - dev-libs/userspace-rcu:=
479 - net-libs/rpcsvc-proto
480 - sys-apps/util-linux
481 - sys-libs/liburing:=
482 - sys-libs/readline:=
483 - emacs? ( >=app-editors/emacs-23.1:* )
484 - fuse? ( >=sys-fs/fuse-2.7.0:0 )
485 - georeplication? ( ${PYTHON_DEPS} )
486 - xml? ( dev-libs/libxml2 )
487 - !elibc_glibc? ( sys-libs/argp-standalone )
488 - libtirpc? ( net-libs/libtirpc:= )
489 - !libtirpc? ( elibc_glibc? ( sys-libs/glibc[rpc(-)] ) )
490 - dev-libs/openssl:=[-bindist(-)]
491 -"
492 -DEPEND="
493 - ${RDEPEND}
494 - sys-devel/bison
495 - sys-devel/flex
496 - virtual/acl
497 - test? ( >=dev-util/cmocka-1.0.1
498 - app-benchmarks/dbench
499 - dev-vcs/git
500 - net-fs/nfs-utils
501 - virtual/perl-Test-Harness
502 - dev-libs/yajl
503 - sys-fs/xfsprogs
504 - sys-apps/attr )
505 -"
506 -BDEPEND="
507 - virtual/pkgconfig
508 -"
509 -
510 -SITEFILE="50${PN}-mode-gentoo.el"
511 -
512 -DOCS=( AUTHORS ChangeLog NEWS README.md THANKS )
513 -
514 -# Maintainer notes:
515 -# * The build system will always configure & build argp-standalone but it'll never use it
516 -# if the argp.h header is found in the system. Which should be the case with
517 -# glibc or if argp-standalone is installed.
518 -
519 -pkg_setup() {
520 - python_setup "python3*"
521 - python-single-r1_pkg_setup
522 -}
523 -
524 -src_prepare() {
525 - default
526 -
527 - # build rpc-transport and xlators only once as shared libs
528 - find rpc/rpc-transport xlators -name Makefile.am -exec \
529 - sed -i 's|.*$(top_srcdir).*\.sym|\0 -shared|' {} + || die
530 -
531 - # fix execution permissions
532 - chmod +x libglusterfs/src/gen-defaults.py || die
533 -
534 - eautoreconf
535 -}
536 -
537 -src_configure() {
538 - econf \
539 - --disable-fusermount \
540 - $(use_enable debug) \
541 - $(use_enable fuse fuse-client) \
542 - $(use_enable georeplication) \
543 - $(use_enable static-libs static) \
544 - $(use_enable syslog) \
545 - $(use_enable test cmocka) \
546 - $(use_enable xml xml-output) \
547 - $(use libtirpc || echo --without-libtirpc) \
548 - $(use ipv6 && echo --with-ipv6-default) \
549 - --with-tmpfilesdir="${EPREFIX}"/usr/lib/tmpfiles.d \
550 - --localstatedir="${EPREFIX}"/var
551 -}
552 -
553 -src_compile() {
554 - default
555 - use emacs && elisp-compile extras/glusterfs-mode.el
556 -}
557 -
558 -src_test() {
559 - ./run-tests.sh || die
560 -}
561 -
562 -src_install() {
563 - default
564 -
565 - rm \
566 - "${ED}"/etc/glusterfs/glusterfs-{georep-,}logrotate \
567 - "${ED}"/etc/glusterfs/gluster-rsyslog-*.conf \
568 - "${ED}"/usr/share/doc/${PF}/glusterfs{-mode.el,.vim} || die "removing false files failed"
569 -
570 - insinto /etc/logrotate.d
571 - newins "${FILESDIR}"/glusterfs.logrotate glusterfs
572 -
573 - if use rsyslog ; then
574 - insinto /etc/rsyslog.d
575 - newins extras/gluster-rsyslog-7.2.conf 60-gluster.conf
576 - fi
577 -
578 - if use emacs ; then
579 - elisp-install ${PN} extras/glusterfs-mode.el*
580 - elisp-site-file-install "${FILESDIR}/${SITEFILE}"
581 - fi
582 -
583 - insinto /usr/share/vim/vimfiles/ftdetect; doins "${FILESDIR}"/${PN}.vim
584 - insinto /usr/share/vim/vimfiles/syntax; doins extras/${PN}.vim
585 -
586 - # insert some other tools which might be useful
587 - insinto /usr/share/glusterfs/scripts
588 - doins \
589 - extras/backend-{cleanup,xattr-sanitize}.sh \
590 - extras/clear_xattrs.sh \
591 - extras/migrate-unify-to-distribute.sh
592 -
593 - # correct permissions on installed scripts
594 - # fperms 0755 /usr/share/glusterfs/scripts/*.sh
595 - chmod 0755 "${ED}"/usr/share/glusterfs/scripts/*.sh || die
596 -
597 - newinitd "${FILESDIR}/${PN}-r1.initd" glusterfsd
598 - newinitd "${FILESDIR}/glusterd-r4.initd" glusterd
599 - newconfd "${FILESDIR}/${PN}.confd" glusterfsd
600 -
601 - keepdir /var/log/${PN}
602 - keepdir /var/lib/glusterd/{events,glusterfind/.keys}
603 -
604 - # QA
605 - rm -r "${ED}/var/run/" || die
606 - if ! use static-libs; then
607 - find "${D}" -type f -name '*.la' -delete || die
608 - fi
609 -
610 - python_optimize "${ED}"
611 -}
612 -
613 -pkg_postinst() {
614 - tmpfiles_process gluster.conf
615 -
616 - elog "Starting with ${PN}-3.1.0, you can use the glusterd daemon to configure your"
617 - elog "volumes dynamically. To do so, simply use the gluster CLI after running:"
618 - elog " /etc/init.d/glusterd start"
619 - echo
620 - elog "For static configurations, the glusterfsd startup script can be multiplexed."
621 - elog "The default startup script uses /etc/conf.d/glusterfsd to configure the"
622 - elog "separate service. To create additional instances of the glusterfsd service"
623 - elog "simply create a symlink to the glusterfsd startup script."
624 - echo
625 - elog "Example:"
626 - elog " # ln -s glusterfsd /etc/init.d/glusterfsd2"
627 - elog " # ${EDITOR} /etc/glusterfs/glusterfsd2.vol"
628 - elog "You can now treat glusterfsd2 like any other service"
629 - echo
630 - ewarn "You need to use a ntp client to keep the clocks synchronized across all"
631 - ewarn "of your servers. Setup a NTP synchronizing service before attempting to"
632 - ewarn "run GlusterFS."
633 - echo
634 - elog "If you are upgrading from a previous version of ${PN}, please read:"
635 - elog " http://docs.gluster.org/en/latest/Upgrade-Guide/upgrade_to_$(ver_cut '1-2')/"
636 -
637 - use emacs && elisp-site-regen
638 -}
639 -
640 -pkg_postrm() {
641 - use emacs && elisp-site-regen
642 -}