[92026] trunk/dports/python/py-snmp/Portfile
jmr at macports.org
jmr at macports.org
Mon Apr 16 06:12:13 PDT 2012
Revision: 92026
https://trac.macports.org/changeset/92026
Author: jmr at macports.org
Date: 2012-04-16 06:12:12 -0700 (Mon, 16 Apr 2012)
Log Message:
-----------
py-snmp: unify, update to 4.2.1, add maintainer (#29448)
Modified Paths:
--------------
trunk/dports/python/py-snmp/Portfile
Modified: trunk/dports/python/py-snmp/Portfile
===================================================================
--- trunk/dports/python/py-snmp/Portfile 2012-04-16 12:38:18 UTC (rev 92025)
+++ trunk/dports/python/py-snmp/Portfile 2012-04-16 13:12:12 UTC (rev 92026)
@@ -1,26 +1,40 @@
# $Id$
PortSystem 1.0
-PortGroup python24 1.0
+PortGroup python 1.0
name py-snmp
-version 3.4.3
+version 4.2.1
categories python net
-maintainers nomaintainer
+license BSD
+maintainers gmail.com:valyukov openmaintainer
platforms darwin freebsd
+supported_archs noarch
description SNMP v.1 engine for python
long_description PySNMP is fully functional SNMP v.1 engine (BER \
encoders/decoders for a subset of ASN.1 data types, sockets \
based networking etc.) written entirely in python.
homepage http://pysnmp.sourceforge.net/
-master_sites ftp://ftp.glas.net/users/ilya/tools/pysnmp/ \
- sourceforge:pysnmp
+master_sites sourceforge:project/pysnmp/pysnmp/${version}
+
distname pysnmp-${version}
-checksums md5 2814bd645ae78e7dfef26e7426acad0d
+checksums md5 236ec11a4df82d63945132306c31ea0f \
+ sha1 2f87cab6a2e87c8c258072913a2dbeea1db3227b \
+ rmd160 b451841eef1c5b5a9274b923c3b1f8c1a131ab29
-post-destroot {
- file delete -force ${destroot}${prefix}/share/doc/${name}
- file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${name}
- file copy ${worksrcpath}/examples ${destroot}${prefix}/share/doc/${name}
+python.versions 24 25 26 27 31 32
+
+if {$subport != $name} {
+ depends_lib-append port:py${python.version}-asn1 \
+ port:py${python.version}-crypto
+ post-destroot {
+ file delete -force ${destroot}${prefix}/share/doc/${subport}
+ file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${subport}
+ file copy ${worksrcpath}/examples ${destroot}${prefix}/share/doc/${subport}
+ if {${python.version} <= 25} {
+ move ${destroot}${prefix}/bin/build-pysnmp-mib ${destroot}${prefix}/bin/build-pysnmp-mib-${python.branch}
+ move ${destroot}${prefix}/bin/libsmi2pysnmp ${destroot}${prefix}/bin/libsmi2pysnmp-${python.branch}
+ }
+ }
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120416/5fccf54f/attachment.html>
More information about the macports-changes
mailing list