devel/freebsd-nvme-shim: New helper port to port nvme-cli and libnvme

Set of linux-compatible FreeBSD implementation of Linux .h file APIs.

Remastered by:		zi@
Sponsored by:		Netflix
This commit is contained in:
Warner Losh 2025-02-20 16:13:41 -07:00
parent 0a0fe572a6
commit 0cea7651b8
4 changed files with 46 additions and 0 deletions

View file

@ -0,0 +1,21 @@
PORTNAME= freebsd-nvme-shim
PORTVERSION= 1.0.1
CATEGORIES= devel
MAINTAINER= imp@FreeBSD.org
COMMENT= FreeBSD implementations of Linux headers
WWW= https://github.com/bsdimp/freebsd-nvme-shim
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYRIGHT
USE_GITHUB= yes
GH_ACCOUNT= bsdimp
GH_TAGNAME= freebsd-1.0.1
NO_BUILD= yes
do-install:
(cd ${WRKSRC}/ && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/include/${PORTNAME})
.include <bsd.port.mk>

View file

@ -0,0 +1,3 @@
TIMESTAMP = 1740098340
SHA256 (bsdimp-freebsd-nvme-shim-1.0.1-freebsd-1.0.1_GH0.tar.gz) = 6c5cef6e4eda660075fbd238c9d5f5b29553800fe36910ffec091a34b111701d
SIZE (bsdimp-freebsd-nvme-shim-1.0.1-freebsd-1.0.1_GH0.tar.gz) = 4683

View file

@ -0,0 +1,3 @@
Contains a set of include files to allow nvme-cli and libnvme to compile on
FreeBSD without a lot of #ifdefs in the original source. These are trivial
versions of the linux headers, that implement the minimum amount for nvme-cli.

View file

@ -0,0 +1,19 @@
include/freebsd-nvme-shim/COPYRIGHT
include/freebsd-nvme-shim/NOTES
include/freebsd-nvme-shim/asm/bitsperlong.h
include/freebsd-nvme-shim/asm/byteorder.h
include/freebsd-nvme-shim/asm/types.h
include/freebsd-nvme-shim/elf.h
include/freebsd-nvme-shim/errno.h
include/freebsd-nvme-shim/linux/errno.h
include/freebsd-nvme-shim/linux/fs.h
include/freebsd-nvme-shim/linux/stddef.h
include/freebsd-nvme-shim/linux/types.h
include/freebsd-nvme-shim/netinet6/in6.h
include/freebsd-nvme-shim/strings.h
include/freebsd-nvme-shim/sys/elf64.h
include/freebsd-nvme-shim/sys/elf_common.h
include/freebsd-nvme-shim/sys/ioctl.h
include/freebsd-nvme-shim/sys/mman.h
include/freebsd-nvme-shim/sys/sysinfo.h
include/freebsd-nvme-shim/time.h