1 |
commit: 99fa013dbdf04f2089077f90651e9d5e73943dae |
2 |
Author: Alexys Jacob <ultrabug <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Apr 14 10:48:41 2019 +0000 |
4 |
Commit: Alexys Jacob <ultrabug <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Apr 14 10:48:41 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=99fa013d |
7 |
|
8 |
sys-cluster/glusterfs: drop older versions |
9 |
|
10 |
Package-Manager: Portage-2.3.62, Repoman-2.3.12 |
11 |
Signed-off-by: Alexys Jacob <ultrabug <AT> gentoo.org> |
12 |
|
13 |
sys-cluster/glusterfs/Manifest | 2 - |
14 |
sys-cluster/glusterfs/glusterfs-4.0.0-r1.ebuild | 227 ----------------------- |
15 |
sys-cluster/glusterfs/glusterfs-4.0.2.ebuild | 230 ------------------------ |
16 |
3 files changed, 459 deletions(-) |
17 |
|
18 |
diff --git a/sys-cluster/glusterfs/Manifest b/sys-cluster/glusterfs/Manifest |
19 |
index 2dc7e70ded3..41f0afcee31 100644 |
20 |
--- a/sys-cluster/glusterfs/Manifest |
21 |
+++ b/sys-cluster/glusterfs/Manifest |
22 |
@@ -1,5 +1,3 @@ |
23 |
-DIST glusterfs-4.0.0.tar.gz 7632629 BLAKE2B 9367d2c99452d261d889cf564f3a055e1459ee54377cbf8cf6cc46c8d7f153bb258892fb73fc492d1dc6c5bea156d204971256fefc96f9f4825583d9c1086563 SHA512 acd3c462a8e15fb31f4b30d2e217928488e32d66ae7d1061df3e166354a4ddcdeb0ba0bcc994b7563f83376c882800fad07e190e0086fda987915c195266421f |
24 |
-DIST glusterfs-4.0.2.tar.gz 7643713 BLAKE2B 6314f81fe1474bcf8c577aa68a32c46a6d1e586b32c698a9e30850080408958c0541c1afe72520574fcabebb0884cf3bf315b22582d932876bbb5a4393e167f0 SHA512 33afed4fb4f6d63f1d2b7caedae1ce41e7f6aa4299fb4a7ee2f5e4bc14c97d66f68097171fded6d1f2141dd7127eb408596cce4f5f7287038a14e387ad5ec5e6 |
25 |
DIST glusterfs-4.1.5.tar.gz 7783999 BLAKE2B ac1e7732430fe25eec34a8b85b9cd5ce4f43076befec2d91c0156959887d8a0589adb8afb1ee9290e436ce40ab7e5567c3c4ec90017b4398919637e2047f18b9 SHA512 ae557472b6a263e815b8c4d630b606f8e1334b6604799e499e6f53ea6ff60c2a696160fa427943cc3d01ffee91a57787c91f93a1b914179679038e63d291401f |
26 |
DIST glusterfs-4.1.8.tar.gz 7835272 BLAKE2B 2546b9c0fe38989df71b8f72b193ce42c499621dcaaa4c5e3deeacfba68179f2280fc699cebeb87486171442152fa8b56b42a0d17465b739769eb227c82307d7 SHA512 950cd2fd774e3eb00f1ec06d54566736b6fbe8d1aed54477a19d9b2727eff8a70ef7ac32815cc7e01d45b5d357fc01af786e16c451f6ad314d472e61ba04ce85 |
27 |
DIST glusterfs-6.0.tar.gz 7495110 BLAKE2B 89fde01732dbbcecdf514d196e3bac683caaaaefb3658b4e92f1bbf73ca09defa4de9366066a00528564acfbe93c3f65cfabbeb0d830c00f29ee9c99ed7bf08a SHA512 fc4f4ee75b3936469b7c4be146545eb88d2cf3583d5f101bcacb2805c842aa95f69d1c023dee4dac32ebe01cdc9ede4814f9364482e8815e451e43660e6c74b9 |
28 |
|
29 |
diff --git a/sys-cluster/glusterfs/glusterfs-4.0.0-r1.ebuild b/sys-cluster/glusterfs/glusterfs-4.0.0-r1.ebuild |
30 |
deleted file mode 100644 |
31 |
index b8c3d99fa8f..00000000000 |
32 |
--- a/sys-cluster/glusterfs/glusterfs-4.0.0-r1.ebuild |
33 |
+++ /dev/null |
34 |
@@ -1,227 +0,0 @@ |
35 |
-# Copyright 1999-2018 Gentoo Foundation |
36 |
-# Distributed under the terms of the GNU General Public License v2 |
37 |
- |
38 |
-EAPI=6 |
39 |
- |
40 |
-PYTHON_COMPAT=( python2_7 ) |
41 |
- |
42 |
-inherit autotools elisp-common python-single-r1 systemd user versionator |
43 |
- |
44 |
-if [[ ${PV#9999} != ${PV} ]]; then |
45 |
- inherit git-r3 |
46 |
- EGIT_REPO_URI="https://github.com/gluster/glusterfs.git" |
47 |
-else |
48 |
- SRC_URI="https://download.gluster.org/pub/gluster/${PN}/$(get_version_component_range '1-2')/${PV}/${P}.tar.gz" |
49 |
- KEYWORDS="amd64 ~arm ~arm64 ppc ppc64 x86" |
50 |
-fi |
51 |
- |
52 |
-DESCRIPTION="GlusterFS is a powerful network/cluster filesystem" |
53 |
-HOMEPAGE="https://www.gluster.org/" |
54 |
- |
55 |
-LICENSE="|| ( GPL-2 LGPL-3+ )" |
56 |
-SLOT="0" |
57 |
-IUSE="bd-xlator crypt-xlator debug emacs +fuse +georeplication glupy infiniband ipv6 +libtirpc qemu-block rsyslog static-libs +syslog systemtap test +tiering vim-syntax +xml" |
58 |
- |
59 |
-REQUIRED_USE="georeplication? ( ${PYTHON_REQUIRED_USE} ) |
60 |
- glupy? ( ${PYTHON_REQUIRED_USE} ) |
61 |
- ipv6? ( libtirpc )" |
62 |
- |
63 |
-# the tests must be run as root |
64 |
-RESTRICT="test" |
65 |
- |
66 |
-# sys-apps/util-linux is required for libuuid |
67 |
-RDEPEND="bd-xlator? ( sys-fs/lvm2 ) |
68 |
- !elibc_glibc? ( sys-libs/argp-standalone ) |
69 |
- emacs? ( virtual/emacs ) |
70 |
- fuse? ( >=sys-fs/fuse-2.7.0:0 ) |
71 |
- georeplication? ( ${PYTHON_DEPS} ) |
72 |
- infiniband? ( sys-fabric/libibverbs:* sys-fabric/librdmacm:* ) |
73 |
- libtirpc? ( net-libs/libtirpc:= ) |
74 |
- !libtirpc? ( elibc_glibc? ( sys-libs/glibc[rpc(-)] ) ) |
75 |
- qemu-block? ( dev-libs/glib:2 ) |
76 |
- systemtap? ( dev-util/systemtap ) |
77 |
- tiering? ( dev-db/sqlite:3 ) |
78 |
- xml? ( dev-libs/libxml2 ) |
79 |
- sys-libs/readline:= |
80 |
- dev-libs/libaio |
81 |
- dev-libs/openssl:=[-bindist] |
82 |
- dev-libs/userspace-rcu:= |
83 |
- net-libs/rpcsvc-proto |
84 |
- sys-apps/util-linux" |
85 |
-DEPEND="${RDEPEND} |
86 |
- virtual/acl |
87 |
- virtual/pkgconfig |
88 |
- sys-devel/bison |
89 |
- sys-devel/flex |
90 |
- test? ( >=dev-util/cmocka-1.0.1 |
91 |
- app-benchmarks/dbench |
92 |
- dev-vcs/git |
93 |
- net-fs/nfs-utils |
94 |
- virtual/perl-Test-Harness |
95 |
- dev-libs/yajl |
96 |
- sys-fs/xfsprogs |
97 |
- sys-apps/attr )" |
98 |
- |
99 |
-SITEFILE="50${PN}-mode-gentoo.el" |
100 |
- |
101 |
-PATCHES=( |
102 |
- "${FILESDIR}/${PN}-3.12.2-poisoned-sysmacros.patch" |
103 |
- "${FILESDIR}/${PN}-3.12.2-silent_rules.patch" |
104 |
- "${FILESDIR}/${PN}-without-ipv6-default.patch" |
105 |
- "${FILESDIR}/${PN}-TIRPC-config-summary.patch" |
106 |
-) |
107 |
- |
108 |
-DOCS=( AUTHORS ChangeLog NEWS README.md THANKS ) |
109 |
- |
110 |
-# Maintainer notes: |
111 |
-# * The build system will always configure & build argp-standalone but it'll never use it |
112 |
-# if the argp.h header is found in the system. Which should be the case with |
113 |
-# glibc or if argp-standalone is installed. |
114 |
- |
115 |
-pkg_setup() { |
116 |
- python_setup "python2*" |
117 |
- python-single-r1_pkg_setup |
118 |
- |
119 |
- # Needed for statedumps |
120 |
- # https://github.com/gluster/glusterfs/commit/0e50c4b3ea734456c14e2d7a578463999bd332c3 |
121 |
- enewgroup gluster |
122 |
- enewuser gluster -1 -1 "${EPREFIX}"/var/run/gluster gluster |
123 |
-} |
124 |
- |
125 |
-src_prepare() { |
126 |
- default |
127 |
- |
128 |
- # build rpc-transport and xlators only once as shared libs |
129 |
- find rpc/rpc-transport xlators -name Makefile.am | |
130 |
- xargs sed -i 's|.*$(top_srcdir).*\.sym|\0 -shared|' || die |
131 |
- |
132 |
- # fix execution permissions |
133 |
- chmod +x libglusterfs/src/gen-defaults.py || die |
134 |
- |
135 |
- eautoreconf |
136 |
-} |
137 |
- |
138 |
-src_configure() { |
139 |
- econf \ |
140 |
- --disable-dependency-tracking \ |
141 |
- --disable-silent-rules \ |
142 |
- --disable-fusermount \ |
143 |
- $(use_enable debug) \ |
144 |
- $(use_enable bd-xlator) \ |
145 |
- $(use_enable crypt-xlator) \ |
146 |
- $(use_enable fuse fuse-client) \ |
147 |
- $(use_enable georeplication) \ |
148 |
- $(use_enable glupy) \ |
149 |
- $(use_enable infiniband ibverbs) \ |
150 |
- $(use_enable qemu-block) \ |
151 |
- $(use_enable static-libs static) \ |
152 |
- $(use_enable syslog) \ |
153 |
- $(use_enable systemtap) \ |
154 |
- $(use_enable test cmocka) \ |
155 |
- $(use_enable tiering) \ |
156 |
- $(use_enable xml xml-output) \ |
157 |
- $(use_with ipv6 ipv6-default) \ |
158 |
- $(use_with libtirpc) \ |
159 |
- --with-tmpfilesdir="${EPREFIX}"/etc/tmpfiles.d \ |
160 |
- --docdir="${EPREFIX}"/usr/share/doc/${PF} \ |
161 |
- --localstatedir="${EPREFIX}"/var |
162 |
-} |
163 |
- |
164 |
-src_compile() { |
165 |
- default |
166 |
- use emacs && elisp-compile extras/glusterfs-mode.el |
167 |
-} |
168 |
- |
169 |
-src_install() { |
170 |
- default |
171 |
- |
172 |
- rm \ |
173 |
- "${ED}"/etc/glusterfs/glusterfs-{georep-,}logrotate \ |
174 |
- "${ED}"/etc/glusterfs/gluster-rsyslog-*.conf \ |
175 |
- "${ED}"/usr/share/doc/${PF}/glusterfs{-mode.el,.vim} || die "removing false files failed" |
176 |
- |
177 |
- insinto /etc/logrotate.d |
178 |
- newins "${FILESDIR}"/glusterfs.logrotate glusterfs |
179 |
- |
180 |
- if use rsyslog ; then |
181 |
- insinto /etc/rsyslog.d |
182 |
- newins extras/gluster-rsyslog-7.2.conf 60-gluster.conf |
183 |
- fi |
184 |
- |
185 |
- if use emacs ; then |
186 |
- elisp-install ${PN} extras/glusterfs-mode.el* |
187 |
- elisp-site-file-install "${FILESDIR}/${SITEFILE}" |
188 |
- fi |
189 |
- |
190 |
- if use vim-syntax ; then |
191 |
- insinto /usr/share/vim/vimfiles/ftdetect; doins "${FILESDIR}"/${PN}.vim |
192 |
- insinto /usr/share/vim/vimfiles/syntax; doins extras/${PN}.vim |
193 |
- fi |
194 |
- |
195 |
- # insert some other tools which might be useful |
196 |
- insinto /usr/share/glusterfs/scripts |
197 |
- doins \ |
198 |
- extras/backend-{cleanup,xattr-sanitize}.sh \ |
199 |
- extras/clear_xattrs.sh \ |
200 |
- extras/migrate-unify-to-distribute.sh |
201 |
- |
202 |
- # correct permissions on installed scripts |
203 |
- # fperms 0755 /usr/share/glusterfs/scripts/*.sh |
204 |
- chmod 0755 "${ED}"/usr/share/glusterfs/scripts/*.sh || die |
205 |
- |
206 |
- if use georeplication ; then |
207 |
- # move the gsync-sync-gfid tool to a binary path |
208 |
- # and set a symlink to be compliant with all other distros |
209 |
- mv "${ED}"/usr/{share/glusterfs/scripts/gsync-sync-gfid,libexec/glusterfs/} || die |
210 |
- dosym ../../../libexec/glusterfs/gsync-sync-gfid /usr/share/glusterfs/scripts/gsync-sync-gfid |
211 |
- fi |
212 |
- |
213 |
- newinitd "${FILESDIR}/${PN}-r1.initd" glusterfsd |
214 |
- newinitd "${FILESDIR}/glusterd-r3.initd" glusterd |
215 |
- newconfd "${FILESDIR}/${PN}.confd" glusterfsd |
216 |
- |
217 |
- keepdir /var/log/${PN} |
218 |
- keepdir /var/lib/glusterd/{events,glusterfind/.keys} |
219 |
- |
220 |
- # QA |
221 |
- rm -r "${ED}/var/run/" || die |
222 |
- if ! use static-libs; then |
223 |
- find "${D}" -type f -name '*.la' -delete || die |
224 |
- fi |
225 |
- |
226 |
- # fix all shebang for python2 #560750 |
227 |
- python_fix_shebang "${ED}" |
228 |
-} |
229 |
- |
230 |
-src_test() { |
231 |
- ./run-tests.sh || die |
232 |
-} |
233 |
- |
234 |
-pkg_postinst() { |
235 |
- elog "Starting with ${PN}-3.1.0, you can use the glusterd daemon to configure your" |
236 |
- elog "volumes dynamically. To do so, simply use the gluster CLI after running:" |
237 |
- elog " /etc/init.d/glusterd start" |
238 |
- echo |
239 |
- elog "For static configurations, the glusterfsd startup script can be multiplexed." |
240 |
- elog "The default startup script uses /etc/conf.d/glusterfsd to configure the" |
241 |
- elog "separate service. To create additional instances of the glusterfsd service" |
242 |
- elog "simply create a symlink to the glusterfsd startup script." |
243 |
- echo |
244 |
- elog "Example:" |
245 |
- elog " # ln -s glusterfsd /etc/init.d/glusterfsd2" |
246 |
- elog " # ${EDITOR} /etc/glusterfs/glusterfsd2.vol" |
247 |
- elog "You can now treat glusterfsd2 like any other service" |
248 |
- echo |
249 |
- ewarn "You need to use a ntp client to keep the clocks synchronized across all" |
250 |
- ewarn "of your servers. Setup a NTP synchronizing service before attempting to" |
251 |
- ewarn "run GlusterFS." |
252 |
- echo |
253 |
- elog "If you are upgrading from a previous version of ${PN}, please read:" |
254 |
- elog " http://docs.gluster.org/en/latest/Upgrade-Guide/upgrade_to_$(get_version_component_range '1-2')/" |
255 |
- |
256 |
- use emacs && elisp-site-regen |
257 |
-} |
258 |
- |
259 |
-pkg_postrm() { |
260 |
- use emacs && elisp-site-regen |
261 |
-} |
262 |
|
263 |
diff --git a/sys-cluster/glusterfs/glusterfs-4.0.2.ebuild b/sys-cluster/glusterfs/glusterfs-4.0.2.ebuild |
264 |
deleted file mode 100644 |
265 |
index fd1498eb377..00000000000 |
266 |
--- a/sys-cluster/glusterfs/glusterfs-4.0.2.ebuild |
267 |
+++ /dev/null |
268 |
@@ -1,230 +0,0 @@ |
269 |
-# Copyright 1999-2018 Gentoo Authors |
270 |
-# Distributed under the terms of the GNU General Public License v2 |
271 |
- |
272 |
-EAPI=6 |
273 |
- |
274 |
-PYTHON_COMPAT=( python2_7 ) |
275 |
- |
276 |
-inherit autotools elisp-common python-single-r1 systemd user versionator |
277 |
- |
278 |
-if [[ ${PV#9999} != ${PV} ]]; then |
279 |
- inherit git-r3 |
280 |
- EGIT_REPO_URI="https://github.com/gluster/glusterfs.git" |
281 |
-else |
282 |
- SRC_URI="https://download.gluster.org/pub/gluster/${PN}/$(get_version_component_range '1-2')/${PV}/${P}.tar.gz" |
283 |
- KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" |
284 |
-fi |
285 |
- |
286 |
-DESCRIPTION="GlusterFS is a powerful network/cluster filesystem" |
287 |
-HOMEPAGE="https://www.gluster.org/" |
288 |
- |
289 |
-LICENSE="|| ( GPL-2 LGPL-3+ )" |
290 |
-SLOT="0" |
291 |
-IUSE="bd-xlator crypt-xlator debug emacs +fuse +georeplication glupy infiniband ipv6 +libtirpc qemu-block rsyslog static-libs +syslog systemtap test +tiering vim-syntax +xml" |
292 |
- |
293 |
-REQUIRED_USE="georeplication? ( ${PYTHON_REQUIRED_USE} ) |
294 |
- glupy? ( ${PYTHON_REQUIRED_USE} ) |
295 |
- ipv6? ( libtirpc )" |
296 |
- |
297 |
-# the tests must be run as root |
298 |
-RESTRICT="test" |
299 |
- |
300 |
-# sys-apps/util-linux is required for libuuid |
301 |
-RDEPEND="bd-xlator? ( sys-fs/lvm2 ) |
302 |
- !elibc_glibc? ( sys-libs/argp-standalone ) |
303 |
- emacs? ( virtual/emacs ) |
304 |
- fuse? ( >=sys-fs/fuse-2.7.0:0 ) |
305 |
- georeplication? ( ${PYTHON_DEPS} ) |
306 |
- infiniband? ( sys-fabric/libibverbs:* sys-fabric/librdmacm:* ) |
307 |
- libtirpc? ( net-libs/libtirpc:= ) |
308 |
- !libtirpc? ( elibc_glibc? ( sys-libs/glibc[rpc(-)] ) ) |
309 |
- qemu-block? ( dev-libs/glib:2 ) |
310 |
- systemtap? ( dev-util/systemtap ) |
311 |
- tiering? ( dev-db/sqlite:3 ) |
312 |
- xml? ( dev-libs/libxml2 ) |
313 |
- sys-libs/readline:= |
314 |
- dev-libs/libaio |
315 |
- dev-libs/openssl:=[-bindist] |
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 |
-PATCHES=( |
336 |
- "${FILESDIR}/${PN}-3.12.2-poisoned-sysmacros.patch" |
337 |
- "${FILESDIR}/${PN}-3.12.2-silent_rules.patch" |
338 |
- "${FILESDIR}/${PN}-TIRPC-config-summary.patch" |
339 |
-) |
340 |
- |
341 |
-DOCS=( AUTHORS ChangeLog NEWS README.md THANKS ) |
342 |
- |
343 |
-# Maintainer notes: |
344 |
-# * The build system will always configure & build argp-standalone but it'll never use it |
345 |
-# if the argp.h header is found in the system. Which should be the case with |
346 |
-# glibc or if argp-standalone is installed. |
347 |
- |
348 |
-pkg_setup() { |
349 |
- python_setup "python2*" |
350 |
- python-single-r1_pkg_setup |
351 |
- |
352 |
- # Needed for statedumps |
353 |
- # https://github.com/gluster/glusterfs/commit/0e50c4b3ea734456c14e2d7a578463999bd332c3 |
354 |
- enewgroup gluster |
355 |
- enewuser gluster -1 -1 "${EPREFIX}"/var/run/gluster gluster |
356 |
-} |
357 |
- |
358 |
-src_prepare() { |
359 |
- default |
360 |
- |
361 |
- # build rpc-transport and xlators only once as shared libs |
362 |
- find rpc/rpc-transport xlators -name Makefile.am | |
363 |
- xargs sed -i 's|.*$(top_srcdir).*\.sym|\0 -shared|' || die |
364 |
- |
365 |
- # fix execution permissions |
366 |
- chmod +x libglusterfs/src/gen-defaults.py || die |
367 |
- |
368 |
- eautoreconf |
369 |
-} |
370 |
- |
371 |
-src_configure() { |
372 |
- # --without-ipv6-default doesn't do what you think it does. Chewi |
373 |
- # has given up fighting with upstream about this. |
374 |
- # https://bugzilla.redhat.com/show_bug.cgi?id=1553926 |
375 |
- |
376 |
- econf \ |
377 |
- --disable-dependency-tracking \ |
378 |
- --disable-silent-rules \ |
379 |
- --disable-fusermount \ |
380 |
- $(use_enable debug) \ |
381 |
- $(use_enable bd-xlator) \ |
382 |
- $(use_enable crypt-xlator) \ |
383 |
- $(use_enable fuse fuse-client) \ |
384 |
- $(use_enable georeplication) \ |
385 |
- $(use_enable glupy) \ |
386 |
- $(use_enable infiniband ibverbs) \ |
387 |
- $(use_enable qemu-block) \ |
388 |
- $(use_enable static-libs static) \ |
389 |
- $(use_enable syslog) \ |
390 |
- $(use_enable systemtap) \ |
391 |
- $(use_enable test cmocka) \ |
392 |
- $(use_enable tiering) \ |
393 |
- $(use_enable xml xml-output) \ |
394 |
- $(use_with libtirpc) \ |
395 |
- $(use ipv6 && echo --with-ipv6-default) \ |
396 |
- --with-tmpfilesdir="${EPREFIX}"/etc/tmpfiles.d \ |
397 |
- --docdir="${EPREFIX}"/usr/share/doc/${PF} \ |
398 |
- --localstatedir="${EPREFIX}"/var |
399 |
-} |
400 |
- |
401 |
-src_compile() { |
402 |
- default |
403 |
- use emacs && elisp-compile extras/glusterfs-mode.el |
404 |
-} |
405 |
- |
406 |
-src_install() { |
407 |
- default |
408 |
- |
409 |
- rm \ |
410 |
- "${ED}"/etc/glusterfs/glusterfs-{georep-,}logrotate \ |
411 |
- "${ED}"/etc/glusterfs/gluster-rsyslog-*.conf \ |
412 |
- "${ED}"/usr/share/doc/${PF}/glusterfs{-mode.el,.vim} || die "removing false files failed" |
413 |
- |
414 |
- insinto /etc/logrotate.d |
415 |
- newins "${FILESDIR}"/glusterfs.logrotate glusterfs |
416 |
- |
417 |
- if use rsyslog ; then |
418 |
- insinto /etc/rsyslog.d |
419 |
- newins extras/gluster-rsyslog-7.2.conf 60-gluster.conf |
420 |
- fi |
421 |
- |
422 |
- if use emacs ; then |
423 |
- elisp-install ${PN} extras/glusterfs-mode.el* |
424 |
- elisp-site-file-install "${FILESDIR}/${SITEFILE}" |
425 |
- fi |
426 |
- |
427 |
- if use vim-syntax ; then |
428 |
- insinto /usr/share/vim/vimfiles/ftdetect; doins "${FILESDIR}"/${PN}.vim |
429 |
- insinto /usr/share/vim/vimfiles/syntax; doins extras/${PN}.vim |
430 |
- fi |
431 |
- |
432 |
- # insert some other tools which might be useful |
433 |
- insinto /usr/share/glusterfs/scripts |
434 |
- doins \ |
435 |
- extras/backend-{cleanup,xattr-sanitize}.sh \ |
436 |
- extras/clear_xattrs.sh \ |
437 |
- extras/migrate-unify-to-distribute.sh |
438 |
- |
439 |
- # correct permissions on installed scripts |
440 |
- # fperms 0755 /usr/share/glusterfs/scripts/*.sh |
441 |
- chmod 0755 "${ED}"/usr/share/glusterfs/scripts/*.sh || die |
442 |
- |
443 |
- if use georeplication ; then |
444 |
- # move the gsync-sync-gfid tool to a binary path |
445 |
- # and set a symlink to be compliant with all other distros |
446 |
- mv "${ED}"/usr/{share/glusterfs/scripts/gsync-sync-gfid,libexec/glusterfs/} || die |
447 |
- dosym ../../../libexec/glusterfs/gsync-sync-gfid /usr/share/glusterfs/scripts/gsync-sync-gfid |
448 |
- fi |
449 |
- |
450 |
- newinitd "${FILESDIR}/${PN}-r1.initd" glusterfsd |
451 |
- newinitd "${FILESDIR}/glusterd-r3.initd" glusterd |
452 |
- newconfd "${FILESDIR}/${PN}.confd" glusterfsd |
453 |
- |
454 |
- keepdir /var/log/${PN} |
455 |
- keepdir /var/lib/glusterd/{events,glusterfind/.keys} |
456 |
- |
457 |
- # QA |
458 |
- rm -r "${ED}/var/run/" || die |
459 |
- if ! use static-libs; then |
460 |
- find "${D}" -type f -name '*.la' -delete || die |
461 |
- fi |
462 |
- |
463 |
- # fix all shebang for python2 #560750 |
464 |
- python_fix_shebang "${ED}" |
465 |
-} |
466 |
- |
467 |
-src_test() { |
468 |
- ./run-tests.sh || die |
469 |
-} |
470 |
- |
471 |
-pkg_postinst() { |
472 |
- elog "Starting with ${PN}-3.1.0, you can use the glusterd daemon to configure your" |
473 |
- elog "volumes dynamically. To do so, simply use the gluster CLI after running:" |
474 |
- elog " /etc/init.d/glusterd start" |
475 |
- echo |
476 |
- elog "For static configurations, the glusterfsd startup script can be multiplexed." |
477 |
- elog "The default startup script uses /etc/conf.d/glusterfsd to configure the" |
478 |
- elog "separate service. To create additional instances of the glusterfsd service" |
479 |
- elog "simply create a symlink to the glusterfsd startup script." |
480 |
- echo |
481 |
- elog "Example:" |
482 |
- elog " # ln -s glusterfsd /etc/init.d/glusterfsd2" |
483 |
- elog " # ${EDITOR} /etc/glusterfs/glusterfsd2.vol" |
484 |
- elog "You can now treat glusterfsd2 like any other service" |
485 |
- echo |
486 |
- ewarn "You need to use a ntp client to keep the clocks synchronized across all" |
487 |
- ewarn "of your servers. Setup a NTP synchronizing service before attempting to" |
488 |
- ewarn "run GlusterFS." |
489 |
- echo |
490 |
- elog "If you are upgrading from a previous version of ${PN}, please read:" |
491 |
- elog " http://docs.gluster.org/en/latest/Upgrade-Guide/upgrade_to_$(get_version_component_range '1-2')/" |
492 |
- |
493 |
- use emacs && elisp-site-regen |
494 |
-} |
495 |
- |
496 |
-pkg_postrm() { |
497 |
- use emacs && elisp-site-regen |
498 |
-} |