atop: update to 2.5.0

Tidy up a bit
This commit is contained in:
Nathan Owens 2019-11-04 20:11:20 -06:00 committed by Helmut Pozimski
parent 833ca46e82
commit 73c2c112e0

View file

@ -1,27 +1,28 @@
# Template file for 'atop' # Template file for 'atop'
pkgname=atop pkgname=atop
version=2.4.0 version=2.5.0
revision=2 revision=1
build_style=gnu-makefile build_style=gnu-makefile
make_install_target="sysvinstall"
makedepends="ncurses-devel zlib-devel" makedepends="ncurses-devel zlib-devel"
short_desc="System and process level monitor" short_desc="System and process level monitor"
maintainer="Orphaned <orphan@voidlinux.org>" maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later" license="GPL-2.0-or-later"
homepage="https://www.atoptool.nl/" homepage="https://www.atoptool.nl/"
distfiles="https://www.atoptool.nl/download/atop-${version}.tar.gz" distfiles="https://www.atoptool.nl/download/atop-${version}.tar.gz"
checksum=be1c010a77086b7d98376fce96514afcd73c3f20a8d1fe01520899ff69a73d69 checksum=4b911057ce50463b6e8b3016c5963d48535c0cddeebc6eda817e292b22f93f33
make_dirs="/var/log/atop 755 root root" make_dirs="/var/log/atop 755 root root"
pre_install() { pre_install() {
sed -i '/chown/d' Makefile vsed -e '/chown/d' \
sed -i 's/04711/0755/' Makefile -e 's/04711/0755/' \
sed -i 's,sbin,bin,g' Makefile -e 's,sbin,bin,g' \
sed -i 's,bin/sh,bin/bash,' atop.daily -e '/$(DEFPATH)/d' -i Makefile
vsed -e 's,bin/sh,bin/bash,' -i atop.daily
} }
do_install() { post_install() {
make PREFIX=/usr SBINDIR=/usr/bin DESTDIR=${DESTDIR} sysvinstall
vsv atop vsv atop
# Remove unused stuff. # Remove unused stuff.
rm -f ${DESTDIR}/usr/bin/atop{,sar}-${version} rm -f ${DESTDIR}/usr/bin/atop{,sar}-${version}