blob: e1a98db4e2167514a9dc50a0471fc6b920a0a6b6 [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
Andrew Geisslerbffdb3e2020-08-21 16:13:29 -050010SRC_URI = "git://github.com/linux-nvme/nvme-cli.git"
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"