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 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