diff options
author | Wolfram Schlich <wschlich@gentoo.org> | 2008-02-07 19:44:01 +0000 |
---|---|---|
committer | Wolfram Schlich <wschlich@gentoo.org> | 2008-02-07 19:44:01 +0000 |
commit | a261f659419a3d36d0e638cf6674b6b292368fff (patch) | |
tree | 701132602b7a92c4ced92b2e129b0a6cacc257dd /dev-db/mysql-proxy | |
parent | fix a typo pointed out by Holger Hoffstätte <holger AT wizards DOT de> in bu... (diff) | |
download | gentoo-2-a261f659419a3d36d0e638cf6674b6b292368fff.tar.gz gentoo-2-a261f659419a3d36d0e638cf6674b6b292368fff.tar.bz2 gentoo-2-a261f659419a3d36d0e638cf6674b6b292368fff.zip |
version bump
(Portage version: 2.1.4)
Diffstat (limited to 'dev-db/mysql-proxy')
-rw-r--r-- | dev-db/mysql-proxy/ChangeLog | 9 | ||||
-rw-r--r-- | dev-db/mysql-proxy/files/0.6.1/mysql-proxy.confd | 11 | ||||
-rwxr-xr-x | dev-db/mysql-proxy/files/0.6.1/mysql-proxy.initd | 20 | ||||
-rw-r--r-- | dev-db/mysql-proxy/mysql-proxy-0.6.1.ebuild | 50 |
4 files changed, 89 insertions, 1 deletions
diff --git a/dev-db/mysql-proxy/ChangeLog b/dev-db/mysql-proxy/ChangeLog index 719a40cf263c..8d20822f9634 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.2 2008/01/28 01:08:04 rich0 Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql-proxy/ChangeLog,v 1.3 2008/02/07 19:44:00 wschlich Exp $ + +*mysql-proxy-0.6.1 (07 Feb 2008) + + 07 Feb 2008; Wolfram Schlich <wschlich@gentoo.org> + +files/0.6.1/mysql-proxy.confd, +files/0.6.1/mysql-proxy.initd, + +mysql-proxy-0.6.1.ebuild: + version bump 28 Jan 2008; Richard Freeman <rich0@gentoo.org> mysql-proxy-0.6.0.ebuild: marked ~amd64 - bug #195169 diff --git a/dev-db/mysql-proxy/files/0.6.1/mysql-proxy.confd b/dev-db/mysql-proxy/files/0.6.1/mysql-proxy.confd new file mode 100644 index 000000000000..fc19ebe5769a --- /dev/null +++ b/dev-db/mysql-proxy/files/0.6.1/mysql-proxy.confd @@ -0,0 +1,11 @@ +# /etc/conf.d/mysql-proxy: config file for /etc/init.d/mysql-proxy + +# location auf pidfile +PIDFILE="/var/run/mysql-proxy.pid" + +# general options for mysql-proxy +#OPTS="--proxy-lua-script=/usr/share/doc/mysql-proxy-0.6.0/tutorial-basic.lua" +OPTS="" + +# if you want mysql-proxy to depend on mysql, enable this: +#RC_NEED="mysql" diff --git a/dev-db/mysql-proxy/files/0.6.1/mysql-proxy.initd b/dev-db/mysql-proxy/files/0.6.1/mysql-proxy.initd new file mode 100755 index 000000000000..c6ef7a32d835 --- /dev/null +++ b/dev-db/mysql-proxy/files/0.6.1/mysql-proxy.initd @@ -0,0 +1,20 @@ +#!/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/0.6.1/mysql-proxy.initd,v 1.1 2008/02/07 19:44:01 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.6.1.ebuild b/dev-db/mysql-proxy/mysql-proxy-0.6.1.ebuild new file mode 100644 index 000000000000..bdf767a0f72d --- /dev/null +++ b/dev-db/mysql-proxy/mysql-proxy-0.6.1.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2008 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.6.1.ebuild,v 1.1 2008/02/07 19:44:00 wschlich Exp $ + +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="lua examples" +DEPEND=">=dev-libs/libevent-1.0 + >=dev-libs/glib-2.0 + >=virtual/mysql-4.0 + lua? ( >=dev-lang/lua-5.1 )" + +src_compile() { + econf \ + --with-mysql \ + $(use_with lua) \ + || die "econf failed" + emake || die "emake failed" +} + +src_install() { + dosbin src/mysql-proxy + if useq lua; then + insinto /usr/share/${PN} + doins lib/*.lua + insinto /usr/share/${PN}/proxy + doins lib/proxy/*.lua + if useq examples; then + insinto /usr/share/${PN}/examples + doins examples/*.lua + fi + fi + dodoc README INSTALL NEWS + newinitd "${FILESDIR}/${PV}/${PN}.initd" ${PN} + newconfd "${FILESDIR}/${PV}/${PN}.confd" ${PN} +} + +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 +} |