From e9f127ead45ce7e0182f234bd78de42a6cb21a2c Mon Sep 17 00:00:00 2001 From: Steve Prybylski Date: Mon, 5 Oct 2015 03:41:58 -0400 Subject: [PATCH] New package: cpulimit-0.2 --- srcpkgs/cpulimit/patches/musl_sysctl.patch | 12 ++++++++++++ srcpkgs/cpulimit/template | 15 +++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 srcpkgs/cpulimit/patches/musl_sysctl.patch create mode 100644 srcpkgs/cpulimit/template diff --git a/srcpkgs/cpulimit/patches/musl_sysctl.patch b/srcpkgs/cpulimit/patches/musl_sysctl.patch new file mode 100644 index 0000000000..8ba5cd058b --- /dev/null +++ b/srcpkgs/cpulimit/patches/musl_sysctl.patch @@ -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 + #include + #include ++#if defined(__GLIBC__) + #include ++#endif + #include + #include + #include diff --git a/srcpkgs/cpulimit/template b/srcpkgs/cpulimit/template new file mode 100644 index 0000000000..7434b630d6 --- /dev/null +++ b/srcpkgs/cpulimit/template @@ -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 " +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 +}