Portfile

# $Id: Portfile 22478 2007-03-02 05:16:40Z pipping@macports.org $

PortSystem 1.0
PortGroup python24 1.0

name py-airconf
version 0.2
revision 1
categories python net
platforms darwin
maintainers nomaintainer@macports.org
description Airport Basestation configuration tool and python module
long_description airconf is a tool for configuring the the Access \
Control Lists in several Apple Airport Base Stations \
at once. Today it supports only Base Station 1 \
(Graphite) based on Karl Bridge. Base Station 2 \
(White) is a completely different beast and based on \
VxWorks. It is also a Python framework for detecting \
Apple Airport Base Stations (White and Graphite), \
reading, printing and changing their configurtation \
(only Graphite).

homepage http://c0re.23.nu/c0de/airconf/
master_sites ${homepage}
distname airconf-${version}
checksums md5 7eda1becb88ba5d0548ed0898ddba1a7
patchfiles patch-airport.py.diff

depends_lib-append port:py-snmp

set worksrcdir airconf

configure {
reinplace "s|/usr/local/etc|${prefix}/etc|g" \
${worksrcpath}/airport_aclupdate
}

post-destroot {
xinstall -m 755 ${worksrcpath}/airport_aclupdate \
${destroot}${prefix}/bin
xinstall -m 600 -W ${worksrcpath} airport.acl airport.bases \
${destroot}${prefix}/etc
xinstall -m 644 -W ${worksrcpath} README TODO \
${destroot}${prefix}/share/doc/${name}
}

files