Files
Lawrence Velázquez 34b3070336 Remove all $Id$ lines
for pf in */*/Portfile
do
    ed -s "$pf" <<-'EOF'
	1,3g/^[[:space:]]*#[[:space:]]*\$Id.*\$[[:space:]]*$/d
	1g/^[[:space:]]*$/d
	w
	q
	EOF
done
2016-12-28 18:14:04 +01:00

42 lines
1.3 KiB
Plaintext

PortSystem 1.0
PortGroup python 1.0
name py-netdevicelib
version 0.1
revision 1
categories-append net
license LGPL-2.1
platforms darwin freebsd
supported_archs noarch
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
python.versions 27
if {${name} ne ${subport}} {
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/${subport}
xinstall -m 644 -W ${worksrcpath}/examples getConfig.py version.py \
${destroot}${prefix}/share/doc/${subport}/examples
}
}