Commit 5558cec3 authored by Ed Reel's avatar Ed Reel

Add collectl package

parent 38f3827a
require 'package'
class Collectl < Package
description 'Collectl is a light-weight performance monitoring tool capable of reporting interactively as well as logging to disk.'
homepage 'http://collectl.sourceforge.net/'
version '4.1.2'
source_url 'https://downloads.sourceforge.net/project/collectl/collectl/collectl-4.1.2/collectl-4.1.2.src.tar.gz'
source_sha256 '972654e93ffa1ad535c6ef760c55f1ee53323893217aa83d4ad0f5aff824c431'
binary_url ({
})
binary_sha256 ({
})
depends_on 'perl'
def self.build
system "sed -i 's,/usr/bin/perl,#{CREW_PREFIX}/bin/perl,' colmux"
system "sed -i 's,/usr/bin/perl,#{CREW_PREFIX}/bin/perl,' collectl"
system "sed -i 's,/etc/\$ConfigFile,#{CREW_PREFIX}/etc/\$ConfigFile,' collectl"
system "sed -i 's,DESTDIR=\${DESTDIR:=\"/\"},DESTDIR=#{CREW_DEST_PREFIX},' INSTALL"
system "sed -i 's,\$DESTDIR/usr,\$DESTDIR,g' INSTALL"
system "sed -i 's,/var/log,#{CREW_PREFIX}/logs,' INSTALL"
end
def self.install
system "./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