You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-03-31 14:42:53 -07:00
41 lines
1.2 KiB
Plaintext
41 lines
1.2 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 any} 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
|
|
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
|
|
}
|
|
}
|