diff --git a/sysutils/Makefile b/sysutils/Makefile index 701413990753..aba044c60fda 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -1008,6 +1008,7 @@ SUBDIR += zfs-replicate SUBDIR += zfs-snapshot-clean SUBDIR += zfs-snapshot-mgmt + SUBDIR += zfs-stats SUBDIR += zfsnap SUBDIR += zidrav SUBDIR += zisofs-tools diff --git a/sysutils/zfs-stats/Makefile b/sysutils/zfs-stats/Makefile new file mode 100644 index 000000000000..3905825c350c --- /dev/null +++ b/sysutils/zfs-stats/Makefile @@ -0,0 +1,36 @@ +# New ports collection makefile for: zfs-stats +# Date created: 2010-10-20 +# Whom: Martin Matuska +# +# $FreeBSD$ +# + +PORTNAME= zfs-stats +PORTVERSION= 1.0 +CATEGORIES= sysutils +MASTER_SITES= http://www.vx.sk/zfs-stats/ + +MAINTAINER= mm@FreeBSD.org +COMMENT= Display human-readable ZFS statistics + +USE_PERL5= yes + +NO_BUILD= yes + +PLIST_FILES= bin/zfs-stats + +OPTIONS= HUMAN_BYTES "Depend on Number::Bytes::Human" off + +.include + +.if defined(WITH_HUMAN_BYTES) +RUN_DEPENDS+= p5-Number-Bytes-Human>0:${PORTSDIR}/devel/p5-Number-Bytes-Human +.endif + +do-patch: + @${REINPLACE_CMD} -e "s|/usr/local/bin/perl|${PERL}|g" ${WRKSRC}/zfs-stats + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/zfs-stats ${PREFIX}/bin/zfs-stats + +.include diff --git a/sysutils/zfs-stats/distinfo b/sysutils/zfs-stats/distinfo new file mode 100644 index 000000000000..799ee25d661a --- /dev/null +++ b/sysutils/zfs-stats/distinfo @@ -0,0 +1,3 @@ +MD5 (zfs-stats-1.0.tar.gz) = bb11a2eb40412b87a77ed0855c9671d0 +SHA256 (zfs-stats-1.0.tar.gz) = e6e849dc43ea1e936ddca5924176a525378ab5ce556e074db324dcae23cf0c28 +SIZE (zfs-stats-1.0.tar.gz) = 5876 diff --git a/sysutils/zfs-stats/pkg-descr b/sysutils/zfs-stats/pkg-descr new file mode 100644 index 000000000000..73125ffacf48 --- /dev/null +++ b/sysutils/zfs-stats/pkg-descr @@ -0,0 +1,4 @@ +zfs-stats displays ZFS statistics in human-readable format including +ARC, L2ARC, zfetch (DMU) and vdev cache statistics. + +WWW: http://www.vx.sk/zfs-stats/