mirror of
https://git.freebsd.org/ports.git
synced 2025-05-07 11:20:46 -04:00
The ZFS on 14.0 changed to include skipped bytes in the percentage of resilver. As old code didn't take into account that variable on 14.0+, the percentage was always wrong. Also, take maintainership. PR: 283522 Reviewed by: asomers Approved by: lwhsu (ports) Sponsored by: ConnectWise
41 lines
1.1 KiB
Makefile
41 lines
1.1 KiB
Makefile
PORTNAME= libzfs
|
|
PORTVERSION= 1.1.2023020700
|
|
PORTREVISION= 1
|
|
CATEGORIES= filesystems devel python
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= meka@tilda.center
|
|
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
|
|
|
|
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400000
|
|
PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
|
|
PATCHFILES= 0b2ab0594997c44e80e3fdfe9d2add106d81149a.diff:-p1 # backport of https://github.com/truenas/py-libzfs/pull/251
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|