git: bf6650543bcd - main - devel/libnvm: nvme cli split out the libbrary, so add it as 1.11.1
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 21 Feb 2025 18:59:06 UTC
The branch main has been updated by imp:
URL: https://cgit.FreeBSD.org/ports/commit/?id=bf6650543bcdd2ea9dbc42543401545d8b68acdc
commit bf6650543bcdd2ea9dbc42543401545d8b68acdc
Author: Warner Losh <imp@FreeBSD.org>
AuthorDate: 2025-02-21 00:41:23 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2025-02-21 18:43:26 +0000
devel/libnvm: nvme cli split out the libbrary, so add it as 1.11.1
Remastered by: zi@
Sponsored by: Netflix
---
devel/libnvme/Makefile | 30 ++++++++++++++++++++++++++++++
devel/libnvme/distinfo | 3 +++
devel/libnvme/pkg-descr | 6 ++++++
devel/libnvme/pkg-plist | 21 +++++++++++++++++++++
4 files changed, 60 insertions(+)
diff --git a/devel/libnvme/Makefile b/devel/libnvme/Makefile
new file mode 100644
index 000000000000..26cdf5c2aa20
--- /dev/null
+++ b/devel/libnvme/Makefile
@@ -0,0 +1,30 @@
+PORTNAME= libnvme
+PORTVERSION= 1.11.1
+CATEGORIES= devel
+
+MAINTAINER= imp@FreeBSD.org
+COMMENT= Port of Linux nvme cli utility
+WWW= https://github.com/linux-nvme/libnvme
+
+LICENSE= GPLv2
+
+ONLY_FOR_ARCHS= aarch64 amd64
+
+BUILD_DEPENDS= freebsd-nvme-shim>0:devel/freebsd-nvme-shim \
+ bash>0:shells/bash \
+ swig>0:devel/swig
+
+USES= meson
+USE_LDCONFIG= yes
+MESON_ARGS= -Dopenssl=disabled -Dkeyutils=disabled -Djson-c=disabled \
+ -Dpython=disabled
+CXXFLAGS+= -I${LOCALBASE}/include/freebsd-nvme-shim
+CFLAGS+= -I${LOCALBASE}/include/freebsd-nvme-shim
+PLIST_SUB= PORTVERSION=${PORTVERSION} \
+ MAJORVER=${PORTVERSION:C/^([0-9]+)\..*/\1/}
+
+USE_GITHUB= yes
+GH_ACCOUNT= bsdimp
+GH_TAGNAME= freebsd-${PORTVERSION}
+
+.include <bsd.port.mk>
diff --git a/devel/libnvme/distinfo b/devel/libnvme/distinfo
new file mode 100644
index 000000000000..4f60ba410c9d
--- /dev/null
+++ b/devel/libnvme/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1740097253
+SHA256 (bsdimp-libnvme-1.11.1-freebsd-1.11.1_GH0.tar.gz) = 22831130bcf9d084ce9c345990e66b8b20de2fd346ee80cf71d4209ef316a87f
+SIZE (bsdimp-libnvme-1.11.1-freebsd-1.11.1_GH0.tar.gz) = 740645
diff --git a/devel/libnvme/pkg-descr b/devel/libnvme/pkg-descr
new file mode 100644
index 000000000000..0fb992a728ae
--- /dev/null
+++ b/devel/libnvme/pkg-descr
@@ -0,0 +1,6 @@
+This is the libnvme development C library.
+
+libnvme provides type definitions for NVMe specification structures,
+enumerations, and bit fields, helper functions to construct, dispatch,
+and decode commands and payloads, and utilities to connect, scan, and
+manage nvme devices on a Linux system.
diff --git a/devel/libnvme/pkg-plist b/devel/libnvme/pkg-plist
new file mode 100644
index 000000000000..3e0f57a0b1b0
--- /dev/null
+++ b/devel/libnvme/pkg-plist
@@ -0,0 +1,21 @@
+include/libnvme-mi.h
+include/libnvme.h
+include/nvme/api-types.h
+include/nvme/fabrics.h
+include/nvme/filters.h
+include/nvme/ioctl.h
+include/nvme/linux.h
+include/nvme/log.h
+include/nvme/mi.h
+include/nvme/nbft.h
+include/nvme/tree.h
+include/nvme/types.h
+include/nvme/util.h
+lib/libnvme-mi.so
+lib/libnvme-mi.so.%%MAJORVER%%
+lib/libnvme-mi.so.%%PORTVERSION%%
+lib/libnvme.so
+lib/libnvme.so.%%MAJORVER%%
+lib/libnvme.so.%%PORTVERSION%%
+libdata/pkgconfig/libnvme-mi.pc
+libdata/pkgconfig/libnvme.pc