Gentoo Archives: gentoo-commits

From: Alexys Jacob <ultrabug@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/glusterfs/
Date: Fri, 09 Oct 2020 10:57:47
Message-Id: 1602241026.9513651cfcaff15f57d529797c1debcb1b591234.ultrabug@gentoo
1 commit: 9513651cfcaff15f57d529797c1debcb1b591234
2 Author: Jaco Kroon <jaco <AT> uls <DOT> co <DOT> za>
3 AuthorDate: Tue Oct 6 21:31:13 2020 +0000
4 Commit: Alexys Jacob <ultrabug <AT> gentoo <DOT> org>
5 CommitDate: Fri Oct 9 10:57:06 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9513651c
7
8 sys-cluster/glusterfs: cleanup old versions
9
10 Signed-off-by: Jaco Kroon <jaco <AT> uls.co.za>
11 Closes: https://github.com/gentoo/gentoo/pull/17829
12 Signed-off-by: Alexys Jacob <ultrabug <AT> gentoo.org>
13
14 sys-cluster/glusterfs/Manifest | 4 -
15 sys-cluster/glusterfs/glusterfs-6.8.ebuild | 211 -----------------------------
16 sys-cluster/glusterfs/glusterfs-6.9.ebuild | 211 -----------------------------
17 sys-cluster/glusterfs/glusterfs-7.5.ebuild | 211 -----------------------------
18 sys-cluster/glusterfs/glusterfs-7.6.ebuild | 211 -----------------------------
19 5 files changed, 848 deletions(-)
20
21 diff --git a/sys-cluster/glusterfs/Manifest b/sys-cluster/glusterfs/Manifest
22 index e5334decc1a..d7ff5a5d691 100644
23 --- a/sys-cluster/glusterfs/Manifest
24 +++ b/sys-cluster/glusterfs/Manifest
25 @@ -1,6 +1,2 @@
26 -DIST glusterfs-6.8.tar.gz 7572097 BLAKE2B 76b7c699a4fc864d8074b591b3583030d837a0beb63bb54e93458930a4af29bd9b1874dd33f0b7aecbf57d7dc454d448e67b71f38975281108a9fed76f9cf4aa SHA512 a28af19aa0ab2a356a2b7eff447d6b39ff821d7da59037e91a38d8cb43f51f7007b790f765fcbaccf9107554b59174e72d8b1ae9947e6342d2815bfae1adbad7
27 -DIST glusterfs-6.9.tar.gz 7580928 BLAKE2B 655544b7ffa70ac9980e1a1041af538f473b6b6c8cb77f6e3447908b903b3a2b3ee0234c18fb71f997f31f24f8a790ab2f5a05a6b392090601db455ac726262a SHA512 3bf167aed4f572f94ad4708c5fff7b578a334af1eb0322c36e15127a2089b6359e8d91a36793d8af93c8f76dbdf6ded649c3e0a6c1a879163c8d8b640cea334b
28 -DIST glusterfs-7.5.tar.gz 7649044 BLAKE2B 01088654051a33c3a009b42c6e7adf7cabc52927a83a3331eced428ed3e6bfb3f7198fcc53a2b1dce678ac58c2f2619d02cce72a9850a50f3a26b37d39baeeaa SHA512 dfd8f04fb398daa7d7f58ef978ab69c0a55a313ac2af3287f7e1e7044f708317227c8749af5fd8d56844dfb8ad47bbd3214c42b806e2e21191a6a8617ab0be38
29 -DIST glusterfs-7.6.tar.gz 7653500 BLAKE2B ff3d4817f2a8b85126669cfbe6f58990aaccfffd91464d7acd97d7092c8eb94c21552eaf5e2301e3e6a7f99534b40c2afce1ade593d8ac559baee2d175538333 SHA512 c26b2046e7afdbb37fdd395fd9f692a0513ebb58c91ea223fbbaf9f8b41641b1fd009f2975e187f0feb8d83fb5cd4a8a0c2fdf4591a8a31e920d6bba75ae7c0f
30 DIST glusterfs-7.7.tar.gz 7675420 BLAKE2B cadd415053d791f5fe4fddbc45bf237275b29fb0340202eaf81bbd2e98c8e7a1b59fa276b8b47679224198675759287a2245095a751602a866d512155dfa73c8 SHA512 0a301802920e337a4931ed36133c76ef551e0c1794d324e5a0a120d289a53fb8a4a2fd8adaa7abe5a40b8b17cc2bb18d01426c9f18d91f68b1589429ddbaa125
31 DIST glusterfs-7.8.tar.gz 7703665 BLAKE2B 39a2b459fc021bf17c2ea12661d8c808a688c5934de087d23550409f6c68dff5ea94156dcba52f15d78db8b600ebf9418152a6d6bf10d1ac6291d43d14f3ceda SHA512 40f7df4bb80a372b370366e8f370f9efdf838122be84d5524b2353027b4eb6005a43b808911214c56411264764164d6480418329db94ed0fe284fdcbd9bccbea
32
33 diff --git a/sys-cluster/glusterfs/glusterfs-6.8.ebuild b/sys-cluster/glusterfs/glusterfs-6.8.ebuild
34 deleted file mode 100644
35 index 766aac8d9a8..00000000000
36 --- a/sys-cluster/glusterfs/glusterfs-6.8.ebuild
37 +++ /dev/null
38 @@ -1,211 +0,0 @@
39 -# Copyright 1999-2020 Gentoo Authors
40 -# Distributed under the terms of the GNU General Public License v2
41 -
42 -EAPI=7
43 -
44 -PYTHON_COMPAT=( python3_{6,7,8} )
45 -
46 -inherit autotools elisp-common python-single-r1 systemd
47 -
48 -if [[ ${PV#9999} != ${PV} ]]; then
49 - inherit git-r3
50 - EGIT_REPO_URI="https://github.com/gluster/glusterfs.git"
51 -else
52 - SRC_URI="https://download.gluster.org/pub/gluster/${PN}/$(ver_cut 1)/${PV}/${P}.tar.gz"
53 - KEYWORDS="amd64 ~arm ~arm64 ppc ppc64 x86"
54 -fi
55 -
56 -DESCRIPTION="GlusterFS is a powerful network/cluster filesystem"
57 -HOMEPAGE="https://www.gluster.org/"
58 -
59 -LICENSE="|| ( GPL-2 LGPL-3+ )"
60 -SLOT="0"
61 -IUSE="debug emacs +fuse +georeplication infiniband ipv6 libressl +libtirpc rsyslog static-libs +syslog test vim-syntax +xml"
62 -
63 -REQUIRED_USE="georeplication? ( ${PYTHON_REQUIRED_USE} )
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/readline:=
78 - emacs? ( >=app-editors/emacs-23.1:* )
79 - fuse? ( >=sys-fs/fuse-2.7.0:0 )
80 - georeplication? ( ${PYTHON_DEPS} )
81 - infiniband? ( sys-fabric/libibverbs:* sys-fabric/librdmacm:* )
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 - !libressl? ( dev-libs/openssl:=[-bindist] )
87 - libressl? ( dev-libs/libressl:= )
88 -"
89 -DEPEND="
90 - ${RDEPEND}
91 - sys-devel/bison
92 - sys-devel/flex
93 - virtual/acl
94 - test? ( >=dev-util/cmocka-1.0.1
95 - app-benchmarks/dbench
96 - dev-vcs/git
97 - net-fs/nfs-utils
98 - virtual/perl-Test-Harness
99 - dev-libs/yajl
100 - sys-fs/xfsprogs
101 - sys-apps/attr )
102 -"
103 -BDEPEND="
104 - virtual/pkgconfig
105 -"
106 -
107 -SITEFILE="50${PN}-mode-gentoo.el"
108 -
109 -DOCS=( AUTHORS ChangeLog NEWS README.md THANKS )
110 -
111 -# Maintainer notes:
112 -# * The build system will always configure & build argp-standalone but it'll never use it
113 -# if the argp.h header is found in the system. Which should be the case with
114 -# glibc or if argp-standalone is installed.
115 -
116 -pkg_setup() {
117 - python_setup "python3*"
118 - python-single-r1_pkg_setup
119 -}
120 -
121 -src_prepare() {
122 - default
123 -
124 - # https://bugs.gentoo.org/705536
125 - # https://bugzilla.redhat.com/show_bug.cgi?id=1793990
126 - eapply "${FILESDIR}/glusterfs-6.7-fix-seek.patch"
127 -
128 - # build rpc-transport and xlators only once as shared libs
129 - find rpc/rpc-transport xlators -name Makefile.am |
130 - xargs sed -i 's|.*$(top_srcdir).*\.sym|\0 -shared|' || die
131 -
132 - # fix execution permissions
133 - chmod +x libglusterfs/src/gen-defaults.py || die
134 -
135 - eautoreconf
136 -}
137 -
138 -src_configure() {
139 - econf \
140 - --disable-fusermount \
141 - $(use_enable debug) \
142 - $(use_enable fuse fuse-client) \
143 - $(use_enable georeplication) \
144 - $(use_enable infiniband ibverbs) \
145 - $(use_enable static-libs static) \
146 - $(use_enable syslog) \
147 - $(use_enable test cmocka) \
148 - $(use_enable xml xml-output) \
149 - $(use libtirpc || echo --without-libtirpc) \
150 - $(use ipv6 && echo --with-ipv6-default) \
151 - --with-tmpfilesdir="${EPREFIX}"/etc/tmpfiles.d \
152 - --localstatedir="${EPREFIX}"/var
153 -}
154 -
155 -src_compile() {
156 - default
157 - use emacs && elisp-compile extras/glusterfs-mode.el
158 -}
159 -
160 -src_install() {
161 - default
162 -
163 - rm \
164 - "${ED}"/etc/glusterfs/glusterfs-{georep-,}logrotate \
165 - "${ED}"/etc/glusterfs/gluster-rsyslog-*.conf \
166 - "${ED}"/usr/share/doc/${PF}/glusterfs{-mode.el,.vim} || die "removing false files failed"
167 -
168 - insinto /etc/logrotate.d
169 - newins "${FILESDIR}"/glusterfs.logrotate glusterfs
170 -
171 - if use rsyslog ; then
172 - insinto /etc/rsyslog.d
173 - newins extras/gluster-rsyslog-7.2.conf 60-gluster.conf
174 - fi
175 -
176 - if use emacs ; then
177 - elisp-install ${PN} extras/glusterfs-mode.el*
178 - elisp-site-file-install "${FILESDIR}/${SITEFILE}"
179 - fi
180 -
181 - if use vim-syntax ; then
182 - insinto /usr/share/vim/vimfiles/ftdetect; doins "${FILESDIR}"/${PN}.vim
183 - insinto /usr/share/vim/vimfiles/syntax; doins extras/${PN}.vim
184 - fi
185 -
186 - # insert some other tools which might be useful
187 - insinto /usr/share/glusterfs/scripts
188 - doins \
189 - extras/backend-{cleanup,xattr-sanitize}.sh \
190 - extras/clear_xattrs.sh \
191 - extras/migrate-unify-to-distribute.sh
192 -
193 - # correct permissions on installed scripts
194 - # fperms 0755 /usr/share/glusterfs/scripts/*.sh
195 - chmod 0755 "${ED}"/usr/share/glusterfs/scripts/*.sh || die
196 -
197 - if use georeplication ; then
198 - # move the gsync-sync-gfid tool to a binary path
199 - # and set a symlink to be compliant with all other distros
200 - mv "${ED}"/usr/{share/glusterfs/scripts/gsync-sync-gfid,libexec/glusterfs/} || die
201 - dosym ../../../libexec/glusterfs/gsync-sync-gfid /usr/share/glusterfs/scripts/gsync-sync-gfid
202 - fi
203 -
204 - newinitd "${FILESDIR}/${PN}-r1.initd" glusterfsd
205 - newinitd "${FILESDIR}/glusterd-r3.initd" glusterd
206 - newconfd "${FILESDIR}/${PN}.confd" glusterfsd
207 -
208 - keepdir /var/log/${PN}
209 - keepdir /var/lib/glusterd/{events,glusterfind/.keys}
210 -
211 - # QA
212 - rm -r "${ED}/var/run/" || die
213 - if ! use static-libs; then
214 - find "${D}" -type f -name '*.la' -delete || die
215 - fi
216 -}
217 -
218 -src_test() {
219 - ./run-tests.sh || die
220 -}
221 -
222 -pkg_postinst() {
223 - elog "Starting with ${PN}-3.1.0, you can use the glusterd daemon to configure your"
224 - elog "volumes dynamically. To do so, simply use the gluster CLI after running:"
225 - elog " /etc/init.d/glusterd start"
226 - echo
227 - elog "For static configurations, the glusterfsd startup script can be multiplexed."
228 - elog "The default startup script uses /etc/conf.d/glusterfsd to configure the"
229 - elog "separate service. To create additional instances of the glusterfsd service"
230 - elog "simply create a symlink to the glusterfsd startup script."
231 - echo
232 - elog "Example:"
233 - elog " # ln -s glusterfsd /etc/init.d/glusterfsd2"
234 - elog " # ${EDITOR} /etc/glusterfs/glusterfsd2.vol"
235 - elog "You can now treat glusterfsd2 like any other service"
236 - echo
237 - ewarn "You need to use a ntp client to keep the clocks synchronized across all"
238 - ewarn "of your servers. Setup a NTP synchronizing service before attempting to"
239 - ewarn "run GlusterFS."
240 - echo
241 - elog "If you are upgrading from a previous version of ${PN}, please read:"
242 - elog " http://docs.gluster.org/en/latest/Upgrade-Guide/upgrade_to_$(ver_cut '1-2')/"
243 -
244 - use emacs && elisp-site-regen
245 -}
246 -
247 -pkg_postrm() {
248 - use emacs && elisp-site-regen
249 -}
250
251 diff --git a/sys-cluster/glusterfs/glusterfs-6.9.ebuild b/sys-cluster/glusterfs/glusterfs-6.9.ebuild
252 deleted file mode 100644
253 index 14d47e54215..00000000000
254 --- a/sys-cluster/glusterfs/glusterfs-6.9.ebuild
255 +++ /dev/null
256 @@ -1,211 +0,0 @@
257 -# Copyright 1999-2020 Gentoo Authors
258 -# Distributed under the terms of the GNU General Public License v2
259 -
260 -EAPI=7
261 -
262 -PYTHON_COMPAT=( python3_{6..9} )
263 -
264 -inherit autotools elisp-common python-single-r1 systemd
265 -
266 -if [[ ${PV#9999} != ${PV} ]]; then
267 - inherit git-r3
268 - EGIT_REPO_URI="https://github.com/gluster/glusterfs.git"
269 -else
270 - SRC_URI="https://download.gluster.org/pub/gluster/${PN}/$(ver_cut 1)/${PV}/${P}.tar.gz"
271 - KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
272 -fi
273 -
274 -DESCRIPTION="GlusterFS is a powerful network/cluster filesystem"
275 -HOMEPAGE="https://www.gluster.org/"
276 -
277 -LICENSE="|| ( GPL-2 LGPL-3+ )"
278 -SLOT="0"
279 -IUSE="debug emacs +fuse +georeplication infiniband ipv6 libressl +libtirpc rsyslog static-libs +syslog test vim-syntax +xml"
280 -
281 -REQUIRED_USE="georeplication? ( ${PYTHON_REQUIRED_USE} )
282 - ipv6? ( libtirpc )"
283 -
284 -# the tests must be run as root
285 -RESTRICT="test"
286 -
287 -# sys-apps/util-linux is required for libuuid
288 -RDEPEND="
289 - acct-group/gluster
290 - acct-user/gluster
291 - dev-libs/libaio
292 - dev-libs/userspace-rcu:=
293 - net-libs/rpcsvc-proto
294 - sys-apps/util-linux
295 - sys-libs/readline:=
296 - emacs? ( >=app-editors/emacs-23.1:* )
297 - fuse? ( >=sys-fs/fuse-2.7.0:0 )
298 - georeplication? ( ${PYTHON_DEPS} )
299 - infiniband? ( sys-fabric/libibverbs:* sys-fabric/librdmacm:* )
300 - xml? ( dev-libs/libxml2 )
301 - !elibc_glibc? ( sys-libs/argp-standalone )
302 - libtirpc? ( net-libs/libtirpc:= )
303 - !libtirpc? ( elibc_glibc? ( sys-libs/glibc[rpc(-)] ) )
304 - !libressl? ( dev-libs/openssl:=[-bindist] )
305 - libressl? ( dev-libs/libressl:= )
306 -"
307 -DEPEND="
308 - ${RDEPEND}
309 - sys-devel/bison
310 - sys-devel/flex
311 - virtual/acl
312 - test? ( >=dev-util/cmocka-1.0.1
313 - app-benchmarks/dbench
314 - dev-vcs/git
315 - net-fs/nfs-utils
316 - virtual/perl-Test-Harness
317 - dev-libs/yajl
318 - sys-fs/xfsprogs
319 - sys-apps/attr )
320 -"
321 -BDEPEND="
322 - virtual/pkgconfig
323 -"
324 -
325 -SITEFILE="50${PN}-mode-gentoo.el"
326 -
327 -DOCS=( AUTHORS ChangeLog NEWS README.md THANKS )
328 -
329 -# Maintainer notes:
330 -# * The build system will always configure & build argp-standalone but it'll never use it
331 -# if the argp.h header is found in the system. Which should be the case with
332 -# glibc or if argp-standalone is installed.
333 -
334 -pkg_setup() {
335 - python_setup "python3*"
336 - python-single-r1_pkg_setup
337 -}
338 -
339 -src_prepare() {
340 - default
341 -
342 - # https://bugs.gentoo.org/705536
343 - # https://bugzilla.redhat.com/show_bug.cgi?id=1793990
344 - eapply "${FILESDIR}/glusterfs-6.7-fix-seek.patch"
345 -
346 - # build rpc-transport and xlators only once as shared libs
347 - find rpc/rpc-transport xlators -name Makefile.am |
348 - xargs sed -i 's|.*$(top_srcdir).*\.sym|\0 -shared|' || die
349 -
350 - # fix execution permissions
351 - chmod +x libglusterfs/src/gen-defaults.py || die
352 -
353 - eautoreconf
354 -}
355 -
356 -src_configure() {
357 - econf \
358 - --disable-fusermount \
359 - $(use_enable debug) \
360 - $(use_enable fuse fuse-client) \
361 - $(use_enable georeplication) \
362 - $(use_enable infiniband ibverbs) \
363 - $(use_enable static-libs static) \
364 - $(use_enable syslog) \
365 - $(use_enable test cmocka) \
366 - $(use_enable xml xml-output) \
367 - $(use libtirpc || echo --without-libtirpc) \
368 - $(use ipv6 && echo --with-ipv6-default) \
369 - --with-tmpfilesdir="${EPREFIX}"/etc/tmpfiles.d \
370 - --localstatedir="${EPREFIX}"/var
371 -}
372 -
373 -src_compile() {
374 - default
375 - use emacs && elisp-compile extras/glusterfs-mode.el
376 -}
377 -
378 -src_install() {
379 - default
380 -
381 - rm \
382 - "${ED}"/etc/glusterfs/glusterfs-{georep-,}logrotate \
383 - "${ED}"/etc/glusterfs/gluster-rsyslog-*.conf \
384 - "${ED}"/usr/share/doc/${PF}/glusterfs{-mode.el,.vim} || die "removing false files failed"
385 -
386 - insinto /etc/logrotate.d
387 - newins "${FILESDIR}"/glusterfs.logrotate glusterfs
388 -
389 - if use rsyslog ; then
390 - insinto /etc/rsyslog.d
391 - newins extras/gluster-rsyslog-7.2.conf 60-gluster.conf
392 - fi
393 -
394 - if use emacs ; then
395 - elisp-install ${PN} extras/glusterfs-mode.el*
396 - elisp-site-file-install "${FILESDIR}/${SITEFILE}"
397 - fi
398 -
399 - if use vim-syntax ; then
400 - insinto /usr/share/vim/vimfiles/ftdetect; doins "${FILESDIR}"/${PN}.vim
401 - insinto /usr/share/vim/vimfiles/syntax; doins extras/${PN}.vim
402 - fi
403 -
404 - # insert some other tools which might be useful
405 - insinto /usr/share/glusterfs/scripts
406 - doins \
407 - extras/backend-{cleanup,xattr-sanitize}.sh \
408 - extras/clear_xattrs.sh \
409 - extras/migrate-unify-to-distribute.sh
410 -
411 - # correct permissions on installed scripts
412 - # fperms 0755 /usr/share/glusterfs/scripts/*.sh
413 - chmod 0755 "${ED}"/usr/share/glusterfs/scripts/*.sh || die
414 -
415 - if use georeplication ; then
416 - # move the gsync-sync-gfid tool to a binary path
417 - # and set a symlink to be compliant with all other distros
418 - mv "${ED}"/usr/{share/glusterfs/scripts/gsync-sync-gfid,libexec/glusterfs/} || die
419 - dosym ../../../libexec/glusterfs/gsync-sync-gfid /usr/share/glusterfs/scripts/gsync-sync-gfid
420 - fi
421 -
422 - newinitd "${FILESDIR}/${PN}-r1.initd" glusterfsd
423 - newinitd "${FILESDIR}/glusterd-r3.initd" glusterd
424 - newconfd "${FILESDIR}/${PN}.confd" glusterfsd
425 -
426 - keepdir /var/log/${PN}
427 - keepdir /var/lib/glusterd/{events,glusterfind/.keys}
428 -
429 - # QA
430 - rm -r "${ED}/var/run/" || die
431 - if ! use static-libs; then
432 - find "${D}" -type f -name '*.la' -delete || die
433 - fi
434 -}
435 -
436 -src_test() {
437 - ./run-tests.sh || die
438 -}
439 -
440 -pkg_postinst() {
441 - elog "Starting with ${PN}-3.1.0, you can use the glusterd daemon to configure your"
442 - elog "volumes dynamically. To do so, simply use the gluster CLI after running:"
443 - elog " /etc/init.d/glusterd start"
444 - echo
445 - elog "For static configurations, the glusterfsd startup script can be multiplexed."
446 - elog "The default startup script uses /etc/conf.d/glusterfsd to configure the"
447 - elog "separate service. To create additional instances of the glusterfsd service"
448 - elog "simply create a symlink to the glusterfsd startup script."
449 - echo
450 - elog "Example:"
451 - elog " # ln -s glusterfsd /etc/init.d/glusterfsd2"
452 - elog " # ${EDITOR} /etc/glusterfs/glusterfsd2.vol"
453 - elog "You can now treat glusterfsd2 like any other service"
454 - echo
455 - ewarn "You need to use a ntp client to keep the clocks synchronized across all"
456 - ewarn "of your servers. Setup a NTP synchronizing service before attempting to"
457 - ewarn "run GlusterFS."
458 - echo
459 - elog "If you are upgrading from a previous version of ${PN}, please read:"
460 - elog " http://docs.gluster.org/en/latest/Upgrade-Guide/upgrade_to_$(ver_cut '1-2')/"
461 -
462 - use emacs && elisp-site-regen
463 -}
464 -
465 -pkg_postrm() {
466 - use emacs && elisp-site-regen
467 -}
468
469 diff --git a/sys-cluster/glusterfs/glusterfs-7.5.ebuild b/sys-cluster/glusterfs/glusterfs-7.5.ebuild
470 deleted file mode 100644
471 index 5812e989cf9..00000000000
472 --- a/sys-cluster/glusterfs/glusterfs-7.5.ebuild
473 +++ /dev/null
474 @@ -1,211 +0,0 @@
475 -# Copyright 1999-2020 Gentoo Authors
476 -# Distributed under the terms of the GNU General Public License v2
477 -
478 -EAPI=7
479 -
480 -PYTHON_COMPAT=( python3_{6,7,8} )
481 -
482 -inherit autotools elisp-common python-single-r1 systemd
483 -
484 -if [[ ${PV#9999} != ${PV} ]]; then
485 - inherit git-r3
486 - EGIT_REPO_URI="https://github.com/gluster/glusterfs.git"
487 -else
488 - SRC_URI="https://download.gluster.org/pub/gluster/${PN}/$(ver_cut 1)/${PV}/${P}.tar.gz"
489 - KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
490 -fi
491 -
492 -DESCRIPTION="GlusterFS is a powerful network/cluster filesystem"
493 -HOMEPAGE="https://www.gluster.org/"
494 -
495 -LICENSE="|| ( GPL-2 LGPL-3+ )"
496 -SLOT="0"
497 -IUSE="debug emacs +fuse +georeplication infiniband ipv6 libressl +libtirpc rsyslog static-libs +syslog test vim-syntax +xml"
498 -
499 -REQUIRED_USE="georeplication? ( ${PYTHON_REQUIRED_USE} )
500 - ipv6? ( libtirpc )"
501 -
502 -# the tests must be run as root
503 -RESTRICT="test"
504 -
505 -# sys-apps/util-linux is required for libuuid
506 -RDEPEND="
507 - acct-group/gluster
508 - acct-user/gluster
509 - dev-libs/libaio
510 - dev-libs/userspace-rcu:=
511 - net-libs/rpcsvc-proto
512 - sys-apps/util-linux
513 - sys-libs/readline:=
514 - emacs? ( >=app-editors/emacs-23.1:* )
515 - fuse? ( >=sys-fs/fuse-2.7.0:0 )
516 - georeplication? ( ${PYTHON_DEPS} )
517 - infiniband? ( sys-fabric/libibverbs:* sys-fabric/librdmacm:* )
518 - xml? ( dev-libs/libxml2 )
519 - !elibc_glibc? ( sys-libs/argp-standalone )
520 - libtirpc? ( net-libs/libtirpc:= )
521 - !libtirpc? ( elibc_glibc? ( sys-libs/glibc[rpc(-)] ) )
522 - !libressl? ( dev-libs/openssl:=[-bindist] )
523 - libressl? ( dev-libs/libressl:= )
524 -"
525 -DEPEND="
526 - ${RDEPEND}
527 - sys-devel/bison
528 - sys-devel/flex
529 - virtual/acl
530 - test? ( >=dev-util/cmocka-1.0.1
531 - app-benchmarks/dbench
532 - dev-vcs/git
533 - net-fs/nfs-utils
534 - virtual/perl-Test-Harness
535 - dev-libs/yajl
536 - sys-fs/xfsprogs
537 - sys-apps/attr )
538 -"
539 -BDEPEND="
540 - virtual/pkgconfig
541 -"
542 -
543 -SITEFILE="50${PN}-mode-gentoo.el"
544 -
545 -DOCS=( AUTHORS ChangeLog NEWS README.md THANKS )
546 -
547 -# Maintainer notes:
548 -# * The build system will always configure & build argp-standalone but it'll never use it
549 -# if the argp.h header is found in the system. Which should be the case with
550 -# glibc or if argp-standalone is installed.
551 -
552 -pkg_setup() {
553 - python_setup "python3*"
554 - python-single-r1_pkg_setup
555 -}
556 -
557 -src_prepare() {
558 - default
559 -
560 - # https://bugs.gentoo.org/705536
561 - # https://bugzilla.redhat.com/show_bug.cgi?id=1793990
562 - eapply "${FILESDIR}/glusterfs-6.7-fix-seek.patch"
563 -
564 - # build rpc-transport and xlators only once as shared libs
565 - find rpc/rpc-transport xlators -name Makefile.am |
566 - xargs sed -i 's|.*$(top_srcdir).*\.sym|\0 -shared|' || die
567 -
568 - # fix execution permissions
569 - chmod +x libglusterfs/src/gen-defaults.py || die
570 -
571 - eautoreconf
572 -}
573 -
574 -src_configure() {
575 - econf \
576 - --disable-fusermount \
577 - $(use_enable debug) \
578 - $(use_enable fuse fuse-client) \
579 - $(use_enable georeplication) \
580 - $(use_enable infiniband ibverbs) \
581 - $(use_enable static-libs static) \
582 - $(use_enable syslog) \
583 - $(use_enable test cmocka) \
584 - $(use_enable xml xml-output) \
585 - $(use libtirpc || echo --without-libtirpc) \
586 - $(use ipv6 && echo --with-ipv6-default) \
587 - --with-tmpfilesdir="${EPREFIX}"/etc/tmpfiles.d \
588 - --localstatedir="${EPREFIX}"/var
589 -}
590 -
591 -src_compile() {
592 - default
593 - use emacs && elisp-compile extras/glusterfs-mode.el
594 -}
595 -
596 -src_install() {
597 - default
598 -
599 - rm \
600 - "${ED}"/etc/glusterfs/glusterfs-{georep-,}logrotate \
601 - "${ED}"/etc/glusterfs/gluster-rsyslog-*.conf \
602 - "${ED}"/usr/share/doc/${PF}/glusterfs{-mode.el,.vim} || die "removing false files failed"
603 -
604 - insinto /etc/logrotate.d
605 - newins "${FILESDIR}"/glusterfs.logrotate glusterfs
606 -
607 - if use rsyslog ; then
608 - insinto /etc/rsyslog.d
609 - newins extras/gluster-rsyslog-7.2.conf 60-gluster.conf
610 - fi
611 -
612 - if use emacs ; then
613 - elisp-install ${PN} extras/glusterfs-mode.el*
614 - elisp-site-file-install "${FILESDIR}/${SITEFILE}"
615 - fi
616 -
617 - if use vim-syntax ; then
618 - insinto /usr/share/vim/vimfiles/ftdetect; doins "${FILESDIR}"/${PN}.vim
619 - insinto /usr/share/vim/vimfiles/syntax; doins extras/${PN}.vim
620 - fi
621 -
622 - # insert some other tools which might be useful
623 - insinto /usr/share/glusterfs/scripts
624 - doins \
625 - extras/backend-{cleanup,xattr-sanitize}.sh \
626 - extras/clear_xattrs.sh \
627 - extras/migrate-unify-to-distribute.sh
628 -
629 - # correct permissions on installed scripts
630 - # fperms 0755 /usr/share/glusterfs/scripts/*.sh
631 - chmod 0755 "${ED}"/usr/share/glusterfs/scripts/*.sh || die
632 -
633 - if use georeplication ; then
634 - # move the gsync-sync-gfid tool to a binary path
635 - # and set a symlink to be compliant with all other distros
636 - mv "${ED}"/usr/{share/glusterfs/scripts/gsync-sync-gfid,libexec/glusterfs/} || die
637 - dosym ../../../libexec/glusterfs/gsync-sync-gfid /usr/share/glusterfs/scripts/gsync-sync-gfid
638 - fi
639 -
640 - newinitd "${FILESDIR}/${PN}-r1.initd" glusterfsd
641 - newinitd "${FILESDIR}/glusterd-r3.initd" glusterd
642 - newconfd "${FILESDIR}/${PN}.confd" glusterfsd
643 -
644 - keepdir /var/log/${PN}
645 - keepdir /var/lib/glusterd/{events,glusterfind/.keys}
646 -
647 - # QA
648 - rm -r "${ED}/var/run/" || die
649 - if ! use static-libs; then
650 - find "${D}" -type f -name '*.la' -delete || die
651 - fi
652 -}
653 -
654 -src_test() {
655 - ./run-tests.sh || die
656 -}
657 -
658 -pkg_postinst() {
659 - elog "Starting with ${PN}-3.1.0, you can use the glusterd daemon to configure your"
660 - elog "volumes dynamically. To do so, simply use the gluster CLI after running:"
661 - elog " /etc/init.d/glusterd start"
662 - echo
663 - elog "For static configurations, the glusterfsd startup script can be multiplexed."
664 - elog "The default startup script uses /etc/conf.d/glusterfsd to configure the"
665 - elog "separate service. To create additional instances of the glusterfsd service"
666 - elog "simply create a symlink to the glusterfsd startup script."
667 - echo
668 - elog "Example:"
669 - elog " # ln -s glusterfsd /etc/init.d/glusterfsd2"
670 - elog " # ${EDITOR} /etc/glusterfs/glusterfsd2.vol"
671 - elog "You can now treat glusterfsd2 like any other service"
672 - echo
673 - ewarn "You need to use a ntp client to keep the clocks synchronized across all"
674 - ewarn "of your servers. Setup a NTP synchronizing service before attempting to"
675 - ewarn "run GlusterFS."
676 - echo
677 - elog "If you are upgrading from a previous version of ${PN}, please read:"
678 - elog " http://docs.gluster.org/en/latest/Upgrade-Guide/upgrade_to_$(ver_cut '1-2')/"
679 -
680 - use emacs && elisp-site-regen
681 -}
682 -
683 -pkg_postrm() {
684 - use emacs && elisp-site-regen
685 -}
686
687 diff --git a/sys-cluster/glusterfs/glusterfs-7.6.ebuild b/sys-cluster/glusterfs/glusterfs-7.6.ebuild
688 deleted file mode 100644
689 index 14d47e54215..00000000000
690 --- a/sys-cluster/glusterfs/glusterfs-7.6.ebuild
691 +++ /dev/null
692 @@ -1,211 +0,0 @@
693 -# Copyright 1999-2020 Gentoo Authors
694 -# Distributed under the terms of the GNU General Public License v2
695 -
696 -EAPI=7
697 -
698 -PYTHON_COMPAT=( python3_{6..9} )
699 -
700 -inherit autotools elisp-common python-single-r1 systemd
701 -
702 -if [[ ${PV#9999} != ${PV} ]]; then
703 - inherit git-r3
704 - EGIT_REPO_URI="https://github.com/gluster/glusterfs.git"
705 -else
706 - SRC_URI="https://download.gluster.org/pub/gluster/${PN}/$(ver_cut 1)/${PV}/${P}.tar.gz"
707 - KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
708 -fi
709 -
710 -DESCRIPTION="GlusterFS is a powerful network/cluster filesystem"
711 -HOMEPAGE="https://www.gluster.org/"
712 -
713 -LICENSE="|| ( GPL-2 LGPL-3+ )"
714 -SLOT="0"
715 -IUSE="debug emacs +fuse +georeplication infiniband ipv6 libressl +libtirpc rsyslog static-libs +syslog test vim-syntax +xml"
716 -
717 -REQUIRED_USE="georeplication? ( ${PYTHON_REQUIRED_USE} )
718 - ipv6? ( libtirpc )"
719 -
720 -# the tests must be run as root
721 -RESTRICT="test"
722 -
723 -# sys-apps/util-linux is required for libuuid
724 -RDEPEND="
725 - acct-group/gluster
726 - acct-user/gluster
727 - dev-libs/libaio
728 - dev-libs/userspace-rcu:=
729 - net-libs/rpcsvc-proto
730 - sys-apps/util-linux
731 - sys-libs/readline:=
732 - emacs? ( >=app-editors/emacs-23.1:* )
733 - fuse? ( >=sys-fs/fuse-2.7.0:0 )
734 - georeplication? ( ${PYTHON_DEPS} )
735 - infiniband? ( sys-fabric/libibverbs:* sys-fabric/librdmacm:* )
736 - xml? ( dev-libs/libxml2 )
737 - !elibc_glibc? ( sys-libs/argp-standalone )
738 - libtirpc? ( net-libs/libtirpc:= )
739 - !libtirpc? ( elibc_glibc? ( sys-libs/glibc[rpc(-)] ) )
740 - !libressl? ( dev-libs/openssl:=[-bindist] )
741 - libressl? ( dev-libs/libressl:= )
742 -"
743 -DEPEND="
744 - ${RDEPEND}
745 - sys-devel/bison
746 - sys-devel/flex
747 - virtual/acl
748 - test? ( >=dev-util/cmocka-1.0.1
749 - app-benchmarks/dbench
750 - dev-vcs/git
751 - net-fs/nfs-utils
752 - virtual/perl-Test-Harness
753 - dev-libs/yajl
754 - sys-fs/xfsprogs
755 - sys-apps/attr )
756 -"
757 -BDEPEND="
758 - virtual/pkgconfig
759 -"
760 -
761 -SITEFILE="50${PN}-mode-gentoo.el"
762 -
763 -DOCS=( AUTHORS ChangeLog NEWS README.md THANKS )
764 -
765 -# Maintainer notes:
766 -# * The build system will always configure & build argp-standalone but it'll never use it
767 -# if the argp.h header is found in the system. Which should be the case with
768 -# glibc or if argp-standalone is installed.
769 -
770 -pkg_setup() {
771 - python_setup "python3*"
772 - python-single-r1_pkg_setup
773 -}
774 -
775 -src_prepare() {
776 - default
777 -
778 - # https://bugs.gentoo.org/705536
779 - # https://bugzilla.redhat.com/show_bug.cgi?id=1793990
780 - eapply "${FILESDIR}/glusterfs-6.7-fix-seek.patch"
781 -
782 - # build rpc-transport and xlators only once as shared libs
783 - find rpc/rpc-transport xlators -name Makefile.am |
784 - xargs sed -i 's|.*$(top_srcdir).*\.sym|\0 -shared|' || die
785 -
786 - # fix execution permissions
787 - chmod +x libglusterfs/src/gen-defaults.py || die
788 -
789 - eautoreconf
790 -}
791 -
792 -src_configure() {
793 - econf \
794 - --disable-fusermount \
795 - $(use_enable debug) \
796 - $(use_enable fuse fuse-client) \
797 - $(use_enable georeplication) \
798 - $(use_enable infiniband ibverbs) \
799 - $(use_enable static-libs static) \
800 - $(use_enable syslog) \
801 - $(use_enable test cmocka) \
802 - $(use_enable xml xml-output) \
803 - $(use libtirpc || echo --without-libtirpc) \
804 - $(use ipv6 && echo --with-ipv6-default) \
805 - --with-tmpfilesdir="${EPREFIX}"/etc/tmpfiles.d \
806 - --localstatedir="${EPREFIX}"/var
807 -}
808 -
809 -src_compile() {
810 - default
811 - use emacs && elisp-compile extras/glusterfs-mode.el
812 -}
813 -
814 -src_install() {
815 - default
816 -
817 - rm \
818 - "${ED}"/etc/glusterfs/glusterfs-{georep-,}logrotate \
819 - "${ED}"/etc/glusterfs/gluster-rsyslog-*.conf \
820 - "${ED}"/usr/share/doc/${PF}/glusterfs{-mode.el,.vim} || die "removing false files failed"
821 -
822 - insinto /etc/logrotate.d
823 - newins "${FILESDIR}"/glusterfs.logrotate glusterfs
824 -
825 - if use rsyslog ; then
826 - insinto /etc/rsyslog.d
827 - newins extras/gluster-rsyslog-7.2.conf 60-gluster.conf
828 - fi
829 -
830 - if use emacs ; then
831 - elisp-install ${PN} extras/glusterfs-mode.el*
832 - elisp-site-file-install "${FILESDIR}/${SITEFILE}"
833 - fi
834 -
835 - if use vim-syntax ; then
836 - insinto /usr/share/vim/vimfiles/ftdetect; doins "${FILESDIR}"/${PN}.vim
837 - insinto /usr/share/vim/vimfiles/syntax; doins extras/${PN}.vim
838 - fi
839 -
840 - # insert some other tools which might be useful
841 - insinto /usr/share/glusterfs/scripts
842 - doins \
843 - extras/backend-{cleanup,xattr-sanitize}.sh \
844 - extras/clear_xattrs.sh \
845 - extras/migrate-unify-to-distribute.sh
846 -
847 - # correct permissions on installed scripts
848 - # fperms 0755 /usr/share/glusterfs/scripts/*.sh
849 - chmod 0755 "${ED}"/usr/share/glusterfs/scripts/*.sh || die
850 -
851 - if use georeplication ; then
852 - # move the gsync-sync-gfid tool to a binary path
853 - # and set a symlink to be compliant with all other distros
854 - mv "${ED}"/usr/{share/glusterfs/scripts/gsync-sync-gfid,libexec/glusterfs/} || die
855 - dosym ../../../libexec/glusterfs/gsync-sync-gfid /usr/share/glusterfs/scripts/gsync-sync-gfid
856 - fi
857 -
858 - newinitd "${FILESDIR}/${PN}-r1.initd" glusterfsd
859 - newinitd "${FILESDIR}/glusterd-r3.initd" glusterd
860 - newconfd "${FILESDIR}/${PN}.confd" glusterfsd
861 -
862 - keepdir /var/log/${PN}
863 - keepdir /var/lib/glusterd/{events,glusterfind/.keys}
864 -
865 - # QA
866 - rm -r "${ED}/var/run/" || die
867 - if ! use static-libs; then
868 - find "${D}" -type f -name '*.la' -delete || die
869 - fi
870 -}
871 -
872 -src_test() {
873 - ./run-tests.sh || die
874 -}
875 -
876 -pkg_postinst() {
877 - elog "Starting with ${PN}-3.1.0, you can use the glusterd daemon to configure your"
878 - elog "volumes dynamically. To do so, simply use the gluster CLI after running:"
879 - elog " /etc/init.d/glusterd start"
880 - echo
881 - elog "For static configurations, the glusterfsd startup script can be multiplexed."
882 - elog "The default startup script uses /etc/conf.d/glusterfsd to configure the"
883 - elog "separate service. To create additional instances of the glusterfsd service"
884 - elog "simply create a symlink to the glusterfsd startup script."
885 - echo
886 - elog "Example:"
887 - elog " # ln -s glusterfsd /etc/init.d/glusterfsd2"
888 - elog " # ${EDITOR} /etc/glusterfs/glusterfsd2.vol"
889 - elog "You can now treat glusterfsd2 like any other service"
890 - echo
891 - ewarn "You need to use a ntp client to keep the clocks synchronized across all"
892 - ewarn "of your servers. Setup a NTP synchronizing service before attempting to"
893 - ewarn "run GlusterFS."
894 - echo
895 - elog "If you are upgrading from a previous version of ${PN}, please read:"
896 - elog " http://docs.gluster.org/en/latest/Upgrade-Guide/upgrade_to_$(ver_cut '1-2')/"
897 -
898 - use emacs && elisp-site-regen
899 -}
900 -
901 -pkg_postrm() {
902 - use emacs && elisp-site-regen
903 -}