Commit 96a26525 authored by Ed Reel's avatar Ed Reel Committed by Chris Thurber

Add mcelog package (#3262)

parent 483a4aa1
require 'package'
class Mcelog < Package
description 'logs and accounts machine checks (in particular memory, IO, and CPU hardware errors) on modern x86 Linux systems.'
homepage 'https://www.mcelog.org/'
version '162'
source_url 'https://git.kernel.org/pub/scm/utils/cpu/mce/mcelog.git/snapshot/mcelog-162.tar.gz'
source_sha256 '875e98572e86240ea319ab1f69ee6d744eb8b73ac5d700e474f6410d0f52d3fc'
binary_url ({
})
binary_sha256 ({
})
def self.patch
system "sed -i 's,prefix := /usr,prefix := #{CREW_PREFIX},' Makefile"
system "sed -i 's,etcprefix :=,etcprefix := #{CREW_PREFIX},' Makefile"
end
def self.build
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