1 |
commit: 0b62651330352e3a28fb35a8c2bc453d8c95f1ef |
2 |
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Nov 19 13:43:48 2017 +0000 |
4 |
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Nov 21 20:43:38 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0b626513 |
7 |
|
8 |
sys-cluster/glusterfs: Version bump to 3.12.3 |
9 |
|
10 |
Package-Manager: Portage-2.3.14, Repoman-2.3.6 |
11 |
|
12 |
sys-cluster/glusterfs/Manifest | 1 + |
13 |
sys-cluster/glusterfs/glusterfs-3.12.3.ebuild | 218 ++++++++++++++++++++++++++ |
14 |
2 files changed, 219 insertions(+) |
15 |
|
16 |
diff --git a/sys-cluster/glusterfs/Manifest b/sys-cluster/glusterfs/Manifest |
17 |
index 75b7af89fac..c63b2b8dd66 100644 |
18 |
--- a/sys-cluster/glusterfs/Manifest |
19 |
+++ b/sys-cluster/glusterfs/Manifest |
20 |
@@ -1,5 +1,6 @@ |
21 |
DIST glusterfs-3.10.1.tar.gz 8926368 SHA256 d3c23df3299964efe6b688c94ddde258506ecf173b58e8c07fa18d470bb21517 SHA512 35acf10d37db7ca9cf7d88e4eabcac4febdccfe15cbe68df86c44042987547f3a56447a1ced5ed238d171efdbcb97dd1fc6917283641bdcd7d476deb37ad0871 WHIRLPOOL 7ce3b5cbe136b1d09b4c0c062decf0d9c5bba03f9b7249648e886ceff758061e73863c9f6d82ed2de3fc41546950ee08c022683174283dc03201c12d61d295aa |
22 |
DIST glusterfs-3.12.2.tar.gz 9404275 SHA256 6f9fbf8183df9e012a2c95f3ac3fad303443218beef4fd060f4af57c0bdbc069 SHA512 2bcb3e9356964ea8557ea4291cf6b641122c58a3beb59c00de0acb6772b05b22c0610db4f2bde2e506e15233cfa610db415c6622933e04600ddee3cc55b01166 WHIRLPOOL e788f65be5a3b9965ae485a1d273c2890d89fcff705490c040192fc549580e051e3208e0d2ccdc8dc9350c1e57b188a39a1690751dee1201ef032ca71d514871 |
23 |
+DIST glusterfs-3.12.3.tar.gz 7187644 SHA256 3045208401b088414ea7198af3fe5ecbc6833e90f8aea68f318a0d863e76fa9d SHA512 f648b8324a69360b510c947e49918467c969dcc21b6a408b6916b780aa78c44abe027b6c84d696eed7d5f381b055edd3be1dfe4f3ea8f76d15d9319cd08cfa3d WHIRLPOOL c6e942d8460c3edb0924ef21f93a04c0c49f83e905fab7de5befbed08f6b4a7ebbb6c563c773aa617198d3ebe368f3cc9e5affbe49732638cdb1a643444462ad |
24 |
DIST glusterfs-3.6.5.tar.gz 6091408 SHA256 20d912ef35fb8350c50c39c15134a3558ee90d012203f049799c8eb67a61fd2a SHA512 7ca41855239818fc4c84cdb86e1f1d39502e781d5117a5ee50ea134f03f0823a8640ee9bda28f05463e8504aba9ddb12ac72e118f0ce7c3755c083033f5677ca WHIRLPOOL 9fc0592052d976d65fcc769c69d910fa6d909695162bccf80c1e799a2c54c531ab03a4afd3788951c231a214a22e5f8bb3613a83277858627425b86fd532ab5e |
25 |
DIST glusterfs-3.7.4.tar.gz 7552110 SHA256 f98f448117d1de7666ae425eddd8d7d87b02c57f6627234ce96ba60566f47173 SHA512 f9a281f3a37835f9f54679740ddb19b307babe576a8f14c9ef24d256f483789c227d7e7c5b0ed4ef5c13a257bcf00d0c17b6108fa60c5e45d0175df6e236b3a5 WHIRLPOOL 7b0320936de078234228cb691f3e381da3cc89c638d6246aba63695aa36cb114afca6e53d12d23de441b8da0b3a594ac1702b450d5d14720254af73e689c4ab8 |
26 |
DIST glusterfs-3.8.11.tar.gz 8544971 SHA256 2285c02f9449168eabeaa7b72706e80f3de659eb685293dd899c71c33798702e SHA512 61cadc567a73403c78eac5e472aadd1457053be936042ea1218c172760376b026152e84b4ca15a0c249524347d434cc7d35c3a73f4d0b01e89c6aec5edcbbb49 WHIRLPOOL 21d4c2da1d281cb03181c21385a62d74c71f24936d2c33da22085accb5fa563b7095757b7df3eb30bf865c37fe683c420756c542d6933c99c0d3f9025c07a217 |
27 |
|
28 |
diff --git a/sys-cluster/glusterfs/glusterfs-3.12.3.ebuild b/sys-cluster/glusterfs/glusterfs-3.12.3.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..18dba1d6b93 |
31 |
--- /dev/null |
32 |
+++ b/sys-cluster/glusterfs/glusterfs-3.12.3.ebuild |
33 |
@@ -0,0 +1,218 @@ |
34 |
+# Copyright 1999-2017 Gentoo Foundation |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=6 |
38 |
+ |
39 |
+PYTHON_COMPAT=( python2_7 ) |
40 |
+ |
41 |
+inherit autotools elisp-common python-single-r1 systemd user versionator |
42 |
+ |
43 |
+DESCRIPTION="GlusterFS is a powerful network/cluster filesystem" |
44 |
+HOMEPAGE="https://www.gluster.org/" |
45 |
+SRC_URI="https://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 ~arm ~arm64 ~ppc ~ppc64 ~x86" |
50 |
+IUSE="bd-xlator crypt-xlator debug emacs +fuse +georeplication glupy infiniband +libtirpc 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 |
+ !elibc_glibc? ( sys-libs/argp-standalone ) |
61 |
+ emacs? ( virtual/emacs ) |
62 |
+ fuse? ( >=sys-fs/fuse-2.7.0:0 ) |
63 |
+ georeplication? ( ${PYTHON_DEPS} ) |
64 |
+ infiniband? ( sys-fabric/libibverbs:* sys-fabric/librdmacm:* ) |
65 |
+ libtirpc? ( net-libs/libtirpc:= ) |
66 |
+ !libtirpc? ( elibc_glibc? ( sys-libs/glibc[rpc(-)] ) ) |
67 |
+ qemu-block? ( dev-libs/glib:2 ) |
68 |
+ systemtap? ( dev-util/systemtap ) |
69 |
+ tiering? ( dev-db/sqlite:3 ) |
70 |
+ xml? ( dev-libs/libxml2 ) |
71 |
+ sys-libs/readline:= |
72 |
+ dev-libs/libaio |
73 |
+ dev-libs/openssl:=[-bindist] |
74 |
+ dev-libs/userspace-rcu:= |
75 |
+ net-libs/rpcsvc-proto |
76 |
+ sys-apps/util-linux" |
77 |
+DEPEND="${RDEPEND} |
78 |
+ virtual/acl |
79 |
+ virtual/pkgconfig |
80 |
+ sys-devel/bison |
81 |
+ sys-devel/flex |
82 |
+ test? ( >=dev-util/cmocka-1.0.1 |
83 |
+ app-benchmarks/dbench |
84 |
+ dev-vcs/git |
85 |
+ net-fs/nfs-utils |
86 |
+ virtual/perl-Test-Harness |
87 |
+ dev-libs/yajl |
88 |
+ sys-fs/xfsprogs |
89 |
+ sys-apps/attr )" |
90 |
+ |
91 |
+SITEFILE="50${PN}-mode-gentoo.el" |
92 |
+ |
93 |
+PATCHES=( |
94 |
+ "${FILESDIR}/${PN}-3.12.2-poisoned-sysmacros.patch" |
95 |
+ "${FILESDIR}/${PN}-3.12.2-silent_rules.patch" |
96 |
+ "${FILESDIR}/${PN}-3.12.3-libtirpc.patch" |
97 |
+) |
98 |
+ |
99 |
+DOCS=( AUTHORS ChangeLog NEWS README.md THANKS ) |
100 |
+ |
101 |
+# Maintainer notes: |
102 |
+# * The build system will always configure & build argp-standalone but it'll never use it |
103 |
+# if the argp.h header is found in the system. Which should be the case with |
104 |
+# glibc or if argp-standalone is installed. |
105 |
+ |
106 |
+pkg_setup() { |
107 |
+ python_setup "python2*" |
108 |
+ python-single-r1_pkg_setup |
109 |
+ |
110 |
+ # Needed for statedumps |
111 |
+ # https://github.com/gluster/glusterfs/commit/0e50c4b3ea734456c14e2d7a578463999bd332c3 |
112 |
+ enewgroup gluster |
113 |
+ enewuser gluster -1 -1 "${EPREFIX}"/var/run/gluster gluster |
114 |
+} |
115 |
+ |
116 |
+src_prepare() { |
117 |
+ default |
118 |
+ |
119 |
+ # build rpc-transport and xlators only once as shared libs |
120 |
+ find rpc/rpc-transport xlators -name Makefile.am | |
121 |
+ xargs sed -i 's|.*$(top_srcdir).*\.sym|\0 -shared|' || die |
122 |
+ |
123 |
+ # fix execution permissions |
124 |
+ chmod +x libglusterfs/src/gen-defaults.py || die |
125 |
+ |
126 |
+ eautoreconf |
127 |
+} |
128 |
+ |
129 |
+src_configure() { |
130 |
+ econf \ |
131 |
+ --disable-dependency-tracking \ |
132 |
+ --disable-silent-rules \ |
133 |
+ --disable-fusermount \ |
134 |
+ $(use_enable debug) \ |
135 |
+ $(use_enable bd-xlator) \ |
136 |
+ $(use_enable crypt-xlator) \ |
137 |
+ $(use_enable fuse fuse-client) \ |
138 |
+ $(use_enable georeplication) \ |
139 |
+ $(use_enable glupy) \ |
140 |
+ $(use_enable infiniband ibverbs) \ |
141 |
+ $(use_enable qemu-block) \ |
142 |
+ $(use_enable static-libs static) \ |
143 |
+ $(use_enable syslog) \ |
144 |
+ $(use_enable systemtap) \ |
145 |
+ $(use_enable test cmocka) \ |
146 |
+ $(use_enable tiering) \ |
147 |
+ $(use_enable xml xml-output) \ |
148 |
+ $(use_with libtirpc) \ |
149 |
+ --with-tmpfilesdir="${EPREFIX}"/etc/tmpfiles.d \ |
150 |
+ --docdir="${EPREFIX}"/usr/share/doc/${PF} \ |
151 |
+ --localstatedir="${EPREFIX}"/var |
152 |
+} |
153 |
+ |
154 |
+src_compile() { |
155 |
+ default |
156 |
+ use emacs && elisp-compile extras/glusterfs-mode.el |
157 |
+} |
158 |
+ |
159 |
+src_install() { |
160 |
+ default |
161 |
+ |
162 |
+ rm \ |
163 |
+ "${ED}"/etc/glusterfs/glusterfs-{georep-,}logrotate \ |
164 |
+ "${ED}"/etc/glusterfs/gluster-rsyslog-*.conf \ |
165 |
+ "${ED}"/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-r3.initd" glusterd |
205 |
+ newconfd "${FILESDIR}/${PN}.confd" glusterfsd |
206 |
+ |
207 |
+ keepdir /var/log/${PN} |
208 |
+ keepdir /var/lib/glusterd |
209 |
+ |
210 |
+ # QA |
211 |
+ rm -r "${ED}/var/run/" || die |
212 |
+ if ! use static-libs; then |
213 |
+ find "${D}" -type f -name '*.la' -delete || die |
214 |
+ fi |
215 |
+ |
216 |
+ # fix all shebang for python2 #560750 |
217 |
+ python_fix_shebang "${ED}" |
218 |
+} |
219 |
+ |
220 |
+src_test() { |
221 |
+ ./run-tests.sh || die |
222 |
+} |
223 |
+ |
224 |
+pkg_postinst() { |
225 |
+ elog "Starting with ${PN}-3.1.0, you can use the glusterd daemon to configure your" |
226 |
+ elog "volumes dynamically. To do so, simply use the gluster CLI after running:" |
227 |
+ elog " /etc/init.d/glusterd start" |
228 |
+ echo |
229 |
+ elog "For static configurations, the glusterfsd startup script can be multiplexed." |
230 |
+ elog "The default startup script uses /etc/conf.d/glusterfsd to configure the" |
231 |
+ elog "separate service. To create additional instances of the glusterfsd service" |
232 |
+ elog "simply create a symlink to the glusterfsd startup script." |
233 |
+ echo |
234 |
+ elog "Example:" |
235 |
+ elog " # ln -s glusterfsd /etc/init.d/glusterfsd2" |
236 |
+ elog " # ${EDITOR} /etc/glusterfs/glusterfsd2.vol" |
237 |
+ elog "You can now treat glusterfsd2 like any other service" |
238 |
+ echo |
239 |
+ ewarn "You need to use a ntp client to keep the clocks synchronized across all" |
240 |
+ ewarn "of your servers. Setup a NTP synchronizing service before attempting to" |
241 |
+ ewarn "run GlusterFS." |
242 |
+ echo |
243 |
+ elog "If you are upgrading from a previous version of ${PN}, please read:" |
244 |
+ elog " http://docs.gluster.org/en/latest/Upgrade-Guide/upgrade_to_$(get_version_component_range '1-2')/" |
245 |
+ |
246 |
+ use emacs && elisp-site-regen |
247 |
+} |
248 |
+ |
249 |
+pkg_postrm() { |
250 |
+ use emacs && elisp-site-regen |
251 |
+} |