diff options
Diffstat (limited to 'sys-apps/microcode-ctl/microcode-ctl-1.16.ebuild')
-rw-r--r-- | sys-apps/microcode-ctl/microcode-ctl-1.16.ebuild | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/sys-apps/microcode-ctl/microcode-ctl-1.16.ebuild b/sys-apps/microcode-ctl/microcode-ctl-1.16.ebuild new file mode 100644 index 000000000000..dd07996ec95d --- /dev/null +++ b/sys-apps/microcode-ctl/microcode-ctl-1.16.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/microcode-ctl/microcode-ctl-1.16.ebuild,v 1.1 2007/02/04 23:03:24 vapier Exp $ + +inherit toolchain-funcs + +MY_P=${PN/-/_}-${PV} +DESCRIPTION="Intel IA32 microcode update utility" +HOMEPAGE="http://www.urbanmyth.org/microcode" +SRC_URI="http://www.urbanmyth.org/microcode/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +IUSE="" + +S=${WORKDIR}/${MY_P} + +src_compile() { + emake \ + CC="$(tc-getCC)" \ + CFLAGS="${CFLAGS} ${LDFLAGS}" \ + || die "compile problem" +} + +src_install() { + dosbin microcode_ctl || die "dosbin" + doman microcode_ctl.8 + dodoc Changelog README + + insinto /etc + newins intel-ia32microcode-*.txt microcode.dat + + newinitd "${FILESDIR}"/microcode_ctl.rc microcode_ctl + newconfd "${FILESDIR}"/microcode_ctl.conf.d microcode_ctl +} + +pkg_postinst() { + ewarn "Your kernel must include microcode update support." + echo + einfo "Microcode updates will be lost at every reboot." + einfo "You can use the init.d script to update at boot time." +} |