summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Evans <grknight@gentoo.org>2015-08-11 20:30:39 -0400
committerBrian Evans <grknight@gentoo.org>2015-08-11 20:30:39 -0400
commit879635b7038fa026add386e6d4e07f866b438acc (patch)
tree3a239f33d835a1b08cf5fe733ea36bbb7d41e4d5 /dev-db/maxscale/maxscale-1.2.0.ebuild
parentapp-portage/grs: first 0.1 release. (diff)
downloadgentoo-879635b7038fa026add386e6d4e07f866b438acc.tar.gz
gentoo-879635b7038fa026add386e6d4e07f866b438acc.tar.bz2
gentoo-879635b7038fa026add386e6d4e07f866b438acc.zip
dev-db/maxscale Initial commit
Package-Manager: portage-2.2.20
Diffstat (limited to 'dev-db/maxscale/maxscale-1.2.0.ebuild')
-rw-r--r--dev-db/maxscale/maxscale-1.2.0.ebuild71
1 files changed, 71 insertions, 0 deletions
diff --git a/dev-db/maxscale/maxscale-1.2.0.ebuild b/dev-db/maxscale/maxscale-1.2.0.ebuild
new file mode 100644
index 000000000000..1a5d63a89c17
--- /dev/null
+++ b/dev-db/maxscale/maxscale-1.2.0.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils cmake-utils multilib user
+
+MY_PN="MaxScale"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="A content aware, plug-able MySQL proxy server"
+HOMEPAGE="http://mariadb.com/MaxScale"
+SRC_URI="https://github.com/mariadb-corporation/${MY_PN}/archive/${PV}.tar.gz -> ${MY_P}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+IUSE="jemalloc rabbitmq tcmalloc"
+
+REQUIRED_USE="?? ( jemalloc tcmalloc )"
+
+DEPEND="
+ dev-libs/libaio
+ >=dev-libs/libpcre-8.35
+ dev-libs/openssl:0
+ net-misc/curl
+ virtual/mysql[embedded]
+ jemalloc? ( dev-libs/jemalloc )
+ rabbitmq? ( net-libs/rabbitmq-c )
+ tcmalloc? ( dev-util/google-perftools:= )
+"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=( "${FILESDIR}/${PN}-1.2.0-rpath.patch" )
+
+pkg_setup() {
+ enewgroup maxscale
+ enewuser maxscale -1 -1 -1 maxscale
+}
+
+src_configure() {
+# -DEMBEDDED_LIB=/usr/$(get_libdir)/mysql
+ local mycmakeargs=(
+ -DSTATIC_EMBEDDED=OFF
+ -DWITH_SCRIPTS=OFF
+ $(cmake-utils_use_with jemalloc JEMALLOC)
+ $(cmake-utils_use_build rabbitmq RABBITMQ)
+ $(cmake-utils_use_with tcmalloc TCMALLOC)
+ -DMODULE_INSTALL_PATH=$(get_libdir)/${PN}
+ )
+ cmake-utils_src_configure
+}
+
+src_install() {
+ local DOCS=( README README.md "${BUILD_DIR}"/Changelog.txt "${BUILD_DIR}"/ReleaseNotes.txt )
+ cmake-utils_src_install
+ # Remove badly placed documents
+ rm "${D}usr/share/${PN}/README" "${D}usr/share/${PN}/Changelog.txt" \
+ "${D}usr/share/${PN}/LICENSE" "${D}usr/share/${PN}/COPYRIGHT" \
+ "${D}usr/share/${PN}/ReleaseNotes.txt" || die
+ newinitd "${FILESDIR}/${PN}-init.d" ${PN}
+ keepdir /var/log/maxscale /var/lib/maxscale/data \
+ /var/cache/maxscale
+ fowners maxscale:maxscale /var/log/maxscale \
+ /var/lib/maxscale/data \
+ /var/lib/maxscale \
+ /var/cache/maxscale
+}