# $Id: Portfile 82547 2011-08-15 16:46:16Z jmr@macports.org $

PortSystem          1.0
PortGroup	    perl5 1.0

perl5.setup	    Perlbal 1.73
revision        2
categories          perl net
platforms	    darwin
maintainers	    pmq openmaintainer

description         Perl-based reverse proxy load balancer and web server
long_description    ${description}

homepage            http://www.danga.com/perlbal
master_sites        http://search.cpan.org/CPAN/authors/id/B/BR/BRADFITZ \
		    http://search.cpan.org/CPAN/authors/id/D/DO/DORMANDO
checksums           md5 9df173f7042cf9c1b92b42a4aed52efd \
		    sha1 ad1c2879b35ab1e9fbaf188220267c7db259da29

if {${perl5.major} != ""} {
depends_run-append  port:p${perl5.major}-net-netmask port:p${perl5.major}-danga-socket \
		    port:p${perl5.major}-bsd-resource port:p${perl5.major}-libwww-perl

supported_archs noarch

post-destroot {
#   set sharedir ${destroot}${prefix}/share/[string tolower ${name}]-${perl5.moduleversion}
    set sharedir ${destroot}${prefix}/share/perlbal-${perl5.moduleversion}
    xinstall -d ${sharedir}
    file copy ${worksrcpath}/doc ${worksrcpath}/conf ${sharedir}
}
}
