blob: 4f4bb2dfab11977bb9a8a7dddce42386d6da7e97 [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"
5LICENSE = "GPLv2"
6LIC_FILES_CHKSUM = "file://LICENSE;md5=8264535c0c4e9c6c335635c4026a8022"
7DEPENDS = "util-linux"
8PV .= "+git${SRCPV}"
9
10SRC_URI = "git://github.com/linux-nvme/nvme-cli.git \
11 file://0001-fix-musl-compilation.patch \
12"
13SRCREV = "1d84d6ae0c7d7ceff5a73fe174dde8b0005f6108"
14
15S = "${WORKDIR}/git"
16
17inherit bash-completion systemd
18
19do_install() {
20 oe_runmake install-spec DESTDIR=${D} PREFIX=${prefix} \
21 UDEVDIR=${nonarch_base_libdir}/udev SYSTEMDDIR=${systemd_unitdir}
22}
23
24pkg_postinst_ontarget_${PN}() {
25 ${sbindir}/nvme gen-hostnqn > ${sysconfdir}/nvme/hostnqn
26 ${bindir}/uuidgen > ${sysconfdir}/nvme/hostid
27}
28
29PACKAGES =+ "${PN}-dracut ${PN}-zsh-completion"
30
31FILES_${PN} += "${systemd_system_unitdir}"
32FILES_${PN}-dracut = "${nonarch_libdir}/dracut/dracut.conf.d"
33FILES_${PN}-zsh-completion = "${datadir}/zsh/site-functions"
34
35RDEPENDS_${PN} = "util-linux-uuidgen"