source: trunk/dports/sysutils/cputhrottle/Portfile

Last change on this file was 122738, checked in by jmr@…, 3 years ago

cputhrottle: no license info

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1# -*- 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
2# $Id: Portfile 122738 2014-07-28 15:08:27Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                cputhrottle
7#can't find any designated version number, so we'll use its release date
8version             20100515
9categories          sysutils
10license             none
11platforms           darwin
12maintainers         nomaintainer
13
14description         a tool to for throttling process cpu usage
15
16long_description    Cputhrottle is a tool which allows cpu usage to be \
17                    limited on a per-PID basis.
18
19homepage            http://www.willnolan.com/cputhrottle/cputhrottle.html
20master_sites        http://www.willnolan.com/cputhrottle/
21distname            ${name}
22dist_subdir         ${name}/${version}
23
24checksums           md5     21b8c53310111dabe4d6b58cc702deb6 \
25                    sha1    e88c7264cb09399f2e4c54f9d10978ffbb99078b \
26                    rmd160  4fc0e11712e6fd308c955d821091c9bd2188b720
27
28depends_build       port:boost
29
30use_configure       no
31
32variant universal {}
33
34# For some reason this makefile expects "CC" to be a C++ compiler
35build.args-append   CC="${configure.cxx} [get_canonical_archflags cxx]" \
36                    BOOST_ROOT=${prefix} \
37                    BOOST_INCLUDES=${prefix}/include
38
39destroot {
40    xinstall -W ${worksrcpath} cputhrottle ${destroot}${prefix}/bin
41}
42
43notes "
44${name} must be run as root, i.e.
45
46sudo cputhrottle <pid> <percentage>
47
48For example:
49
50sudo cputhrottle 328 25
51
52would limit process ID 328 to a maximum of 25% CPU usage.
53"
Note: See TracBrowser for help on using the repository browser.