53 lines
1.7 KiB
Plaintext
53 lines
1.7 KiB
Plaintext
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
||
|
pkgname=atop
|
||
|
pkgver=2.6.0
|
||
|
pkgrel=0
|
||
|
pkgdesc="Resource-specific view of processes"
|
||
|
url="https://www.atoptool.nl/"
|
||
|
arch="all"
|
||
|
license="GPL-2.0-or-later"
|
||
|
makedepends="zlib-dev ncurses-dev linux-headers"
|
||
|
subpackages="$pkgname-doc"
|
||
|
source="https://www.atoptool.nl/download/atop-$pkgver.tar.gz
|
||
|
atop-daily-bb.patch
|
||
|
atop-include-macros.patch
|
||
|
fix-limits-on-ppc64le.patch
|
||
|
atop.initd
|
||
|
"
|
||
|
options="suid"
|
||
|
|
||
|
prepare() {
|
||
|
cd "$builddir"
|
||
|
default_prepare
|
||
|
|
||
|
sed -i -e '/^CFLAGS/s: = -O : += :' \
|
||
|
-e '/DEFPATH/d' \
|
||
|
-e '/^LDFLAGS/s: = : += :' Makefile
|
||
|
|
||
|
cp "$srcdir"/atop.initd atop.init
|
||
|
chmod a+rx atop.init
|
||
|
}
|
||
|
|
||
|
build() {
|
||
|
cd "$builddir"
|
||
|
}
|
||
|
|
||
|
package() {
|
||
|
cd "$builddir"
|
||
|
mkdir -p "$pkgdir"/var/log/atop "$pkgdir"/var/run "$pkgdir"/usr/sbin
|
||
|
make -j1 DESTDIR="$pkgdir" \
|
||
|
INIPATH=/etc/init.d \
|
||
|
SCRPATH=/etc/periodic/daily \
|
||
|
sysvinstall
|
||
|
rm -fr "$pkgdir"/etc/cron.d
|
||
|
mv "$pkgdir"/etc/periodic/daily/atop.daily \
|
||
|
"$pkgdir"/etc/periodic/daily/atop
|
||
|
|
||
|
}
|
||
|
|
||
|
sha512sums="8d4e2ae56a63738fc615f294d1f4e27cd9eab20acaf5d36c82d87390f96d38cf28cab0a00507459c3ce6e535294a442c4546e0cf732bad253cb518a14cdf5e88 atop-2.6.0.tar.gz
|
||
|
664225450074962aac0e13484c9b2feaf08620bbe1e0f9c5dc1b02f1ecd315224cd04df53134f2d107210fc9223a64d8885ae70d33d0663c2335fa6d46f6ddfd atop-daily-bb.patch
|
||
|
f30c9e6051332af8c8cafcd881f89a0e2d2a8e1d84eee8ac0c8c6b58f3ae3431fcf9c40dea6d03e271f8969802de449d33b4323c13045bdb38a539732c81a8b6 atop-include-macros.patch
|
||
|
87cc78832774299227d435643551d099c3d88babb13049fe71e170e1220204a26be9ab570a59eccc90c9cb4faabd371e1c031063c70cb20a0c4620566c906425 fix-limits-on-ppc64le.patch
|
||
|
172c9d367b936427ccbbbd1140c7808ec8ffe3194b3557ba024820dac8fa68c9919f7dc34d332e91283fde64d731db7bdbfee3c2d6caad3cd291e0f1c227cb03 atop.initd"
|