diff --git a/net-mgmt/Makefile b/net-mgmt/Makefile index 459285660b8e..2710697df829 100644 --- a/net-mgmt/Makefile +++ b/net-mgmt/Makefile @@ -162,6 +162,7 @@ SUBDIR += py-flowtools SUBDIR += py-ipy SUBDIR += py-snmp + SUBDIR += py-snmp2 SUBDIR += py-snmp4 SUBDIR += py-snmp4-apps SUBDIR += py-snmp4-mibs diff --git a/net-mgmt/py-snmp2/Makefile b/net-mgmt/py-snmp2/Makefile new file mode 100644 index 000000000000..4115b3287ab1 --- /dev/null +++ b/net-mgmt/py-snmp2/Makefile @@ -0,0 +1,37 @@ +# New ports collection makefile for: py-snmp2 +# Date created: 16 Aug 2006 +# Whom: Dmitriy Kirhlarov +# +# $FreeBSD$ +# + +PORTNAME= snmp2 +PORTVERSION= 2.0.9 +CATEGORIES= net-mgmt python +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= pysnmp +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= pysnmp-${PORTVERSION} + +MAINTAINER= dimma@higis.ru +COMMENT= SNMP framework for Python + +CONFLICTS= py??-snmp4-[0-9]* py??-snmp-3.* + +USE_PYTHON= yes +USE_PYDISTUTILS=yes +EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME} +DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME} +MYPORTDOCS= CHANGES LICENSE MANIFEST PKG-INFO README contribution/WARNING + +.if !defined(NOPORTDOCS) +post-install: + ${MKDIR} ${EXAMPLESDIR} + ${TAR} -C ${WRKSRC}/examples -cf - . | ${TAR} -C ${EXAMPLESDIR} -xf - + ${MKDIR} ${DOCSDIR} + ${TAR} -C ${WRKSRC}/html -cf - . | ${TAR} -C ${DOCSDIR} -xf - + ${TAR} -C ${WRKSRC}/ -cf - ${MYPORTDOCS} | ${TAR} -C ${DOCSDIR} -xf - + +.endif + +.include diff --git a/net-mgmt/py-snmp2/distinfo b/net-mgmt/py-snmp2/distinfo new file mode 100644 index 000000000000..657a8ca88012 --- /dev/null +++ b/net-mgmt/py-snmp2/distinfo @@ -0,0 +1,3 @@ +MD5 (pysnmp-2.0.9.tar.gz) = 366c3a9f6a28851af93145c09c17e370 +SHA256 (pysnmp-2.0.9.tar.gz) = efd598408d6a92661357976a83170dc3c2eb415703bb8bf0952855ed917b8f14 +SIZE (pysnmp-2.0.9.tar.gz) = 43433 diff --git a/net-mgmt/py-snmp2/pkg-descr b/net-mgmt/py-snmp2/pkg-descr new file mode 100644 index 000000000000..6519d49bfd8d --- /dev/null +++ b/net-mgmt/py-snmp2/pkg-descr @@ -0,0 +1,5 @@ +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. + +WWW: http://pysnmp.sourceforge.net/ diff --git a/net-mgmt/py-snmp2/pkg-plist b/net-mgmt/py-snmp2/pkg-plist new file mode 100644 index 000000000000..05aeebd3be5e --- /dev/null +++ b/net-mgmt/py-snmp2/pkg-plist @@ -0,0 +1,73 @@ +%%PYTHON_SITELIBDIR%%/pysnmp/__init__.py +%%PYTHON_SITELIBDIR%%/pysnmp/__init__.pyc +%%PYTHON_SITELIBDIR%%/pysnmp/__init__.pyo +%%PYTHON_SITELIBDIR%%/pysnmp/asn1.py +%%PYTHON_SITELIBDIR%%/pysnmp/asn1.pyc +%%PYTHON_SITELIBDIR%%/pysnmp/asn1.pyo +%%PYTHON_SITELIBDIR%%/pysnmp/asynrole.py +%%PYTHON_SITELIBDIR%%/pysnmp/asynrole.pyc +%%PYTHON_SITELIBDIR%%/pysnmp/asynrole.pyo +%%PYTHON_SITELIBDIR%%/pysnmp/bulkrole.py +%%PYTHON_SITELIBDIR%%/pysnmp/bulkrole.pyc +%%PYTHON_SITELIBDIR%%/pysnmp/bulkrole.pyo +%%PYTHON_SITELIBDIR%%/pysnmp/error.py +%%PYTHON_SITELIBDIR%%/pysnmp/error.pyc +%%PYTHON_SITELIBDIR%%/pysnmp/error.pyo +%%PYTHON_SITELIBDIR%%/pysnmp/role.py +%%PYTHON_SITELIBDIR%%/pysnmp/role.pyc +%%PYTHON_SITELIBDIR%%/pysnmp/role.pyo +%%PYTHON_SITELIBDIR%%/pysnmp/v1.py +%%PYTHON_SITELIBDIR%%/pysnmp/v1.pyc +%%PYTHON_SITELIBDIR%%/pysnmp/v1.pyo +%%PYTHON_SITELIBDIR%%/pysnmp/v2c.py +%%PYTHON_SITELIBDIR%%/pysnmp/v2c.pyc +%%PYTHON_SITELIBDIR%%/pysnmp/v2c.pyo +%%PORTDOCS%%%%DOCSDIR%%/CHANGES +%%PORTDOCS%%%%DOCSDIR%%/LICENSE +%%PORTDOCS%%%%DOCSDIR%%/MANIFEST +%%PORTDOCS%%%%DOCSDIR%%/PKG-INFO +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/asn1-integer-objects.html +%%PORTDOCS%%%%DOCSDIR%%/asn1-ipaddress-objects.html +%%PORTDOCS%%%%DOCSDIR%%/asn1-null-objects.html +%%PORTDOCS%%%%DOCSDIR%%/asn1-objectid-objects.html +%%PORTDOCS%%%%DOCSDIR%%/asn1-octetstring-objects.html +%%PORTDOCS%%%%DOCSDIR%%/asn1.html +%%PORTDOCS%%%%DOCSDIR%%/asynrole-objects-agent.html +%%PORTDOCS%%%%DOCSDIR%%/asynrole-objects-manager.html +%%PORTDOCS%%%%DOCSDIR%%/asynrole.html +%%PORTDOCS%%%%DOCSDIR%%/bulkrole-manager-objects.html +%%PORTDOCS%%%%DOCSDIR%%/bulkrole.html +%%PORTDOCS%%%%DOCSDIR%%/contribution/WARNING +%%PORTDOCS%%%%DOCSDIR%%/error-objects.html +%%PORTDOCS%%%%DOCSDIR%%/error.html +%%PORTDOCS%%%%DOCSDIR%%/intro.html +%%PORTDOCS%%%%DOCSDIR%%/role-agent-objects.html +%%PORTDOCS%%%%DOCSDIR%%/role-manager-objects.html +%%PORTDOCS%%%%DOCSDIR%%/role.html +%%PORTDOCS%%%%DOCSDIR%%/v1-getrequest-objects.html +%%PORTDOCS%%%%DOCSDIR%%/v1-getresponse-objects.html +%%PORTDOCS%%%%DOCSDIR%%/v1-traprequest-objects.html +%%PORTDOCS%%%%DOCSDIR%%/v1.html +%%PORTDOCS%%%%DOCSDIR%%/v2c-getbulkrequest-objects.html +%%PORTDOCS%%%%DOCSDIR%%/v2c-getrequest-objects.html +%%PORTDOCS%%%%DOCSDIR%%/v2c-response-objects.html +%%PORTDOCS%%%%DOCSDIR%%/v2c.html +%%PORTDOCS%%%%EXAMPLESDIR%%/asyncmgr.py +%%PORTDOCS%%%%EXAMPLESDIR%%/snmpagent.py +%%PORTDOCS%%%%EXAMPLESDIR%%/snmpbulk.py +%%PORTDOCS%%%%EXAMPLESDIR%%/snmpbulkwalk.py +%%PORTDOCS%%%%EXAMPLESDIR%%/snmpget.py +%%PORTDOCS%%%%EXAMPLESDIR%%/snmpset.py +%%PORTDOCS%%%%EXAMPLESDIR%%/snmptrap.py +%%PORTDOCS%%%%EXAMPLESDIR%%/snmptrapd.py +%%PORTDOCS%%%%EXAMPLESDIR%%/snmpwalk.py +%%PORTDOCS%%@dirrm share/nls/en_US.US-ASCII +%%PORTDOCS%%@dirrm share/nls/POSIX +%%PORTDOCS%%@dirrm %%PORTDOCS%%%%EXAMPLESDIR%% +%%PORTDOCS%%@dirrm %%PORTDOCS%%%%DOCSDIR%%/contribution +%%PORTDOCS%%@dirrm %%PORTDOCS%%%%DOCSDIR%% +%%PORTDOCS%%@dirrm %%PYTHON_SITELIBDIR%%/pysnmp +%%PORTDOCS%%@dirrm %%PYTHON_SITELIBDIR%% +%%PORTDOCS%%@dirrm lib/python2.4 +%%PORTDOCS%%@dirrm %%DOCSDIR%%