diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2017-09-06 12:22:23 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2017-09-06 12:22:37 +0000 |
commit | f9398bb0531c18b2bce1922fa17157528fd820ee (patch) | |
tree | 4072623c6e43f31c862c89dfa61536ae22d61aef /main/atop | |
parent | edde71a0bddfba90173b13d1920d09b99b78680b (diff) | |
download | aports-f9398bb0531c18b2bce1922fa17157528fd820ee.tar.bz2 aports-f9398bb0531c18b2bce1922fa17157528fd820ee.tar.xz |
main/atop: removed dependency to procps in daily script. Fixes #7614
Diffstat (limited to 'main/atop')
-rw-r--r-- | main/atop/APKBUILD | 4 | ||||
-rw-r--r-- | main/atop/atop-daily-bb.patch | 20 |
2 files changed, 23 insertions, 1 deletions
diff --git a/main/atop/APKBUILD b/main/atop/APKBUILD index 895ffdf5a9..69643615c4 100644 --- a/main/atop/APKBUILD +++ b/main/atop/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=atop pkgver=2.3.0 -pkgrel=0 +pkgrel=1 pkgdesc="Resource-specific view of processes" url="http://www.atoptool.nl/" arch="all" @@ -11,6 +11,7 @@ makedepends="zlib-dev ncurses-dev linux-headers" subpackages="$pkgname-doc" source="http://www.atoptool.nl/download/atop-$pkgver.tar.gz atop-bb-compat.patch + atop-daily-bb.patch atop.initd" builddir="$srcdir"/$pkgname-$pkgver options="suid" @@ -44,4 +45,5 @@ package() { sha512sums="51cc868545403cab439a66cc38fe9324c6ff7537e6dad5271fa3f0a22cbad471b0e15186d4f78f0080129301ba0a59e0c1cd1cc694bc3a4f982118a8d0cae429 atop-2.3.0.tar.gz 165e5f17f1a752f8663a774d72476eac5693f93922b32fa198f09233ca6dfde2d6c63b10c31d0388ac9f10d210e7067787f30ef25e0ef9419a1520486f290b15 atop-bb-compat.patch +078e76315a6336a63e03873ec4c76e2c0d2698879840bfad5c57db266a15abd521dde9f720f0ddf482b4e2a18cac9d869e0c08994cfe5ef9a3343603e3858a11 atop-daily-bb.patch 172c9d367b936427ccbbbd1140c7808ec8ffe3194b3557ba024820dac8fa68c9919f7dc34d332e91283fde64d731db7bdbfee3c2d6caad3cd291e0f1c227cb03 atop.initd" diff --git a/main/atop/atop-daily-bb.patch b/main/atop/atop-daily-bb.patch new file mode 100644 index 0000000000..80f9a8ccec --- /dev/null +++ b/main/atop/atop-daily-bb.patch @@ -0,0 +1,20 @@ +diff --git a/atop.daily b/atop.daily +index 8943014..edf67a0 100755 +--- a/atop.daily ++++ b/atop.daily +@@ -8,13 +8,13 @@ INTERVAL=600 # interval 10 minutes + + # verify if atop still runs for daily logging + # +-if [ -e $PIDFILE ] && ps -p `cat $PIDFILE` | grep 'atop$' > /dev/null ++if [ -e $PIDFILE ] && ps | grep `cat $PIDFILE` > /dev/null + then + kill -USR2 `cat $PIDFILE` # final sample and terminate + + CNT=0 + +- while ps -p `cat $PIDFILE` > /dev/null ++ while ps | grep `cat $PIDFILE` > /dev/null + do + let CNT+=1 + |