1 |
robbat2 14/07/30 06:26:05 |
2 |
|
3 |
Added: galera-25.3.5.ebuild metadata.xml ChangeLog |
4 |
Log: |
5 |
Bring MariaDB-Galera from the overlay into the tree. Thanks to the great work of Brian Evans <grknight@g.o>. |
6 |
|
7 |
(Portage version: 2.2.10/cvs/Linux x86_64, unsigned Manifest commit) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 sys-cluster/galera/galera-25.3.5.ebuild |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/galera/galera-25.3.5.ebuild?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/galera/galera-25.3.5.ebuild?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: galera-25.3.5.ebuild |
16 |
=================================================================== |
17 |
# Copyright 1999-2014 Gentoo Foundation |
18 |
# Distributed under the terms of the GNU General Public License v2 |
19 |
# $Header: /var/cvsroot/gentoo-x86/sys-cluster/galera/galera-25.3.5.ebuild,v 1.1 2014/07/30 06:26:05 robbat2 Exp $ |
20 |
|
21 |
EAPI=5 |
22 |
|
23 |
MY_P="${PN}-${PV}-src" |
24 |
|
25 |
inherit scons-utils multilib toolchain-funcs base versionator eutils |
26 |
DESCRIPTION="Synchronous multi-master replication engine that provides its service through wsrep API" |
27 |
HOMEPAGE="http://www.codership.org/" |
28 |
SRC_URI="https://launchpad.net/${PN}/$(get_version_component_range 2).x/${PV}/+download/${MY_P}.tar.gz" |
29 |
LICENSE="GPL-2 BSD" |
30 |
|
31 |
SLOT="0" |
32 |
|
33 |
KEYWORDS="~amd64 ~x86" |
34 |
IUSE="garbd ssl test" |
35 |
|
36 |
CDEPEND=" |
37 |
ssl? ( dev-libs/openssl ) |
38 |
>=dev-libs/boost-1.41 |
39 |
" |
40 |
DEPEND="${DEPEND} |
41 |
${CDEPEND} |
42 |
dev-libs/check |
43 |
>=sys-devel/gcc-4.4 |
44 |
>=dev-cpp/asio-1.4.8[ssl?] |
45 |
" |
46 |
#Run time only |
47 |
RDEPEND="${CDEPEND} |
48 |
garbd? ( || ( |
49 |
net-analyzer/netcat |
50 |
net-analyzer/netcat6 |
51 |
net-analyzer/gnu-netcat |
52 |
net-analyzer/openbsd-netcat |
53 |
) )" |
54 |
|
55 |
S="${WORKDIR}/${MY_P}" |
56 |
|
57 |
pkg_preinst() { |
58 |
if use garbd ; then |
59 |
enewgroup garbd |
60 |
enewuser garbd |
61 |
fi |
62 |
} |
63 |
|
64 |
src_prepare() { |
65 |
# Remove bundled dev-cpp/asio |
66 |
rm -r "${S}/asio" || die |
67 |
|
68 |
# Respect {C,LD}FLAGS. |
69 |
epatch "${FILESDIR}/respect-flags.patch" |
70 |
|
71 |
#Remove optional garbd daemon |
72 |
if ! use garbd ; then |
73 |
rm -r "${S}/garb" || die |
74 |
fi |
75 |
|
76 |
epatch_user |
77 |
} |
78 |
|
79 |
src_configure() { |
80 |
tc-export CC CXX |
81 |
# strict_build_flags=0 disables -Werror, -pedantic, -Weffc++, |
82 |
# and -Wold-style-cast |
83 |
myesconsargs=( |
84 |
$(use_scons ssl ssl 1 0) |
85 |
$(use_scons test tests 1 0) |
86 |
strict_build_flags=0 |
87 |
) |
88 |
} |
89 |
|
90 |
src_compile() { |
91 |
escons --warn=no-missing-sconscript |
92 |
} |
93 |
|
94 |
src_install() { |
95 |
dodoc scripts/packages/README scripts/packages/README-MySQL |
96 |
if use garbd ; then |
97 |
dobin garb/garbd |
98 |
newconfd "${FILESDIR}/garb.cnf" garbd |
99 |
newinitd "${FILESDIR}/garb.sh" garbd |
100 |
fi |
101 |
exeinto /usr/$(get_libdir)/${PN} |
102 |
doexe libgalera_smm.so |
103 |
} |
104 |
|
105 |
|
106 |
|
107 |
1.1 sys-cluster/galera/metadata.xml |
108 |
|
109 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/galera/metadata.xml?rev=1.1&view=markup |
110 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/galera/metadata.xml?rev=1.1&content-type=text/plain |
111 |
|
112 |
Index: metadata.xml |
113 |
=================================================================== |
114 |
<?xml version="1.0" encoding="UTF-8"?> |
115 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
116 |
<pkgmetadata> |
117 |
<herd>mysql</herd> |
118 |
<use> |
119 |
<flag name='garbd'>Install Galera Arbitrator - a stateless daemon which acts as a lightweight group member</flag> |
120 |
</use> |
121 |
</pkgmetadata> |
122 |
|
123 |
|
124 |
|
125 |
1.1 sys-cluster/galera/ChangeLog |
126 |
|
127 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/galera/ChangeLog?rev=1.1&view=markup |
128 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/galera/ChangeLog?rev=1.1&content-type=text/plain |
129 |
|
130 |
Index: ChangeLog |
131 |
=================================================================== |
132 |
# ChangeLog for sys-cluster/galera |
133 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
134 |
# $Header: /var/cvsroot/gentoo-x86/sys-cluster/galera/ChangeLog,v 1.1 2014/07/30 06:26:05 robbat2 Exp $ |
135 |
|
136 |
*galera-25.3.5 (30 Jul 2014) |
137 |
|
138 |
30 Jul 2014; Robin H. Johnson <robbat2@g.o> +files/disable-tests.patch, |
139 |
+files/garb.cnf, +files/garb.sh, +files/respect-flags.patch, |
140 |
+galera-25.3.5.ebuild, +metadata.xml: |
141 |
Bring MariaDB-Galera from the overlay into the tree. Thanks to the great work |
142 |
of Brian Evans <grknight@g.o>. |