From: Lars Pedersen <lapeddk@gmail.com>
To: ptxdist@pengutronix.de
Cc: Lars Pedersen <lapeddk@gmail.com>
Subject: [ptxdist] [PATCH v2 4/4] python3-snmpclitools: new package
Date: Mon, 12 Jul 2021 13:09:10 +0200 [thread overview]
Message-ID: <20210712110910.562587-4-lapeddk@gmail.com> (raw)
In-Reply-To: <20210712110910.562587-1-lapeddk@gmail.com>
Signed-off-by: Lars Pedersen <lapeddk@gmail.com>
---
Changes since v1:
- Updated LICENSE field to BSD-2-Clause
LICENSE.rst for this package isn't included in tarball it only exists in
GIT. I'll create a request on github to get it bundled in the next release
rules/python3-snmpclitools.in | 9 ++++++
rules/python3-snmpclitools.make | 56 +++++++++++++++++++++++++++++++++
2 files changed, 65 insertions(+)
create mode 100644 rules/python3-snmpclitools.in
create mode 100644 rules/python3-snmpclitools.make
diff --git a/rules/python3-snmpclitools.in b/rules/python3-snmpclitools.in
new file mode 100644
index 000000000..369b2bd65
--- /dev/null
+++ b/rules/python3-snmpclitools.in
@@ -0,0 +1,9 @@
+## SECTION=python3
+
+config PYTHON3_SNMPCLITOOLS
+ tristate
+ select PYTHON3
+ select PYTHON3_PYSNMP
+ prompt "snmpclitools"
+ help
+ This is a collection of command-line SNMP tools written in pure-Python
diff --git a/rules/python3-snmpclitools.make b/rules/python3-snmpclitools.make
new file mode 100644
index 000000000..7c2917187
--- /dev/null
+++ b/rules/python3-snmpclitools.make
@@ -0,0 +1,56 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2021 by Lars Pedersen <lapeddk@gmail.com>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_PYTHON3_SNMPCLITOOLS) += python3-snmpclitools
+
+#
+# Paths and names
+#
+PYTHON3_SNMPCLITOOLS_VERSION := 0.6.4
+PYTHON3_SNMPCLITOOLS_MD5 := 132b100f5e7b80715e6c1d424e89687c
+PYTHON3_SNMPCLITOOLS := snmpclitools-$(PYTHON3_SNMPCLITOOLS_VERSION)
+PYTHON3_SNMPCLITOOLS_SUFFIX := tar.gz
+PYTHON3_SNMPCLITOOLS_URL := $(call ptx/mirror-pypi, snmpclitools, $(PYTHON3_SNMPCLITOOLS).$(PYTHON3_SNMPCLITOOLS_SUFFIX))
+PYTHON3_SNMPCLITOOLS_SOURCE := $(SRCDIR)/$(PYTHON3_SNMPCLITOOLS).$(PYTHON3_SNMPCLITOOLS_SUFFIX)
+PYTHON3_SNMPCLITOOLS_DIR := $(BUILDDIR)/$(PYTHON3_SNMPCLITOOLS)
+PYTHON3_SNMPCLITOOLS_LICENSE := BSD-2-Clause
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+PYTHON3_SNMPCLITOOLS_CONF_TOOL := python3
+PYTHON3_SNMPCLITOOLS_MAKE_OPT := install_scripts
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/python3-snmpclitools.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, python3-snmpclitools)
+ @$(call install_fixup, python3-snmpclitools,PRIORITY,optional)
+ @$(call install_fixup, python3-snmpclitools,SECTION,base)
+ @$(call install_fixup, python3-snmpclitools,AUTHOR,"Lars Pedersen <lapeddk@gmail.com>")
+ @$(call install_fixup, python3-snmpclitools,DESCRIPTION,missing)
+
+ @$(call install_glob, python3-snmpclitools, 0, 0, -, \
+ $(PYTHON3_SITEPACKAGES),, *.py)
+
+ @$(call install_glob,python3-snmpclitools, 0, 0, -, \
+ /usr/bin/,*.py,)
+
+ @$(call install_finish, python3-snmpclitools)
+
+ @$(call touch)
+
+# vim: syntax=make
--
2.31.1
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
next prev parent reply other threads:[~2021-07-12 11:10 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-12 11:09 [ptxdist] [PATCH v2 1/4] python3-pyasn1: " Lars Pedersen
2021-07-12 11:09 ` [ptxdist] [PATCH v2 2/4] python3-pysmi: " Lars Pedersen
2021-07-16 10:23 ` Michael Olbrich
2021-07-16 12:24 ` Lars Pedersen
2021-07-16 12:40 ` Michael Olbrich
2021-07-22 12:12 ` [ptxdist] [APPLIED] " Michael Olbrich
2021-07-12 11:09 ` [ptxdist] [PATCH v2 3/4] python3-pysnmp: " Lars Pedersen
2021-07-16 12:41 ` Michael Olbrich
2021-07-16 12:53 ` Lars Pedersen
2021-07-16 13:02 ` Michael Olbrich
2021-07-18 19:03 ` Lars Pedersen
2021-07-19 6:48 ` Michael Olbrich
2021-07-19 7:47 ` [ptxdist] [PATCH v3] " Lars Pedersen
2021-07-22 12:12 ` [ptxdist] [APPLIED] " Michael Olbrich
2021-07-12 11:09 ` Lars Pedersen [this message]
2021-07-22 12:12 ` [ptxdist] [APPLIED] python3-snmpclitools: " Michael Olbrich
2021-07-22 12:12 ` [ptxdist] [APPLIED] python3-pyasn1: " Michael Olbrich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210712110910.562587-4-lapeddk@gmail.com \
--to=lapeddk@gmail.com \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox