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