summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Cort <tcort@gentoo.org>2006-10-19 01:34:24 +0000
committerThomas Cort <tcort@gentoo.org>2006-10-19 01:34:24 +0000
commit49a075c9a0ccfb1d3e08e73603c3004da820e6f5 (patch)
tree4c66ca9fd125bd8786db484c3f35039be977c86e /app-admin/cpulimit
parentReplace -O2 with -O3 on x86 systems running GCC 4.1. Closes bug #151221. (diff)
downloadhistorical-49a075c9a0ccfb1d3e08e73603c3004da820e6f5.tar.gz
historical-49a075c9a0ccfb1d3e08e73603c3004da820e6f5.tar.bz2
historical-49a075c9a0ccfb1d3e08e73603c3004da820e6f5.zip
Initial Commit. Ebuild from sunrise overlay. Ebuild originally from Rupel <ruepel@gmx.li> on Bug #139547.
Package-Manager: portage-2.1.1-r1
Diffstat (limited to 'app-admin/cpulimit')
-rw-r--r--app-admin/cpulimit/ChangeLog12
-rw-r--r--app-admin/cpulimit/Manifest24
-rw-r--r--app-admin/cpulimit/cpulimit-1.1.ebuild28
-rw-r--r--app-admin/cpulimit/files/cpulimit-1.1-makefile.patch11
-rw-r--r--app-admin/cpulimit/files/cpulimit.849
-rw-r--r--app-admin/cpulimit/files/digest-cpulimit-1.13
-rw-r--r--app-admin/cpulimit/metadata.xml9
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..96f8e359e161
--- /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 643 RMD160 be2bd3d7f3cdc7102a33a295a1640ea6ccb5813e SHA1 04629822eef6b3f45458fcb815edd0b1ae5cdcf3 SHA256 98cd0ef372d81597ede393f2bc12f5a110b1682c78a2280b5c3d722adf9617f6
+MD5 55ec5aed739630e2030dec06b912755a cpulimit-1.1.ebuild 643
+RMD160 be2bd3d7f3cdc7102a33a295a1640ea6ccb5813e cpulimit-1.1.ebuild 643
+SHA256 98cd0ef372d81597ede393f2bc12f5a110b1682c78a2280b5c3d722adf9617f6 cpulimit-1.1.ebuild 643
+MISC ChangeLog 490 RMD160 58aadecaf338689c427e86416389b087dd0fa55c SHA1 d59dae6d2c04879d7f111b84fa12aa55cdc86f0b SHA256 3a5699d46e88aaa7ed6485f4ee5330e94141c25ad7fdb5b3f8df03201c18925a
+MD5 ea84a53fbee8b9992bc979e922320d65 ChangeLog 490
+RMD160 58aadecaf338689c427e86416389b087dd0fa55c ChangeLog 490
+SHA256 3a5699d46e88aaa7ed6485f4ee5330e94141c25ad7fdb5b3f8df03201c18925a ChangeLog 490
+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>