Commit 02880274 authored by Casey Strouse's avatar Casey Strouse

Add powerstat (0.02.11) package

Powerstat measures the power consumption of a laptop using the ACPI battery information. The output is like vmstat but also shows power consumption statistics. At the end of a run, powerstat will calculate the average, standard deviation and min/max of the gathered data.

Tested as working properly on Samsung XE50013-K01US.
parent 00023b89
require 'package'
class Powerstat < Package
version '0.02.11'
source_url 'http://kernel.ubuntu.com/~cking/tarballs/powerstat/powerstat-0.02.11.tar.gz'
source_sha1 '729c5f8f4509ab13134278c8afe04cf2244d928c'
def self.build
system "sed -i 's,/usr,/usr/local,g' 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