# $Id: Portfile 67068 2010-04-28 11:17:34Z ryandesign@macports.org $

PortSystem          1.0
PortGroup	    perl5 1.0

perl5.setup	    Perlbal 1.73
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

depends_run-append  port:p5-net-netmask port:p5-danga-socket \
		    port:p5-bsd-resource port:p5-libwww-perl

if {[info exists supported_archs]} {
    supported_archs noarch
} else {
    universal_variant no
}

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