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