# Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="5" inherit linux-info toolchain-funcs HASH_VERSION="84f0eb163f2ab29229493985620a7957cc233061" DESCRIPTION="Iucode-tool is a system administration tool to manipulate Intel X86 and X86-64 processor microcode update collections." HOMEPAGE="https://gitorious.org/iucode-tool" SRC_URI="https://gitorious.org/iucode-tool/releases/raw/${HASH_VERSION}:${PN}_${PV}.tar.xz -> ${PN}_${PV}.tar.xz" LICENSE="GPL-2" SLOT="0" KEYWORDS="-* ~amd64 ~x86" IUSE="" DEPEND="" RDEPEND="sys-apps/microcode-data" S=${WORKDIR}/iucode_tool-${PV} src_configure() { econf } src_compile() { emake \ CC="$(tc-getCC)" \ CFLAGS="${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" } src_install() { dosbin iucode_tool doman iucode_tool.8 dodoc AUTHORS COPYING INSTALL NEWS README TODO newinitd "${FILESDIR}"/iucode_tool.initd iucode_tool newconfd "${FILESDIR}"/iucode_tool.confd iucode_tool } pkg_postinst() { # Just a friendly warning if ! linux_config_exists || ! linux_chkconfig_present MICROCODE; then echo ewarn "Your kernel must include microcode update support." ewarn " Processor type and features --->" ewarn " <*> /dev/cpu/microcode - microcode support" echo fi elog "Microcode updates will be lost at every reboot." elog "You can use the init.d script to update at boot time." }