1 |
commit: 3a7dc24fa10c119bc43416ec4a4288621f3ba89f |
2 |
Author: Ultrabug <ultrabug <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Nov 27 14:52:28 2016 +0000 |
4 |
Commit: Alexys Jacob <ultrabug <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 27 14:52:28 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a7dc24f |
7 |
|
8 |
sys-cluster/glusterfs: version bump, fix #560750 #582732 #592174 #589058 |
9 |
|
10 |
Package-Manager: portage-2.3.2 |
11 |
|
12 |
sys-cluster/glusterfs/Manifest | 1 + |
13 |
sys-cluster/glusterfs/glusterfs-3.8.6.ebuild | 212 +++++++++++++++++++++++++++ |
14 |
2 files changed, 213 insertions(+) |
15 |
|
16 |
diff --git a/sys-cluster/glusterfs/Manifest b/sys-cluster/glusterfs/Manifest |
17 |
index a1cfb40..97d9897 100644 |
18 |
--- a/sys-cluster/glusterfs/Manifest |
19 |
+++ b/sys-cluster/glusterfs/Manifest |
20 |
@@ -2,3 +2,4 @@ DIST glusterfs-3.1.2.tar.gz 2086469 SHA256 9a4e910431f572aa180a3ad1821f7524773ec |
21 |
DIST glusterfs-3.5.4.tar.gz 5199067 SHA256 8e8bf9ff6b3884c420653dbf7549f8240cb30aa4a55c852ebb8f293f8089ad35 SHA512 eac2e5eacf33a04c574d495ea532703222faa559e34702f5939e9300936064d0867e4de9653be64dd3fa7fc1976e32915521a0ba07dc3c16c03b598a64dc12da WHIRLPOOL b597b677d6284e0419b6d1574d24bc6677bffec120c2ff37fc83f51b0fd048ec9bae8873b530e44cad10e85c109f8a97f3e67f85a4709207d488f64d561fc068 |
22 |
DIST glusterfs-3.6.5.tar.gz 6091408 SHA256 20d912ef35fb8350c50c39c15134a3558ee90d012203f049799c8eb67a61fd2a SHA512 7ca41855239818fc4c84cdb86e1f1d39502e781d5117a5ee50ea134f03f0823a8640ee9bda28f05463e8504aba9ddb12ac72e118f0ce7c3755c083033f5677ca WHIRLPOOL 9fc0592052d976d65fcc769c69d910fa6d909695162bccf80c1e799a2c54c531ab03a4afd3788951c231a214a22e5f8bb3613a83277858627425b86fd532ab5e |
23 |
DIST glusterfs-3.7.4.tar.gz 7552110 SHA256 f98f448117d1de7666ae425eddd8d7d87b02c57f6627234ce96ba60566f47173 SHA512 f9a281f3a37835f9f54679740ddb19b307babe576a8f14c9ef24d256f483789c227d7e7c5b0ed4ef5c13a257bcf00d0c17b6108fa60c5e45d0175df6e236b3a5 WHIRLPOOL 7b0320936de078234228cb691f3e381da3cc89c638d6246aba63695aa36cb114afca6e53d12d23de441b8da0b3a594ac1702b450d5d14720254af73e689c4ab8 |
24 |
+DIST glusterfs-3.8.6.tar.gz 8456856 SHA256 5c62c0b66cde74427eacc49cdbda7c84cc8289b38bcda80107adedd24b355715 SHA512 115d65183682587b4e8dd0c3d52f4a43eabbd6968441b7f09db006748890155f6748ceddf7ce80a7481207df7cb2dca6339b77cc7b8bccfc7fe00084ac00b223 WHIRLPOOL 7321468daf15a4ebad158d32328dfe64590cbf0ddcdda4d855a7b8a9849b29fed1c1af58475f8c1ef140f244fc15db57c00170eb477c27854408598bc0a7f6b8 |
25 |
|
26 |
diff --git a/sys-cluster/glusterfs/glusterfs-3.8.6.ebuild b/sys-cluster/glusterfs/glusterfs-3.8.6.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000..8604c10 |
29 |
--- /dev/null |
30 |
+++ b/sys-cluster/glusterfs/glusterfs-3.8.6.ebuild |
31 |
@@ -0,0 +1,212 @@ |
32 |
+# Copyright 1999-2016 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+# $Id$ |
35 |
+ |
36 |
+EAPI=5 |
37 |
+ |
38 |
+PYTHON_COMPAT=( python2_7 ) |
39 |
+AUTOTOOLS_AUTORECONF=1 |
40 |
+ |
41 |
+inherit autotools-utils elisp-common eutils multilib python-single-r1 systemd versionator |
42 |
+ |
43 |
+DESCRIPTION="GlusterFS is a powerful network/cluster filesystem" |
44 |
+HOMEPAGE="http://www.gluster.org/" |
45 |
+SRC_URI="http://download.gluster.org/pub/gluster/${PN}/$(get_version_component_range '1-2')/${PV}/${P}.tar.gz" |
46 |
+ |
47 |
+LICENSE="|| ( GPL-2 LGPL-3+ )" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" |
50 |
+IUSE="bd-xlator crypt-xlator debug emacs +fuse +georeplication glupy infiniband qemu-block rsyslog static-libs +syslog systemtap test +tiering vim-syntax +xml" |
51 |
+ |
52 |
+REQUIRED_USE="georeplication? ( ${PYTHON_REQUIRED_USE} ) |
53 |
+ glupy? ( ${PYTHON_REQUIRED_USE} )" |
54 |
+ |
55 |
+# the tests must be run as root |
56 |
+RESTRICT="test" |
57 |
+ |
58 |
+# sys-apps/util-linux is required for libuuid |
59 |
+RDEPEND="bd-xlator? ( sys-fs/lvm2 ) |
60 |
+ emacs? ( virtual/emacs ) |
61 |
+ fuse? ( >=sys-fs/fuse-2.7.0 ) |
62 |
+ georeplication? ( ${PYTHON_DEPS} ) |
63 |
+ infiniband? ( sys-fabric/libibverbs:* sys-fabric/librdmacm:* ) |
64 |
+ qemu-block? ( dev-libs/glib:2 ) |
65 |
+ systemtap? ( dev-util/systemtap ) |
66 |
+ tiering? ( dev-db/sqlite:3 ) |
67 |
+ xml? ( dev-libs/libxml2 ) |
68 |
+ sys-libs/readline:= |
69 |
+ dev-libs/libaio |
70 |
+ dev-libs/openssl:=[-bindist] |
71 |
+ dev-libs/userspace-rcu:= |
72 |
+ || ( sys-libs/glibc sys-libs/argp-standalone ) |
73 |
+ sys-apps/util-linux" |
74 |
+DEPEND="${RDEPEND} |
75 |
+ virtual/acl |
76 |
+ virtual/pkgconfig |
77 |
+ sys-devel/bison |
78 |
+ sys-devel/flex |
79 |
+ test? ( >=dev-util/cmocka-1.0.1 |
80 |
+ app-benchmarks/dbench |
81 |
+ dev-vcs/git |
82 |
+ net-fs/nfs-utils |
83 |
+ virtual/perl-Test-Harness |
84 |
+ dev-libs/yajl |
85 |
+ sys-fs/xfsprogs |
86 |
+ sys-apps/attr )" |
87 |
+ |
88 |
+SITEFILE="50${PN}-mode-gentoo.el" |
89 |
+ |
90 |
+PATCHES=( |
91 |
+ "${FILESDIR}/${PN}-3.4.0-silent_rules.patch" |
92 |
+) |
93 |
+ |
94 |
+DOCS=( AUTHORS ChangeLog NEWS README.md THANKS ) |
95 |
+ |
96 |
+# Maintainer notes: |
97 |
+# * The build system will always configure & build argp-standalone but it'll never use it |
98 |
+# if the argp.h header is found in the system. Which should be the case with |
99 |
+# glibc or if argp-standalone is installed. |
100 |
+ |
101 |
+pkg_setup() { |
102 |
+ python_setup "python2*" |
103 |
+ python-single-r1_pkg_setup |
104 |
+} |
105 |
+ |
106 |
+src_prepare() { |
107 |
+ # build rpc-transport and xlators only once as shared libs |
108 |
+ find rpc/rpc-transport xlators -name Makefile.am -print0 \ |
109 |
+ | xargs -0 sed -i -e 's|.*_la_LDFLAGS = .*|\0 -shared|' |
110 |
+ |
111 |
+ # fix execution permissions |
112 |
+ chmod +x libglusterfs/src/gen-defaults.py || die |
113 |
+ |
114 |
+ autotools-utils_src_prepare |
115 |
+} |
116 |
+ |
117 |
+src_configure() { |
118 |
+ local myeconfargs=( |
119 |
+ --disable-dependency-tracking |
120 |
+ --disable-silent-rules |
121 |
+ --disable-fusermount |
122 |
+ $(use_enable debug) |
123 |
+ $(use_enable bd-xlator) |
124 |
+ $(use_enable crypt-xlator) |
125 |
+ $(use_enable fuse fuse-client) |
126 |
+ $(use_enable georeplication) |
127 |
+ $(use_enable glupy) |
128 |
+ $(use_enable infiniband ibverbs) |
129 |
+ $(use_enable qemu-block) |
130 |
+ $(use_enable static-libs static) |
131 |
+ $(use_enable syslog) |
132 |
+ $(use_enable systemtap) |
133 |
+ $(use_enable test cmocka) |
134 |
+ $(use_enable tiering) |
135 |
+ $(use_enable xml xml-output) |
136 |
+ --docdir=/usr/share/doc/${PF} |
137 |
+ --localstatedir=/var |
138 |
+ ) |
139 |
+ autotools-utils_src_configure |
140 |
+} |
141 |
+ |
142 |
+src_compile() { |
143 |
+ autotools-utils_src_compile |
144 |
+ |
145 |
+ use emacs && elisp-compile extras/glusterfs-mode.el |
146 |
+} |
147 |
+ |
148 |
+src_install() { |
149 |
+ autotools-utils_src_install |
150 |
+ |
151 |
+ rm \ |
152 |
+ "${D}"/etc/glusterfs/glusterfs-{georep-,}logrotate \ |
153 |
+ "${D}"/etc/glusterfs/gluster-rsyslog-*.conf \ |
154 |
+ "${D}"/usr/share/doc/${PF}/glusterfs{-mode.el,.vim} || die "removing false files failed" |
155 |
+ |
156 |
+ insinto /etc/logrotate.d |
157 |
+ newins "${FILESDIR}"/glusterfs.logrotate glusterfs |
158 |
+ |
159 |
+ if use rsyslog ; then |
160 |
+ insinto /etc/rsyslog.d |
161 |
+ newins extras/gluster-rsyslog-7.2.conf 60-gluster.conf |
162 |
+ fi |
163 |
+ |
164 |
+ if use emacs ; then |
165 |
+ elisp-install ${PN} extras/glusterfs-mode.el* |
166 |
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}" |
167 |
+ fi |
168 |
+ |
169 |
+ if use vim-syntax ; then |
170 |
+ insinto /usr/share/vim/vimfiles/ftdetect; doins "${FILESDIR}"/${PN}.vim |
171 |
+ insinto /usr/share/vim/vimfiles/syntax; doins extras/${PN}.vim |
172 |
+ fi |
173 |
+ |
174 |
+ # insert some other tools which might be useful |
175 |
+ insinto /usr/share/glusterfs/scripts |
176 |
+ doins \ |
177 |
+ extras/backend-{cleanup,xattr-sanitize}.sh \ |
178 |
+ extras/clear_xattrs.sh \ |
179 |
+ extras/migrate-unify-to-distribute.sh |
180 |
+ |
181 |
+ # correct permissions on installed scripts |
182 |
+ # fperms 0755 /usr/share/glusterfs/scripts/*.sh |
183 |
+ chmod 0755 "${ED}"/usr/share/glusterfs/scripts/*.sh || die |
184 |
+ |
185 |
+ if use georeplication ; then |
186 |
+ # move the gsync-sync-gfid tool to a binary path |
187 |
+ # and set a symlink to be compliant with all other distros |
188 |
+ mv "${ED}"/usr/{share/glusterfs/scripts/gsync-sync-gfid,libexec/glusterfs/} || die |
189 |
+ dosym ../../../libexec/glusterfs/gsync-sync-gfid /usr/share/glusterfs/scripts/gsync-sync-gfid |
190 |
+ fi |
191 |
+ |
192 |
+ newinitd "${FILESDIR}/${PN}-r1.initd" glusterfsd |
193 |
+ newinitd "${FILESDIR}/glusterd-r2.initd" glusterd |
194 |
+ newconfd "${FILESDIR}/${PN}.confd" glusterfsd |
195 |
+ |
196 |
+ keepdir /var/log/${PN} |
197 |
+ keepdir /var/lib/glusterd |
198 |
+ |
199 |
+ # QA |
200 |
+ rm -rf "${ED}/var/run/" || die |
201 |
+ use static-libs || find "${ED}"/usr/$(get_libdir)/ -type f -name '*.la' -delete |
202 |
+ |
203 |
+ # fix all shebang for python2 #560750 |
204 |
+ python_fix_shebang "${ED}" |
205 |
+ |
206 |
+ # upstream already has a patch ready, to be removed once available, http://review.gluster.org/#/c/9458/ |
207 |
+ echo "d /run/gluster 0755 root root -" > "${T}/gluster.tmpfiles" || die |
208 |
+ systemd_newtmpfilesd "${T}/gluster.tmpfiles" gluster.conf |
209 |
+} |
210 |
+ |
211 |
+src_test() { |
212 |
+ ./run-tests.sh || die |
213 |
+} |
214 |
+ |
215 |
+pkg_postinst() { |
216 |
+ elog "Starting with ${PN}-3.1.0, you can use the glusterd daemon to configure your" |
217 |
+ elog "volumes dynamically. To do so, simply use the gluster CLI after running:" |
218 |
+ elog " /etc/init.d/glusterd start" |
219 |
+ echo |
220 |
+ elog "For static configurations, the glusterfsd startup script can be multiplexed." |
221 |
+ elog "The default startup script uses /etc/conf.d/glusterfsd to configure the" |
222 |
+ elog "separate service. To create additional instances of the glusterfsd service" |
223 |
+ elog "simply create a symlink to the glusterfsd startup script." |
224 |
+ echo |
225 |
+ elog "Example:" |
226 |
+ elog " # ln -s glusterfsd /etc/init.d/glusterfsd2" |
227 |
+ elog " # ${EDITOR} /etc/glusterfs/glusterfsd2.vol" |
228 |
+ elog "You can now treat glusterfsd2 like any other service" |
229 |
+ echo |
230 |
+ ewarn "You need to use a ntp client to keep the clocks synchronized across all" |
231 |
+ ewarn "of your servers. Setup a NTP synchronizing service before attempting to" |
232 |
+ ewarn "run GlusterFS." |
233 |
+ |
234 |
+ elog |
235 |
+ elog "If you are upgrading from a previous version of ${PN}, please read:" |
236 |
+ elog " http://www.gluster.org/community/documentation/index.php/Upgrade_to_3.5" |
237 |
+ |
238 |
+ use emacs && elisp-site-regen |
239 |
+} |
240 |
+ |
241 |
+pkg_postrm() { |
242 |
+ use emacs && elisp-site-regen |
243 |
+} |