# $Id: Portfile 102584 2013-02-05 04:25:13Z larryv@macports.org $

PortSystem 1.0
PortGroup python 1.0

name			py-rad
version			0.9
categories-append	net
license			BSD
platforms		darwin
supported_archs	noarch
maintainers		nomaintainer
description		python RADIUS module implementing RFC2865
long_description	pyrad is an implementation of a RADIUS client as \
				described in RFC2865. It takes care of all the details \
				like building RADIUS packets, sending them and \
				decoding responses.

homepage		http://www.wiggy.net/code/pyrad/
master_sites	http://www.wiggy.net/files/ \
		http://distfiles.macports.org/python/
distname		pyrad-${version}
checksums		sha1 e6212dd65938e85f870cd769c64025f61f3bc884

python.versions	24

if {$subport != $name} {
    post-destroot	{
        xinstall -m 644 ${worksrcpath}/README.txt \
            ${destroot}${prefix}/share/doc/${subport}
        xinstall -m 644 -W ${worksrcpath}/example acct.py auth.py dictionary \
            dictionary.attingo server.py \
            ${destroot}${prefix}/share/doc/${subport}/examples
    }
}
