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

PortSystem              1.0
PortGroup               perl5 1.0

perl5.setup             net 1.22 Net/GBARR
revision                2
maintainers             markd openmaintainer
description             Perl5 modules to access and use network protocols. \
                        Also known as libnet.

long_description        libnet is a collection of Perl modules which provides a simple \
                        and consistent programming interface (API) to the client side \
                        of various protocols used in the internet community.

homepage                http://search.cpan.org/dist/libnet/
distname                libnet-${perl5.moduleversion}

checksums               md5 ac82f4ea57113dabcce4b65d540a7a3a \
                        sha1 d3a84aa06da70f59598d6a49d70507a5b9a6e869 \
                        rmd160 52c254997440b95e195bd54d04dca5d736788e21

platforms               darwin

if {${perl5.major} != ""} {
depends_lib-append		port:p${perl5.major}-authen-sasl \
			port:p${perl5.major}-digest \
			port:p${perl5.major}-digest-hmac \
			port:p${perl5.major}-digest-sha1 \
			port:p${perl5.major}-crypt-des \
			port:p${perl5.major}-gssapi

supported_archs noarch
}

livecheck.type  regex
livecheck.url   http://distrib-coffee.ipsl.jussieu.fr/pub/mirrors/cpan/authors/id/G/GB/GBARR/?C=M&O=D
livecheck.regex {libnet-(\d+(?:\.\d+)*)}
