package/snmpclitools: new package
authorAsaf Kahlon <asafka7@gmail.com>
Wed, 9 Oct 2019 17:24:21 +0000 (20:24 +0300)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Tue, 22 Oct 2019 21:18:19 +0000 (23:18 +0200)
For now, we use PKG-INFO as license file, since LICENSE.rst isn't
provided with the tarball.
A pull request was sent upstream:
https://github.com/etingof/snmpclitools/pull/11

Signed-off-by: Asaf Kahlon <asafka7@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
DEVELOPERS
package/Config.in
package/snmpclitools/Config.in [new file with mode: 0644]
package/snmpclitools/snmpclitools.hash [new file with mode: 0644]
package/snmpclitools/snmpclitools.mk [new file with mode: 0644]

index 8f40eef790dc5f32e63e4a06c1dab27e5caf8c2a..4f958da22c3428b4a6c2a47f66d45eb121c8f43b 100644 (file)
@@ -235,6 +235,7 @@ N:  Asaf Kahlon <asafka7@gmail.com>
 F:     package/collectd/
 F:     package/libuv/
 F:     package/python*
+F:     package/snmpclitools/
 F:     package/spdlog/
 F:     package/uftp/
 F:     package/zeromq/
index 467c5861d527c2ea8b48d774a1cd2d92f3bdddf3..a12ffe93f0d03190a89b3d17a9ecf3054cb445be 100644 (file)
@@ -2084,6 +2084,7 @@ endif
        source "package/shellinabox/Config.in"
        source "package/smcroute/Config.in"
        source "package/sngrep/Config.in"
+       source "package/snmpclitools/Config.in"
        source "package/snort/Config.in"
        source "package/socat/Config.in"
        source "package/socketcand/Config.in"
diff --git a/package/snmpclitools/Config.in b/package/snmpclitools/Config.in
new file mode 100644 (file)
index 0000000..00bf599
--- /dev/null
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_SNMPCLITOOLS
+       bool "snmpclitools"
+       depends on BR2_PACKAGE_PYTHON || BR2_PACKAGE_PYTHON3
+       select BR2_PACKAGE_PYTHON_PYSMI # runtime
+       select BR2_PACKAGE_PYTHON_PYSNMP # runtime
+       help
+         SNMP command-line tools.
+
+         https://github.com/etingof/snmpclitools
diff --git a/package/snmpclitools/snmpclitools.hash b/package/snmpclitools/snmpclitools.hash
new file mode 100644 (file)
index 0000000..4dcbdcb
--- /dev/null
@@ -0,0 +1,5 @@
+# md5, sha256 from https://pypi.org/pypi/snmpclitools/json
+md5    132b100f5e7b80715e6c1d424e89687c  snmpclitools-0.6.4.tar.gz
+sha256 820c45de419bf355c845a96610a395ec18a15176ac0362d388da7740266ea1ac  snmpclitools-0.6.4.tar.gz
+# Locally computed sha256 checksums
+sha256 ed5561a0f5b75e93aa026c1b9fdef58e7ccbf6b2e9a2458be732afc288209d23  PKG-INFO
diff --git a/package/snmpclitools/snmpclitools.mk b/package/snmpclitools/snmpclitools.mk
new file mode 100644 (file)
index 0000000..a4a90e5
--- /dev/null
@@ -0,0 +1,13 @@
+################################################################################
+#
+# snmpclitools
+#
+################################################################################
+
+SNMPCLITOOLS_VERSION = 0.6.4
+SNMPCLITOOLS_SITE = https://files.pythonhosted.org/packages/03/2a/8488828e92a82c5416e33fba6089283162937b0f73e5b15205fb6ec3bbea
+SNMPCLITOOLS_SETUP_TYPE = setuptools
+SNMPCLITOOLS_LICENSE = BSD-2-Clause
+SNMPCLITOOLS_LICENSE_FILES = PKG-INFO
+
+$(eval $(python-package))