python-pysnmp: new package
authorRyan Barnett <ryanbarnett3@gmail.com>
Wed, 11 Dec 2013 20:27:09 +0000 (21:27 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Sun, 15 Dec 2013 13:01:01 +0000 (14:01 +0100)
Signed-off-by: Ryan Barnett <rjbarnet@rockwellcollins.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/Config.in
package/python-pysnmp/Config.in [new file with mode: 0644]
package/python-pysnmp/python-pysnmp.mk [new file with mode: 0644]

index 50307f2b9462842dce4d95b0d4ca66d9a1b722fc..017876d78f9f64daac303afe3bd489891f53bb68 100644 (file)
@@ -405,6 +405,7 @@ source "package/python-pycrypto/Config.in"
 source "package/python-pygame/Config.in"
 source "package/python-pyparsing/Config.in"
 source "package/python-pyro/Config.in"
+source "package/python-pysnmp/Config.in"
 source "package/python-pyusb/Config.in"
 source "package/python-pyzmq/Config.in"
 source "package/python-serial/Config.in"
diff --git a/package/python-pysnmp/Config.in b/package/python-pysnmp/Config.in
new file mode 100644 (file)
index 0000000..a87a4d0
--- /dev/null
@@ -0,0 +1,14 @@
+config BR2_PACKAGE_PYTHON_PYSNMP
+       bool "python-pysnmp"
+       depends on BR2_PACKAGE_PYTHON
+       depends on BR2_INSTALL_LIBSTDCPP # pyasn
+       select BR2_PACKAGE_PYTHON_PYASN
+       select BR2_PACKAGE_PYTHON_PYCRYPTO
+       help
+         PySNMP is a cross-platform, pure-Python SNMP engine
+         implementation.
+
+         http://pysnmp.sf.net
+
+comment "python-pysnmp needs a toolchain w/ C++"
+        depends on !BR2_INSTALL_LIBSTDCPP
diff --git a/package/python-pysnmp/python-pysnmp.mk b/package/python-pysnmp/python-pysnmp.mk
new file mode 100644 (file)
index 0000000..3d0f3b5
--- /dev/null
@@ -0,0 +1,17 @@
+################################################################################
+#
+# python-pysnmp
+#
+################################################################################
+
+PYTHON_PYSNMP_VERSION = 4.2.4
+PYTHON_PYSNMP_SOURCE = pysnmp-$(PYTHON_PYSNMP_VERSION).tar.gz
+PYTHON_PYSNMP_SITE = https://pypi.python.org/packages/source/p/pysnmp
+PYTHON_PYSNMP_SETUP_TYPE = setuptools
+
+PYTHON_PYSNMP_LICENSE = BSD-3c
+PYTHON_PYSNMP_LICENSE_FILES = LICENSE
+
+PYTHON_PYSNMP_DEPENDENCIES = python-pyasn python-pycrypto
+
+$(eval $(python-package))