1 |
commit: 3c963ed4135d84b6894ef4897010442adbe7b469 |
2 |
Author: Tomas Mozes <hydrapolic <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri Mar 29 12:32:49 2019 +0000 |
4 |
Commit: Alexys Jacob <ultrabug <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Apr 14 10:40:11 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3c963ed4 |
7 |
|
8 |
sys-cluster/glusterfs: bump to 6.0 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/681236 |
11 |
Package-Manager: Portage-2.3.62, Repoman-2.3.12 |
12 |
Signed-off-by: Tomáš Mózes <hydrapolic <AT> gmail.com> |
13 |
Signed-off-by: Alexys Jacob <ultrabug <AT> gentoo.org> |
14 |
Closes: https://github.com/gentoo/gentoo/pull/11532 |
15 |
Signed-off-by: Alexys Jacob <ultrabug <AT> gentoo.org> |
16 |
|
17 |
sys-cluster/glusterfs/Manifest | 1 + |
18 |
sys-cluster/glusterfs/glusterfs-6.0.ebuild | 207 +++++++++++++++++++++++++++++ |
19 |
2 files changed, 208 insertions(+) |
20 |
|
21 |
diff --git a/sys-cluster/glusterfs/Manifest b/sys-cluster/glusterfs/Manifest |
22 |
index 032b3034627..2dc7e70ded3 100644 |
23 |
--- a/sys-cluster/glusterfs/Manifest |
24 |
+++ b/sys-cluster/glusterfs/Manifest |
25 |
@@ -2,3 +2,4 @@ DIST glusterfs-4.0.0.tar.gz 7632629 BLAKE2B 9367d2c99452d261d889cf564f3a055e1459 |
26 |
DIST glusterfs-4.0.2.tar.gz 7643713 BLAKE2B 6314f81fe1474bcf8c577aa68a32c46a6d1e586b32c698a9e30850080408958c0541c1afe72520574fcabebb0884cf3bf315b22582d932876bbb5a4393e167f0 SHA512 33afed4fb4f6d63f1d2b7caedae1ce41e7f6aa4299fb4a7ee2f5e4bc14c97d66f68097171fded6d1f2141dd7127eb408596cce4f5f7287038a14e387ad5ec5e6 |
27 |
DIST glusterfs-4.1.5.tar.gz 7783999 BLAKE2B ac1e7732430fe25eec34a8b85b9cd5ce4f43076befec2d91c0156959887d8a0589adb8afb1ee9290e436ce40ab7e5567c3c4ec90017b4398919637e2047f18b9 SHA512 ae557472b6a263e815b8c4d630b606f8e1334b6604799e499e6f53ea6ff60c2a696160fa427943cc3d01ffee91a57787c91f93a1b914179679038e63d291401f |
28 |
DIST glusterfs-4.1.8.tar.gz 7835272 BLAKE2B 2546b9c0fe38989df71b8f72b193ce42c499621dcaaa4c5e3deeacfba68179f2280fc699cebeb87486171442152fa8b56b42a0d17465b739769eb227c82307d7 SHA512 950cd2fd774e3eb00f1ec06d54566736b6fbe8d1aed54477a19d9b2727eff8a70ef7ac32815cc7e01d45b5d357fc01af786e16c451f6ad314d472e61ba04ce85 |
29 |
+DIST glusterfs-6.0.tar.gz 7495110 BLAKE2B 89fde01732dbbcecdf514d196e3bac683caaaaefb3658b4e92f1bbf73ca09defa4de9366066a00528564acfbe93c3f65cfabbeb0d830c00f29ee9c99ed7bf08a SHA512 fc4f4ee75b3936469b7c4be146545eb88d2cf3583d5f101bcacb2805c842aa95f69d1c023dee4dac32ebe01cdc9ede4814f9364482e8815e451e43660e6c74b9 |
30 |
|
31 |
diff --git a/sys-cluster/glusterfs/glusterfs-6.0.ebuild b/sys-cluster/glusterfs/glusterfs-6.0.ebuild |
32 |
new file mode 100644 |
33 |
index 00000000000..e9acb97223c |
34 |
--- /dev/null |
35 |
+++ b/sys-cluster/glusterfs/glusterfs-6.0.ebuild |
36 |
@@ -0,0 +1,207 @@ |
37 |
+# Copyright 1999-2019 Gentoo Authors |
38 |
+# Distributed under the terms of the GNU General Public License v2 |
39 |
+ |
40 |
+EAPI=7 |
41 |
+ |
42 |
+PYTHON_COMPAT=( python3_{5,6,7} ) |
43 |
+ |
44 |
+inherit autotools elisp-common python-single-r1 systemd user |
45 |
+ |
46 |
+if [[ ${PV#9999} != ${PV} ]]; then |
47 |
+ inherit git-r3 |
48 |
+ EGIT_REPO_URI="https://github.com/gluster/glusterfs.git" |
49 |
+else |
50 |
+ SRC_URI="https://download.gluster.org/pub/gluster/${PN}/$(ver_cut 1)/${PV}/${P}.tar.gz" |
51 |
+ KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" |
52 |
+fi |
53 |
+ |
54 |
+DESCRIPTION="GlusterFS is a powerful network/cluster filesystem" |
55 |
+HOMEPAGE="https://www.gluster.org/" |
56 |
+ |
57 |
+LICENSE="|| ( GPL-2 LGPL-3+ )" |
58 |
+SLOT="0" |
59 |
+IUSE="debug emacs +fuse +georeplication infiniband ipv6 libressl +libtirpc rsyslog static-libs +syslog test vim-syntax +xml" |
60 |
+ |
61 |
+REQUIRED_USE="georeplication? ( ${PYTHON_REQUIRED_USE} ) |
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="!elibc_glibc? ( sys-libs/argp-standalone ) |
69 |
+ emacs? ( virtual/emacs ) |
70 |
+ fuse? ( >=sys-fs/fuse-2.7.0:0 ) |
71 |
+ georeplication? ( ${PYTHON_DEPS} ) |
72 |
+ infiniband? ( sys-fabric/libibverbs:* sys-fabric/librdmacm:* ) |
73 |
+ libtirpc? ( net-libs/libtirpc:= ) |
74 |
+ !libtirpc? ( elibc_glibc? ( sys-libs/glibc[rpc(-)] ) ) |
75 |
+ xml? ( dev-libs/libxml2 ) |
76 |
+ sys-libs/readline:= |
77 |
+ dev-libs/libaio |
78 |
+ !libressl? ( dev-libs/openssl:=[-bindist] ) |
79 |
+ libressl? ( dev-libs/libressl:= ) |
80 |
+ dev-libs/userspace-rcu:= |
81 |
+ net-libs/rpcsvc-proto |
82 |
+ sys-apps/util-linux" |
83 |
+DEPEND="${RDEPEND} |
84 |
+ virtual/acl |
85 |
+ virtual/pkgconfig |
86 |
+ sys-devel/bison |
87 |
+ sys-devel/flex |
88 |
+ test? ( >=dev-util/cmocka-1.0.1 |
89 |
+ app-benchmarks/dbench |
90 |
+ dev-vcs/git |
91 |
+ net-fs/nfs-utils |
92 |
+ virtual/perl-Test-Harness |
93 |
+ dev-libs/yajl |
94 |
+ sys-fs/xfsprogs |
95 |
+ sys-apps/attr )" |
96 |
+ |
97 |
+SITEFILE="50${PN}-mode-gentoo.el" |
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 "python3*" |
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 fuse fuse-client) \ |
136 |
+ $(use_enable georeplication) \ |
137 |
+ $(use_enable infiniband ibverbs) \ |
138 |
+ $(use_enable static-libs static) \ |
139 |
+ $(use_enable syslog) \ |
140 |
+ $(use_enable test cmocka) \ |
141 |
+ $(use_enable xml xml-output) \ |
142 |
+ $(use libtirpc || echo --without-libtirpc) \ |
143 |
+ $(use ipv6 && echo --with-ipv6-default) \ |
144 |
+ --with-tmpfilesdir="${EPREFIX}"/etc/tmpfiles.d \ |
145 |
+ --docdir="${EPREFIX}"/usr/share/doc/${PF} \ |
146 |
+ --localstatedir="${EPREFIX}"/var |
147 |
+} |
148 |
+ |
149 |
+src_compile() { |
150 |
+ default |
151 |
+ use emacs && elisp-compile extras/glusterfs-mode.el |
152 |
+} |
153 |
+ |
154 |
+src_install() { |
155 |
+ default |
156 |
+ |
157 |
+ rm \ |
158 |
+ "${ED}"/etc/glusterfs/glusterfs-{georep-,}logrotate \ |
159 |
+ "${ED}"/etc/glusterfs/gluster-rsyslog-*.conf \ |
160 |
+ "${ED}"/usr/share/doc/${PF}/glusterfs{-mode.el,.vim} || die "removing false files failed" |
161 |
+ |
162 |
+ insinto /etc/logrotate.d |
163 |
+ newins "${FILESDIR}"/glusterfs.logrotate glusterfs |
164 |
+ |
165 |
+ if use rsyslog ; then |
166 |
+ insinto /etc/rsyslog.d |
167 |
+ newins extras/gluster-rsyslog-7.2.conf 60-gluster.conf |
168 |
+ fi |
169 |
+ |
170 |
+ if use emacs ; then |
171 |
+ elisp-install ${PN} extras/glusterfs-mode.el* |
172 |
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}" |
173 |
+ fi |
174 |
+ |
175 |
+ if use vim-syntax ; then |
176 |
+ insinto /usr/share/vim/vimfiles/ftdetect; doins "${FILESDIR}"/${PN}.vim |
177 |
+ insinto /usr/share/vim/vimfiles/syntax; doins extras/${PN}.vim |
178 |
+ fi |
179 |
+ |
180 |
+ # insert some other tools which might be useful |
181 |
+ insinto /usr/share/glusterfs/scripts |
182 |
+ doins \ |
183 |
+ extras/backend-{cleanup,xattr-sanitize}.sh \ |
184 |
+ extras/clear_xattrs.sh \ |
185 |
+ extras/migrate-unify-to-distribute.sh |
186 |
+ |
187 |
+ # correct permissions on installed scripts |
188 |
+ # fperms 0755 /usr/share/glusterfs/scripts/*.sh |
189 |
+ chmod 0755 "${ED}"/usr/share/glusterfs/scripts/*.sh || die |
190 |
+ |
191 |
+ if use georeplication ; then |
192 |
+ # move the gsync-sync-gfid tool to a binary path |
193 |
+ # and set a symlink to be compliant with all other distros |
194 |
+ mv "${ED}"/usr/{share/glusterfs/scripts/gsync-sync-gfid,libexec/glusterfs/} || die |
195 |
+ dosym ../../../libexec/glusterfs/gsync-sync-gfid /usr/share/glusterfs/scripts/gsync-sync-gfid |
196 |
+ fi |
197 |
+ |
198 |
+ newinitd "${FILESDIR}/${PN}-r1.initd" glusterfsd |
199 |
+ newinitd "${FILESDIR}/glusterd-r3.initd" glusterd |
200 |
+ newconfd "${FILESDIR}/${PN}.confd" glusterfsd |
201 |
+ |
202 |
+ keepdir /var/log/${PN} |
203 |
+ keepdir /var/lib/glusterd/{events,glusterfind/.keys} |
204 |
+ |
205 |
+ # QA |
206 |
+ rm -r "${ED}/var/run/" || die |
207 |
+ if ! use static-libs; then |
208 |
+ find "${D}" -type f -name '*.la' -delete || die |
209 |
+ fi |
210 |
+} |
211 |
+ |
212 |
+src_test() { |
213 |
+ ./run-tests.sh || die |
214 |
+} |
215 |
+ |
216 |
+pkg_postinst() { |
217 |
+ elog "Starting with ${PN}-3.1.0, you can use the glusterd daemon to configure your" |
218 |
+ elog "volumes dynamically. To do so, simply use the gluster CLI after running:" |
219 |
+ elog " /etc/init.d/glusterd start" |
220 |
+ echo |
221 |
+ elog "For static configurations, the glusterfsd startup script can be multiplexed." |
222 |
+ elog "The default startup script uses /etc/conf.d/glusterfsd to configure the" |
223 |
+ elog "separate service. To create additional instances of the glusterfsd service" |
224 |
+ elog "simply create a symlink to the glusterfsd startup script." |
225 |
+ echo |
226 |
+ elog "Example:" |
227 |
+ elog " # ln -s glusterfsd /etc/init.d/glusterfsd2" |
228 |
+ elog " # ${EDITOR} /etc/glusterfs/glusterfsd2.vol" |
229 |
+ elog "You can now treat glusterfsd2 like any other service" |
230 |
+ echo |
231 |
+ ewarn "You need to use a ntp client to keep the clocks synchronized across all" |
232 |
+ ewarn "of your servers. Setup a NTP synchronizing service before attempting to" |
233 |
+ ewarn "run GlusterFS." |
234 |
+ echo |
235 |
+ elog "If you are upgrading from a previous version of ${PN}, please read:" |
236 |
+ elog " http://docs.gluster.org/en/latest/Upgrade-Guide/upgrade_to_$(ver_cut '1-2')/" |
237 |
+ |
238 |
+ use emacs && elisp-site-regen |
239 |
+} |
240 |
+ |
241 |
+pkg_postrm() { |
242 |
+ use emacs && elisp-site-regen |
243 |
+} |