blob: 82c87a9cd45c56a4cb7c216675e13d2cf549988a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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.0.ebuild,v 1.3 2008/01/28 01:08:04 rich0 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
}
|