1 |
commit: 3c7dc41d91e8fe5492ada9937971218687064bf7 |
2 |
Author: Brian Evans <grknight <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 18 15:39:53 2019 +0000 |
4 |
Commit: Brian Evans <grknight <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 18 15:40:31 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3c7dc41d |
7 |
|
8 |
sys-cluster/galera: Revbump dropping user eclass for new service |
9 |
|
10 |
New service script uses the standard 'nobody' user which is in baselayout |
11 |
This is used by other distros by default |
12 |
|
13 |
Package-Manager: Portage-2.3.79, Repoman-2.3.18 |
14 |
Signed-off-by: Brian Evans <grknight <AT> gentoo.org> |
15 |
|
16 |
sys-cluster/galera/galera-25.3.28-r1.ebuild | 81 +++++++++++++++++++++++++++++ |
17 |
1 file changed, 81 insertions(+) |
18 |
|
19 |
diff --git a/sys-cluster/galera/galera-25.3.28-r1.ebuild b/sys-cluster/galera/galera-25.3.28-r1.ebuild |
20 |
new file mode 100644 |
21 |
index 00000000000..adcb8849262 |
22 |
--- /dev/null |
23 |
+++ b/sys-cluster/galera/galera-25.3.28-r1.ebuild |
24 |
@@ -0,0 +1,81 @@ |
25 |
+# Copyright 1999-2019 Gentoo Authors |
26 |
+# Distributed under the terms of the GNU General Public License v2 |
27 |
+ |
28 |
+EAPI=7 |
29 |
+ |
30 |
+PYTHON_COMPAT=( python{2_7,3_5,3_6,3_7} ) |
31 |
+ |
32 |
+inherit python-any-r1 scons-utils toolchain-funcs flag-o-matic |
33 |
+ |
34 |
+DESCRIPTION="Synchronous multi-master replication engine that provides the wsrep API" |
35 |
+HOMEPAGE="http://galeracluster.com" |
36 |
+SRC_URI="http://nyc2.mirrors.digitalocean.com/mariadb/mariadb-10.3.20/${P}/src/${P}.tar.gz" |
37 |
+LICENSE="GPL-2 BSD" |
38 |
+ |
39 |
+SLOT="0" |
40 |
+ |
41 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~x86" |
42 |
+IUSE="cpu_flags_x86_sse4_2 garbd test" |
43 |
+RESTRICT="!test? ( test )" |
44 |
+ |
45 |
+CDEPEND=" |
46 |
+ dev-libs/openssl:0= |
47 |
+ >=dev-libs/boost-1.41:0= |
48 |
+ " |
49 |
+BDEPEND=">=sys-devel/gcc-4.4" |
50 |
+DEPEND="${BDEPEND} |
51 |
+ ${CDEPEND} |
52 |
+ dev-libs/check |
53 |
+ >=dev-cpp/asio-1.10.1[ssl] |
54 |
+ <dev-cpp/asio-1.12.0 |
55 |
+ " |
56 |
+#Run time only |
57 |
+RDEPEND="${CDEPEND}" |
58 |
+ |
59 |
+# Respect {C,LD}FLAGS. |
60 |
+PATCHES=( "${FILESDIR}/galera-4.1-strip-extra-cflags.patch" ) |
61 |
+ |
62 |
+src_prepare() { |
63 |
+ default |
64 |
+ |
65 |
+ # Remove bundled dev-cpp/asio |
66 |
+ rm -r "${S}/asio" || die |
67 |
+ |
68 |
+ #Remove optional garbd daemon |
69 |
+ if ! use garbd ; then |
70 |
+ rm -r "${S}/garb" || die |
71 |
+ fi |
72 |
+} |
73 |
+ |
74 |
+src_configure() { |
75 |
+ tc-export CC CXX |
76 |
+ # Uses hardware specific code that seems to depend on SSE4.2 |
77 |
+ if use cpu_flags_x86_sse4_2 ; then |
78 |
+ append-cflags -msse4.2 |
79 |
+ else |
80 |
+ append-cflags -DCRC32C_NO_HARDWARE |
81 |
+ fi |
82 |
+ # strict_build_flags=0 disables -Werror, -pedantic, -Weffc++, |
83 |
+ # and -Wold-style-cast |
84 |
+ MYSCONS=( |
85 |
+ tests=$(usex test 1 0) |
86 |
+ strict_build_flags=0 |
87 |
+ system_asio=1 |
88 |
+ ) |
89 |
+} |
90 |
+ |
91 |
+src_compile() { |
92 |
+ escons --warn=no-missing-sconscript "${MYSCONS[@]}" |
93 |
+} |
94 |
+ |
95 |
+src_install() { |
96 |
+ dodoc scripts/packages/README scripts/packages/README-MySQL |
97 |
+ if use garbd ; then |
98 |
+ dobin garb/garbd |
99 |
+ newconfd "${FILESDIR}/garb.cnf" garbd |
100 |
+ newinitd "${FILESDIR}/garb.init" garbd |
101 |
+ doman man/garbd.8 |
102 |
+ fi |
103 |
+ exeinto /usr/$(get_libdir)/${PN} |
104 |
+ doexe libgalera_smm.so |
105 |
+} |