# $Id: Portfile 30249 2007-10-23 02:12:47Z jmpp@macports.org $

PortSystem 1.0
PortGroup python24 1.0

name			py-netdevicelib
version			0.1
revision		1
categories		python net
platforms		darwin freebsd
maintainers		nomaintainer
description		python module for interacting with network devices like routers
long_description	netdevicelib is a Python library for interacting  with \
				network devices, such as routers, switches, and  \
				firewalls. It is similar in concept (but more \
				ambitious in scope) to the  Net-Telnet-Cisco module \
				for Perl.

homepage		http://netdevicelib.sourceforge.net/
master_sites	sourceforge:netdevicelib
distname		netdevicelib-${version}
checksums		md5 5dfb04dc595f25b5ce808b1acdec720d

worksrcdir		netdevicelib/src/netdevicelib

patch	{
	file copy ${filespath}/setup.py ${worksrcpath}
	reinplace "s|VERSION|${version}|g" ${worksrcpath}/setup.py
}

post-destroot	{
	xinstall -m 644 -W ${workpath}/netdevicelib CHANGES.txt COPYING.txt \
		CREDITS.txt INSTALL.txt README.txt \
		${destroot}${prefix}/share/doc/${name}
	xinstall -m 644 -W ${worksrcpath}/examples getConfig.py version.py \
		${destroot}${prefix}/share/doc/${name}/examples
}
