summaryrefslogtreecommitdiffstats
path: root/main/cpulimit
diff options
context:
space:
mode:
Diffstat (limited to 'main/cpulimit')
-rw-r--r--main/cpulimit/APKBUILD21
-rw-r--r--main/cpulimit/fix-crash-on-sigquit.patch27
2 files changed, 9 insertions, 39 deletions
diff --git a/main/cpulimit/APKBUILD b/main/cpulimit/APKBUILD
index 5f70a8082..cb4f3f132 100644
--- a/main/cpulimit/APKBUILD
+++ b/main/cpulimit/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=cpulimit
-pkgver=0.0.2012.06.05
-pkgrel=3
+pkgver=0.0.2014.03.09
+pkgrel=0
pkgdesc="CPU usage limiter for Linux"
url="https://github.com/opsengine/cpulimit"
arch="all"
@@ -13,7 +13,7 @@ install=""
subpackages=""
source="http://dev.alpinelinux.org/archive/cpulimit/cpulimit-$pkgver.tar.gz
no-sysctl.patch
- fix-crash-on-sigquit.patch"
+ "
_builddir="$srcdir"/cpulimit
prepare() {
@@ -36,12 +36,9 @@ package() {
install -Dm755 src/cpulimit "$pkgdir"/usr/bin/cpulimit
}
-md5sums="34796b9b49c622d1d2b3adb97b3cf965 cpulimit-0.0.2012.06.05.tar.gz
-3190926c02130090757376f0b4f2b73d no-sysctl.patch
-664a233f3057e9c0ad245ef4a72e51cd fix-crash-on-sigquit.patch"
-sha256sums="032031fa8b8c1254f2e264bced4c2ba56b1a5927f4229460abacff204e31bbbb cpulimit-0.0.2012.06.05.tar.gz
-9b4118a5a77d2884ea38d657bac6dcf54232e990537c1fb73fbb4a852423d508 no-sysctl.patch
-3f4def082aa9c7e0db809668ed3be8ab646bb724dfe6c0b45dc41fbd7f461334 fix-crash-on-sigquit.patch"
-sha512sums="b5fc0c5508f1c608dda7d193b583a60280553995e74e371592378185ccdcf39f9f4471659257a9f360bcb35dc27b62effe95b059750126677284978cc9792bc0 cpulimit-0.0.2012.06.05.tar.gz
-13ddc48d810bdc28131babb653a06bd8ec25c6108fdbd34f2901c977d6fa6102d5e9c142e5a357711304272c97c2adb7fbf17164f0efdf4b4433ad271af9d09b no-sysctl.patch
-ca8087673a9eeefcf0c00273870123831e0faa842092b6fcec4864cd33c3d0b2538e02853bdc8744c4f53b12f8969042b77668010df6e986b728784571db2e4e fix-crash-on-sigquit.patch"
+md5sums="75b21785a1bbe63bf3f745eec3b4e1de cpulimit-0.0.2014.03.09.tar.gz
+3190926c02130090757376f0b4f2b73d no-sysctl.patch"
+sha256sums="5eb2998f88dd61291085744a1b936aa18ae6c656c9ce8574bb43c863b8157d6f cpulimit-0.0.2014.03.09.tar.gz
+9b4118a5a77d2884ea38d657bac6dcf54232e990537c1fb73fbb4a852423d508 no-sysctl.patch"
+sha512sums="59f795fb76416b83f64b74a39f6c646bab49086a533af37d0eeaf2aeca9abc3d158d70e978d08595376199b9936cbcada287f9df954423d04bf95fbfbac35085 cpulimit-0.0.2014.03.09.tar.gz
+13ddc48d810bdc28131babb653a06bd8ec25c6108fdbd34f2901c977d6fa6102d5e9c142e5a357711304272c97c2adb7fbf17164f0efdf4b4433ad271af9d09b no-sysctl.patch"
diff --git a/main/cpulimit/fix-crash-on-sigquit.patch b/main/cpulimit/fix-crash-on-sigquit.patch
deleted file mode 100644
index d406dec2e..000000000
--- a/main/cpulimit/fix-crash-on-sigquit.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-Only in cpulimit.fix/: core
-Only in cpulimit.fix/: src/cpulimit
---- cpulimit/src/cpulimit.c
-+++ cpulimit.fix/src/cpulimit.c
-@@ -89,11 +89,13 @@
- {
- //let all the processes continue if stopped
- struct list_node *node = NULL;
-- for (node=pgroup.proclist->first; node!= NULL; node=node->next) {
-- struct process *p = (struct process*)(node->data);
-- kill(p->pid, SIGCONT);
-+ if (pgroup.proclist) {
-+ for (node=pgroup.proclist->first; node!= NULL; node=node->next) {
-+ struct process *p = (struct process*)(node->data);
-+ kill(p->pid, SIGCONT);
-+ }
-+ close_process_group(&pgroup);
- }
-- close_process_group(&pgroup);
- //fix ^C little problem
- printf("\r");
- fflush(stdout);
-Only in cpulimit.fix/: src/list.o
-Only in cpulimit.fix/: src/process_group.o
-Only in cpulimit.fix/: src/process_iterator.o
-Only in cpulimit.fix/: tests/busy
-Only in cpulimit.fix/: tests/process_iterator_test