aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorpat <pat@FreeBSD.org>2002-03-27 02:08:35 +0800
committerpat <pat@FreeBSD.org>2002-03-27 02:08:35 +0800
commit7ae22ece83e021089fee704391546bdf763b76ac (patch)
tree1a2825601f13c3c6121f4ec09467f14267829fdc /net
parent4cdfffe044c83c58aacce268222e97ea284db389 (diff)
downloadfreebsd-ports-gnome-7ae22ece83e021089fee704391546bdf763b76ac.tar.gz
freebsd-ports-gnome-7ae22ece83e021089fee704391546bdf763b76ac.tar.zst
freebsd-ports-gnome-7ae22ece83e021089fee704391546bdf763b76ac.zip
Add new port - SNMP framework for Python
PR: 36337 Submitted by: Hye-Shik Chang <perky@fallin.lv>
Diffstat (limited to 'net')
-rw-r--r--net/Makefile1
-rw-r--r--net/py-snmp/Makefile36
-rw-r--r--net/py-snmp/distinfo1
-rw-r--r--net/py-snmp/pkg-comment1
-rw-r--r--net/py-snmp/pkg-descr5
-rw-r--r--net/py-snmp/pkg-plist47
6 files changed, 91 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile
index 4568ea4f4a7f..9622650e7730 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -391,6 +391,7 @@
SUBDIR += py-libnet
SUBDIR += py-pcap
SUBDIR += py-smb
+ SUBDIR += py-snmp
SUBDIR += py-soap
SUBDIR += py-xmlrpc
SUBDIR += py-xmlrpclib
diff --git a/net/py-snmp/Makefile b/net/py-snmp/Makefile
new file mode 100644
index 000000000000..cc32a1626b61
--- /dev/null
+++ b/net/py-snmp/Makefile
@@ -0,0 +1,36 @@
+# New ports collection makefile for: py-snmp
+# Date created: 26 March 2002
+# Whom: Hye-Shik Chang <perky@fallin.lv>
+#
+# $FreeBSD$
+#
+
+PORTNAME= snmp
+PORTVERSION= 1.6.5
+CATEGORIES= net python
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= pysnmp
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= pysnmp-${PORTVERSION}
+
+MAINTAINER= perky@fallin.lv
+
+USE_PYTHON= yes
+EXAMPLESDIR= ${PREFIX}/share/examples/py-snmp
+DOCSDIR= ${PREFIX}/share/doc/py-snmp
+SETUP_CMD= cd ${WRKSRC} && ${PYTHON_CMD} setup.py
+
+do-build:
+ ${SETUP_CMD} build
+
+do-install:
+ ${SETUP_CMD} install -c -O1 --prefix=${PREFIX}
+
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${EXAMPLESDIR}
+ ${INSTALL_SCRIPT} ${WRKSRC}/examples/* ${EXAMPLESDIR}
+ ${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/html/* ${DOCSDIR}
+.endif
+
+.include <bsd.port.mk>
diff --git a/net/py-snmp/distinfo b/net/py-snmp/distinfo
new file mode 100644
index 000000000000..f20439b23511
--- /dev/null
+++ b/net/py-snmp/distinfo
@@ -0,0 +1 @@
+MD5 (pysnmp-1.6.5.tar.gz) = 1410ff9824f07dafe441510d9a8fc92d
diff --git a/net/py-snmp/pkg-comment b/net/py-snmp/pkg-comment
new file mode 100644
index 000000000000..ea7cb0be90e5
--- /dev/null
+++ b/net/py-snmp/pkg-comment
@@ -0,0 +1 @@
+SNMP framework for Python
diff --git a/net/py-snmp/pkg-descr b/net/py-snmp/pkg-descr
new file mode 100644
index 000000000000..6519d49bfd8d
--- /dev/null
+++ b/net/py-snmp/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/py-snmp/pkg-plist b/net/py-snmp/pkg-plist
new file mode 100644
index 000000000000..9fa0e21dc20c
--- /dev/null
+++ b/net/py-snmp/pkg-plist
@@ -0,0 +1,47 @@
+lib/%%PYTHON_VERSION%%/site-packages/pysnmp/__init__.py
+lib/%%PYTHON_VERSION%%/site-packages/pysnmp/__init__.pyc
+lib/%%PYTHON_VERSION%%/site-packages/pysnmp/__init__.pyo
+lib/%%PYTHON_VERSION%%/site-packages/pysnmp/asynsnmp.py
+lib/%%PYTHON_VERSION%%/site-packages/pysnmp/asynsnmp.pyc
+lib/%%PYTHON_VERSION%%/site-packages/pysnmp/asynsnmp.pyo
+lib/%%PYTHON_VERSION%%/site-packages/pysnmp/ber.py
+lib/%%PYTHON_VERSION%%/site-packages/pysnmp/ber.pyc
+lib/%%PYTHON_VERSION%%/site-packages/pysnmp/ber.pyo
+lib/%%PYTHON_VERSION%%/site-packages/pysnmp/error.py
+lib/%%PYTHON_VERSION%%/site-packages/pysnmp/error.pyc
+lib/%%PYTHON_VERSION%%/site-packages/pysnmp/error.pyo
+lib/%%PYTHON_VERSION%%/site-packages/pysnmp/message.py
+lib/%%PYTHON_VERSION%%/site-packages/pysnmp/message.pyc
+lib/%%PYTHON_VERSION%%/site-packages/pysnmp/message.pyo
+lib/%%PYTHON_VERSION%%/site-packages/pysnmp/msession.py
+lib/%%PYTHON_VERSION%%/site-packages/pysnmp/msession.pyc
+lib/%%PYTHON_VERSION%%/site-packages/pysnmp/msession.pyo
+lib/%%PYTHON_VERSION%%/site-packages/pysnmp/objid.py
+lib/%%PYTHON_VERSION%%/site-packages/pysnmp/objid.pyc
+lib/%%PYTHON_VERSION%%/site-packages/pysnmp/objid.pyo
+lib/%%PYTHON_VERSION%%/site-packages/pysnmp/session.py
+lib/%%PYTHON_VERSION%%/site-packages/pysnmp/session.pyc
+lib/%%PYTHON_VERSION%%/site-packages/pysnmp/session.pyo
+@dirrm lib/%%PYTHON_VERSION%%/site-packages/pysnmp
+%%PORTDOCS%%share/doc/py-snmp/asynsnmp-objects.html
+%%PORTDOCS%%share/doc/py-snmp/asynsnmp.html
+%%PORTDOCS%%share/doc/py-snmp/error-objects.html
+%%PORTDOCS%%share/doc/py-snmp/error.html
+%%PORTDOCS%%share/doc/py-snmp/message-objects.html
+%%PORTDOCS%%share/doc/py-snmp/message.html
+%%PORTDOCS%%share/doc/py-snmp/msession-objects.html
+%%PORTDOCS%%share/doc/py-snmp/msession.html
+%%PORTDOCS%%share/doc/py-snmp/objects.html
+%%PORTDOCS%%share/doc/py-snmp/pysnmp.html
+%%PORTDOCS%%share/doc/py-snmp/session-objects.html
+%%PORTDOCS%%share/doc/py-snmp/session.html
+%%PORTDOCS%%share/examples/py-snmp/async_snmpget.py
+%%PORTDOCS%%share/examples/py-snmp/snmpbulk.py
+%%PORTDOCS%%share/examples/py-snmp/snmpget.py
+%%PORTDOCS%%share/examples/py-snmp/snmpset.py
+%%PORTDOCS%%share/examples/py-snmp/snmptable.py
+%%PORTDOCS%%share/examples/py-snmp/snmptrap.py
+%%PORTDOCS%%share/examples/py-snmp/snmptrapd.py
+%%PORTDOCS%%share/examples/py-snmp/snmpwalk.py
+%%PORTDOCS%%@dirrm share/examples/py-snmp
+%%PORTDOCS%%@dirrm share/doc/py-snmp