2015-08-21 16:02:53 +02:00
|
|
|
# Copyright 1999-2015 Gentoo Foundation
|
2014-05-07 20:52:11 +02:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2015-08-21 16:02:53 +02:00
|
|
|
# $Id$
|
2014-05-07 20:52:11 +02:00
|
|
|
|
|
|
|
EAPI=4
|
|
|
|
|
2014-05-15 11:27:49 +02:00
|
|
|
inherit eutils linux-info versionator
|
2014-05-07 20:52:11 +02:00
|
|
|
|
|
|
|
MY_PV=$(replace_version_separator 3 '-' )
|
|
|
|
MY_P="${PN}-${MY_PV}"
|
|
|
|
|
2014-06-14 13:44:01 +02:00
|
|
|
DESCRIPTION="Local Manageability Service (LMS) allows access to Intel Active Management"
|
2014-05-07 20:52:11 +02:00
|
|
|
HOMEPAGE="http://software.intel.com/en-us/articles/download-the-latest-intel-amt-open-source-drivers"
|
|
|
|
SRC_URI="http://software.intel.com/sites/default/files/${MY_P}.tar.gz"
|
|
|
|
|
|
|
|
S=${WORKDIR}/${MY_P}
|
|
|
|
|
|
|
|
LICENSE="Intel-SDP"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~x86 ~amd64"
|
|
|
|
IUSE=""
|
|
|
|
|
|
|
|
DEPEND=""
|
|
|
|
RDEPEND="${DEPEND}"
|
|
|
|
|
|
|
|
pkg_pretend() {
|
|
|
|
linux-info_pkg_setup
|
|
|
|
if ! linux_config_exists || ! linux_chkconfig_present INTEL_MEI
|
|
|
|
then
|
2014-06-03 06:57:02 +02:00
|
|
|
ewarn "This service requires Intel MEI driver in your kernel config"
|
2014-06-14 13:44:01 +02:00
|
|
|
ewarn
|
2014-06-03 06:57:02 +02:00
|
|
|
ewarn " Device Drivers -->"
|
|
|
|
ewarn " Misc devices -->"
|
|
|
|
ewarn " <*> Intel Management Engine Interface (Intel MEI)"
|
|
|
|
ewarn
|
|
|
|
ewarn "and recompile your kernel ..."
|
|
|
|
fi
|
2014-05-07 20:52:11 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
edos2unix README
|
2014-05-15 11:27:49 +02:00
|
|
|
epatch "${FILESDIR}/${PN}-build.patch"
|
2014-05-07 20:52:11 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
emake DESTDIR="${D}" install
|
|
|
|
dodoc README
|
|
|
|
newinitd "${FILESDIR}/lms.initd" lms
|
|
|
|
}
|