# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=4 inherit eutils DESCRIPTION="Intel LMS Driver" HOMEPAGE="http://software.intel.com/en-us/blogs/2011/06/01/new-updated-intelr-amt-linux-drivers/" SRC_URI="http://software.intel.com/file/36596 -> lms-${PV}.zip" LICENSE="as-is" SLOT="0" KEYWORDS="-* ~amd64 ~x86" IUSE="" DEPEND="" RDEPEND="${DEPEND}" src_unpack() { unpack ${A} S="${WORKDIR}/outputdir" cd "${S}" tar xzf lms-*.tar.gz S="${S}/lms-7.1.20" } src_prepare() { epatch "${FILESDIR}/${PN}-fix_compile.patch" } src_install() { dosbin src/lms insinto /etc/init.d doins ${FILESDIR}/lms fperms 0755 /etc/init.d/lms dodoc COPYING dodoc README } pkg_postinst() { elog "To use this daemon the following preconditions must be met:" elog "- Your hardware must be Intel AMT / ME enabled" elog "- Intel Management BIOS Extension (MEBx) must be enabled and configured (Ctrl-P)" elog "- Your kernel must be compiled with the mei driver (INTEL_MEI)" elog " which is present in 3.4 and above" elog "- if /sys/modules/mei/version does not exist you must patch the" elog " kernel with: http://article.gmane.org/gmane.linux.kernel/1325428" elog "The webinterface is located at http://localhost:16992/" }