diff options
author | Wolfram Schlich <wschlich@gentoo.org> | 2009-11-21 13:52:45 +0000 |
---|---|---|
committer | Wolfram Schlich <wschlich@gentoo.org> | 2009-11-21 13:52:45 +0000 |
commit | bc88ef33f36ff8f12b6263f636c1eea0f8c92081 (patch) | |
tree | abfe638940a7a6935c58621f4030581c1f357fc7 /dev-db | |
parent | fix bug #218606 (diff) | |
download | gentoo-2-bc88ef33f36ff8f12b6263f636c1eea0f8c92081.tar.gz gentoo-2-bc88ef33f36ff8f12b6263f636c1eea0f8c92081.tar.bz2 gentoo-2-bc88ef33f36ff8f12b6263f636c1eea0f8c92081.zip |
version bump
(Portage version: 2.2_rc33/cvs/Linux i686)
Diffstat (limited to 'dev-db')
-rw-r--r-- | dev-db/mysql-proxy/ChangeLog | 11 | ||||
-rw-r--r-- | dev-db/mysql-proxy/files/mysql-proxy.confd | 12 | ||||
-rwxr-xr-x | dev-db/mysql-proxy/files/mysql-proxy.initd | 23 | ||||
-rw-r--r-- | dev-db/mysql-proxy/mysql-proxy-0.7.2.ebuild | 50 |
4 files changed, 94 insertions, 2 deletions
diff --git a/dev-db/mysql-proxy/ChangeLog b/dev-db/mysql-proxy/ChangeLog index 8d20822f9634..01910c88510b 100644 --- a/dev-db/mysql-proxy/ChangeLog +++ b/dev-db/mysql-proxy/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for dev-db/mysql-proxy -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql-proxy/ChangeLog,v 1.3 2008/02/07 19:44:00 wschlich Exp $ +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql-proxy/ChangeLog,v 1.4 2009/11/21 13:52:45 wschlich Exp $ + +*mysql-proxy-0.7.2 (21 Nov 2009) + + 21 Nov 2009; Wolfram Schlich <wschlich@gentoo.org> + +files/mysql-proxy.confd, +files/mysql-proxy.initd, + +mysql-proxy-0.7.2.ebuild: + version bump *mysql-proxy-0.6.1 (07 Feb 2008) 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.initd b/dev-db/mysql-proxy/files/mysql-proxy.initd new file mode 100755 index 000000000000..d9f37628ff23 --- /dev/null +++ b/dev-db/mysql-proxy/files/mysql-proxy.initd @@ -0,0 +1,23 @@ +#!/sbin/runscript +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql-proxy/files/mysql-proxy.initd,v 1.1 2009/11/21 13:52:45 wschlich Exp $ + +depend() { + need net +} + +start() { + ebegin "Starting MySQL Proxy" + start-stop-daemon --start --quiet \ + --exec /usr/sbin/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/mysql-proxy-0.7.2.ebuild b/dev-db/mysql-proxy/mysql-proxy-0.7.2.ebuild new file mode 100644 index 000000000000..f844e260013a --- /dev/null +++ b/dev-db/mysql-proxy/mysql-proxy-0.7.2.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql-proxy/mysql-proxy-0.7.2.ebuild,v 1.1 2009/11/21 13:52:45 wschlich Exp $ + +EAPI=2 + +inherit eutils + +DESCRIPTION="A Proxy for the MySQL Client/Server protocol" +HOMEPAGE="http://forge.mysql.com/wiki/MySQL_Proxy" +SRC_URI="mirror://mysql/Downloads/MySQL-Proxy/${P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="examples" +DEPEND=">=dev-libs/libevent-1.0 + >=dev-libs/glib-2.0 + >=virtual/mysql-4.0 + >=dev-lang/lua-5.1" +RDEPEND="${DEPEND}" + +src_configure() { + econf \ + --with-mysql \ + --with-lua \ + || die "econf failed" +} + +src_compile() { + emake || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + newinitd "${FILESDIR}"/${PN}.initd ${PN} || die + newconfd "${FILESDIR}"/${PN}.confd ${PN} || die + dodoc ChangeLog NEWS README + if useq examples; then + docinto examples + dodoc examples/*.lua + fi +} + +pkg_postinst() { + einfo + einfo "You might want to have a look at" + einfo "http://dev.mysql.com/tech-resources/articles/proxy-gettingstarted.html" + einfo "on how to get started with MySQL Proxy." + einfo +} |