PORTNAME=	ioztat
DISTVERSIONPREFIX=	v
DISTVERSION=	2.0.1
PORTREVISION=	2
CATEGORIES=	filesystems sysutils python
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

MAINTAINER=	tom@hur.st
COMMENT=	Storage load analysis tool for OpenZFS
WWW=		https://github.com/jimsalterjrs/ioztat

LICENSE=	BSD2CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE

RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}sysctl>0:devel/py-sysctl@${PY_FLAVOR}

USES=		python:run shebangfix

USE_GITHUB=	yes
GH_ACCOUNT=	jimsalterjrs

USE_PYTHON=	concurrent flavors

SHEBANG_FILES=	${PORTNAME}
NO_ARCH=	yes
NO_BUILD=	yes

PLIST_FILES=	bin/${PORTNAME} \
		share/man/man8/${PORTNAME}.8.gz

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.8 ${STAGEDIR}${PREFIX}/share/man/man8

.include <bsd.port.mk>
