blob: 0d8923f342cdcb75a098693fcc534ffa87c65f37 [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -05001SUMMARY = "NVMe management command line interface"
Andrew Geissler82c905d2020-04-13 13:39:40 -05002HOMEPAGE = "https://github.com/linux-nvme/nvme-cli"
3SECTION = "console/utils"
Patrick Williams2a254922023-08-11 09:48:11 -05004LICENSE = "GPL-2.0-only & CC0-1.0 & MIT"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=8264535c0c4e9c6c335635c4026a8022 \
6 file://ccan/licenses/CC0;md5=c17af43b05840255a6fedc5eda9d56cc \
7 file://ccan/licenses/BSD-MIT;md5=838c366f69b72c5df05c96dff79b35f2"
8DEPENDS = "json-c libnvme"
Andrew Geissler20137392023-10-12 04:59:14 -06009SRCREV = "bd2f882a49a14b0e21a94c928128b1979e4316fd"
Andrew Geissler82c905d2020-04-13 13:39:40 -050010
Andrew Geissler595f6302022-01-24 19:11:47 +000011SRC_URI = "git://github.com/linux-nvme/nvme-cli.git;branch=master;protocol=https"
Andrew Geissler82c905d2020-04-13 13:39:40 -050012
13S = "${WORKDIR}/git"
14
Patrick Williams2a254922023-08-11 09:48:11 -050015inherit bash-completion meson pkgconfig systemd
Andrew Geissler82c905d2020-04-13 13:39:40 -050016
Patrick Williams2a254922023-08-11 09:48:11 -050017EXTRA_OEMESON += "-Dsystemddir=${systemd_unitdir}/system"
Andrew Geissler82c905d2020-04-13 13:39:40 -050018
Patrick Williams213cb262021-08-07 19:21:33 -050019pkg_postinst_ontarget:${PN}() {
Andrew Geissler82c905d2020-04-13 13:39:40 -050020 ${sbindir}/nvme gen-hostnqn > ${sysconfdir}/nvme/hostnqn
21 ${bindir}/uuidgen > ${sysconfdir}/nvme/hostid
22}
23
24PACKAGES =+ "${PN}-dracut ${PN}-zsh-completion"
25
Patrick Williams213cb262021-08-07 19:21:33 -050026FILES:${PN} += "${systemd_system_unitdir}"
27FILES:${PN}-dracut = "${nonarch_libdir}/dracut/dracut.conf.d"
28FILES:${PN}-zsh-completion = "${datadir}/zsh/site-functions"
Andrew Geissler82c905d2020-04-13 13:39:40 -050029
Patrick Williams213cb262021-08-07 19:21:33 -050030RDEPENDS:${PN} = "util-linux-uuidgen"