* [ptxdist] [PATCH v2 1/2] python3-configshell: new package
@ 2020-09-21 8:30 Lucas Stach
2020-09-21 8:30 ` [ptxdist] [PATCH v2 2/2] nvmetcli: " Lucas Stach
2020-10-06 8:18 ` [ptxdist] [APPLIED] python3-configshell: " Michael Olbrich
0 siblings, 2 replies; 4+ messages in thread
From: Lucas Stach @ 2020-09-21 8:30 UTC (permalink / raw)
To: ptxdist
A framework to implement simple but nice CLIs.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
v2: Use proper SPDX license tag.
---
rules/python3-configshell.in | 11 +++++++
rules/python3-configshell.make | 55 ++++++++++++++++++++++++++++++++++
2 files changed, 66 insertions(+)
create mode 100644 rules/python3-configshell.in
create mode 100644 rules/python3-configshell.make
diff --git a/rules/python3-configshell.in b/rules/python3-configshell.in
new file mode 100644
index 000000000000..e83bd2d6f6fe
--- /dev/null
+++ b/rules/python3-configshell.in
@@ -0,0 +1,11 @@
+## SECTION=python3
+
+config PYTHON3_CONFIGSHELL
+ tristate
+ select PYTHON3
+ select PYTHON3_SIX
+ select PYTHON3_READLINE
+ select PYTHON3_PYPARSING
+ prompt "python3-configshell"
+ help
+ A framework to implement simple but nice CLIs.
diff --git a/rules/python3-configshell.make b/rules/python3-configshell.make
new file mode 100644
index 000000000000..60642b987e9b
--- /dev/null
+++ b/rules/python3-configshell.make
@@ -0,0 +1,55 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2020 by Lucas Stach <l.stach@pengutronix.de>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_PYTHON3_CONFIGSHELL) += python3-configshell
+
+#
+# Paths and names
+#
+PYTHON3_CONFIGSHELL_VERSION := 1.1.28
+PYTHON3_CONFIGSHELL_MD5 := effc6c44784e5cd77e2eacd07bef494d
+PYTHON3_CONFIGSHELL := configshell-fb-$(PYTHON3_CONFIGSHELL_VERSION)
+PYTHON3_CONFIGSHELL_SUFFIX := tar.gz
+PYTHON3_CONFIGSHELL_URL := https://pypi.io/packages/source/c/configshell-fb/$(PYTHON3_CONFIGSHELL).$(PYTHON3_CONFIGSHELL_SUFFIX)
+PYTHON3_CONFIGSHELL_SOURCE := $(SRCDIR)/$(PYTHON3_CONFIGSHELL).$(PYTHON3_CONFIGSHELL_SUFFIX)
+PYTHON3_CONFIGSHELL_DIR := $(BUILDDIR)/$(PYTHON3_CONFIGSHELL)
+PYTHON3_CONFIGSHELL_LICENSE := Apache-2.0
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+#
+# python3
+#
+PYTHON3_CONFIGSHELL_CONF_TOOL := python3
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/python3-configshell.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, python3-configshell)
+ @$(call install_fixup, python3-configshell,PRIORITY,optional)
+ @$(call install_fixup, python3-configshell,SECTION,base)
+ @$(call install_fixup, python3-configshell,AUTHOR,"Lucas Stach <l.stach@pengutronix.de>")
+ @$(call install_fixup, python3-configshell,DESCRIPTION,missing)
+
+ @$(call install_glob, python3-configshell, 0, 0, -, \
+ $(PYTHON3_SITEPACKAGES)/configshell_fb,, *.py)
+
+ @$(call install_finish, python3-configshell)
+
+ @$(call touch)
+
+# vim: syntax=make
--
2.20.1
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
^ permalink raw reply [flat|nested] 4+ messages in thread
* [ptxdist] [PATCH v2 2/2] nvmetcli: new package
2020-09-21 8:30 [ptxdist] [PATCH v2 1/2] python3-configshell: new package Lucas Stach
@ 2020-09-21 8:30 ` Lucas Stach
2020-10-06 8:18 ` [ptxdist] [APPLIED] " Michael Olbrich
2020-10-06 8:18 ` [ptxdist] [APPLIED] python3-configshell: " Michael Olbrich
1 sibling, 1 reply; 4+ messages in thread
From: Lucas Stach @ 2020-09-21 8:30 UTC (permalink / raw)
To: ptxdist
nvmetcli is a program used for viewing, editing, saving, and starting a
Linux kernel NVMe Target, used for an NVMe-over-Fabrics network
configuration. It allows an administrator to export a storage resource
(such as NVMe devices, files, and volumes) to a local block device and
expose them to remote systems based on the NVMe-over-Fabrics
specification from http://www.nvmexpress.org.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
v2:
- use proper SPDX license tag
- fix systemd service option
---
projectroot/etc/nvmet/config.json | 0
rules/nvmetcli.in | 29 +++++++++++
rules/nvmetcli.make | 81 +++++++++++++++++++++++++++++++
3 files changed, 110 insertions(+)
create mode 100644 projectroot/etc/nvmet/config.json
create mode 100644 rules/nvmetcli.in
create mode 100644 rules/nvmetcli.make
diff --git a/projectroot/etc/nvmet/config.json b/projectroot/etc/nvmet/config.json
new file mode 100644
index 000000000000..e69de29bb2d1
diff --git a/rules/nvmetcli.in b/rules/nvmetcli.in
new file mode 100644
index 000000000000..28ec1924e27a
--- /dev/null
+++ b/rules/nvmetcli.in
@@ -0,0 +1,29 @@
+## SECTION=shell_and_console
+
+config NVMETCLI
+ tristate
+ select PYTHON3
+ select PYTHON3_SIX
+ select PYTHON3_READLINE
+ select PYTHON3_PYPARSING
+ select PYTHON3_CONFIGSHELL
+ prompt "nvmetcli"
+ help
+ nvmetcli is a program used for viewing, editing, saving, and starting
+ a Linux kernel NVMe Target, used for an NVMe-over-Fabrics network
+ configuration. It allows an administrator to export a storage
+ resource (such as NVMe devices, files, and volumes) to a local block
+ device and expose them to remote systems based on the
+ NVMe-over-Fabrics specification from http://www.nvmexpress.org.
+
+if NVMETCLI
+
+config NVMETCLI_SYSTEMD_SERVICE
+ bool
+ depends on INITMETHOD_SYSTEMD
+ prompt "install nvmet systemd service"
+ help
+ Install a systemd service to automatically restore the nvmet
+ configuration on boot.
+
+endif
diff --git a/rules/nvmetcli.make b/rules/nvmetcli.make
new file mode 100644
index 000000000000..b9e30a673e98
--- /dev/null
+++ b/rules/nvmetcli.make
@@ -0,0 +1,81 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2020 by Lucas Stach <l.stach@pengutronix.de>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_NVMETCLI) += nvmetcli
+
+#
+# Paths and names
+#
+NVMETCLI_VERSION := 0.7
+NVMETCLI_MD5 := eed70ef32d327c814345178dd35d088b
+NVMETCLI := nvmetcli-$(NVMETCLI_VERSION)
+NVMETCLI_SUFFIX := tar.gz
+NVMETCLI_URL := ftp://ftp.infradead.org/pub/nvmetcli/$(NVMETCLI).$(NVMETCLI_SUFFIX)
+NVMETCLI_SOURCE := $(SRCDIR)/$(NVMETCLI).$(NVMETCLI_SUFFIX)
+NVMETCLI_DIR := $(BUILDDIR)/$(NVMETCLI)
+NVMETCLI_LICENSE := Apache-2.0
+NVMETCLI_LICENSE_FILES := file://COPYING;md5=1dece7821bf3fd70fe1309eaa37d52a2
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+#
+# python3
+#
+NVMETCLI_CONF_TOOL := python3
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/nvmetcli.install:
+ @$(call targetinfo)
+ @$(call world/install, NVMETCLI)
+
+ifdef PTXCONF_NVMETCLI_SYSTEMD_SERVICE
+ @install -v -D -m644 $(NVMETCLI_DIR)/nvmet.service \
+ $(NVMETCLI_PKGDIR)/usr/lib/systemd/system/nvmet.service
+endif
+
+ @$(call touch)
+
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/nvmetcli.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, nvmetcli)
+ @$(call install_fixup, nvmetcli,PRIORITY,optional)
+ @$(call install_fixup, nvmetcli,SECTION,base)
+ @$(call install_fixup, nvmetcli,AUTHOR,"Lucas Stach <l.stach@pengutronix.de>")
+ @$(call install_fixup, nvmetcli,DESCRIPTION,missing)
+
+ @$(call install_glob, nvmetcli, 0, 0, -, \
+ $(PYTHON3_SITEPACKAGES)/nvmet,, *.py)
+ @$(call install_copy, nvmetcli, 0, 0, 0755, -, /usr/sbin/nvmetcli)
+
+ifdef PTXCONF_NVMETCLI_SYSTEMD_SERVICE
+ @$(call install_copy, nvmetcli, 0, 0, 0644, -, /usr/lib/systemd/system/nvmet.service)
+ @$(call install_link, nvmetcli, ../nvmet.service, \
+ /usr/lib/systemd/system/multi-user.target.wants/nvmet.service)
+
+ @$(call install_alternative, nvmetcli, 0, 0, 0644, /etc/nvmet/config.json)
+endif
+
+ @$(call install_finish, nvmetcli)
+
+ @$(call touch)
+
+# vim: syntax=make
--
2.20.1
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [ptxdist] [APPLIED] python3-configshell: new package
2020-09-21 8:30 [ptxdist] [PATCH v2 1/2] python3-configshell: new package Lucas Stach
2020-09-21 8:30 ` [ptxdist] [PATCH v2 2/2] nvmetcli: " Lucas Stach
@ 2020-10-06 8:18 ` Michael Olbrich
1 sibling, 0 replies; 4+ messages in thread
From: Michael Olbrich @ 2020-10-06 8:18 UTC (permalink / raw)
To: ptxdist; +Cc: Lucas Stach
Thanks, applied as 623c1c6127ce501e628649facb24160fd6eea3da.
Michael
[sent from post-receive hook]
On Tue, 06 Oct 2020 10:18:36 +0200, Lucas Stach <l.stach@pengutronix.de> wrote:
> A framework to implement simple but nice CLIs.
>
> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
> Message-Id: <20200921083057.4074995-1-l.stach@pengutronix.de>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
>
> diff --git a/rules/python3-configshell.in b/rules/python3-configshell.in
> new file mode 100644
> index 000000000000..e83bd2d6f6fe
> --- /dev/null
> +++ b/rules/python3-configshell.in
> @@ -0,0 +1,11 @@
> +## SECTION=python3
> +
> +config PYTHON3_CONFIGSHELL
> + tristate
> + select PYTHON3
> + select PYTHON3_SIX
> + select PYTHON3_READLINE
> + select PYTHON3_PYPARSING
> + prompt "python3-configshell"
> + help
> + A framework to implement simple but nice CLIs.
> diff --git a/rules/python3-configshell.make b/rules/python3-configshell.make
> new file mode 100644
> index 000000000000..60642b987e9b
> --- /dev/null
> +++ b/rules/python3-configshell.make
> @@ -0,0 +1,55 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2020 by Lucas Stach <l.stach@pengutronix.de>
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +PACKAGES-$(PTXCONF_PYTHON3_CONFIGSHELL) += python3-configshell
> +
> +#
> +# Paths and names
> +#
> +PYTHON3_CONFIGSHELL_VERSION := 1.1.28
> +PYTHON3_CONFIGSHELL_MD5 := effc6c44784e5cd77e2eacd07bef494d
> +PYTHON3_CONFIGSHELL := configshell-fb-$(PYTHON3_CONFIGSHELL_VERSION)
> +PYTHON3_CONFIGSHELL_SUFFIX := tar.gz
> +PYTHON3_CONFIGSHELL_URL := https://pypi.io/packages/source/c/configshell-fb/$(PYTHON3_CONFIGSHELL).$(PYTHON3_CONFIGSHELL_SUFFIX)
> +PYTHON3_CONFIGSHELL_SOURCE := $(SRCDIR)/$(PYTHON3_CONFIGSHELL).$(PYTHON3_CONFIGSHELL_SUFFIX)
> +PYTHON3_CONFIGSHELL_DIR := $(BUILDDIR)/$(PYTHON3_CONFIGSHELL)
> +PYTHON3_CONFIGSHELL_LICENSE := Apache-2.0
> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +#
> +# python3
> +#
> +PYTHON3_CONFIGSHELL_CONF_TOOL := python3
> +
> +# ----------------------------------------------------------------------------
> +# Target-Install
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/python3-configshell.targetinstall:
> + @$(call targetinfo)
> +
> + @$(call install_init, python3-configshell)
> + @$(call install_fixup, python3-configshell,PRIORITY,optional)
> + @$(call install_fixup, python3-configshell,SECTION,base)
> + @$(call install_fixup, python3-configshell,AUTHOR,"Lucas Stach <l.stach@pengutronix.de>")
> + @$(call install_fixup, python3-configshell,DESCRIPTION,missing)
> +
> + @$(call install_glob, python3-configshell, 0, 0, -, \
> + $(PYTHON3_SITEPACKAGES)/configshell_fb,, *.py)
> +
> + @$(call install_finish, python3-configshell)
> +
> + @$(call touch)
> +
> +# vim: syntax=make
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [ptxdist] [APPLIED] nvmetcli: new package
2020-09-21 8:30 ` [ptxdist] [PATCH v2 2/2] nvmetcli: " Lucas Stach
@ 2020-10-06 8:18 ` Michael Olbrich
0 siblings, 0 replies; 4+ messages in thread
From: Michael Olbrich @ 2020-10-06 8:18 UTC (permalink / raw)
To: ptxdist; +Cc: Lucas Stach
Thanks, applied as 03bd1cb4dae32dd75da41a1a80d4355be4e5bef7.
Michael
[sent from post-receive hook]
On Tue, 06 Oct 2020 10:18:37 +0200, Lucas Stach <l.stach@pengutronix.de> wrote:
> nvmetcli is a program used for viewing, editing, saving, and starting a
> Linux kernel NVMe Target, used for an NVMe-over-Fabrics network
> configuration. It allows an administrator to export a storage resource
> (such as NVMe devices, files, and volumes) to a local block device and
> expose them to remote systems based on the NVMe-over-Fabrics
> specification from http://www.nvmexpress.org.
>
> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
> Message-Id: <20200921083057.4074995-2-l.stach@pengutronix.de>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
>
> diff --git a/projectroot/etc/nvmet/config.json b/projectroot/etc/nvmet/config.json
> new file mode 100644
> index 000000000000..e69de29bb2d1
> diff --git a/rules/nvmetcli.in b/rules/nvmetcli.in
> new file mode 100644
> index 000000000000..28ec1924e27a
> --- /dev/null
> +++ b/rules/nvmetcli.in
> @@ -0,0 +1,29 @@
> +## SECTION=shell_and_console
> +
> +config NVMETCLI
> + tristate
> + select PYTHON3
> + select PYTHON3_SIX
> + select PYTHON3_READLINE
> + select PYTHON3_PYPARSING
> + select PYTHON3_CONFIGSHELL
> + prompt "nvmetcli"
> + help
> + nvmetcli is a program used for viewing, editing, saving, and starting
> + a Linux kernel NVMe Target, used for an NVMe-over-Fabrics network
> + configuration. It allows an administrator to export a storage
> + resource (such as NVMe devices, files, and volumes) to a local block
> + device and expose them to remote systems based on the
> + NVMe-over-Fabrics specification from http://www.nvmexpress.org.
> +
> +if NVMETCLI
> +
> +config NVMETCLI_SYSTEMD_SERVICE
> + bool
> + depends on INITMETHOD_SYSTEMD
> + prompt "install nvmet systemd service"
> + help
> + Install a systemd service to automatically restore the nvmet
> + configuration on boot.
> +
> +endif
> diff --git a/rules/nvmetcli.make b/rules/nvmetcli.make
> new file mode 100644
> index 000000000000..b9e30a673e98
> --- /dev/null
> +++ b/rules/nvmetcli.make
> @@ -0,0 +1,81 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2020 by Lucas Stach <l.stach@pengutronix.de>
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +PACKAGES-$(PTXCONF_NVMETCLI) += nvmetcli
> +
> +#
> +# Paths and names
> +#
> +NVMETCLI_VERSION := 0.7
> +NVMETCLI_MD5 := eed70ef32d327c814345178dd35d088b
> +NVMETCLI := nvmetcli-$(NVMETCLI_VERSION)
> +NVMETCLI_SUFFIX := tar.gz
> +NVMETCLI_URL := ftp://ftp.infradead.org/pub/nvmetcli/$(NVMETCLI).$(NVMETCLI_SUFFIX)
> +NVMETCLI_SOURCE := $(SRCDIR)/$(NVMETCLI).$(NVMETCLI_SUFFIX)
> +NVMETCLI_DIR := $(BUILDDIR)/$(NVMETCLI)
> +NVMETCLI_LICENSE := Apache-2.0
> +NVMETCLI_LICENSE_FILES := file://COPYING;md5=1dece7821bf3fd70fe1309eaa37d52a2
> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +#
> +# python3
> +#
> +NVMETCLI_CONF_TOOL := python3
> +
> +# ----------------------------------------------------------------------------
> +# Install
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/nvmetcli.install:
> + @$(call targetinfo)
> + @$(call world/install, NVMETCLI)
> +
> +ifdef PTXCONF_NVMETCLI_SYSTEMD_SERVICE
> + @install -v -D -m644 $(NVMETCLI_DIR)/nvmet.service \
> + $(NVMETCLI_PKGDIR)/usr/lib/systemd/system/nvmet.service
> +endif
> +
> + @$(call touch)
> +
> +
> +# ----------------------------------------------------------------------------
> +# Target-Install
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/nvmetcli.targetinstall:
> + @$(call targetinfo)
> +
> + @$(call install_init, nvmetcli)
> + @$(call install_fixup, nvmetcli,PRIORITY,optional)
> + @$(call install_fixup, nvmetcli,SECTION,base)
> + @$(call install_fixup, nvmetcli,AUTHOR,"Lucas Stach <l.stach@pengutronix.de>")
> + @$(call install_fixup, nvmetcli,DESCRIPTION,missing)
> +
> + @$(call install_glob, nvmetcli, 0, 0, -, \
> + $(PYTHON3_SITEPACKAGES)/nvmet,, *.py)
> + @$(call install_copy, nvmetcli, 0, 0, 0755, -, /usr/sbin/nvmetcli)
> +
> +ifdef PTXCONF_NVMETCLI_SYSTEMD_SERVICE
> + @$(call install_copy, nvmetcli, 0, 0, 0644, -, /usr/lib/systemd/system/nvmet.service)
> + @$(call install_link, nvmetcli, ../nvmet.service, \
> + /usr/lib/systemd/system/multi-user.target.wants/nvmet.service)
> +
> + @$(call install_alternative, nvmetcli, 0, 0, 0644, /etc/nvmet/config.json)
> +endif
> +
> + @$(call install_finish, nvmetcli)
> +
> + @$(call touch)
> +
> +# vim: syntax=make
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-10-06 8:18 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-21 8:30 [ptxdist] [PATCH v2 1/2] python3-configshell: new package Lucas Stach
2020-09-21 8:30 ` [ptxdist] [PATCH v2 2/2] nvmetcli: " Lucas Stach
2020-10-06 8:18 ` [ptxdist] [APPLIED] " Michael Olbrich
2020-10-06 8:18 ` [ptxdist] [APPLIED] python3-configshell: " Michael Olbrich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox