You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-admin/mcelog/mcelog-1.0_pre3_p20120918.e...

42 lines
1009 B

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/mcelog/mcelog-1.0_pre3_p20120918.ebuild,v 1.1 2012/10/24 16:17:09 hasufell Exp $
EAPI=5
inherit linux-info eutils toolchain-funcs vcs-snapshot
DESCRIPTION="A tool to log and decode Machine Check Exceptions"
HOMEPAGE="http://mcelog.org/"
SRC_URI="https://github.com/andikleen/${PN}/tarball/0f5d0238ca7fb963a687a3c50c96c5f37a599c6b -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
CONFIG_CHECK="~X86_MCE"
# TODO: add mce-inject to the tree to support test phase
RESTRICT="test"
src_prepare() {
epatch "${FILESDIR}"/${PN}-0.8_pre1-timestamp-${PN}.patch \
"${FILESDIR}"/${P}-build.patch
tc-export CC
}
src_install() {
dosbin ${PN}
insinto /etc/cron.daily
newins ${PN}.cron ${PN}
insinto /etc/logrotate.d/
newins ${PN}.logrotate ${PN}
newinitd "${FILESDIR}"/${PN}.init ${PN}
dodoc CHANGES README TODO *.pdf
doman ${PN}.8
}