mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
47 lines
1.2 KiB
Tcl
47 lines
1.2 KiB
Tcl
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
|
|
|
|
PortSystem 1.0
|
|
PortGroup makefile 1.0
|
|
|
|
name cputhrottle
|
|
version 1.0.0
|
|
epoch 1
|
|
revision 1
|
|
|
|
categories sysutils
|
|
license none
|
|
maintainers nomaintainer
|
|
|
|
description a tool to for throttling process cpu usage
|
|
long_description Cputhrottle is a tool which allows cpu usage to be \
|
|
limited on a per-PID basis.
|
|
|
|
homepage http://www.willnolan.com/cputhrottle/cputhrottle.html
|
|
master_sites http://www.willnolan.com/cputhrottle/
|
|
|
|
checksums rmd160 529365fd4c3525fd4120e0df78e0004d1187a874 \
|
|
sha256 08243656d0abf6dd5fd9542d33553507ce395ee4e0a1aeb5df08ca78bc83ec21 \
|
|
size 3357
|
|
|
|
worksrcdir ${name}
|
|
|
|
patchfiles patch-GNUmakefile.diff
|
|
|
|
compiler.cxx_standard 2011
|
|
|
|
destroot {
|
|
xinstall -W ${worksrcpath} cputhrottle ${destroot}${prefix}/bin
|
|
}
|
|
|
|
notes "
|
|
${name} must be run as root, i.e.
|
|
|
|
sudo cputhrottle <pid> <percentage>
|
|
|
|
For example:
|
|
|
|
sudo cputhrottle 328 25
|
|
|
|
would limit process ID 328 to a maximum of 25% CPU usage.
|
|
"
|