New package: cpulimit-0.2
This commit is contained in:
parent
63a0cc730f
commit
e9f127ead4
2 changed files with 27 additions and 0 deletions
12
srcpkgs/cpulimit/patches/musl_sysctl.patch
Normal file
12
srcpkgs/cpulimit/patches/musl_sysctl.patch
Normal file
|
@ -0,0 +1,12 @@
|
|||
--- ./src/cpulimit.c.orig 2015-10-05 04:12:08.510651801 -0400
|
||||
+++ ./src/cpulimit.c 2015-10-05 04:13:40.562657764 -0400
|
||||
@@ -38,7 +38,9 @@
|
||||
#include <string.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/time.h>
|
||||
+#if defined(__GLIBC__)
|
||||
#include <sys/sysctl.h>
|
||||
+#endif
|
||||
#include <sys/resource.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/wait.h>
|
15
srcpkgs/cpulimit/template
Normal file
15
srcpkgs/cpulimit/template
Normal file
|
@ -0,0 +1,15 @@
|
|||
# Template file for 'cpulimit'
|
||||
pkgname=cpulimit
|
||||
version=0.2
|
||||
revision=1
|
||||
build_style=gnu-makefile
|
||||
short_desc="Tool to limit the CPU usage of a process"
|
||||
maintainer="Steve Prybylski <sa.prybylx@gmail.com>"
|
||||
license="GPL-2"
|
||||
homepage="https://github.com/opsengine/cpulimit"
|
||||
distfiles="https://github.com/opsengine/${pkgname}/archive/v${version}.tar.gz"
|
||||
checksum=64312f9ac569ddcadb615593cd002c94b76e93a0d4625d3ce1abb49e08e2c2da
|
||||
|
||||
do_install() {
|
||||
vbin src/cpulimit
|
||||
}
|
Loading…
Reference in a new issue