# -*- 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 82834 2011-08-21 01:52:11Z jmr@macports.org $

PortSystem          1.0
name                mysql-proxy
version             0.6.1
categories          databases
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 f5b003f069c294002ae37c6df3a7a0a5 \
                    sha1 3e4184ea2b737e6c60c42e5817f93728e9d31c3d \
                    rmd160 05572c42ea2f736ef31477753d13fae6b49ba805

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

