# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 96185 2012-08-02 16:19:00Z jmr@macports.org $

PortSystem          1.0

name                mysql-proxy
version             0.8.2
categories          databases
license             GPL-2
maintainers         naegler.org:michael
description         Proxy for MySQL-Server
long_description    \
    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.

homepage            http://forge.mysql.com/wiki/MySQL_Proxy
platforms           darwin
master_sites        http://ftp.gwdg.de/pub/misc/mysql/Downloads/MySQL-Proxy/ \
    http://sunsite.informatik.rwth-aachen.de/mysql/Downloads/MySQL-Proxy/ \
    http://mysql.proserve.nl/Downloads/MySQL-Proxy/ \
    ftp://mirror.leaseweb.com/mysql/Downloads/MySQL-Proxy/

checksums           md5 b00784ddc5d28787fc99712d602a3614 \
                    sha1 3ae4f2f68849cfd95eeaf033af8df78d643dbf4d \
                    rmd160 02a46970d3d046da5f04159bf9266dd564ba9f55

depends_build       port:pkgconfig
depends_lib         port:lua \
                    port:libevent \
                    path:bin/mysql_config5:mysql5 \
                    path:lib/pkgconfig/glib-2.0.pc:glib2

configure.args      --with-mysql=${prefix}/lib/mysql5/bin/mysql_config \
                    --with-lua
