Commit 89517de8 authored by Casey Strouse's avatar Casey Strouse

Add cpustat (0.02.01) package

cpustat periodically dumps out the current CPU utilisation statistics of running processes. cpustat also includes some simple statistical analysis options that can help characterise the way CPUs are being loaded.

Tested as working properly on Samsung XE50013-K01US.
parent 00023b89
require 'package'
class Cpustat < Package
version '0.02.01'
source_url 'http://kernel.ubuntu.com/~cking/tarballs/cpustat/cpustat-0.02.01.tar.gz'
source_sha1 '0eca37a1c6e1282b05be51fc2dd1dac72875112d'
depends_on "ncurses"
def self.build
system "sed -i 's,/usr,/usr/local,g' Makefile"
system "sed -i '/^CFLAGS += -Wall/s/$/ -I\\/usr\\/local\\/include\\/ncurses/' Makefile"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment