nvme-cli: update to 2.0, adopt

This commit is contained in:
Subhaditya Nath 2022-04-16 16:55:09 +05:30 committed by Leah Neukirchen
parent 6978356bf2
commit 31b39677d5
2 changed files with 11 additions and 22 deletions

View file

@ -1,5 +0,0 @@
--- a/nvmf-autoconnect/dracut-conf/70-nvmf-autoconnect.conf.in 2021-01-24 16:37:06.346511231 +0700
+++ b/nvmf-autoconnect/dracut-conf/70-nvmf-autoconnect.conf.in 2021-01-24 16:38:01.351158511 +0700
@@ -1 +1 @@
-install_items+="@@UDEVRULESDIR@@/70-nvmf-autoconnect.rules"
+install_items+=" @@UDEVRULESDIR@@/70-nvmf-autoconnect.rules "

View file

@ -1,28 +1,22 @@
# Template file for 'nvme-cli' # Template file for 'nvme-cli'
pkgname=nvme-cli pkgname=nvme-cli
version=1.13 version=2.0
revision=2 revision=1
build_style=gnu-makefile build_style=meson
# yeah, it must be 0 to enable configure_args="-Ddocs=man -Dudevrulesdir=lib/udev/rules.d"
make_build_args="LIBUUID=0" hostmakedepends="pkg-config"
make_install_args="SBINDIR=/usr/bin UDEVDIR=/usr/lib/udev" makedepends="libnvme-devel zlib-devel json-c-devel libuuid-devel libhugetlbfs-devel"
make_install_target="install-spec"
makedepends="libuuid-devel"
short_desc="NVMe management command line interface" short_desc="NVMe management command line interface"
maintainer="Peter Froehlich <peter.hans.froehlich@gmail.com>" maintainer="Subhaditya Nath <sn03.general@gmail.com>"
license="GPL-2.0-only" license="GPL-2.0-only"
homepage="http://nvmexpress.org" homepage="http://nvmexpress.org"
distfiles="https://github.com/linux-nvme/nvme-cli/archive/v${version}.tar.gz" distfiles="https://github.com/linux-nvme/nvme-cli/archive/v${version}.tar.gz"
checksum=03f4875f3e68d326b0280e16df2f027ca6b086cfa148c34e8569df61319b4b85 checksum=471869b3bf643bb357dc9613ad14d24ff342fcd97e2db5a753c81c335ad8859c
conf_files="/etc/nvme/*.conf" conf_files="/etc/nvme/*.conf"
post_install() { post_install() {
# these files are touch'd by install, remove so they aren't registered # remove files that are systemd-only
# by the package (which would cause trouble during removal)
rm -f "${DESTDIR}/etc/nvme/hostnqn"
rm -f "${DESTDIR}/etc/nvme/hostid"
rm -rf "${DESTDIR}/etc/udev/rules.d"
rm -f "${DESTDIR}/usr/sbin/nvme"
# no need for systemd files
rm -rf "${DESTDIR}/usr/lib/systemd" rm -rf "${DESTDIR}/usr/lib/systemd"
rm -rf "${DESTDIR}/usr/lib/udev/rules.d/70-nvmf-autoconnect.rules" # calls systemctl
rm -rf "${DESTDIR}/usr/lib/dracut/dracut.conf.d/70-nvmf-autoconnect.conf" # needs 70-nvmf-autoconnect.rules
} }