1 |
commit: a6248659819f965b7645f7b30f54b7453ca0ad74 |
2 |
Author: Jaco Kroon <jaco <AT> uls <DOT> co <DOT> za> |
3 |
AuthorDate: Sun Nov 14 21:08:21 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 22 10:05:42 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a6248659 |
7 |
|
8 |
sys-cluster/glusterfs: v10.0. |
9 |
|
10 |
This is NOT a stable candidate, but if someone wants to start seeing if |
11 |
the 20% performance improvements using tcmalloc are in fact true ... |
12 |
|
13 |
Main change from 9.X to 10.X is tcmalloc usage for memory pools, and a |
14 |
few other related changes. From the changelog this should be the only |
15 |
new change required from an ebuild perspective. |
16 |
|
17 |
Package-Manager: Portage-3.0.28, Repoman-3.0.3 |
18 |
Signed-off-by: Jaco Kroon <jaco <AT> uls.co.za> |
19 |
Closes: https://github.com/gentoo/gentoo/pull/22911 |
20 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
21 |
|
22 |
sys-cluster/glusterfs/Manifest | 1 + |
23 |
sys-cluster/glusterfs/glusterfs-10.0.ebuild | 197 ++++++++++++++++++++++++++++ |
24 |
2 files changed, 198 insertions(+) |
25 |
|
26 |
diff --git a/sys-cluster/glusterfs/Manifest b/sys-cluster/glusterfs/Manifest |
27 |
index 28d35cc90275..d267ef270ec1 100644 |
28 |
--- a/sys-cluster/glusterfs/Manifest |
29 |
+++ b/sys-cluster/glusterfs/Manifest |
30 |
@@ -1,3 +1,4 @@ |
31 |
+DIST glusterfs-10.0.tar.gz 8277236 BLAKE2B f7f50311c6754a74a60b36f163d06a9888b92debfdb3a971f092fc18ca9f8c8fe44026101eb446d551a3b452070ef31d37a4f958691416cdd51884fbcf312a47 SHA512 5a9d292461fc8a0c61767b80d1013cdb104706fd564033aac23e87d68d56686df2e9c38a8890a6a50db0afe6a54cf57e05fe8e5a8883bc3157aa6c93e5aaa343 |
32 |
DIST glusterfs-8.5.tar.gz 7873397 BLAKE2B 6ababf15fda216c9a47c05859f7123847d711dd5a12e3ec2c5dcf8475f35830c9a32f7b21ad763ab1be59b06f1d93f83acc0cbb8f7635456a3638be73b162aa4 SHA512 e256141a76deb9a255be31422d76b0c81aad4a7e5b166d2be90a79d340ceb811cbff11f469166ef7582f40f58f47fb056aa05aafd4b35f094bf9c21a5c08f3bb |
33 |
DIST glusterfs-8.6.tar.gz 7826147 BLAKE2B 3a8a488c9a8e4b1daf3ed01fa5e52a62cf791349c1169aaf8609252bfb8bc0a0534f9fc23fac27cfab11ac6fb5e3e1d9588b4ec8080b02cf97e679bf2c8fb5c2 SHA512 bb1125e5d6b4d424234bc40786847f217e7a05cecad1462dd91248cf9559569914f04e1f909e829051cb1db4079ecf906440a38af9de2bbf3bcf53ca8fa1f349 |
34 |
DIST glusterfs-9.4.tar.gz 8173625 BLAKE2B c35c63696717bf09f8fbf77dca16a6f45de278253e768c6ffc40c0c097da9ea1b32888233da412a5333281995e89e08d9ed23fd47aba7c506de84b08f9f80cea SHA512 2a17197bd2b425117e34af004a6177b7c5012807cd99b9c6d37a1081e0ab9def6b013bedd0ba4122d149969755e0e2985bef8aed9cf612a27a6452b8719a33bf |
35 |
|
36 |
diff --git a/sys-cluster/glusterfs/glusterfs-10.0.ebuild b/sys-cluster/glusterfs/glusterfs-10.0.ebuild |
37 |
new file mode 100644 |
38 |
index 000000000000..8260c51990e3 |
39 |
--- /dev/null |
40 |
+++ b/sys-cluster/glusterfs/glusterfs-10.0.ebuild |
41 |
@@ -0,0 +1,197 @@ |
42 |
+# Copyright 1999-2021 Gentoo Authors |
43 |
+# Distributed under the terms of the GNU General Public License v2 |
44 |
+ |
45 |
+EAPI=7 |
46 |
+ |
47 |
+PYTHON_COMPAT=( python3_{7..10} ) |
48 |
+ |
49 |
+inherit autotools elisp-common python-single-r1 tmpfiles |
50 |
+ |
51 |
+DESCRIPTION="GlusterFS is a powerful network/cluster filesystem" |
52 |
+HOMEPAGE="https://www.gluster.org/ https://github.com/gluster/glusterfs/" |
53 |
+SRC_URI="https://download.gluster.org/pub/gluster/${PN}/$(ver_cut 1)/${PV}/${P}.tar.gz" |
54 |
+ |
55 |
+LICENSE="|| ( GPL-2 LGPL-3+ )" |
56 |
+SLOT="0/${PV%%.*}" |
57 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" |
58 |
+ |
59 |
+IUSE="debug emacs +fuse +georeplication ipv6 +libtirpc rsyslog static-libs +syslog tcmalloc test +xml" |
60 |
+ |
61 |
+REQUIRED_USE="georeplication? ( ${PYTHON_REQUIRED_USE} xml ) |
62 |
+ ipv6? ( libtirpc )" |
63 |
+ |
64 |
+# the tests must be run as root |
65 |
+RESTRICT="test" |
66 |
+ |
67 |
+# sys-apps/util-linux is required for libuuid |
68 |
+RDEPEND=" |
69 |
+ acct-group/gluster |
70 |
+ acct-user/gluster |
71 |
+ dev-libs/libaio |
72 |
+ dev-libs/openssl:=[-bindist(-)] |
73 |
+ net-libs/rpcsvc-proto |
74 |
+ dev-libs/userspace-rcu:= |
75 |
+ sys-apps/util-linux |
76 |
+ sys-libs/liburing:= |
77 |
+ sys-libs/readline:= |
78 |
+ !elibc_glibc? ( sys-libs/argp-standalone ) |
79 |
+ emacs? ( >=app-editors/emacs-23.1:* ) |
80 |
+ fuse? ( >=sys-fs/fuse-2.7.0:0 ) |
81 |
+ georeplication? ( ${PYTHON_DEPS} ) |
82 |
+ libtirpc? ( net-libs/libtirpc:= ) |
83 |
+ !libtirpc? ( elibc_glibc? ( sys-libs/glibc[rpc(-)] ) ) |
84 |
+ tcmalloc? ( dev-util/google-perftools ) |
85 |
+ xml? ( dev-libs/libxml2 ) |
86 |
+" |
87 |
+DEPEND=" |
88 |
+ ${RDEPEND} |
89 |
+ sys-devel/bison |
90 |
+ sys-devel/flex |
91 |
+ virtual/acl |
92 |
+ test? ( >=dev-util/cmocka-1.0.1 |
93 |
+ app-benchmarks/dbench |
94 |
+ dev-vcs/git |
95 |
+ net-fs/nfs-utils |
96 |
+ virtual/perl-Test-Harness |
97 |
+ dev-libs/yajl |
98 |
+ sys-fs/xfsprogs |
99 |
+ sys-apps/attr ) |
100 |
+" |
101 |
+BDEPEND=" |
102 |
+ virtual/pkgconfig |
103 |
+" |
104 |
+ |
105 |
+SITEFILE="50${PN}-mode-gentoo.el" |
106 |
+ |
107 |
+DOCS=( AUTHORS ChangeLog NEWS README.md THANKS ) |
108 |
+ |
109 |
+# Maintainer notes: |
110 |
+# * The build system will always configure & build argp-standalone but it'll never use it |
111 |
+# if the argp.h header is found in the system. Which should be the case with |
112 |
+# glibc or if argp-standalone is installed. |
113 |
+ |
114 |
+pkg_setup() { |
115 |
+ python_setup "python3*" |
116 |
+ python-single-r1_pkg_setup |
117 |
+} |
118 |
+ |
119 |
+src_prepare() { |
120 |
+ default |
121 |
+ |
122 |
+ # build rpc-transport and xlators only once as shared libs |
123 |
+ find rpc/rpc-transport xlators -name Makefile.am -exec \ |
124 |
+ sed -i 's|.*$(top_srcdir).*\.sym|\0 -shared|' {} + || die |
125 |
+ |
126 |
+ # fix execution permissions |
127 |
+ chmod +x libglusterfs/src/gen-defaults.py || die |
128 |
+ |
129 |
+ eautoreconf |
130 |
+} |
131 |
+ |
132 |
+src_configure() { |
133 |
+ econf \ |
134 |
+ --disable-fusermount \ |
135 |
+ $(use_enable debug) \ |
136 |
+ $(use_enable fuse fuse-client) \ |
137 |
+ $(use_enable georeplication) \ |
138 |
+ $(use_enable static-libs static) \ |
139 |
+ $(use_enable syslog) \ |
140 |
+ $(use_enable test cmocka) \ |
141 |
+ $(use_enable xml xml-output) \ |
142 |
+ $(usex ipv6 --with-ipv6-default "") \ |
143 |
+ $(usex libtirpc "" --without-libtirpc) \ |
144 |
+ $(usex tcmalloc "" --without-tcmalloc) \ |
145 |
+ --with-tmpfilesdir="${EPREFIX}"/usr/lib/tmpfiles.d \ |
146 |
+ --localstatedir="${EPREFIX}"/var |
147 |
+} |
148 |
+ |
149 |
+src_compile() { |
150 |
+ default |
151 |
+ use emacs && elisp-compile extras/glusterfs-mode.el |
152 |
+} |
153 |
+ |
154 |
+src_test() { |
155 |
+ ./run-tests.sh || die |
156 |
+} |
157 |
+ |
158 |
+src_install() { |
159 |
+ default |
160 |
+ |
161 |
+ rm \ |
162 |
+ "${ED}"/etc/glusterfs/glusterfs-{georep-,}logrotate \ |
163 |
+ "${ED}"/etc/glusterfs/gluster-rsyslog-*.conf \ |
164 |
+ "${ED}"/usr/share/doc/${PF}/glusterfs{-mode.el,.vim} || die "removing false files failed" |
165 |
+ |
166 |
+ insinto /etc/logrotate.d |
167 |
+ newins "${FILESDIR}"/glusterfs.logrotate glusterfs |
168 |
+ |
169 |
+ if use rsyslog ; then |
170 |
+ insinto /etc/rsyslog.d |
171 |
+ newins extras/gluster-rsyslog-7.2.conf 60-gluster.conf |
172 |
+ fi |
173 |
+ |
174 |
+ if use emacs ; then |
175 |
+ elisp-install ${PN} extras/glusterfs-mode.el* |
176 |
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}" |
177 |
+ fi |
178 |
+ |
179 |
+ insinto /usr/share/vim/vimfiles/ftdetect; doins "${FILESDIR}"/${PN}.vim |
180 |
+ insinto /usr/share/vim/vimfiles/syntax; doins extras/${PN}.vim |
181 |
+ |
182 |
+ # insert some other tools which might be useful |
183 |
+ insinto /usr/share/glusterfs/scripts |
184 |
+ doins \ |
185 |
+ extras/backend-{cleanup,xattr-sanitize}.sh \ |
186 |
+ extras/clear_xattrs.sh \ |
187 |
+ extras/migrate-unify-to-distribute.sh |
188 |
+ |
189 |
+ # correct permissions on installed scripts |
190 |
+ # fperms 0755 /usr/share/glusterfs/scripts/*.sh |
191 |
+ chmod 0755 "${ED}"/usr/share/glusterfs/scripts/*.sh || die |
192 |
+ |
193 |
+ newinitd "${FILESDIR}/${PN}-r1.initd" glusterfsd |
194 |
+ newinitd "${FILESDIR}/glusterd-r4.initd" glusterd |
195 |
+ newconfd "${FILESDIR}/${PN}.confd" glusterfsd |
196 |
+ |
197 |
+ keepdir /var/log/${PN} |
198 |
+ keepdir /var/lib/glusterd/{events,glusterfind/.keys} |
199 |
+ |
200 |
+ # QA |
201 |
+ rm -r "${ED}/var/run/" || die |
202 |
+ if ! use static-libs; then |
203 |
+ find "${D}" -type f -name '*.la' -delete || die |
204 |
+ fi |
205 |
+ |
206 |
+ python_optimize "${ED}" |
207 |
+} |
208 |
+ |
209 |
+pkg_postinst() { |
210 |
+ tmpfiles_process gluster.conf |
211 |
+ |
212 |
+ elog "Starting with ${PN}-3.1.0, you can use the glusterd daemon to configure your" |
213 |
+ elog "volumes dynamically. To do so, simply use the gluster CLI after running:" |
214 |
+ elog " /etc/init.d/glusterd start" |
215 |
+ echo |
216 |
+ elog "For static configurations, the glusterfsd startup script can be multiplexed." |
217 |
+ elog "The default startup script uses /etc/conf.d/glusterfsd to configure the" |
218 |
+ elog "separate service. To create additional instances of the glusterfsd service" |
219 |
+ elog "simply create a symlink to the glusterfsd startup script." |
220 |
+ echo |
221 |
+ elog "Example:" |
222 |
+ elog " # ln -s glusterfsd /etc/init.d/glusterfsd2" |
223 |
+ elog " # ${EDITOR} /etc/glusterfs/glusterfsd2.vol" |
224 |
+ elog "You can now treat glusterfsd2 like any other service" |
225 |
+ echo |
226 |
+ ewarn "You need to use a ntp client to keep the clocks synchronized across all" |
227 |
+ ewarn "of your servers. Setup a NTP synchronizing service before attempting to" |
228 |
+ ewarn "run GlusterFS." |
229 |
+ echo |
230 |
+ elog "If you are upgrading from a previous version of ${PN}, please read:" |
231 |
+ elog " http://docs.gluster.org/en/latest/Upgrade-Guide/upgrade_to_$(ver_cut '1-2')/" |
232 |
+ |
233 |
+ use emacs && elisp-site-regen |
234 |
+} |
235 |
+ |
236 |
+pkg_postrm() { |
237 |
+ use emacs && elisp-site-regen |
238 |
+} |