sys-apps/dstat - 0.7.4 (gentoo)

Search

Install

Install this version:

emerge -a =sys-apps/dstat-0.7.4

Package Information

Description:
Versatile replacement for vmstat, iostat and ifstat
Homepage:
http://dag.wieers.com/home-made/dstat/
License:
GPL-2+

Ebuild Details

Version EAPI Keywords Slot
0.7.4 8 ~alpha amd64 ~arm64 ~hppa ~mips ppc ppc64 ~sparc x86 0
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

PYTHON_COMPAT=( python3_{11..14} )

inherit python-r1

DESCRIPTION="Versatile replacement for vmstat, iostat and ifstat"
HOMEPAGE="http://dag.wieers.com/home-made/dstat/"
SRC_URI="https://github.com/dagwieers/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~alpha amd64 ~arm64 ~hppa ~mips ppc ppc64 ~sparc x86"
IUSE="doc examples"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"

RDEPEND="${PYTHON_DEPS}
	dev-python/six[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}"

PATCHES=(
	"${FILESDIR}/dstat-${PV}-skip-non-sandbox-tests.patch"
	"${FILESDIR}/fix-collections-deprecation-warning.patch"
	"${FILESDIR}/dstat-0.7.4-fix-csv-output.patch"
	"${FILESDIR}/dstat-${PV}-fix-backslash-in-regex.patch"
	"${FILESDIR}/dstat-${PV}-use-importlib.patch"
)

src_prepare() {
	# bug fix: allow delay to be specified
	# backport from: https://github.com/dagwieers/dstat/pull/167/files
	sed -e 's; / op\.delay; // op.delay;' -i "dstat" || die

	default
}

src_test() {
	python_foreach_impl emake test
}

src_install() {
	python_foreach_impl python_doscript dstat

	insinto /usr/share/dstat
	newins dstat dstat.py
	doins plugins/dstat_*.py

	doman docs/dstat.1

	einstalldocs

	if use examples; then
		dodoc examples/{mstat,read}.py
	fi
	if use doc; then
		dodoc docs/*.html
	fi
}

USE Flags

Manage flags for this package: euse -i <flag> -p sys-apps/dstat | euse -E <flag> -p sys-apps/dstat | euse -D <flag> -p sys-apps/dstat

Global/Standard Flags

doc

Inherited Eclasses

Dependencies

DEPEND

	dev-python/six[]

RDEPEND

	dev-python/six[]

Manifest for 0.7.4

Type File Size Source URLs
DIST dstat-0.7.4.tar.gz 139992 bytes https://github.com/dagwieers/dstat/archive/v0.7.4.tar.gz