From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- dev-db/mysql-proxy/Manifest | 7 +++ dev-db/mysql-proxy/files/mysql-proxy.cnf | 47 ++++++++++++++++++++ dev-db/mysql-proxy/files/mysql-proxy.confd | 12 +++++ .../mysql-proxy/files/mysql-proxy.confd-0.8.0-r1 | 12 +++++ dev-db/mysql-proxy/files/mysql-proxy.initd | 22 ++++++++++ dev-db/mysql-proxy/metadata.xml | 13 ++++++ dev-db/mysql-proxy/mysql-proxy-0.8.2-r1.ebuild | 51 ++++++++++++++++++++++ 7 files changed, 164 insertions(+) create mode 100644 dev-db/mysql-proxy/Manifest create mode 100644 dev-db/mysql-proxy/files/mysql-proxy.cnf create mode 100644 dev-db/mysql-proxy/files/mysql-proxy.confd create mode 100644 dev-db/mysql-proxy/files/mysql-proxy.confd-0.8.0-r1 create mode 100644 dev-db/mysql-proxy/files/mysql-proxy.initd create mode 100644 dev-db/mysql-proxy/metadata.xml create mode 100644 dev-db/mysql-proxy/mysql-proxy-0.8.2-r1.ebuild (limited to 'dev-db/mysql-proxy') diff --git a/dev-db/mysql-proxy/Manifest b/dev-db/mysql-proxy/Manifest new file mode 100644 index 000000000000..2f94ea4a276e --- /dev/null +++ b/dev-db/mysql-proxy/Manifest @@ -0,0 +1,7 @@ +AUX mysql-proxy.cnf 1120 BLAKE2B 5e1bd66b984948dfde35be6709e0e6c175ff2685f708f34a98b1ee27bacb624b57a4be5775318663c0996dd780e8b05797b0320cedd5165135533042a04721ad SHA512 5f889422d7232608dcde5f332577c563b0c29b0db5a327659ce7b30cef7e4d498eca641159d49671b7368080ff2113511b6b362b44fb75ddd781a00e2879246b +AUX mysql-proxy.confd 365 BLAKE2B 064bd99f0b233109fffb65dace18df9a6803cec6c6dbe7e47e3043eb1e4c627a875c07300bef2446968e3f493caa0426ee4f58f4b1dc59652eb89e2ac5330d7c SHA512 9a4a6499e03d939fcc5fbd5f71d1e377a1d003e542be7fab47d810899649f58e518aa34617c67b207477c7b1a85b75ce3045eb5959156c673b4c28c2c101185b +AUX mysql-proxy.confd-0.8.0-r1 391 BLAKE2B 7896a8f6e4aa8edf8dfcee3e8a29f0aa30bfd1b4fcbb76dad92eafe1c42b1a9eff4a050ea71d1b98196459da39eaf843ec849e9dfc0d2b81f0bca77c34e94be0 SHA512 e07afd8502d87006cfd4640e83c1ecab98b862d0916ee351c9c60aaaa01f0766d51d0749d3f63f33df9f8bbbbc45ef21517fa0dbc87bf3ade8e3e6c4048c8a5b +AUX mysql-proxy.initd 431 BLAKE2B fd9b3512056162470cb331cade13ee9d83ad91398bc7d907540606fbdf9c8139bec25aad9c2d8ad58d91bb39a406218ddb42d948b21d5a2aa03f714d43ac66b6 SHA512 184850991fbc7c2c625e28f217b12a6e44a38392d1f054dfd25ab6b4c298fb5c53177d6590f536ec3b23bf03b127ae7ee144cc5402bcd2cc8be44a478bc82af3 +DIST mysql-proxy-0.8.2.tar.gz 861995 BLAKE2B 2f6071d5c2a63462dc619ade0ce92db6845d0e010d4d5022314157b3cdac553b5ccff8149763844d42892eaa444f132587f02b8495ddd446ed02953909e59b5a SHA512 e083ea6344bf2d3b85a38127e42cbab659a959684f7f0f63272fa0df926d6d32dbbaaab2b6479ee8fc227fbc9af6f24e855d19700ec1ab4b904c5e638b4d64c8 +EBUILD mysql-proxy-0.8.2-r1.ebuild 1268 BLAKE2B fdaebbcb3663055180073a77f7868ea49b9d888bf72075696151d49a692c5692d50163473068f0184b734cf5d9aede13acd055b07f485c76a2b8f47e1a537f86 SHA512 491326aa07da2e83e440420950c687162d33c3393dd33ae845259a4e663726258f2bc2ba4783ad03289e99cd4164d008d0c8805e36358fa519fe528697d95c76 +MISC metadata.xml 553 BLAKE2B cbbc397ac51dc4760dcd482204ea2d1eca1ea479b9b46cb6681eb642143204d1d4e11da9483c1775d25f89419bbb263975606c3874d01f924df8bbdfd1b80195 SHA512 ea9b0711830e204234c0395e2637005cbf83187c7554435351447871ca99595756893ab4113adcac3deaa6df5495fdf9bf4d3091140c6d2ef498e832cc520388 diff --git a/dev-db/mysql-proxy/files/mysql-proxy.cnf b/dev-db/mysql-proxy/files/mysql-proxy.cnf new file mode 100644 index 000000000000..7d15674f6b9d --- /dev/null +++ b/dev-db/mysql-proxy/files/mysql-proxy.cnf @@ -0,0 +1,47 @@ +# MySQL Proxy's configuration file (mysql-proxy.cnf) +# This file must be 0660 or more restrictive +# otherwise mysql-proxy will refuse to load +[mysql-proxy] +#basedir = ... +#daemon = true +#defaults-file = ... +#event-threads = ... +keepalive = true +log-backtrace-on-crash = true +log-file = /var/log/mysql/mysql-proxy.log +log-level = warning +#log-use-syslog = true +#lua-cpath = ... +#lua-path = ... +#max-open-files = ... +pid-file = /var/run/mysql-proxy.pid +#plugin-dir = ... +#plugins = admin,proxy,debug,replicant +#plugins = admin,proxy +plugins = proxy +#user = ... + +# module: admin +admin-address = 127.0.0.1:4041 +#admin-lua-script = ... +#admin-password = ... +#admin-username = ... + +# module: proxy +#no-proxy = false +proxy-address = 127.0.0.1:4040 +proxy-backend-addresses = 127.0.0.1:3306 +proxy-fix-bug-25371 = false +#proxy-lua-script = ... +#proxy-pool-no-change-user = ... +#proxy-read-only-backend-addresses = ... +proxy-skip-profiling = false + +# module: replicant +#replicant-master-address = ... +#replicant-username = ... +#replicant-password = ... +#replicant-read-binlogs = ... + +# module: debug +debug-address = 127.0.0.1:4043 diff --git a/dev-db/mysql-proxy/files/mysql-proxy.confd b/dev-db/mysql-proxy/files/mysql-proxy.confd new file mode 100644 index 000000000000..079530159f82 --- /dev/null +++ b/dev-db/mysql-proxy/files/mysql-proxy.confd @@ -0,0 +1,12 @@ +# /etc/conf.d/mysql-proxy: config file for /etc/init.d/mysql-proxy + +# location of pidfile +PIDFILE="/var/run/mysql-proxy.pid" + +# general options for mysql-proxy +# do NOT specify --daemon or --pid-file=... here! +OPTS="--log-use-syslog" + +# if you want mysql-proxy to depend on mysql, enable this: +#RC_NEED="mysql" # baselayout-1 +#rc_need="mysql" # baselayout-2/OpenRC diff --git a/dev-db/mysql-proxy/files/mysql-proxy.confd-0.8.0-r1 b/dev-db/mysql-proxy/files/mysql-proxy.confd-0.8.0-r1 new file mode 100644 index 000000000000..8b86431a3d8f --- /dev/null +++ b/dev-db/mysql-proxy/files/mysql-proxy.confd-0.8.0-r1 @@ -0,0 +1,12 @@ +# /etc/conf.d/mysql-proxy: config file for /etc/init.d/mysql-proxy + +# location of pidfile +PIDFILE="/var/run/mysql-proxy.pid" + +# general options for mysql-proxy +# do NOT specify --daemon or --pid-file=... here! +OPTS="--defaults-file=/etc/mysql/mysql-proxy.cnf" + +# if you want mysql-proxy to depend on mysql, enable this: +#RC_NEED="mysql" # baselayout-1 +#rc_need="mysql" # baselayout-2/OpenRC diff --git a/dev-db/mysql-proxy/files/mysql-proxy.initd b/dev-db/mysql-proxy/files/mysql-proxy.initd new file mode 100644 index 000000000000..7107facfd6f8 --- /dev/null +++ b/dev-db/mysql-proxy/files/mysql-proxy.initd @@ -0,0 +1,22 @@ +#!/sbin/openrc-run +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + need net +} + +start() { + ebegin "Starting MySQL Proxy" + start-stop-daemon --start --quiet \ + --exec /usr/bin/mysql-proxy \ + -- --daemon --pid-file="${PIDFILE}" ${OPTS} + eend $? +} + +stop() { + ebegin "Stopping MySQL Proxy" + start-stop-daemon --stop --quiet \ + --pidfile "${PIDFILE}" + eend $? +} diff --git a/dev-db/mysql-proxy/metadata.xml b/dev-db/mysql-proxy/metadata.xml new file mode 100644 index 000000000000..dc0c708273db --- /dev/null +++ b/dev-db/mysql-proxy/metadata.xml @@ -0,0 +1,13 @@ + + + + +MySQL Proxy is a simple program that sits between your client and MySQL +server(s) that can monitor, analyze or transform their communication. Its +flexibility allows for unlimited uses; common ones include: load balancing; +failover; query analysis; query filtering and modification; and many more. + + + mysql-proxy + + diff --git a/dev-db/mysql-proxy/mysql-proxy-0.8.2-r1.ebuild b/dev-db/mysql-proxy/mysql-proxy-0.8.2-r1.ebuild new file mode 100644 index 000000000000..6a7abae6bab8 --- /dev/null +++ b/dev-db/mysql-proxy/mysql-proxy-0.8.2-r1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils versionator + +MY_PV=$(get_version_component_range 1-2) +DESCRIPTION="A Proxy for the MySQL Client/Server protocol" +HOMEPAGE="http://dev.mysql.com/doc/mysql-proxy/en/" +SRC_URI="https://launchpad.net/${PN}/${MY_PV}/${PV}/+download/${P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="examples" +RDEPEND=">=dev-libs/libevent-2.1 + >=dev-libs/glib-2.16 + >=dev-lang/lua-5.1:0" +DEPEND="${RDEPEND} + >=virtual/mysql-5.0 + virtual/pkgconfig" + +src_prepare() { + sed -i \ + -e 's|_EVENT_VERSION|LIBEVENT_VERSION|g' \ + src/chassis-mainloop.c || die +} + +src_configure() { + econf \ + --includedir=/usr/include/${PN} \ + --with-mysql \ + --with-lua \ + || die "econf failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + newinitd "${FILESDIR}"/${PN}.initd ${PN} || die + newconfd "${FILESDIR}"/${PN}.confd-0.8.0-r1 ${PN} || die + dodoc ChangeLog NEWS README + if use examples; then + docinto examples + dodoc examples/*.lua || die + dodoc lib/*.lua || die + fi + # mysql-proxy will refuse to start unless the config file is at most 0660. + insinto /etc/mysql + insopts -m0660 + doins "${FILESDIR}"/${PN}.cnf || die +} -- cgit v1.2.3