Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alternative support for iotop; add c-iotop. #36086

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions srcpkgs/c-iotop/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Template file for 'c-iotop'
pkgname=c-iotop
version=1.21
revision=1
wrksrc="iotop-${version}"
build_style=gnu-makefile
hostmakedepends="pkg-config"
makedepends="ncurses-devel"
short_desc="View I/O usage of processes"
maintainer="Martin Dimov <[email protected]>"
license="GPL-2.0-or-later"
homepage="https://github.com/Tomas-M/iotop"
distfiles="https://github.com/Tomas-M/iotop/archive/v${version}.tar.gz"
checksum=90c11f984d5fdb7471b811c869919548e8aab969b516642ddc30441582cfe776
alternatives="
iotop:iotop:/usr/bin/c-iotop
iotop:iotop.8:/usr/share/man/man8/c-iotop.8
"
conflicts="iotop<=0.6_9"

do_install() {
vman iotop.8 c-iotop.8
vbin iotop c-iotop
}
16 changes: 11 additions & 5 deletions srcpkgs/iotop/template
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
# Template file for 'iotop'
pkgname=iotop
version=0.6
revision=9
revision=10
build_style=python3-module
hostmakedepends="python3"
depends="${hostmakedepends}"
short_desc="View I/O usage of processes"
short_desc="View I/O usage of processes; the original iotop"
maintainer="teldra <[email protected]>"
license="GPL-2.0-or-later"
homepage="http://guichaz.free.fr/iotop"
#distfiles="http://guichaz.free.fr/iotop/files/iotop-${version}.tar.bz2"
distfiles="https://void.johnnynator.dev/iotop-0.6.tar.bz2"
distfiles="http://guichaz.free.fr/iotop/files/iotop-${version}.tar.bz2"
checksum=3adea2a24eda49bbbaeb4e6ed2042355b441dbd7161e883067a02bfc8dcef75b
alternatives="
iotop:iotop:/usr/bin/py-iotop
iotop:iotop.8:/usr/share/man/man8/py-iotop.8
"

post_install() {
chmod 644 ${DESTDIR}/usr/share/man/man8/iotop.8
mv ${DESTDIR}/usr/bin/{iotop,py-iotop}
mv ${DESTDIR}/usr/share/man/man8/{iotop.8,py-iotop.8}

chmod 644 ${DESTDIR}/usr/share/man/man8/py-iotop.8
}