diff options
author | Thomas Cort <tcort@gentoo.org> | 2006-10-19 01:34:24 +0000 |
---|---|---|
committer | Thomas Cort <tcort@gentoo.org> | 2006-10-19 01:34:24 +0000 |
commit | ccc7a5a213278744cbfaebd7fd8f562d14a3aff7 (patch) | |
tree | a2579e53cbf5c83409a05c43d16a2e3c419a6c04 /app-admin/cpulimit | |
parent | Replace -O2 with -O3 on x86 systems running GCC 4.1. Closes bug #151221. (diff) | |
download | gentoo-2-ccc7a5a213278744cbfaebd7fd8f562d14a3aff7.tar.gz gentoo-2-ccc7a5a213278744cbfaebd7fd8f562d14a3aff7.tar.bz2 gentoo-2-ccc7a5a213278744cbfaebd7fd8f562d14a3aff7.zip |
Initial Commit. Ebuild from sunrise overlay. Ebuild originally from Rupel <ruepel@gmx.li> on Bug #139547.
(Portage version: 2.1.1-r1)
Diffstat (limited to 'app-admin/cpulimit')
-rw-r--r-- | app-admin/cpulimit/ChangeLog | 12 | ||||
-rw-r--r-- | app-admin/cpulimit/Manifest | 24 | ||||
-rw-r--r-- | app-admin/cpulimit/cpulimit-1.1.ebuild | 28 | ||||
-rw-r--r-- | app-admin/cpulimit/files/cpulimit-1.1-makefile.patch | 11 | ||||
-rw-r--r-- | app-admin/cpulimit/files/cpulimit.8 | 49 | ||||
-rw-r--r-- | app-admin/cpulimit/files/digest-cpulimit-1.1 | 3 | ||||
-rw-r--r-- | app-admin/cpulimit/metadata.xml | 9 |
7 files changed, 136 insertions, 0 deletions
diff --git a/app-admin/cpulimit/ChangeLog b/app-admin/cpulimit/ChangeLog new file mode 100644 index 000000000000..581f3d60c40f --- /dev/null +++ b/app-admin/cpulimit/ChangeLog @@ -0,0 +1,12 @@ +# ChangeLog for app-admin/cpulimit +# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/cpulimit/ChangeLog,v 1.1 2006/10/19 01:34:24 tcort Exp $ + +*cpulimit-1.1 (19 Oct 2006) + + 19 Oct 2006; Thomas Cort <tcort@gentoo.org> + +files/cpulimit-1.1-makefile.patch, +files/cpulimit.8, +metadata.xml, + +cpulimit-1.1.ebuild: + Initial Commit. Ebuild from sunrise overlay. Ebuild originally from Rupel + <ruepel@gmx.li> on Bug #139547. + diff --git a/app-admin/cpulimit/Manifest b/app-admin/cpulimit/Manifest new file mode 100644 index 000000000000..9569fabc5945 --- /dev/null +++ b/app-admin/cpulimit/Manifest @@ -0,0 +1,24 @@ +AUX cpulimit-1.1-makefile.patch 301 RMD160 7046852df8b5288a7f7088b0f553512154d64ac0 SHA1 881a58e921169b82778b07ef61123ca846e24651 SHA256 5e916ce51138510a5a4b2abcbe35faaec21444efd555a66f8e48d7517ccb93b2 +MD5 6c3379f0da5619a51801cb0e0996fd30 files/cpulimit-1.1-makefile.patch 301 +RMD160 7046852df8b5288a7f7088b0f553512154d64ac0 files/cpulimit-1.1-makefile.patch 301 +SHA256 5e916ce51138510a5a4b2abcbe35faaec21444efd555a66f8e48d7517ccb93b2 files/cpulimit-1.1-makefile.patch 301 +AUX cpulimit.8 1451 RMD160 166fb87d39249d5244f2e1cb24ae0a385f945195 SHA1 0625163a3e5d52985ac0c89d8f368ca83bbf14d2 SHA256 4c3591679acf33f82d7e282cf63b3ff42683a7e7553ecc7b02ad2714285e013c +MD5 4a2759447af5ff4904610221f8fc1165 files/cpulimit.8 1451 +RMD160 166fb87d39249d5244f2e1cb24ae0a385f945195 files/cpulimit.8 1451 +SHA256 4c3591679acf33f82d7e282cf63b3ff42683a7e7553ecc7b02ad2714285e013c files/cpulimit.8 1451 +DIST cpulimit-1.1.tar.gz 5130 RMD160 386a7c0cd248273c7dff1a2dc48e5269160fa3c3 SHA1 9f020c22d633e3f6289c69844bd7136c1f2704f1 SHA256 ee734e82692dc496a083c003340b326bd779567f5de99fcae99e451606c85c00 +EBUILD cpulimit-1.1.ebuild 544 RMD160 fad08f2e6661fc9d4b81d305bfca4d9a5a9604fb SHA1 c09b59978365f16edef83bdca3f33f19507b622e SHA256 90e5387142e8be8f324f899685cbb6d1821e87081194eacaddeac038aa033a4e +MD5 0d892ed6fce4fbebb2b3548333ba0663 cpulimit-1.1.ebuild 544 +RMD160 fad08f2e6661fc9d4b81d305bfca4d9a5a9604fb cpulimit-1.1.ebuild 544 +SHA256 90e5387142e8be8f324f899685cbb6d1821e87081194eacaddeac038aa033a4e cpulimit-1.1.ebuild 544 +MISC ChangeLog 401 RMD160 ae099fad3b0bc1c00298918b2bf05563fc4f9efc SHA1 9d887030a9acdd8b6dcd76836718d4bfa635523a SHA256 8ec1c56ef40c1075f8e8e7c800c5c589f7fa365db44fa830e3f29017ba02d0e3 +MD5 f33df5d5c9bd04bd5b51f6724c48f4fa ChangeLog 401 +RMD160 ae099fad3b0bc1c00298918b2bf05563fc4f9efc ChangeLog 401 +SHA256 8ec1c56ef40c1075f8e8e7c800c5c589f7fa365db44fa830e3f29017ba02d0e3 ChangeLog 401 +MISC metadata.xml 246 RMD160 bb55fd5ebc30311c85ef4556be66f28e33a42204 SHA1 d48ae5b08410e3ac87ca7810ae2ab4fe096c1094 SHA256 1c898905d69c754ac2d6196618d81e205236322f28362b5c5796d63c4873ff2c +MD5 5b1094600e62642cb41d0aa64a70c705 metadata.xml 246 +RMD160 bb55fd5ebc30311c85ef4556be66f28e33a42204 metadata.xml 246 +SHA256 1c898905d69c754ac2d6196618d81e205236322f28362b5c5796d63c4873ff2c metadata.xml 246 +MD5 44aed8f6be1771f8359caf015a9ac82e files/digest-cpulimit-1.1 232 +RMD160 34421efe6d8b89b362367bfd6ef8fe650d81e04b files/digest-cpulimit-1.1 232 +SHA256 c71c037cc3047f31e8383b4d172f5e777511c1a09d03c15b5cd5dfabc991a29c files/digest-cpulimit-1.1 232 diff --git a/app-admin/cpulimit/cpulimit-1.1.ebuild b/app-admin/cpulimit/cpulimit-1.1.ebuild new file mode 100644 index 000000000000..1980f1246ece --- /dev/null +++ b/app-admin/cpulimit/cpulimit-1.1.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/cpulimit/cpulimit-1.1.ebuild,v 1.1 2006/10/19 01:34:24 tcort Exp $ + +inherit eutils + +DESCRIPTION="limits the CPU usage of a process" +HOMEPAGE="http://marlon80.interfree.it/cpulimit/" +SRC_URI="http://marlon80.interfree.it/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="virtual/libc" +RDEPEND="${DEPEND}" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}/${P}-makefile.patch" +} + +src_install() { + dosbin cpulimit + doman "${FILESDIR}/cpulimit.8" +} diff --git a/app-admin/cpulimit/files/cpulimit-1.1-makefile.patch b/app-admin/cpulimit/files/cpulimit-1.1-makefile.patch new file mode 100644 index 000000000000..19f8b56dfd6c --- /dev/null +++ b/app-admin/cpulimit/files/cpulimit-1.1-makefile.patch @@ -0,0 +1,11 @@ +--- cpulimit-1.1~/Makefile 2006-07-12 23:33:51.000000000 +0200 ++++ cpulimit-1.1/Makefile 2006-07-12 23:34:48.000000000 +0200 +@@ -1,7 +1,7 @@ + all:: cpulimit + + cpulimit: cpulimit.c +- gcc -o cpulimit cpulimit.c -lrt -Wall -O2 ++ $(CC) -o cpulimit cpulimit.c -lrt $(CFLAGS) + + clean: + rm -f *~ cpulimit diff --git a/app-admin/cpulimit/files/cpulimit.8 b/app-admin/cpulimit/files/cpulimit.8 new file mode 100644 index 000000000000..8e6dcf9bbf42 --- /dev/null +++ b/app-admin/cpulimit/files/cpulimit.8 @@ -0,0 +1,49 @@ +.TH CPULIMIT "8" "July 2006" "cpulimit" "System Management" +.SH NAME +cpulimit -- limits the CPU usage of a process +.SH SYNOPSIS +.B cpulimit +\fITARGET \fR[\fIOPTIONS\fR...] +.SH DESCRIPTION +.P +\fITARGET \fRmust be exactly one of these: +.TP +\fB\-p\fR, \fB\-\-pid\fR=\fIN\fR +pid of the process +.TP +\fB\-e\fR, \fB\-\-exe\fR=\fIFILE\fR +name of the executable program file +.TP +\fB\-P\fR, \fB\-\-path\fR=\fIPATH\fR +absolute path name of the executable program file +.P +\fIOPTIONS\fR +.TP +\fB\-l\fR, \fB\-\-limit\fR=\fIN\fR +percentage of CPU allowed from 0 to 100 (mandatory) +.TP +\fB\-v\fR, \fB\-\-verbose\fR +show control statistics +.TP +\fB\-z\fR, \fB\-\-lazy\fR +exit if there is no suitable target process, or if it dies +.TP +\fB\-h\fR, \fB\-\-help\fR +display this help and exit +.SH EXAMPLES +Assuming you have started \fB`foo \-\-bar`\fR and you find out with \fItop\fR(1) or +\fIps\fR(1) that this process uses all your CPU time you can either +.TP +\[sh] \fBcpulimit \-e foo \-l 50\fR +limits the CPU usage of the process by acting on the executable program file +(note: the argument "\-\-bar" is omitted) +.TP +\[sh] \fBcpulimit \-p 1234 \-l 50\fR +limits the CPU usage of the process by acting on its PID, as shown by +\fIps\fR(1) +.TP +\[sh] \fBcpulimit \-P /usr/bin/foo \-l 50\fR +same as \fI\-e\fR but uses the absolute path name +.SH AUTHOR +This manpage was written for the Debian project by gregor herrmann +<gregor+debian@comodo.priv.at> but may be used by others. diff --git a/app-admin/cpulimit/files/digest-cpulimit-1.1 b/app-admin/cpulimit/files/digest-cpulimit-1.1 new file mode 100644 index 000000000000..6f32cbc43ce7 --- /dev/null +++ b/app-admin/cpulimit/files/digest-cpulimit-1.1 @@ -0,0 +1,3 @@ +MD5 f4ff6d4bfaef1258e8f5cd2041e2e2a3 cpulimit-1.1.tar.gz 5130 +RMD160 386a7c0cd248273c7dff1a2dc48e5269160fa3c3 cpulimit-1.1.tar.gz 5130 +SHA256 ee734e82692dc496a083c003340b326bd779567f5de99fcae99e451606c85c00 cpulimit-1.1.tar.gz 5130 diff --git a/app-admin/cpulimit/metadata.xml b/app-admin/cpulimit/metadata.xml new file mode 100644 index 000000000000..f94f1f8ed911 --- /dev/null +++ b/app-admin/cpulimit/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>no-herd</herd> +<maintainer> + <email>tcort@gentoo.org</email> + <name>Thomas Cort</name> +</maintainer> +</pkgmetadata> |