1 |
commit: f7c9ba5d34153b8209ba552e3b501fcf7ed239ca |
2 |
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat May 26 11:03:49 2018 +0000 |
4 |
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat May 26 11:07:27 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f7c9ba5d |
7 |
|
8 |
sys-cluster/glusterfs: Version bump to 4.0.2 |
9 |
|
10 |
Package-Manager: Portage-2.3.40, Repoman-2.3.9 |
11 |
|
12 |
sys-cluster/glusterfs/Manifest | 1 + |
13 |
sys-cluster/glusterfs/glusterfs-4.0.2.ebuild | 230 +++++++++++++++++++++++++++ |
14 |
2 files changed, 231 insertions(+) |
15 |
|
16 |
diff --git a/sys-cluster/glusterfs/Manifest b/sys-cluster/glusterfs/Manifest |
17 |
index 09fbcad9339..0f908a04fce 100644 |
18 |
--- a/sys-cluster/glusterfs/Manifest |
19 |
+++ b/sys-cluster/glusterfs/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST glusterfs-3.12.3.tar.gz 7187644 BLAKE2B 736c6bb408b0bd289ce5ce0abcc7e8bf4b7f96e4e92a1e669f016b59fb16993b17f7cf50fed09a6eeb851b57054c7bf9e595b642c506b0aca567d7ae80de0e84 SHA512 f648b8324a69360b510c947e49918467c969dcc21b6a408b6916b780aa78c44abe027b6c84d696eed7d5f381b055edd3be1dfe4f3ea8f76d15d9319cd08cfa3d |
22 |
DIST glusterfs-4.0.0.tar.gz 7632629 BLAKE2B 9367d2c99452d261d889cf564f3a055e1459ee54377cbf8cf6cc46c8d7f153bb258892fb73fc492d1dc6c5bea156d204971256fefc96f9f4825583d9c1086563 SHA512 acd3c462a8e15fb31f4b30d2e217928488e32d66ae7d1061df3e166354a4ddcdeb0ba0bcc994b7563f83376c882800fad07e190e0086fda987915c195266421f |
23 |
+DIST glusterfs-4.0.2.tar.gz 7643713 BLAKE2B 6314f81fe1474bcf8c577aa68a32c46a6d1e586b32c698a9e30850080408958c0541c1afe72520574fcabebb0884cf3bf315b22582d932876bbb5a4393e167f0 SHA512 33afed4fb4f6d63f1d2b7caedae1ce41e7f6aa4299fb4a7ee2f5e4bc14c97d66f68097171fded6d1f2141dd7127eb408596cce4f5f7287038a14e387ad5ec5e6 |
24 |
|
25 |
diff --git a/sys-cluster/glusterfs/glusterfs-4.0.2.ebuild b/sys-cluster/glusterfs/glusterfs-4.0.2.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..0ee1825274a |
28 |
--- /dev/null |
29 |
+++ b/sys-cluster/glusterfs/glusterfs-4.0.2.ebuild |
30 |
@@ -0,0 +1,230 @@ |
31 |
+# Copyright 1999-2018 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=6 |
35 |
+ |
36 |
+PYTHON_COMPAT=( python2_7 ) |
37 |
+ |
38 |
+inherit autotools elisp-common python-single-r1 systemd user versionator |
39 |
+ |
40 |
+if [[ ${PV#9999} != ${PV} ]]; then |
41 |
+ inherit git-r3 |
42 |
+ EGIT_REPO_URI="https://github.com/gluster/glusterfs.git" |
43 |
+else |
44 |
+ SRC_URI="https://download.gluster.org/pub/gluster/${PN}/$(get_version_component_range '1-2')/${PV}/${P}.tar.gz" |
45 |
+ KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" |
46 |
+fi |
47 |
+ |
48 |
+DESCRIPTION="GlusterFS is a powerful network/cluster filesystem" |
49 |
+HOMEPAGE="https://www.gluster.org/" |
50 |
+ |
51 |
+LICENSE="|| ( GPL-2 LGPL-3+ )" |
52 |
+SLOT="0" |
53 |
+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" |
54 |
+ |
55 |
+REQUIRED_USE="georeplication? ( ${PYTHON_REQUIRED_USE} ) |
56 |
+ glupy? ( ${PYTHON_REQUIRED_USE} ) |
57 |
+ ipv6? ( libtirpc )" |
58 |
+ |
59 |
+# the tests must be run as root |
60 |
+RESTRICT="test" |
61 |
+ |
62 |
+# sys-apps/util-linux is required for libuuid |
63 |
+RDEPEND="bd-xlator? ( sys-fs/lvm2 ) |
64 |
+ !elibc_glibc? ( sys-libs/argp-standalone ) |
65 |
+ emacs? ( virtual/emacs ) |
66 |
+ fuse? ( >=sys-fs/fuse-2.7.0:0 ) |
67 |
+ georeplication? ( ${PYTHON_DEPS} ) |
68 |
+ infiniband? ( sys-fabric/libibverbs:* sys-fabric/librdmacm:* ) |
69 |
+ libtirpc? ( net-libs/libtirpc:= ) |
70 |
+ !libtirpc? ( elibc_glibc? ( sys-libs/glibc[rpc(-)] ) ) |
71 |
+ qemu-block? ( dev-libs/glib:2 ) |
72 |
+ systemtap? ( dev-util/systemtap ) |
73 |
+ tiering? ( dev-db/sqlite:3 ) |
74 |
+ xml? ( dev-libs/libxml2 ) |
75 |
+ sys-libs/readline:= |
76 |
+ dev-libs/libaio |
77 |
+ dev-libs/openssl:=[-bindist] |
78 |
+ dev-libs/userspace-rcu:= |
79 |
+ net-libs/rpcsvc-proto |
80 |
+ sys-apps/util-linux" |
81 |
+DEPEND="${RDEPEND} |
82 |
+ virtual/acl |
83 |
+ virtual/pkgconfig |
84 |
+ sys-devel/bison |
85 |
+ sys-devel/flex |
86 |
+ test? ( >=dev-util/cmocka-1.0.1 |
87 |
+ app-benchmarks/dbench |
88 |
+ dev-vcs/git |
89 |
+ net-fs/nfs-utils |
90 |
+ virtual/perl-Test-Harness |
91 |
+ dev-libs/yajl |
92 |
+ sys-fs/xfsprogs |
93 |
+ sys-apps/attr )" |
94 |
+ |
95 |
+SITEFILE="50${PN}-mode-gentoo.el" |
96 |
+ |
97 |
+PATCHES=( |
98 |
+ "${FILESDIR}/${PN}-3.12.2-poisoned-sysmacros.patch" |
99 |
+ "${FILESDIR}/${PN}-3.12.2-silent_rules.patch" |
100 |
+ "${FILESDIR}/${PN}-TIRPC-config-summary.patch" |
101 |
+) |
102 |
+ |
103 |
+DOCS=( AUTHORS ChangeLog NEWS README.md THANKS ) |
104 |
+ |
105 |
+# Maintainer notes: |
106 |
+# * The build system will always configure & build argp-standalone but it'll never use it |
107 |
+# if the argp.h header is found in the system. Which should be the case with |
108 |
+# glibc or if argp-standalone is installed. |
109 |
+ |
110 |
+pkg_setup() { |
111 |
+ python_setup "python2*" |
112 |
+ python-single-r1_pkg_setup |
113 |
+ |
114 |
+ # Needed for statedumps |
115 |
+ # https://github.com/gluster/glusterfs/commit/0e50c4b3ea734456c14e2d7a578463999bd332c3 |
116 |
+ enewgroup gluster |
117 |
+ enewuser gluster -1 -1 "${EPREFIX}"/var/run/gluster gluster |
118 |
+} |
119 |
+ |
120 |
+src_prepare() { |
121 |
+ default |
122 |
+ |
123 |
+ # build rpc-transport and xlators only once as shared libs |
124 |
+ find rpc/rpc-transport xlators -name Makefile.am | |
125 |
+ xargs sed -i 's|.*$(top_srcdir).*\.sym|\0 -shared|' || die |
126 |
+ |
127 |
+ # fix execution permissions |
128 |
+ chmod +x libglusterfs/src/gen-defaults.py || die |
129 |
+ |
130 |
+ eautoreconf |
131 |
+} |
132 |
+ |
133 |
+src_configure() { |
134 |
+ # --without-ipv6-default doesn't do what you think it does. Chewi |
135 |
+ # has given up fighting with upstream about this. |
136 |
+ # https://bugzilla.redhat.com/show_bug.cgi?id=1553926 |
137 |
+ |
138 |
+ econf \ |
139 |
+ --disable-dependency-tracking \ |
140 |
+ --disable-silent-rules \ |
141 |
+ --disable-fusermount \ |
142 |
+ $(use_enable debug) \ |
143 |
+ $(use_enable bd-xlator) \ |
144 |
+ $(use_enable crypt-xlator) \ |
145 |
+ $(use_enable fuse fuse-client) \ |
146 |
+ $(use_enable georeplication) \ |
147 |
+ $(use_enable glupy) \ |
148 |
+ $(use_enable infiniband ibverbs) \ |
149 |
+ $(use_enable qemu-block) \ |
150 |
+ $(use_enable static-libs static) \ |
151 |
+ $(use_enable syslog) \ |
152 |
+ $(use_enable systemtap) \ |
153 |
+ $(use_enable test cmocka) \ |
154 |
+ $(use_enable tiering) \ |
155 |
+ $(use_enable xml xml-output) \ |
156 |
+ $(use_with libtirpc) \ |
157 |
+ $(use ipv6 && echo --with-ipv6-default) \ |
158 |
+ --with-tmpfilesdir="${EPREFIX}"/etc/tmpfiles.d \ |
159 |
+ --docdir="${EPREFIX}"/usr/share/doc/${PF} \ |
160 |
+ --localstatedir="${EPREFIX}"/var |
161 |
+} |
162 |
+ |
163 |
+src_compile() { |
164 |
+ default |
165 |
+ use emacs && elisp-compile extras/glusterfs-mode.el |
166 |
+} |
167 |
+ |
168 |
+src_install() { |
169 |
+ default |
170 |
+ |
171 |
+ rm \ |
172 |
+ "${ED}"/etc/glusterfs/glusterfs-{georep-,}logrotate \ |
173 |
+ "${ED}"/etc/glusterfs/gluster-rsyslog-*.conf \ |
174 |
+ "${ED}"/usr/share/doc/${PF}/glusterfs{-mode.el,.vim} || die "removing false files failed" |
175 |
+ |
176 |
+ insinto /etc/logrotate.d |
177 |
+ newins "${FILESDIR}"/glusterfs.logrotate glusterfs |
178 |
+ |
179 |
+ if use rsyslog ; then |
180 |
+ insinto /etc/rsyslog.d |
181 |
+ newins extras/gluster-rsyslog-7.2.conf 60-gluster.conf |
182 |
+ fi |
183 |
+ |
184 |
+ if use emacs ; then |
185 |
+ elisp-install ${PN} extras/glusterfs-mode.el* |
186 |
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}" |
187 |
+ fi |
188 |
+ |
189 |
+ if use vim-syntax ; then |
190 |
+ insinto /usr/share/vim/vimfiles/ftdetect; doins "${FILESDIR}"/${PN}.vim |
191 |
+ insinto /usr/share/vim/vimfiles/syntax; doins extras/${PN}.vim |
192 |
+ fi |
193 |
+ |
194 |
+ # insert some other tools which might be useful |
195 |
+ insinto /usr/share/glusterfs/scripts |
196 |
+ doins \ |
197 |
+ extras/backend-{cleanup,xattr-sanitize}.sh \ |
198 |
+ extras/clear_xattrs.sh \ |
199 |
+ extras/migrate-unify-to-distribute.sh |
200 |
+ |
201 |
+ # correct permissions on installed scripts |
202 |
+ # fperms 0755 /usr/share/glusterfs/scripts/*.sh |
203 |
+ chmod 0755 "${ED}"/usr/share/glusterfs/scripts/*.sh || die |
204 |
+ |
205 |
+ if use georeplication ; then |
206 |
+ # move the gsync-sync-gfid tool to a binary path |
207 |
+ # and set a symlink to be compliant with all other distros |
208 |
+ mv "${ED}"/usr/{share/glusterfs/scripts/gsync-sync-gfid,libexec/glusterfs/} || die |
209 |
+ dosym ../../../libexec/glusterfs/gsync-sync-gfid /usr/share/glusterfs/scripts/gsync-sync-gfid |
210 |
+ fi |
211 |
+ |
212 |
+ newinitd "${FILESDIR}/${PN}-r1.initd" glusterfsd |
213 |
+ newinitd "${FILESDIR}/glusterd-r3.initd" glusterd |
214 |
+ newconfd "${FILESDIR}/${PN}.confd" glusterfsd |
215 |
+ |
216 |
+ keepdir /var/log/${PN} |
217 |
+ keepdir /var/lib/glusterd/{events,glusterfind/.keys} |
218 |
+ |
219 |
+ # QA |
220 |
+ rm -r "${ED}/var/run/" || die |
221 |
+ if ! use static-libs; then |
222 |
+ find "${D}" -type f -name '*.la' -delete || die |
223 |
+ fi |
224 |
+ |
225 |
+ # fix all shebang for python2 #560750 |
226 |
+ python_fix_shebang "${ED}" |
227 |
+} |
228 |
+ |
229 |
+src_test() { |
230 |
+ ./run-tests.sh || die |
231 |
+} |
232 |
+ |
233 |
+pkg_postinst() { |
234 |
+ elog "Starting with ${PN}-3.1.0, you can use the glusterd daemon to configure your" |
235 |
+ elog "volumes dynamically. To do so, simply use the gluster CLI after running:" |
236 |
+ elog " /etc/init.d/glusterd start" |
237 |
+ echo |
238 |
+ elog "For static configurations, the glusterfsd startup script can be multiplexed." |
239 |
+ elog "The default startup script uses /etc/conf.d/glusterfsd to configure the" |
240 |
+ elog "separate service. To create additional instances of the glusterfsd service" |
241 |
+ elog "simply create a symlink to the glusterfsd startup script." |
242 |
+ echo |
243 |
+ elog "Example:" |
244 |
+ elog " # ln -s glusterfsd /etc/init.d/glusterfsd2" |
245 |
+ elog " # ${EDITOR} /etc/glusterfs/glusterfsd2.vol" |
246 |
+ elog "You can now treat glusterfsd2 like any other service" |
247 |
+ echo |
248 |
+ ewarn "You need to use a ntp client to keep the clocks synchronized across all" |
249 |
+ ewarn "of your servers. Setup a NTP synchronizing service before attempting to" |
250 |
+ ewarn "run GlusterFS." |
251 |
+ echo |
252 |
+ elog "If you are upgrading from a previous version of ${PN}, please read:" |
253 |
+ elog " http://docs.gluster.org/en/latest/Upgrade-Guide/upgrade_to_$(get_version_component_range '1-2')/" |
254 |
+ |
255 |
+ use emacs && elisp-site-regen |
256 |
+} |
257 |
+ |
258 |
+pkg_postrm() { |
259 |
+ use emacs && elisp-site-regen |
260 |
+} |