1 |
commit: 74bcb565b00851b721bdb52c8940540dc9937551 |
2 |
Author: Tomáš Mózes <hydrapolic <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Jun 30 08:36:14 2020 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jun 30 13:30:57 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=74bcb565 |
7 |
|
8 |
sys-cluster/glusterfs: drop old |
9 |
|
10 |
Package-Manager: Portage-2.3.102, Repoman-2.3.23 |
11 |
Signed-off-by: Tomáš Mózes <hydrapolic <AT> gmail.com> |
12 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
13 |
|
14 |
sys-cluster/glusterfs/Manifest | 5 - |
15 |
sys-cluster/glusterfs/glusterfs-4.1.8.ebuild | 223 -------------------------- |
16 |
sys-cluster/glusterfs/glusterfs-6.5.ebuild | 204 ----------------------- |
17 |
sys-cluster/glusterfs/glusterfs-6.7-r1.ebuild | 211 ------------------------ |
18 |
sys-cluster/glusterfs/glusterfs-7.2-r1.ebuild | 208 ------------------------ |
19 |
sys-cluster/glusterfs/glusterfs-7.3.ebuild | 211 ------------------------ |
20 |
6 files changed, 1062 deletions(-) |
21 |
|
22 |
diff --git a/sys-cluster/glusterfs/Manifest b/sys-cluster/glusterfs/Manifest |
23 |
index 647a10ce773..f447cd32c5d 100644 |
24 |
--- a/sys-cluster/glusterfs/Manifest |
25 |
+++ b/sys-cluster/glusterfs/Manifest |
26 |
@@ -1,9 +1,4 @@ |
27 |
-DIST glusterfs-4.1.8.tar.gz 7835272 BLAKE2B 2546b9c0fe38989df71b8f72b193ce42c499621dcaaa4c5e3deeacfba68179f2280fc699cebeb87486171442152fa8b56b42a0d17465b739769eb227c82307d7 SHA512 950cd2fd774e3eb00f1ec06d54566736b6fbe8d1aed54477a19d9b2727eff8a70ef7ac32815cc7e01d45b5d357fc01af786e16c451f6ad314d472e61ba04ce85 |
28 |
-DIST glusterfs-6.5.tar.gz 7536238 BLAKE2B 35c58da9e8564bda1f34b095f14316148cae2b5ff1820d22ae945a06d34ac57aea968e5914af3f5831250fd591a103fe4022e160bb96d491a7c915b5b68c54e7 SHA512 b7356de07e8126aea80b0489b9ac39ce0d10ea324fe38d05ff5740765e886f80fc7e6bdda9d4db1371d7b955b055cb76ea29e918e759a575db331a6436bad90f |
29 |
-DIST glusterfs-6.7.tar.gz 7565257 BLAKE2B bb38383cad0cbf890b89dd75f7b260d21b381aed6da0bf7cf7b3335941d8e195fe5ff60a1c882df941daeb8ad627fddd1a44223c62d71e2388fd85a7ea46a386 SHA512 64d576c91e5accdb3547dc7216d854e96512c9035ddb87dc4018930f2b0a008ad929cd80ae89a340fca7a8d36e2106a30797d7b08768477b1415db95123e07d4 |
30 |
DIST glusterfs-6.8.tar.gz 7572097 BLAKE2B 76b7c699a4fc864d8074b591b3583030d837a0beb63bb54e93458930a4af29bd9b1874dd33f0b7aecbf57d7dc454d448e67b71f38975281108a9fed76f9cf4aa SHA512 a28af19aa0ab2a356a2b7eff447d6b39ff821d7da59037e91a38d8cb43f51f7007b790f765fcbaccf9107554b59174e72d8b1ae9947e6342d2815bfae1adbad7 |
31 |
DIST glusterfs-6.9.tar.gz 7580928 BLAKE2B 655544b7ffa70ac9980e1a1041af538f473b6b6c8cb77f6e3447908b903b3a2b3ee0234c18fb71f997f31f24f8a790ab2f5a05a6b392090601db455ac726262a SHA512 3bf167aed4f572f94ad4708c5fff7b578a334af1eb0322c36e15127a2089b6359e8d91a36793d8af93c8f76dbdf6ded649c3e0a6c1a879163c8d8b640cea334b |
32 |
-DIST glusterfs-7.2.tar.gz 7630773 BLAKE2B abceafd06ca8f5de1c84708a1a3ec4453c5d536d8811b773fa6f5dd02d6e3d450c329bc4d0fa32d970ff57e82a1fe3aa48ec9c3a7d3d5ca5817a91e8930b1b6e SHA512 fd1059222c4d30fa5c4011083c3c53af44433180ae124c884a774628051d31d95386bef71d4d25ed2b0c5dd8d9a6936601e8e37d963b34d291cb88ea45e31ff2 |
33 |
-DIST glusterfs-7.3.tar.gz 7636144 BLAKE2B 8595e4eafc66b6b926d9aad220b569d7f5ae22b020ee3701db37f3db9dba6a33f805cebe322fb0423a1a8f18b85685411fa967beb34b03028d23b24725c5be00 SHA512 901f55d5084e90f4b5907fbbe7d5f7d1937198b500efc369651970053029b727c0bfc6180b6058a3211523b4e16a63bf821b1a9f81dfc1b87b2061d271ec9b3f |
34 |
DIST glusterfs-7.5.tar.gz 7649044 BLAKE2B 01088654051a33c3a009b42c6e7adf7cabc52927a83a3331eced428ed3e6bfb3f7198fcc53a2b1dce678ac58c2f2619d02cce72a9850a50f3a26b37d39baeeaa SHA512 dfd8f04fb398daa7d7f58ef978ab69c0a55a313ac2af3287f7e1e7044f708317227c8749af5fd8d56844dfb8ad47bbd3214c42b806e2e21191a6a8617ab0be38 |
35 |
DIST glusterfs-7.6.tar.gz 7653500 BLAKE2B ff3d4817f2a8b85126669cfbe6f58990aaccfffd91464d7acd97d7092c8eb94c21552eaf5e2301e3e6a7f99534b40c2afce1ade593d8ac559baee2d175538333 SHA512 c26b2046e7afdbb37fdd395fd9f692a0513ebb58c91ea223fbbaf9f8b41641b1fd009f2975e187f0feb8d83fb5cd4a8a0c2fdf4591a8a31e920d6bba75ae7c0f |
36 |
|
37 |
diff --git a/sys-cluster/glusterfs/glusterfs-4.1.8.ebuild b/sys-cluster/glusterfs/glusterfs-4.1.8.ebuild |
38 |
deleted file mode 100644 |
39 |
index 351790fe5a7..00000000000 |
40 |
--- a/sys-cluster/glusterfs/glusterfs-4.1.8.ebuild |
41 |
+++ /dev/null |
42 |
@@ -1,223 +0,0 @@ |
43 |
-# Copyright 1999-2020 Gentoo Authors |
44 |
-# Distributed under the terms of the GNU General Public License v2 |
45 |
- |
46 |
-EAPI=7 |
47 |
- |
48 |
-PYTHON_COMPAT=( python2_7 ) |
49 |
- |
50 |
-inherit autotools elisp-common python-single-r1 systemd user |
51 |
- |
52 |
-if [[ ${PV#9999} != ${PV} ]]; then |
53 |
- inherit git-r3 |
54 |
- EGIT_REPO_URI="https://github.com/gluster/glusterfs.git" |
55 |
-else |
56 |
- SRC_URI="https://download.gluster.org/pub/gluster/${PN}/$(ver_cut '1-2')/${PV}/${P}.tar.gz" |
57 |
- KEYWORDS="amd64 ~arm ~arm64 ppc ppc64 x86" |
58 |
-fi |
59 |
- |
60 |
-DESCRIPTION="GlusterFS is a powerful network/cluster filesystem" |
61 |
-HOMEPAGE="https://www.gluster.org/" |
62 |
- |
63 |
-LICENSE="|| ( GPL-2 LGPL-3+ )" |
64 |
-SLOT="0" |
65 |
-IUSE="bd-xlator crypt-xlator debug emacs +fuse +georeplication glupy infiniband ipv6 libressl +libtirpc qemu-block rsyslog static-libs +syslog systemtap test +tiering vim-syntax +xml" |
66 |
- |
67 |
-REQUIRED_USE="georeplication? ( ${PYTHON_REQUIRED_USE} ) |
68 |
- glupy? ( ${PYTHON_REQUIRED_USE} ) |
69 |
- ipv6? ( libtirpc )" |
70 |
- |
71 |
-# the tests must be run as root |
72 |
-RESTRICT="test" |
73 |
- |
74 |
-# sys-apps/util-linux is required for libuuid |
75 |
-RDEPEND="bd-xlator? ( sys-fs/lvm2 ) |
76 |
- !elibc_glibc? ( sys-libs/argp-standalone ) |
77 |
- emacs? ( >=app-editors/emacs-23.1:* ) |
78 |
- fuse? ( >=sys-fs/fuse-2.7.0:0 ) |
79 |
- georeplication? ( ${PYTHON_DEPS} ) |
80 |
- infiniband? ( sys-fabric/libibverbs:* sys-fabric/librdmacm:* ) |
81 |
- libtirpc? ( net-libs/libtirpc:= ) |
82 |
- !libtirpc? ( elibc_glibc? ( sys-libs/glibc[rpc(-)] ) ) |
83 |
- qemu-block? ( dev-libs/glib:2 ) |
84 |
- systemtap? ( dev-util/systemtap ) |
85 |
- tiering? ( dev-db/sqlite:3 ) |
86 |
- xml? ( dev-libs/libxml2 ) |
87 |
- sys-libs/readline:= |
88 |
- dev-libs/libaio |
89 |
- !libressl? ( dev-libs/openssl:=[-bindist] ) |
90 |
- libressl? ( dev-libs/libressl:= ) |
91 |
- dev-libs/userspace-rcu:= |
92 |
- net-libs/rpcsvc-proto |
93 |
- sys-apps/util-linux" |
94 |
-DEPEND="${RDEPEND} |
95 |
- virtual/acl |
96 |
- virtual/pkgconfig |
97 |
- sys-devel/bison |
98 |
- sys-devel/flex |
99 |
- test? ( >=dev-util/cmocka-1.0.1 |
100 |
- app-benchmarks/dbench |
101 |
- dev-vcs/git |
102 |
- net-fs/nfs-utils |
103 |
- virtual/perl-Test-Harness |
104 |
- dev-libs/yajl |
105 |
- sys-fs/xfsprogs |
106 |
- sys-apps/attr )" |
107 |
- |
108 |
-SITEFILE="50${PN}-mode-gentoo.el" |
109 |
- |
110 |
-PATCHES=( |
111 |
- "${FILESDIR}/${PN}-3.12.2-poisoned-sysmacros.patch" |
112 |
- "${FILESDIR}/${PN}-4.1.0-silent_rules.patch" |
113 |
-) |
114 |
- |
115 |
-DOCS=( AUTHORS ChangeLog NEWS README.md THANKS ) |
116 |
- |
117 |
-# Maintainer notes: |
118 |
-# * The build system will always configure & build argp-standalone but it'll never use it |
119 |
-# if the argp.h header is found in the system. Which should be the case with |
120 |
-# glibc or if argp-standalone is installed. |
121 |
- |
122 |
-pkg_setup() { |
123 |
- python_setup "python2*" |
124 |
- python-single-r1_pkg_setup |
125 |
- |
126 |
- # Needed for statedumps |
127 |
- # https://github.com/gluster/glusterfs/commit/0e50c4b3ea734456c14e2d7a578463999bd332c3 |
128 |
- enewgroup gluster |
129 |
- enewuser gluster -1 -1 "${EPREFIX}"/var/run/gluster gluster |
130 |
-} |
131 |
- |
132 |
-src_prepare() { |
133 |
- default |
134 |
- |
135 |
- # build rpc-transport and xlators only once as shared libs |
136 |
- find rpc/rpc-transport xlators -name Makefile.am | |
137 |
- xargs sed -i 's|.*$(top_srcdir).*\.sym|\0 -shared|' || die |
138 |
- |
139 |
- # fix execution permissions |
140 |
- chmod +x libglusterfs/src/gen-defaults.py || die |
141 |
- |
142 |
- eautoreconf |
143 |
-} |
144 |
- |
145 |
-src_configure() { |
146 |
- econf \ |
147 |
- --disable-fusermount \ |
148 |
- $(use_enable debug) \ |
149 |
- $(use_enable bd-xlator) \ |
150 |
- $(use_enable crypt-xlator) \ |
151 |
- $(use_enable fuse fuse-client) \ |
152 |
- $(use_enable georeplication) \ |
153 |
- $(use_enable glupy) \ |
154 |
- $(use_enable infiniband ibverbs) \ |
155 |
- $(use_enable qemu-block) \ |
156 |
- $(use_enable static-libs static) \ |
157 |
- $(use_enable syslog) \ |
158 |
- $(use_enable systemtap) \ |
159 |
- $(use_enable test cmocka) \ |
160 |
- $(use_enable tiering) \ |
161 |
- $(use_enable xml xml-output) \ |
162 |
- $(use libtirpc || echo --without-libtirpc) \ |
163 |
- $(use ipv6 && echo --with-ipv6-default) \ |
164 |
- --with-tmpfilesdir="${EPREFIX}"/etc/tmpfiles.d \ |
165 |
- --localstatedir="${EPREFIX}"/var |
166 |
-} |
167 |
- |
168 |
-src_compile() { |
169 |
- default |
170 |
- use emacs && elisp-compile extras/glusterfs-mode.el |
171 |
-} |
172 |
- |
173 |
-src_install() { |
174 |
- default |
175 |
- |
176 |
- rm \ |
177 |
- "${ED}"/etc/glusterfs/glusterfs-{georep-,}logrotate \ |
178 |
- "${ED}"/etc/glusterfs/gluster-rsyslog-*.conf \ |
179 |
- "${ED}"/usr/share/doc/${PF}/glusterfs{-mode.el,.vim} || die "removing false files failed" |
180 |
- |
181 |
- insinto /etc/logrotate.d |
182 |
- newins "${FILESDIR}"/glusterfs.logrotate glusterfs |
183 |
- |
184 |
- if use rsyslog ; then |
185 |
- insinto /etc/rsyslog.d |
186 |
- newins extras/gluster-rsyslog-7.2.conf 60-gluster.conf |
187 |
- fi |
188 |
- |
189 |
- if use emacs ; then |
190 |
- elisp-install ${PN} extras/glusterfs-mode.el* |
191 |
- elisp-site-file-install "${FILESDIR}/${SITEFILE}" |
192 |
- fi |
193 |
- |
194 |
- if use vim-syntax ; then |
195 |
- insinto /usr/share/vim/vimfiles/ftdetect; doins "${FILESDIR}"/${PN}.vim |
196 |
- insinto /usr/share/vim/vimfiles/syntax; doins extras/${PN}.vim |
197 |
- fi |
198 |
- |
199 |
- # insert some other tools which might be useful |
200 |
- insinto /usr/share/glusterfs/scripts |
201 |
- doins \ |
202 |
- extras/backend-{cleanup,xattr-sanitize}.sh \ |
203 |
- extras/clear_xattrs.sh \ |
204 |
- extras/migrate-unify-to-distribute.sh |
205 |
- |
206 |
- # correct permissions on installed scripts |
207 |
- # fperms 0755 /usr/share/glusterfs/scripts/*.sh |
208 |
- chmod 0755 "${ED}"/usr/share/glusterfs/scripts/*.sh || die |
209 |
- |
210 |
- if use georeplication ; then |
211 |
- # move the gsync-sync-gfid tool to a binary path |
212 |
- # and set a symlink to be compliant with all other distros |
213 |
- mv "${ED}"/usr/{share/glusterfs/scripts/gsync-sync-gfid,libexec/glusterfs/} || die |
214 |
- dosym ../../../libexec/glusterfs/gsync-sync-gfid /usr/share/glusterfs/scripts/gsync-sync-gfid |
215 |
- fi |
216 |
- |
217 |
- newinitd "${FILESDIR}/${PN}-r1.initd" glusterfsd |
218 |
- newinitd "${FILESDIR}/glusterd-r3.initd" glusterd |
219 |
- newconfd "${FILESDIR}/${PN}.confd" glusterfsd |
220 |
- |
221 |
- keepdir /var/log/${PN} |
222 |
- keepdir /var/lib/glusterd/{events,glusterfind/.keys} |
223 |
- |
224 |
- # QA |
225 |
- rm -r "${ED}/var/run/" || die |
226 |
- if ! use static-libs; then |
227 |
- find "${D}" -type f -name '*.la' -delete || die |
228 |
- fi |
229 |
- |
230 |
- # fix all shebang for python2 #560750 |
231 |
- python_fix_shebang "${ED}" |
232 |
-} |
233 |
- |
234 |
-src_test() { |
235 |
- ./run-tests.sh || die |
236 |
-} |
237 |
- |
238 |
-pkg_postinst() { |
239 |
- elog "Starting with ${PN}-3.1.0, you can use the glusterd daemon to configure your" |
240 |
- elog "volumes dynamically. To do so, simply use the gluster CLI after running:" |
241 |
- elog " /etc/init.d/glusterd start" |
242 |
- echo |
243 |
- elog "For static configurations, the glusterfsd startup script can be multiplexed." |
244 |
- elog "The default startup script uses /etc/conf.d/glusterfsd to configure the" |
245 |
- elog "separate service. To create additional instances of the glusterfsd service" |
246 |
- elog "simply create a symlink to the glusterfsd startup script." |
247 |
- echo |
248 |
- elog "Example:" |
249 |
- elog " # ln -s glusterfsd /etc/init.d/glusterfsd2" |
250 |
- elog " # ${EDITOR} /etc/glusterfs/glusterfsd2.vol" |
251 |
- elog "You can now treat glusterfsd2 like any other service" |
252 |
- echo |
253 |
- ewarn "You need to use a ntp client to keep the clocks synchronized across all" |
254 |
- ewarn "of your servers. Setup a NTP synchronizing service before attempting to" |
255 |
- ewarn "run GlusterFS." |
256 |
- echo |
257 |
- elog "If you are upgrading from a previous version of ${PN}, please read:" |
258 |
- elog " http://docs.gluster.org/en/latest/Upgrade-Guide/upgrade_to_$(ver_cut '1-2')/" |
259 |
- |
260 |
- use emacs && elisp-site-regen |
261 |
-} |
262 |
- |
263 |
-pkg_postrm() { |
264 |
- use emacs && elisp-site-regen |
265 |
-} |
266 |
|
267 |
diff --git a/sys-cluster/glusterfs/glusterfs-6.5.ebuild b/sys-cluster/glusterfs/glusterfs-6.5.ebuild |
268 |
deleted file mode 100644 |
269 |
index 895462bd41a..00000000000 |
270 |
--- a/sys-cluster/glusterfs/glusterfs-6.5.ebuild |
271 |
+++ /dev/null |
272 |
@@ -1,204 +0,0 @@ |
273 |
-# Copyright 1999-2020 Gentoo Authors |
274 |
-# Distributed under the terms of the GNU General Public License v2 |
275 |
- |
276 |
-EAPI=7 |
277 |
- |
278 |
-PYTHON_COMPAT=( python3_{6,7} ) |
279 |
- |
280 |
-inherit autotools elisp-common python-single-r1 systemd user |
281 |
- |
282 |
-if [[ ${PV#9999} != ${PV} ]]; then |
283 |
- inherit git-r3 |
284 |
- EGIT_REPO_URI="https://github.com/gluster/glusterfs.git" |
285 |
-else |
286 |
- SRC_URI="https://download.gluster.org/pub/gluster/${PN}/$(ver_cut 1)/${PV}/${P}.tar.gz" |
287 |
- KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" |
288 |
-fi |
289 |
- |
290 |
-DESCRIPTION="GlusterFS is a powerful network/cluster filesystem" |
291 |
-HOMEPAGE="https://www.gluster.org/" |
292 |
- |
293 |
-LICENSE="|| ( GPL-2 LGPL-3+ )" |
294 |
-SLOT="0" |
295 |
-IUSE="debug emacs +fuse +georeplication infiniband ipv6 libressl +libtirpc rsyslog static-libs +syslog test vim-syntax +xml" |
296 |
- |
297 |
-REQUIRED_USE="georeplication? ( ${PYTHON_REQUIRED_USE} ) |
298 |
- ipv6? ( libtirpc )" |
299 |
- |
300 |
-# the tests must be run as root |
301 |
-RESTRICT="test" |
302 |
- |
303 |
-# sys-apps/util-linux is required for libuuid |
304 |
-RDEPEND="!elibc_glibc? ( sys-libs/argp-standalone ) |
305 |
- emacs? ( >=app-editors/emacs-23.1:* ) |
306 |
- fuse? ( >=sys-fs/fuse-2.7.0:0 ) |
307 |
- georeplication? ( ${PYTHON_DEPS} ) |
308 |
- infiniband? ( sys-fabric/libibverbs:* sys-fabric/librdmacm:* ) |
309 |
- libtirpc? ( net-libs/libtirpc:= ) |
310 |
- !libtirpc? ( elibc_glibc? ( sys-libs/glibc[rpc(-)] ) ) |
311 |
- xml? ( dev-libs/libxml2 ) |
312 |
- sys-libs/readline:= |
313 |
- dev-libs/libaio |
314 |
- !libressl? ( dev-libs/openssl:=[-bindist] ) |
315 |
- libressl? ( dev-libs/libressl:= ) |
316 |
- dev-libs/userspace-rcu:= |
317 |
- net-libs/rpcsvc-proto |
318 |
- sys-apps/util-linux" |
319 |
-DEPEND="${RDEPEND} |
320 |
- virtual/acl |
321 |
- virtual/pkgconfig |
322 |
- sys-devel/bison |
323 |
- sys-devel/flex |
324 |
- test? ( >=dev-util/cmocka-1.0.1 |
325 |
- app-benchmarks/dbench |
326 |
- dev-vcs/git |
327 |
- net-fs/nfs-utils |
328 |
- virtual/perl-Test-Harness |
329 |
- dev-libs/yajl |
330 |
- sys-fs/xfsprogs |
331 |
- sys-apps/attr )" |
332 |
- |
333 |
-SITEFILE="50${PN}-mode-gentoo.el" |
334 |
- |
335 |
-DOCS=( AUTHORS ChangeLog NEWS README.md THANKS ) |
336 |
- |
337 |
-# Maintainer notes: |
338 |
-# * The build system will always configure & build argp-standalone but it'll never use it |
339 |
-# if the argp.h header is found in the system. Which should be the case with |
340 |
-# glibc or if argp-standalone is installed. |
341 |
- |
342 |
-pkg_setup() { |
343 |
- python_setup "python3*" |
344 |
- python-single-r1_pkg_setup |
345 |
- |
346 |
- # Needed for statedumps |
347 |
- # https://github.com/gluster/glusterfs/commit/0e50c4b3ea734456c14e2d7a578463999bd332c3 |
348 |
- enewgroup gluster |
349 |
- enewuser gluster -1 -1 "${EPREFIX}"/var/run/gluster gluster |
350 |
-} |
351 |
- |
352 |
-src_prepare() { |
353 |
- default |
354 |
- |
355 |
- # build rpc-transport and xlators only once as shared libs |
356 |
- find rpc/rpc-transport xlators -name Makefile.am | |
357 |
- xargs sed -i 's|.*$(top_srcdir).*\.sym|\0 -shared|' || die |
358 |
- |
359 |
- # fix execution permissions |
360 |
- chmod +x libglusterfs/src/gen-defaults.py || die |
361 |
- |
362 |
- eautoreconf |
363 |
-} |
364 |
- |
365 |
-src_configure() { |
366 |
- econf \ |
367 |
- --disable-fusermount \ |
368 |
- $(use_enable debug) \ |
369 |
- $(use_enable fuse fuse-client) \ |
370 |
- $(use_enable georeplication) \ |
371 |
- $(use_enable infiniband ibverbs) \ |
372 |
- $(use_enable static-libs static) \ |
373 |
- $(use_enable syslog) \ |
374 |
- $(use_enable test cmocka) \ |
375 |
- $(use_enable xml xml-output) \ |
376 |
- $(use libtirpc || echo --without-libtirpc) \ |
377 |
- $(use ipv6 && echo --with-ipv6-default) \ |
378 |
- --with-tmpfilesdir="${EPREFIX}"/etc/tmpfiles.d \ |
379 |
- --localstatedir="${EPREFIX}"/var |
380 |
-} |
381 |
- |
382 |
-src_compile() { |
383 |
- default |
384 |
- use emacs && elisp-compile extras/glusterfs-mode.el |
385 |
-} |
386 |
- |
387 |
-src_install() { |
388 |
- default |
389 |
- |
390 |
- rm \ |
391 |
- "${ED}"/etc/glusterfs/glusterfs-{georep-,}logrotate \ |
392 |
- "${ED}"/etc/glusterfs/gluster-rsyslog-*.conf \ |
393 |
- "${ED}"/usr/share/doc/${PF}/glusterfs{-mode.el,.vim} || die "removing false files failed" |
394 |
- |
395 |
- insinto /etc/logrotate.d |
396 |
- newins "${FILESDIR}"/glusterfs.logrotate glusterfs |
397 |
- |
398 |
- if use rsyslog ; then |
399 |
- insinto /etc/rsyslog.d |
400 |
- newins extras/gluster-rsyslog-7.2.conf 60-gluster.conf |
401 |
- fi |
402 |
- |
403 |
- if use emacs ; then |
404 |
- elisp-install ${PN} extras/glusterfs-mode.el* |
405 |
- elisp-site-file-install "${FILESDIR}/${SITEFILE}" |
406 |
- fi |
407 |
- |
408 |
- if use vim-syntax ; then |
409 |
- insinto /usr/share/vim/vimfiles/ftdetect; doins "${FILESDIR}"/${PN}.vim |
410 |
- insinto /usr/share/vim/vimfiles/syntax; doins extras/${PN}.vim |
411 |
- fi |
412 |
- |
413 |
- # insert some other tools which might be useful |
414 |
- insinto /usr/share/glusterfs/scripts |
415 |
- doins \ |
416 |
- extras/backend-{cleanup,xattr-sanitize}.sh \ |
417 |
- extras/clear_xattrs.sh \ |
418 |
- extras/migrate-unify-to-distribute.sh |
419 |
- |
420 |
- # correct permissions on installed scripts |
421 |
- # fperms 0755 /usr/share/glusterfs/scripts/*.sh |
422 |
- chmod 0755 "${ED}"/usr/share/glusterfs/scripts/*.sh || die |
423 |
- |
424 |
- if use georeplication ; then |
425 |
- # move the gsync-sync-gfid tool to a binary path |
426 |
- # and set a symlink to be compliant with all other distros |
427 |
- mv "${ED}"/usr/{share/glusterfs/scripts/gsync-sync-gfid,libexec/glusterfs/} || die |
428 |
- dosym ../../../libexec/glusterfs/gsync-sync-gfid /usr/share/glusterfs/scripts/gsync-sync-gfid |
429 |
- fi |
430 |
- |
431 |
- newinitd "${FILESDIR}/${PN}-r1.initd" glusterfsd |
432 |
- newinitd "${FILESDIR}/glusterd-r3.initd" glusterd |
433 |
- newconfd "${FILESDIR}/${PN}.confd" glusterfsd |
434 |
- |
435 |
- keepdir /var/log/${PN} |
436 |
- keepdir /var/lib/glusterd/{events,glusterfind/.keys} |
437 |
- |
438 |
- # QA |
439 |
- rm -r "${ED}/var/run/" || die |
440 |
- if ! use static-libs; then |
441 |
- find "${D}" -type f -name '*.la' -delete || die |
442 |
- fi |
443 |
-} |
444 |
- |
445 |
-src_test() { |
446 |
- ./run-tests.sh || die |
447 |
-} |
448 |
- |
449 |
-pkg_postinst() { |
450 |
- elog "Starting with ${PN}-3.1.0, you can use the glusterd daemon to configure your" |
451 |
- elog "volumes dynamically. To do so, simply use the gluster CLI after running:" |
452 |
- elog " /etc/init.d/glusterd start" |
453 |
- echo |
454 |
- elog "For static configurations, the glusterfsd startup script can be multiplexed." |
455 |
- elog "The default startup script uses /etc/conf.d/glusterfsd to configure the" |
456 |
- elog "separate service. To create additional instances of the glusterfsd service" |
457 |
- elog "simply create a symlink to the glusterfsd startup script." |
458 |
- echo |
459 |
- elog "Example:" |
460 |
- elog " # ln -s glusterfsd /etc/init.d/glusterfsd2" |
461 |
- elog " # ${EDITOR} /etc/glusterfs/glusterfsd2.vol" |
462 |
- elog "You can now treat glusterfsd2 like any other service" |
463 |
- echo |
464 |
- ewarn "You need to use a ntp client to keep the clocks synchronized across all" |
465 |
- ewarn "of your servers. Setup a NTP synchronizing service before attempting to" |
466 |
- ewarn "run GlusterFS." |
467 |
- echo |
468 |
- elog "If you are upgrading from a previous version of ${PN}, please read:" |
469 |
- elog " http://docs.gluster.org/en/latest/Upgrade-Guide/upgrade_to_$(ver_cut '1-2')/" |
470 |
- |
471 |
- use emacs && elisp-site-regen |
472 |
-} |
473 |
- |
474 |
-pkg_postrm() { |
475 |
- use emacs && elisp-site-regen |
476 |
-} |
477 |
|
478 |
diff --git a/sys-cluster/glusterfs/glusterfs-6.7-r1.ebuild b/sys-cluster/glusterfs/glusterfs-6.7-r1.ebuild |
479 |
deleted file mode 100644 |
480 |
index 210f6b936ef..00000000000 |
481 |
--- a/sys-cluster/glusterfs/glusterfs-6.7-r1.ebuild |
482 |
+++ /dev/null |
483 |
@@ -1,211 +0,0 @@ |
484 |
-# Copyright 1999-2020 Gentoo Authors |
485 |
-# Distributed under the terms of the GNU General Public License v2 |
486 |
- |
487 |
-EAPI=7 |
488 |
- |
489 |
-PYTHON_COMPAT=( python3_{6,7,8} ) |
490 |
- |
491 |
-inherit autotools elisp-common python-single-r1 systemd user |
492 |
- |
493 |
-if [[ ${PV#9999} != ${PV} ]]; then |
494 |
- inherit git-r3 |
495 |
- EGIT_REPO_URI="https://github.com/gluster/glusterfs.git" |
496 |
-else |
497 |
- SRC_URI="https://download.gluster.org/pub/gluster/${PN}/$(ver_cut 1)/${PV}/${P}.tar.gz" |
498 |
- KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" |
499 |
-fi |
500 |
- |
501 |
-DESCRIPTION="GlusterFS is a powerful network/cluster filesystem" |
502 |
-HOMEPAGE="https://www.gluster.org/" |
503 |
- |
504 |
-LICENSE="|| ( GPL-2 LGPL-3+ )" |
505 |
-SLOT="0" |
506 |
-IUSE="debug emacs +fuse +georeplication infiniband ipv6 libressl +libtirpc rsyslog static-libs +syslog test vim-syntax +xml" |
507 |
- |
508 |
-REQUIRED_USE="georeplication? ( ${PYTHON_REQUIRED_USE} ) |
509 |
- ipv6? ( libtirpc )" |
510 |
- |
511 |
-# the tests must be run as root |
512 |
-RESTRICT="test" |
513 |
- |
514 |
-# sys-apps/util-linux is required for libuuid |
515 |
-RDEPEND="!elibc_glibc? ( sys-libs/argp-standalone ) |
516 |
- emacs? ( >=app-editors/emacs-23.1:* ) |
517 |
- fuse? ( >=sys-fs/fuse-2.7.0:0 ) |
518 |
- georeplication? ( ${PYTHON_DEPS} ) |
519 |
- infiniband? ( sys-fabric/libibverbs:* sys-fabric/librdmacm:* ) |
520 |
- libtirpc? ( net-libs/libtirpc:= ) |
521 |
- !libtirpc? ( elibc_glibc? ( sys-libs/glibc[rpc(-)] ) ) |
522 |
- xml? ( dev-libs/libxml2 ) |
523 |
- sys-libs/readline:= |
524 |
- dev-libs/libaio |
525 |
- !libressl? ( dev-libs/openssl:=[-bindist] ) |
526 |
- libressl? ( dev-libs/libressl:= ) |
527 |
- dev-libs/userspace-rcu:= |
528 |
- net-libs/rpcsvc-proto |
529 |
- sys-apps/util-linux" |
530 |
-DEPEND="${RDEPEND} |
531 |
- virtual/acl |
532 |
- virtual/pkgconfig |
533 |
- sys-devel/bison |
534 |
- sys-devel/flex |
535 |
- test? ( >=dev-util/cmocka-1.0.1 |
536 |
- app-benchmarks/dbench |
537 |
- dev-vcs/git |
538 |
- net-fs/nfs-utils |
539 |
- virtual/perl-Test-Harness |
540 |
- dev-libs/yajl |
541 |
- sys-fs/xfsprogs |
542 |
- sys-apps/attr )" |
543 |
- |
544 |
-SITEFILE="50${PN}-mode-gentoo.el" |
545 |
- |
546 |
-DOCS=( AUTHORS ChangeLog NEWS README.md THANKS ) |
547 |
- |
548 |
-# Maintainer notes: |
549 |
-# * The build system will always configure & build argp-standalone but it'll never use it |
550 |
-# if the argp.h header is found in the system. Which should be the case with |
551 |
-# glibc or if argp-standalone is installed. |
552 |
- |
553 |
-pkg_setup() { |
554 |
- python_setup "python3*" |
555 |
- python-single-r1_pkg_setup |
556 |
- |
557 |
- # Needed for statedumps |
558 |
- # https://github.com/gluster/glusterfs/commit/0e50c4b3ea734456c14e2d7a578463999bd332c3 |
559 |
- enewgroup gluster |
560 |
- enewuser gluster -1 -1 "${EPREFIX}"/var/run/gluster gluster |
561 |
-} |
562 |
- |
563 |
-src_prepare() { |
564 |
- default |
565 |
- |
566 |
- # https://bugzilla.redhat.com/show_bug.cgi?id=1786983 |
567 |
- eapply "${FILESDIR}/glusterfs-6.7-fix-rebalance-crash.patch" |
568 |
- |
569 |
- # https://bugs.gentoo.org/705536 |
570 |
- # https://bugzilla.redhat.com/show_bug.cgi?id=1793990 |
571 |
- eapply "${FILESDIR}/glusterfs-6.7-fix-seek.patch" |
572 |
- |
573 |
- # build rpc-transport and xlators only once as shared libs |
574 |
- find rpc/rpc-transport xlators -name Makefile.am | |
575 |
- xargs sed -i 's|.*$(top_srcdir).*\.sym|\0 -shared|' || die |
576 |
- |
577 |
- # fix execution permissions |
578 |
- chmod +x libglusterfs/src/gen-defaults.py || die |
579 |
- |
580 |
- eautoreconf |
581 |
-} |
582 |
- |
583 |
-src_configure() { |
584 |
- econf \ |
585 |
- --disable-fusermount \ |
586 |
- $(use_enable debug) \ |
587 |
- $(use_enable fuse fuse-client) \ |
588 |
- $(use_enable georeplication) \ |
589 |
- $(use_enable infiniband ibverbs) \ |
590 |
- $(use_enable static-libs static) \ |
591 |
- $(use_enable syslog) \ |
592 |
- $(use_enable test cmocka) \ |
593 |
- $(use_enable xml xml-output) \ |
594 |
- $(use libtirpc || echo --without-libtirpc) \ |
595 |
- $(use ipv6 && echo --with-ipv6-default) \ |
596 |
- --with-tmpfilesdir="${EPREFIX}"/etc/tmpfiles.d \ |
597 |
- --localstatedir="${EPREFIX}"/var |
598 |
-} |
599 |
- |
600 |
-src_compile() { |
601 |
- default |
602 |
- use emacs && elisp-compile extras/glusterfs-mode.el |
603 |
-} |
604 |
- |
605 |
-src_install() { |
606 |
- default |
607 |
- |
608 |
- rm \ |
609 |
- "${ED}"/etc/glusterfs/glusterfs-{georep-,}logrotate \ |
610 |
- "${ED}"/etc/glusterfs/gluster-rsyslog-*.conf \ |
611 |
- "${ED}"/usr/share/doc/${PF}/glusterfs{-mode.el,.vim} || die "removing false files failed" |
612 |
- |
613 |
- insinto /etc/logrotate.d |
614 |
- newins "${FILESDIR}"/glusterfs.logrotate glusterfs |
615 |
- |
616 |
- if use rsyslog ; then |
617 |
- insinto /etc/rsyslog.d |
618 |
- newins extras/gluster-rsyslog-7.2.conf 60-gluster.conf |
619 |
- fi |
620 |
- |
621 |
- if use emacs ; then |
622 |
- elisp-install ${PN} extras/glusterfs-mode.el* |
623 |
- elisp-site-file-install "${FILESDIR}/${SITEFILE}" |
624 |
- fi |
625 |
- |
626 |
- if use vim-syntax ; then |
627 |
- insinto /usr/share/vim/vimfiles/ftdetect; doins "${FILESDIR}"/${PN}.vim |
628 |
- insinto /usr/share/vim/vimfiles/syntax; doins extras/${PN}.vim |
629 |
- fi |
630 |
- |
631 |
- # insert some other tools which might be useful |
632 |
- insinto /usr/share/glusterfs/scripts |
633 |
- doins \ |
634 |
- extras/backend-{cleanup,xattr-sanitize}.sh \ |
635 |
- extras/clear_xattrs.sh \ |
636 |
- extras/migrate-unify-to-distribute.sh |
637 |
- |
638 |
- # correct permissions on installed scripts |
639 |
- # fperms 0755 /usr/share/glusterfs/scripts/*.sh |
640 |
- chmod 0755 "${ED}"/usr/share/glusterfs/scripts/*.sh || die |
641 |
- |
642 |
- if use georeplication ; then |
643 |
- # move the gsync-sync-gfid tool to a binary path |
644 |
- # and set a symlink to be compliant with all other distros |
645 |
- mv "${ED}"/usr/{share/glusterfs/scripts/gsync-sync-gfid,libexec/glusterfs/} || die |
646 |
- dosym ../../../libexec/glusterfs/gsync-sync-gfid /usr/share/glusterfs/scripts/gsync-sync-gfid |
647 |
- fi |
648 |
- |
649 |
- newinitd "${FILESDIR}/${PN}-r1.initd" glusterfsd |
650 |
- newinitd "${FILESDIR}/glusterd-r3.initd" glusterd |
651 |
- newconfd "${FILESDIR}/${PN}.confd" glusterfsd |
652 |
- |
653 |
- keepdir /var/log/${PN} |
654 |
- keepdir /var/lib/glusterd/{events,glusterfind/.keys} |
655 |
- |
656 |
- # QA |
657 |
- rm -r "${ED}/var/run/" || die |
658 |
- if ! use static-libs; then |
659 |
- find "${D}" -type f -name '*.la' -delete || die |
660 |
- fi |
661 |
-} |
662 |
- |
663 |
-src_test() { |
664 |
- ./run-tests.sh || die |
665 |
-} |
666 |
- |
667 |
-pkg_postinst() { |
668 |
- elog "Starting with ${PN}-3.1.0, you can use the glusterd daemon to configure your" |
669 |
- elog "volumes dynamically. To do so, simply use the gluster CLI after running:" |
670 |
- elog " /etc/init.d/glusterd start" |
671 |
- echo |
672 |
- elog "For static configurations, the glusterfsd startup script can be multiplexed." |
673 |
- elog "The default startup script uses /etc/conf.d/glusterfsd to configure the" |
674 |
- elog "separate service. To create additional instances of the glusterfsd service" |
675 |
- elog "simply create a symlink to the glusterfsd startup script." |
676 |
- echo |
677 |
- elog "Example:" |
678 |
- elog " # ln -s glusterfsd /etc/init.d/glusterfsd2" |
679 |
- elog " # ${EDITOR} /etc/glusterfs/glusterfsd2.vol" |
680 |
- elog "You can now treat glusterfsd2 like any other service" |
681 |
- echo |
682 |
- ewarn "You need to use a ntp client to keep the clocks synchronized across all" |
683 |
- ewarn "of your servers. Setup a NTP synchronizing service before attempting to" |
684 |
- ewarn "run GlusterFS." |
685 |
- echo |
686 |
- elog "If you are upgrading from a previous version of ${PN}, please read:" |
687 |
- elog " http://docs.gluster.org/en/latest/Upgrade-Guide/upgrade_to_$(ver_cut '1-2')/" |
688 |
- |
689 |
- use emacs && elisp-site-regen |
690 |
-} |
691 |
- |
692 |
-pkg_postrm() { |
693 |
- use emacs && elisp-site-regen |
694 |
-} |
695 |
|
696 |
diff --git a/sys-cluster/glusterfs/glusterfs-7.2-r1.ebuild b/sys-cluster/glusterfs/glusterfs-7.2-r1.ebuild |
697 |
deleted file mode 100644 |
698 |
index a70a74de42e..00000000000 |
699 |
--- a/sys-cluster/glusterfs/glusterfs-7.2-r1.ebuild |
700 |
+++ /dev/null |
701 |
@@ -1,208 +0,0 @@ |
702 |
-# Copyright 1999-2020 Gentoo Authors |
703 |
-# Distributed under the terms of the GNU General Public License v2 |
704 |
- |
705 |
-EAPI=7 |
706 |
- |
707 |
-PYTHON_COMPAT=( python3_{6,7,8} ) |
708 |
- |
709 |
-inherit autotools elisp-common python-single-r1 systemd user |
710 |
- |
711 |
-if [[ ${PV#9999} != ${PV} ]]; then |
712 |
- inherit git-r3 |
713 |
- EGIT_REPO_URI="https://github.com/gluster/glusterfs.git" |
714 |
-else |
715 |
- SRC_URI="https://download.gluster.org/pub/gluster/${PN}/$(ver_cut 1)/${PV}/${P}.tar.gz" |
716 |
- KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" |
717 |
-fi |
718 |
- |
719 |
-DESCRIPTION="GlusterFS is a powerful network/cluster filesystem" |
720 |
-HOMEPAGE="https://www.gluster.org/" |
721 |
- |
722 |
-LICENSE="|| ( GPL-2 LGPL-3+ )" |
723 |
-SLOT="0" |
724 |
-IUSE="debug emacs +fuse +georeplication infiniband ipv6 libressl +libtirpc rsyslog static-libs +syslog test vim-syntax +xml" |
725 |
- |
726 |
-REQUIRED_USE="georeplication? ( ${PYTHON_REQUIRED_USE} ) |
727 |
- ipv6? ( libtirpc )" |
728 |
- |
729 |
-# the tests must be run as root |
730 |
-RESTRICT="test" |
731 |
- |
732 |
-# sys-apps/util-linux is required for libuuid |
733 |
-RDEPEND="!elibc_glibc? ( sys-libs/argp-standalone ) |
734 |
- emacs? ( >=app-editors/emacs-23.1:* ) |
735 |
- fuse? ( >=sys-fs/fuse-2.7.0:0 ) |
736 |
- georeplication? ( ${PYTHON_DEPS} ) |
737 |
- infiniband? ( sys-fabric/libibverbs:* sys-fabric/librdmacm:* ) |
738 |
- libtirpc? ( net-libs/libtirpc:= ) |
739 |
- !libtirpc? ( elibc_glibc? ( sys-libs/glibc[rpc(-)] ) ) |
740 |
- xml? ( dev-libs/libxml2 ) |
741 |
- sys-libs/readline:= |
742 |
- dev-libs/libaio |
743 |
- !libressl? ( dev-libs/openssl:=[-bindist] ) |
744 |
- libressl? ( dev-libs/libressl:= ) |
745 |
- dev-libs/userspace-rcu:= |
746 |
- net-libs/rpcsvc-proto |
747 |
- sys-apps/util-linux" |
748 |
-DEPEND="${RDEPEND} |
749 |
- virtual/acl |
750 |
- virtual/pkgconfig |
751 |
- sys-devel/bison |
752 |
- sys-devel/flex |
753 |
- test? ( >=dev-util/cmocka-1.0.1 |
754 |
- app-benchmarks/dbench |
755 |
- dev-vcs/git |
756 |
- net-fs/nfs-utils |
757 |
- virtual/perl-Test-Harness |
758 |
- dev-libs/yajl |
759 |
- sys-fs/xfsprogs |
760 |
- sys-apps/attr )" |
761 |
- |
762 |
-SITEFILE="50${PN}-mode-gentoo.el" |
763 |
- |
764 |
-DOCS=( AUTHORS ChangeLog NEWS README.md THANKS ) |
765 |
- |
766 |
-# Maintainer notes: |
767 |
-# * The build system will always configure & build argp-standalone but it'll never use it |
768 |
-# if the argp.h header is found in the system. Which should be the case with |
769 |
-# glibc or if argp-standalone is installed. |
770 |
- |
771 |
-pkg_setup() { |
772 |
- python_setup "python3*" |
773 |
- python-single-r1_pkg_setup |
774 |
- |
775 |
- # Needed for statedumps |
776 |
- # https://github.com/gluster/glusterfs/commit/0e50c4b3ea734456c14e2d7a578463999bd332c3 |
777 |
- enewgroup gluster |
778 |
- enewuser gluster -1 -1 "${EPREFIX}"/var/run/gluster gluster |
779 |
-} |
780 |
- |
781 |
-src_prepare() { |
782 |
- default |
783 |
- |
784 |
- # https://bugs.gentoo.org/705536 |
785 |
- # https://bugzilla.redhat.com/show_bug.cgi?id=1793990 |
786 |
- eapply "${FILESDIR}/glusterfs-6.7-fix-seek.patch" |
787 |
- |
788 |
- # build rpc-transport and xlators only once as shared libs |
789 |
- find rpc/rpc-transport xlators -name Makefile.am | |
790 |
- xargs sed -i 's|.*$(top_srcdir).*\.sym|\0 -shared|' || die |
791 |
- |
792 |
- # fix execution permissions |
793 |
- chmod +x libglusterfs/src/gen-defaults.py || die |
794 |
- |
795 |
- eautoreconf |
796 |
-} |
797 |
- |
798 |
-src_configure() { |
799 |
- econf \ |
800 |
- --disable-fusermount \ |
801 |
- $(use_enable debug) \ |
802 |
- $(use_enable fuse fuse-client) \ |
803 |
- $(use_enable georeplication) \ |
804 |
- $(use_enable infiniband ibverbs) \ |
805 |
- $(use_enable static-libs static) \ |
806 |
- $(use_enable syslog) \ |
807 |
- $(use_enable test cmocka) \ |
808 |
- $(use_enable xml xml-output) \ |
809 |
- $(use libtirpc || echo --without-libtirpc) \ |
810 |
- $(use ipv6 && echo --with-ipv6-default) \ |
811 |
- --with-tmpfilesdir="${EPREFIX}"/etc/tmpfiles.d \ |
812 |
- --localstatedir="${EPREFIX}"/var |
813 |
-} |
814 |
- |
815 |
-src_compile() { |
816 |
- default |
817 |
- use emacs && elisp-compile extras/glusterfs-mode.el |
818 |
-} |
819 |
- |
820 |
-src_install() { |
821 |
- default |
822 |
- |
823 |
- rm \ |
824 |
- "${ED}"/etc/glusterfs/glusterfs-{georep-,}logrotate \ |
825 |
- "${ED}"/etc/glusterfs/gluster-rsyslog-*.conf \ |
826 |
- "${ED}"/usr/share/doc/${PF}/glusterfs{-mode.el,.vim} || die "removing false files failed" |
827 |
- |
828 |
- insinto /etc/logrotate.d |
829 |
- newins "${FILESDIR}"/glusterfs.logrotate glusterfs |
830 |
- |
831 |
- if use rsyslog ; then |
832 |
- insinto /etc/rsyslog.d |
833 |
- newins extras/gluster-rsyslog-7.2.conf 60-gluster.conf |
834 |
- fi |
835 |
- |
836 |
- if use emacs ; then |
837 |
- elisp-install ${PN} extras/glusterfs-mode.el* |
838 |
- elisp-site-file-install "${FILESDIR}/${SITEFILE}" |
839 |
- fi |
840 |
- |
841 |
- if use vim-syntax ; then |
842 |
- insinto /usr/share/vim/vimfiles/ftdetect; doins "${FILESDIR}"/${PN}.vim |
843 |
- insinto /usr/share/vim/vimfiles/syntax; doins extras/${PN}.vim |
844 |
- fi |
845 |
- |
846 |
- # insert some other tools which might be useful |
847 |
- insinto /usr/share/glusterfs/scripts |
848 |
- doins \ |
849 |
- extras/backend-{cleanup,xattr-sanitize}.sh \ |
850 |
- extras/clear_xattrs.sh \ |
851 |
- extras/migrate-unify-to-distribute.sh |
852 |
- |
853 |
- # correct permissions on installed scripts |
854 |
- # fperms 0755 /usr/share/glusterfs/scripts/*.sh |
855 |
- chmod 0755 "${ED}"/usr/share/glusterfs/scripts/*.sh || die |
856 |
- |
857 |
- if use georeplication ; then |
858 |
- # move the gsync-sync-gfid tool to a binary path |
859 |
- # and set a symlink to be compliant with all other distros |
860 |
- mv "${ED}"/usr/{share/glusterfs/scripts/gsync-sync-gfid,libexec/glusterfs/} || die |
861 |
- dosym ../../../libexec/glusterfs/gsync-sync-gfid /usr/share/glusterfs/scripts/gsync-sync-gfid |
862 |
- fi |
863 |
- |
864 |
- newinitd "${FILESDIR}/${PN}-r1.initd" glusterfsd |
865 |
- newinitd "${FILESDIR}/glusterd-r3.initd" glusterd |
866 |
- newconfd "${FILESDIR}/${PN}.confd" glusterfsd |
867 |
- |
868 |
- keepdir /var/log/${PN} |
869 |
- keepdir /var/lib/glusterd/{events,glusterfind/.keys} |
870 |
- |
871 |
- # QA |
872 |
- rm -r "${ED}/var/run/" || die |
873 |
- if ! use static-libs; then |
874 |
- find "${D}" -type f -name '*.la' -delete || die |
875 |
- fi |
876 |
-} |
877 |
- |
878 |
-src_test() { |
879 |
- ./run-tests.sh || die |
880 |
-} |
881 |
- |
882 |
-pkg_postinst() { |
883 |
- elog "Starting with ${PN}-3.1.0, you can use the glusterd daemon to configure your" |
884 |
- elog "volumes dynamically. To do so, simply use the gluster CLI after running:" |
885 |
- elog " /etc/init.d/glusterd start" |
886 |
- echo |
887 |
- elog "For static configurations, the glusterfsd startup script can be multiplexed." |
888 |
- elog "The default startup script uses /etc/conf.d/glusterfsd to configure the" |
889 |
- elog "separate service. To create additional instances of the glusterfsd service" |
890 |
- elog "simply create a symlink to the glusterfsd startup script." |
891 |
- echo |
892 |
- elog "Example:" |
893 |
- elog " # ln -s glusterfsd /etc/init.d/glusterfsd2" |
894 |
- elog " # ${EDITOR} /etc/glusterfs/glusterfsd2.vol" |
895 |
- elog "You can now treat glusterfsd2 like any other service" |
896 |
- echo |
897 |
- ewarn "You need to use a ntp client to keep the clocks synchronized across all" |
898 |
- ewarn "of your servers. Setup a NTP synchronizing service before attempting to" |
899 |
- ewarn "run GlusterFS." |
900 |
- echo |
901 |
- elog "If you are upgrading from a previous version of ${PN}, please read:" |
902 |
- elog " http://docs.gluster.org/en/latest/Upgrade-Guide/upgrade_to_$(ver_cut '1-2')/" |
903 |
- |
904 |
- use emacs && elisp-site-regen |
905 |
-} |
906 |
- |
907 |
-pkg_postrm() { |
908 |
- use emacs && elisp-site-regen |
909 |
-} |
910 |
|
911 |
diff --git a/sys-cluster/glusterfs/glusterfs-7.3.ebuild b/sys-cluster/glusterfs/glusterfs-7.3.ebuild |
912 |
deleted file mode 100644 |
913 |
index 5812e989cf9..00000000000 |
914 |
--- a/sys-cluster/glusterfs/glusterfs-7.3.ebuild |
915 |
+++ /dev/null |
916 |
@@ -1,211 +0,0 @@ |
917 |
-# Copyright 1999-2020 Gentoo Authors |
918 |
-# Distributed under the terms of the GNU General Public License v2 |
919 |
- |
920 |
-EAPI=7 |
921 |
- |
922 |
-PYTHON_COMPAT=( python3_{6,7,8} ) |
923 |
- |
924 |
-inherit autotools elisp-common python-single-r1 systemd |
925 |
- |
926 |
-if [[ ${PV#9999} != ${PV} ]]; then |
927 |
- inherit git-r3 |
928 |
- EGIT_REPO_URI="https://github.com/gluster/glusterfs.git" |
929 |
-else |
930 |
- SRC_URI="https://download.gluster.org/pub/gluster/${PN}/$(ver_cut 1)/${PV}/${P}.tar.gz" |
931 |
- KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" |
932 |
-fi |
933 |
- |
934 |
-DESCRIPTION="GlusterFS is a powerful network/cluster filesystem" |
935 |
-HOMEPAGE="https://www.gluster.org/" |
936 |
- |
937 |
-LICENSE="|| ( GPL-2 LGPL-3+ )" |
938 |
-SLOT="0" |
939 |
-IUSE="debug emacs +fuse +georeplication infiniband ipv6 libressl +libtirpc rsyslog static-libs +syslog test vim-syntax +xml" |
940 |
- |
941 |
-REQUIRED_USE="georeplication? ( ${PYTHON_REQUIRED_USE} ) |
942 |
- ipv6? ( libtirpc )" |
943 |
- |
944 |
-# the tests must be run as root |
945 |
-RESTRICT="test" |
946 |
- |
947 |
-# sys-apps/util-linux is required for libuuid |
948 |
-RDEPEND=" |
949 |
- acct-group/gluster |
950 |
- acct-user/gluster |
951 |
- dev-libs/libaio |
952 |
- dev-libs/userspace-rcu:= |
953 |
- net-libs/rpcsvc-proto |
954 |
- sys-apps/util-linux |
955 |
- sys-libs/readline:= |
956 |
- emacs? ( >=app-editors/emacs-23.1:* ) |
957 |
- fuse? ( >=sys-fs/fuse-2.7.0:0 ) |
958 |
- georeplication? ( ${PYTHON_DEPS} ) |
959 |
- infiniband? ( sys-fabric/libibverbs:* sys-fabric/librdmacm:* ) |
960 |
- xml? ( dev-libs/libxml2 ) |
961 |
- !elibc_glibc? ( sys-libs/argp-standalone ) |
962 |
- libtirpc? ( net-libs/libtirpc:= ) |
963 |
- !libtirpc? ( elibc_glibc? ( sys-libs/glibc[rpc(-)] ) ) |
964 |
- !libressl? ( dev-libs/openssl:=[-bindist] ) |
965 |
- libressl? ( dev-libs/libressl:= ) |
966 |
-" |
967 |
-DEPEND=" |
968 |
- ${RDEPEND} |
969 |
- sys-devel/bison |
970 |
- sys-devel/flex |
971 |
- virtual/acl |
972 |
- test? ( >=dev-util/cmocka-1.0.1 |
973 |
- app-benchmarks/dbench |
974 |
- dev-vcs/git |
975 |
- net-fs/nfs-utils |
976 |
- virtual/perl-Test-Harness |
977 |
- dev-libs/yajl |
978 |
- sys-fs/xfsprogs |
979 |
- sys-apps/attr ) |
980 |
-" |
981 |
-BDEPEND=" |
982 |
- virtual/pkgconfig |
983 |
-" |
984 |
- |
985 |
-SITEFILE="50${PN}-mode-gentoo.el" |
986 |
- |
987 |
-DOCS=( AUTHORS ChangeLog NEWS README.md THANKS ) |
988 |
- |
989 |
-# Maintainer notes: |
990 |
-# * The build system will always configure & build argp-standalone but it'll never use it |
991 |
-# if the argp.h header is found in the system. Which should be the case with |
992 |
-# glibc or if argp-standalone is installed. |
993 |
- |
994 |
-pkg_setup() { |
995 |
- python_setup "python3*" |
996 |
- python-single-r1_pkg_setup |
997 |
-} |
998 |
- |
999 |
-src_prepare() { |
1000 |
- default |
1001 |
- |
1002 |
- # https://bugs.gentoo.org/705536 |
1003 |
- # https://bugzilla.redhat.com/show_bug.cgi?id=1793990 |
1004 |
- eapply "${FILESDIR}/glusterfs-6.7-fix-seek.patch" |
1005 |
- |
1006 |
- # build rpc-transport and xlators only once as shared libs |
1007 |
- find rpc/rpc-transport xlators -name Makefile.am | |
1008 |
- xargs sed -i 's|.*$(top_srcdir).*\.sym|\0 -shared|' || die |
1009 |
- |
1010 |
- # fix execution permissions |
1011 |
- chmod +x libglusterfs/src/gen-defaults.py || die |
1012 |
- |
1013 |
- eautoreconf |
1014 |
-} |
1015 |
- |
1016 |
-src_configure() { |
1017 |
- econf \ |
1018 |
- --disable-fusermount \ |
1019 |
- $(use_enable debug) \ |
1020 |
- $(use_enable fuse fuse-client) \ |
1021 |
- $(use_enable georeplication) \ |
1022 |
- $(use_enable infiniband ibverbs) \ |
1023 |
- $(use_enable static-libs static) \ |
1024 |
- $(use_enable syslog) \ |
1025 |
- $(use_enable test cmocka) \ |
1026 |
- $(use_enable xml xml-output) \ |
1027 |
- $(use libtirpc || echo --without-libtirpc) \ |
1028 |
- $(use ipv6 && echo --with-ipv6-default) \ |
1029 |
- --with-tmpfilesdir="${EPREFIX}"/etc/tmpfiles.d \ |
1030 |
- --localstatedir="${EPREFIX}"/var |
1031 |
-} |
1032 |
- |
1033 |
-src_compile() { |
1034 |
- default |
1035 |
- use emacs && elisp-compile extras/glusterfs-mode.el |
1036 |
-} |
1037 |
- |
1038 |
-src_install() { |
1039 |
- default |
1040 |
- |
1041 |
- rm \ |
1042 |
- "${ED}"/etc/glusterfs/glusterfs-{georep-,}logrotate \ |
1043 |
- "${ED}"/etc/glusterfs/gluster-rsyslog-*.conf \ |
1044 |
- "${ED}"/usr/share/doc/${PF}/glusterfs{-mode.el,.vim} || die "removing false files failed" |
1045 |
- |
1046 |
- insinto /etc/logrotate.d |
1047 |
- newins "${FILESDIR}"/glusterfs.logrotate glusterfs |
1048 |
- |
1049 |
- if use rsyslog ; then |
1050 |
- insinto /etc/rsyslog.d |
1051 |
- newins extras/gluster-rsyslog-7.2.conf 60-gluster.conf |
1052 |
- fi |
1053 |
- |
1054 |
- if use emacs ; then |
1055 |
- elisp-install ${PN} extras/glusterfs-mode.el* |
1056 |
- elisp-site-file-install "${FILESDIR}/${SITEFILE}" |
1057 |
- fi |
1058 |
- |
1059 |
- if use vim-syntax ; then |
1060 |
- insinto /usr/share/vim/vimfiles/ftdetect; doins "${FILESDIR}"/${PN}.vim |
1061 |
- insinto /usr/share/vim/vimfiles/syntax; doins extras/${PN}.vim |
1062 |
- fi |
1063 |
- |
1064 |
- # insert some other tools which might be useful |
1065 |
- insinto /usr/share/glusterfs/scripts |
1066 |
- doins \ |
1067 |
- extras/backend-{cleanup,xattr-sanitize}.sh \ |
1068 |
- extras/clear_xattrs.sh \ |
1069 |
- extras/migrate-unify-to-distribute.sh |
1070 |
- |
1071 |
- # correct permissions on installed scripts |
1072 |
- # fperms 0755 /usr/share/glusterfs/scripts/*.sh |
1073 |
- chmod 0755 "${ED}"/usr/share/glusterfs/scripts/*.sh || die |
1074 |
- |
1075 |
- if use georeplication ; then |
1076 |
- # move the gsync-sync-gfid tool to a binary path |
1077 |
- # and set a symlink to be compliant with all other distros |
1078 |
- mv "${ED}"/usr/{share/glusterfs/scripts/gsync-sync-gfid,libexec/glusterfs/} || die |
1079 |
- dosym ../../../libexec/glusterfs/gsync-sync-gfid /usr/share/glusterfs/scripts/gsync-sync-gfid |
1080 |
- fi |
1081 |
- |
1082 |
- newinitd "${FILESDIR}/${PN}-r1.initd" glusterfsd |
1083 |
- newinitd "${FILESDIR}/glusterd-r3.initd" glusterd |
1084 |
- newconfd "${FILESDIR}/${PN}.confd" glusterfsd |
1085 |
- |
1086 |
- keepdir /var/log/${PN} |
1087 |
- keepdir /var/lib/glusterd/{events,glusterfind/.keys} |
1088 |
- |
1089 |
- # QA |
1090 |
- rm -r "${ED}/var/run/" || die |
1091 |
- if ! use static-libs; then |
1092 |
- find "${D}" -type f -name '*.la' -delete || die |
1093 |
- fi |
1094 |
-} |
1095 |
- |
1096 |
-src_test() { |
1097 |
- ./run-tests.sh || die |
1098 |
-} |
1099 |
- |
1100 |
-pkg_postinst() { |
1101 |
- elog "Starting with ${PN}-3.1.0, you can use the glusterd daemon to configure your" |
1102 |
- elog "volumes dynamically. To do so, simply use the gluster CLI after running:" |
1103 |
- elog " /etc/init.d/glusterd start" |
1104 |
- echo |
1105 |
- elog "For static configurations, the glusterfsd startup script can be multiplexed." |
1106 |
- elog "The default startup script uses /etc/conf.d/glusterfsd to configure the" |
1107 |
- elog "separate service. To create additional instances of the glusterfsd service" |
1108 |
- elog "simply create a symlink to the glusterfsd startup script." |
1109 |
- echo |
1110 |
- elog "Example:" |
1111 |
- elog " # ln -s glusterfsd /etc/init.d/glusterfsd2" |
1112 |
- elog " # ${EDITOR} /etc/glusterfs/glusterfsd2.vol" |
1113 |
- elog "You can now treat glusterfsd2 like any other service" |
1114 |
- echo |
1115 |
- ewarn "You need to use a ntp client to keep the clocks synchronized across all" |
1116 |
- ewarn "of your servers. Setup a NTP synchronizing service before attempting to" |
1117 |
- ewarn "run GlusterFS." |
1118 |
- echo |
1119 |
- elog "If you are upgrading from a previous version of ${PN}, please read:" |
1120 |
- elog " http://docs.gluster.org/en/latest/Upgrade-Guide/upgrade_to_$(ver_cut '1-2')/" |
1121 |
- |
1122 |
- use emacs && elisp-site-regen |
1123 |
-} |
1124 |
- |
1125 |
-pkg_postrm() { |
1126 |
- use emacs && elisp-site-regen |
1127 |
-} |