blob: 0a75b5ebfeda95cba767f397245f6d61de168af6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=atop
pkgver=2.3.0
pkgrel=1
pkgdesc="Resource-specific view of processes"
url="https://www.atoptool.nl/"
arch="all"
license="GPL2+"
depends=""
makedepends="zlib-dev ncurses-dev linux-headers"
subpackages="$pkgname-doc"
source="https://www.atoptool.nl/download/atop-$pkgver.tar.gz
atop-bb-compat.patch
atop-daily-bb.patch
atop.initd"
builddir="$srcdir"/$pkgname-$pkgver
options="suid"
prepare() {
cd "$builddir"
default_prepare
sed -i -e '/^CFLAGS/s: = -O : += :' \
-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="51cc868545403cab439a66cc38fe9324c6ff7537e6dad5271fa3f0a22cbad471b0e15186d4f78f0080129301ba0a59e0c1cd1cc694bc3a4f982118a8d0cae429 atop-2.3.0.tar.gz
165e5f17f1a752f8663a774d72476eac5693f93922b32fa198f09233ca6dfde2d6c63b10c31d0388ac9f10d210e7067787f30ef25e0ef9419a1520486f290b15 atop-bb-compat.patch
078e76315a6336a63e03873ec4c76e2c0d2698879840bfad5c57db266a15abd521dde9f720f0ddf482b4e2a18cac9d869e0c08994cfe5ef9a3343603e3858a11 atop-daily-bb.patch
172c9d367b936427ccbbbd1140c7808ec8ffe3194b3557ba024820dac8fa68c9919f7dc34d332e91283fde64d731db7bdbfee3c2d6caad3cd291e0f1c227cb03 atop.initd"
|