[95892] trunk/dports/sysutils

ryandesign at macports.org ryandesign at macports.org
Wed Jul 25 16:03:30 PDT 2012


Revision: 95892
          https://trac.macports.org/changeset/95892
Author:   ryandesign at macports.org
Date:     2012-07-25 16:03:30 -0700 (Wed, 25 Jul 2012)
Log Message:
-----------
cputhrottle: new port, version 20100515_0 (#35295)

Added Paths:
-----------
    trunk/dports/sysutils/cputhrottle/
    trunk/dports/sysutils/cputhrottle/Portfile

Added: trunk/dports/sysutils/cputhrottle/Portfile
===================================================================
--- trunk/dports/sysutils/cputhrottle/Portfile	                        (rev 0)
+++ trunk/dports/sysutils/cputhrottle/Portfile	2012-07-25 23:03:30 UTC (rev 95892)
@@ -0,0 +1,52 @@
+# -*- 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
+# $Id$
+
+PortSystem          1.0
+
+name                cputhrottle
+#can't find any designated version number, so we'll use its release date
+version             20100515
+categories          sysutils
+platforms           darwin
+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/
+distname            ${name}
+dist_subdir         ${name}/${version}
+
+checksums           md5     21b8c53310111dabe4d6b58cc702deb6 \
+                    sha1    e88c7264cb09399f2e4c54f9d10978ffbb99078b \
+                    rmd160  4fc0e11712e6fd308c955d821091c9bd2188b720
+
+depends_build       port:boost
+
+use_configure       no
+
+variant universal {}
+
+# For some reason this makefile expects "CC" to be a C++ compiler
+build.args-append   CC="${configure.cxx} [get_canonical_archflags cxx]" \
+                    BOOST_ROOT=${prefix} \
+                    BOOST_INCLUDES=${prefix}/include
+
+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.
+"


Property changes on: trunk/dports/sysutils/cputhrottle/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120725/da2dd2c2/attachment.html>


More information about the macports-changes mailing list