# $Id: Portfile,v 1.3 2004/12/31 16:57:08 mww Exp $

PortSystem 1.0
PortGroup python24 1.0

name			py-netdevicelib
version			0.1
revision		1
categories		python net
platforms		darwin freebsd
maintainers		mww@opendarwin.org
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
}
