From 54d25dc2025313aeedcb4340329b564ecd6d1105 Mon Sep 17 00:00:00 2001 From: Christophe Vu-Brugier Date: Thu, 27 Jul 2023 22:53:09 +0200 Subject: nvme-cli: upgrade 1.13 -> 2.5 Signed-off-by: Christophe Vu-Brugier Signed-off-by: Khem Raj --- meta-oe/recipes-bsp/nvme-cli/nvme-cli_1.13.bb | 33 --------------------------- meta-oe/recipes-bsp/nvme-cli/nvme-cli_2.5.bb | 31 +++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 33 deletions(-) delete mode 100644 meta-oe/recipes-bsp/nvme-cli/nvme-cli_1.13.bb create mode 100644 meta-oe/recipes-bsp/nvme-cli/nvme-cli_2.5.bb (limited to 'meta-oe') diff --git a/meta-oe/recipes-bsp/nvme-cli/nvme-cli_1.13.bb b/meta-oe/recipes-bsp/nvme-cli/nvme-cli_1.13.bb deleted file mode 100644 index 1055fa42a9..0000000000 --- a/meta-oe/recipes-bsp/nvme-cli/nvme-cli_1.13.bb +++ /dev/null @@ -1,33 +0,0 @@ -SUMMARY = "NVMe management command line interface" -AUTHOR = "Stefan Wiehler " -HOMEPAGE = "https://github.com/linux-nvme/nvme-cli" -SECTION = "console/utils" -LICENSE = "GPL-2.0-only" -LIC_FILES_CHKSUM = "file://LICENSE;md5=8264535c0c4e9c6c335635c4026a8022" -DEPENDS = "util-linux" -PV .= "+git${SRCPV}" - -SRC_URI = "git://github.com/linux-nvme/nvme-cli.git;branch=master;protocol=https" -SRCREV = "f0e9569df9289d6ee55ba2c23615cc7c73a9b088" - -S = "${WORKDIR}/git" - -inherit bash-completion systemd - -do_install() { - oe_runmake install-spec DESTDIR=${D} PREFIX=${prefix} \ - UDEVDIR=${nonarch_base_libdir}/udev SYSTEMDDIR=${systemd_unitdir} -} - -pkg_postinst_ontarget:${PN}() { - ${sbindir}/nvme gen-hostnqn > ${sysconfdir}/nvme/hostnqn - ${bindir}/uuidgen > ${sysconfdir}/nvme/hostid -} - -PACKAGES =+ "${PN}-dracut ${PN}-zsh-completion" - -FILES:${PN} += "${systemd_system_unitdir}" -FILES:${PN}-dracut = "${nonarch_libdir}/dracut/dracut.conf.d" -FILES:${PN}-zsh-completion = "${datadir}/zsh/site-functions" - -RDEPENDS:${PN} = "util-linux-uuidgen" diff --git a/meta-oe/recipes-bsp/nvme-cli/nvme-cli_2.5.bb b/meta-oe/recipes-bsp/nvme-cli/nvme-cli_2.5.bb new file mode 100644 index 0000000000..dd273e24d0 --- /dev/null +++ b/meta-oe/recipes-bsp/nvme-cli/nvme-cli_2.5.bb @@ -0,0 +1,31 @@ +SUMMARY = "NVMe management command line interface" +AUTHOR = "Stefan Wiehler " +HOMEPAGE = "https://github.com/linux-nvme/nvme-cli" +SECTION = "console/utils" +LICENSE = "GPL-2.0-only & CC0-1.0 & MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=8264535c0c4e9c6c335635c4026a8022 \ + file://ccan/licenses/CC0;md5=c17af43b05840255a6fedc5eda9d56cc \ + file://ccan/licenses/BSD-MIT;md5=838c366f69b72c5df05c96dff79b35f2" +DEPENDS = "json-c libnvme" +SRCREV = "d6c07e0de9be777009ebb9ab7475bee1ae3e0e95" + +SRC_URI = "git://github.com/linux-nvme/nvme-cli.git;branch=master;protocol=https" + +S = "${WORKDIR}/git" + +inherit bash-completion meson pkgconfig systemd + +EXTRA_OEMESON += "-Dsystemddir=${systemd_unitdir}/system" + +pkg_postinst_ontarget:${PN}() { + ${sbindir}/nvme gen-hostnqn > ${sysconfdir}/nvme/hostnqn + ${bindir}/uuidgen > ${sysconfdir}/nvme/hostid +} + +PACKAGES =+ "${PN}-dracut ${PN}-zsh-completion" + +FILES:${PN} += "${systemd_system_unitdir}" +FILES:${PN}-dracut = "${nonarch_libdir}/dracut/dracut.conf.d" +FILES:${PN}-zsh-completion = "${datadir}/zsh/site-functions" + +RDEPENDS:${PN} = "util-linux-uuidgen" -- cgit v1.2.3-54-g00ecf