Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 1 | SUMMARY = "NVMe management command line interface" |
| 2 | AUTHOR = "Stefan Wiehler <stefan.wiehler@missinglinkelectronics.com>" |
| 3 | HOMEPAGE = "https://github.com/linux-nvme/nvme-cli" |
| 4 | SECTION = "console/utils" |
| 5 | LICENSE = "GPLv2" |
| 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=8264535c0c4e9c6c335635c4026a8022" |
| 7 | DEPENDS = "util-linux" |
| 8 | PV .= "+git${SRCPV}" |
| 9 | |
Andrew Geissler | bffdb3e | 2020-08-21 16:13:29 -0500 | [diff] [blame] | 10 | SRC_URI = "git://github.com/linux-nvme/nvme-cli.git" |
Andrew Geissler | 4b7c115 | 2020-11-30 19:55:29 -0600 | [diff] [blame] | 11 | SRCREV = "f0e9569df9289d6ee55ba2c23615cc7c73a9b088" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 12 | |
| 13 | S = "${WORKDIR}/git" |
| 14 | |
| 15 | inherit bash-completion systemd |
| 16 | |
| 17 | do_install() { |
| 18 | oe_runmake install-spec DESTDIR=${D} PREFIX=${prefix} \ |
| 19 | UDEVDIR=${nonarch_base_libdir}/udev SYSTEMDDIR=${systemd_unitdir} |
| 20 | } |
| 21 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 22 | pkg_postinst_ontarget:${PN}() { |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 23 | ${sbindir}/nvme gen-hostnqn > ${sysconfdir}/nvme/hostnqn |
| 24 | ${bindir}/uuidgen > ${sysconfdir}/nvme/hostid |
| 25 | } |
| 26 | |
| 27 | PACKAGES =+ "${PN}-dracut ${PN}-zsh-completion" |
| 28 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 29 | FILES:${PN} += "${systemd_system_unitdir}" |
| 30 | FILES:${PN}-dracut = "${nonarch_libdir}/dracut/dracut.conf.d" |
| 31 | FILES:${PN}-zsh-completion = "${datadir}/zsh/site-functions" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 32 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 33 | RDEPENDS:${PN} = "util-linux-uuidgen" |