1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-25 00:51:21 +00:00
freebsd-ports/sysutils/arc_summary/Makefile
Joseph Mingrone 99767f704b
sysutils/arc_summary: Match script to FreeBSD version
The latest arc_summary from the OpenZFS repository fails to run on
FreeBSD 13.2.  Resolve this by installing arc_summary from a branch of
our src repository that matches the major version of the target system.

PR:		274605
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D43070
2023-12-15 08:59:06 -04:00

42 lines
1.1 KiB
Makefile

PORTNAME= arc_summary
PORTVERSION= 20231114
CATEGORIES= sysutils
MASTER_SITES= https://cgit.freebsd.org/src/plain/sys/contrib/openzfs/cmd/ \
https://cgit.freebsd.org/src/plain/sys/contrib/openzfs/cmd/arc_summary/:13
DISTFILES= ${PORTNAME}3?h=releng/13.2:13 \
${PORTNAME}?h=releng/14.0 \
${PORTNAME}
MAINTAINER= jrm@FreeBSD.org
COMMENT= Print ZFS ARC cache statistics and other information
WWW= https://cuddletech.com/2008/10/explore-your-zfs-adaptive-replacement-cache-arc/
LICENSE= BSD2CLAUSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sysctl>0:devel/py-sysctl@${PY_FLAVOR}
USES= python shebangfix
SHEBANG_FILES= ${PORTNAME}
NO_ARCH= yes
NO_BUILD= yes
NO_WRKSUBDIR= yes
PLIST_FILES= bin/arc_summary
.include <bsd.port.pre.mk>
do-extract:
.if ${OSVERSION} < 1400000
${CP} ${DISTDIR}/${PORTNAME}3?h=releng/13.2 ${WRKSRC}/${PORTNAME}
.elif ${OSVERSION} >= 1400000 && ${OSVERSION} < 1500000
${CP} ${DISTDIR}/${PORTNAME}?h=releng/14.0 ${WRKSRC}/${PORTNAME}
.else
${CP} ${DISTDIR}/${PORTNAME} ${WRKSRC}/${PORTNAME}
.endif
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
.include <bsd.port.post.mk>