summaryrefslogtreecommitdiff
path: root/filesystems/py-libzfs/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'filesystems/py-libzfs/Makefile')
-rw-r--r--filesystems/py-libzfs/Makefile35
1 files changed, 35 insertions, 0 deletions
diff --git a/filesystems/py-libzfs/Makefile b/filesystems/py-libzfs/Makefile
new file mode 100644
index 000000000000..c4bc9fd0007b
--- /dev/null
+++ b/filesystems/py-libzfs/Makefile
@@ -0,0 +1,35 @@
+PORTNAME= libzfs
+PORTVERSION= 1.1.2023020700
+CATEGORIES= filesystems devel python
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= freqlabs@FreeBSD.org
+COMMENT= Python libzfs bindings
+WWW= https://github.com/freenas/py-libzfs
+
+LICENSE= BSD2CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USE_GITHUB= yes
+GH_ACCOUNT= truenas
+GH_PROJECT= py-libzfs
+GH_TAGNAME= c1bd4a0
+
+HAS_CONFIGURE= yes
+USES= compiler:c11 python
+USE_PYTHON= autoplist distutils cython
+
+CONFIGURE_ENV= freebsd_src=${SRC_BASE}
+MAKE_ENV= freebsd_src=${SRC_BASE}
+
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && (${OSVERSION} >= 1500018 || (${OSVERSION} >= 1401000 && ${OSVERSION} < 1500000))
+EXTRA_PATCHES+= ${FILESDIR}/extra-zpool-add.patch
+.endif
+
+.if !exists(${SRC_BASE}/sys/Makefile)
+IGNORE= requires kernel source files in ${SRC_BASE}
+.endif
+
+.include <bsd.port.mk>