blob: 1055fa42a97c25973a03c81a6af66b9b12ade3be [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -05001SUMMARY = "NVMe management command line interface"
2AUTHOR = "Stefan Wiehler <stefan.wiehler@missinglinkelectronics.com>"
3HOMEPAGE = "https://github.com/linux-nvme/nvme-cli"
4SECTION = "console/utils"
Andrew Geissler9aee5002022-03-30 16:27:02 +00005LICENSE = "GPL-2.0-only"
Andrew Geissler82c905d2020-04-13 13:39:40 -05006LIC_FILES_CHKSUM = "file://LICENSE;md5=8264535c0c4e9c6c335635c4026a8022"
7DEPENDS = "util-linux"
8PV .= "+git${SRCPV}"
9
Andrew Geissler595f6302022-01-24 19:11:47 +000010SRC_URI = "git://github.com/linux-nvme/nvme-cli.git;branch=master;protocol=https"
Andrew Geissler4b7c1152020-11-30 19:55:29 -060011SRCREV = "f0e9569df9289d6ee55ba2c23615cc7c73a9b088"
Andrew Geissler82c905d2020-04-13 13:39:40 -050012
13S = "${WORKDIR}/git"
14
15inherit bash-completion systemd
16
17do_install() {
18 oe_runmake install-spec DESTDIR=${D} PREFIX=${prefix} \
19 UDEVDIR=${nonarch_base_libdir}/udev SYSTEMDDIR=${systemd_unitdir}
20}
21
Patrick Williams213cb262021-08-07 19:21:33 -050022pkg_postinst_ontarget:${PN}() {
Andrew Geissler82c905d2020-04-13 13:39:40 -050023 ${sbindir}/nvme gen-hostnqn > ${sysconfdir}/nvme/hostnqn
24 ${bindir}/uuidgen > ${sysconfdir}/nvme/hostid
25}
26
27PACKAGES =+ "${PN}-dracut ${PN}-zsh-completion"
28
Patrick Williams213cb262021-08-07 19:21:33 -050029FILES:${PN} += "${systemd_system_unitdir}"
30FILES:${PN}-dracut = "${nonarch_libdir}/dracut/dracut.conf.d"
31FILES:${PN}-zsh-completion = "${datadir}/zsh/site-functions"
Andrew Geissler82c905d2020-04-13 13:39:40 -050032
Patrick Williams213cb262021-08-07 19:21:33 -050033RDEPENDS:${PN} = "util-linux-uuidgen"