diff options
| author | rawnix ports <ports@rawnix.org> | 2026-09-26 18:19:05 +0000 |
|---|---|---|
| committer | rawnix ports <ports@rawnix.org> | 2026-09-26 18:19:05 +0000 |
| commit | c82e88dd00d1b0b7fcfb4e5628d99611388cef6f (patch) | |
| tree | 56d864b5a5c6c145edd96178ae219a8f90e191a6 /opt/nvme-cli/MAKEPKG | |
| download | ports-c82e88dd00d1b0b7fcfb4e5628d99611388cef6f.tar.gz | |
sync 2026-09-26 18:19 UTC
1672 files changed, 151396 insertions(+)
Diffstat (limited to 'opt/nvme-cli/MAKEPKG')
| -rw-r--r-- | opt/nvme-cli/MAKEPKG | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/opt/nvme-cli/MAKEPKG b/opt/nvme-cli/MAKEPKG new file mode 100644 index 0000000..f6061b3 --- /dev/null +++ b/opt/nvme-cli/MAKEPKG @@ -0,0 +1,69 @@ +#!/bin/mkpkg +# description: NVMe management command line interface +# url: https://github.com/linux-nvme/nvme-cli + +name=nvme-cli +version=3.1 +release=1 +depends=() +makedeps=(meson samurai) +source=(https://github.com/linux-nvme/nvme-cli/archive/v$version/$name-$version.tar.gz) + +sha256sums=( + "8a6879f1f2af53743c03a8f77f247261306300d3f3b0edfd242c5f646bdfdccb" +) + +build() { + cd $name-$version + + # nvme-cli 3.0 merged libnvme in-tree (installs libnvme3.so / libnvme3.pc / + # /usr/include/libnvme3). The old -Dlibnvme:* subproject options are no-ops. + meson setup build \ + --prefix=/usr \ + --libdir=lib \ + --sbindir=sbin \ + --sysconfdir=/etc \ + --wrap-mode=nodownload \ + -Ddocs=false \ + -Ddocs-build=false \ + -Dtests=false \ + -Dexamples=false \ + -Dnvmf-autoconnect=disabled \ + -Dnvme-discoverd=disabled \ + -Dfabrics=disabled \ + -Dmi=disabled \ + -Dtop=enabled \ + -Dpython=disabled \ + -Djson-c=disabled \ + -Dopenssl=disabled \ + -Dkeyutils=disabled \ + -Dlibdbus=disabled \ + -Dliburing=disabled \ + -Dlibkmod=disabled \ + -Dplugins=id,ns,fw,log,feat,dir,io-mgmt,fdp,lm,resv,rpmb,sed,security,utils,zns + + samu -C build + DESTDIR=$PKG samu -C build install +} + +post_build() { + # Upstream installs these unconditionally, outside the nvmf-autoconnect + # guard. No meson option exists to skip them. + rm -f $PKG/usr/lib/udev/rules.d/65-persistent-net-nbft.rules \ + $PKG/usr/lib/udev/rules.d/70-nvmf-keys.rules \ + $PKG/usr/lib/udev/rules.d/71-nvmf-hpe.rules \ + $PKG/usr/lib/udev/rules.d/71-nvmf-netapp.rules \ + $PKG/usr/lib/udev/rules.d/71-nvmf-vastdata.rules + rmdir -p --ignore-fail-on-non-empty $PKG/usr/lib/udev/rules.d 2>/dev/null + + # Fabrics is off; the sample config is meaningless. + rm -f $PKG/etc/nvme/nvme-fabrics.conf.sample + rmdir --ignore-fail-on-non-empty $PKG/etc/nvme $PKG/etc 2>/dev/null +} + +signify() { + untrusted comment: public key + RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3 +} + +# vim: filetype=sh |
