summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Olexa <darkside@gentoo.org>2011-01-24 14:16:01 +0000
committerJeremy Olexa <darkside@gentoo.org>2011-01-24 14:16:01 +0000
commit5d583aa60a2502eeb58a826de0cbe2d347d149f6 (patch)
treeb3543fb67e60c1e8646a6ea8f5ef7974e6d546bf /sys-apps/microcode-ctl
parentDrop pkg_setup phase since operations done inside of that phase were supposed... (diff)
downloadgentoo-2-5d583aa60a2502eeb58a826de0cbe2d347d149f6.tar.gz
gentoo-2-5d583aa60a2502eeb58a826de0cbe2d347d149f6.tar.bz2
gentoo-2-5d583aa60a2502eeb58a826de0cbe2d347d149f6.zip
Improve MICROCODE kernel detection/warning. Remove old version. Signed off by base-system team
(Portage version: 2.1.9.25/cvs/Linux i686)
Diffstat (limited to 'sys-apps/microcode-ctl')
-rw-r--r--sys-apps/microcode-ctl/ChangeLog9
-rw-r--r--sys-apps/microcode-ctl/microcode-ctl-1.17-r2.ebuild20
2 files changed, 20 insertions, 9 deletions
diff --git a/sys-apps/microcode-ctl/ChangeLog b/sys-apps/microcode-ctl/ChangeLog
index 0aeed5b5e002..048849989141 100644
--- a/sys-apps/microcode-ctl/ChangeLog
+++ b/sys-apps/microcode-ctl/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sys-apps/microcode-ctl
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/microcode-ctl/ChangeLog,v 1.31 2009/06/10 20:23:22 maekke Exp $
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/microcode-ctl/ChangeLog,v 1.32 2011/01/24 14:16:01 darkside Exp $
+
+ 24 Jan 2011; Jeremy Olexa <darkside@gentoo.org>
+ microcode-ctl-1.17-r2.ebuild:
+ Improve MICROCODE kernel detection/warning. Remove old version. Signed off
+ by base-system team
10 Jun 2009; Markus Meier <maekke@gentoo.org>
microcode-ctl-1.17-r2.ebuild:
diff --git a/sys-apps/microcode-ctl/microcode-ctl-1.17-r2.ebuild b/sys-apps/microcode-ctl/microcode-ctl-1.17-r2.ebuild
index 03dc75524844..1c99b6fda911 100644
--- a/sys-apps/microcode-ctl/microcode-ctl-1.17-r2.ebuild
+++ b/sys-apps/microcode-ctl/microcode-ctl-1.17-r2.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2009 Gentoo Foundation
+# Copyright 1999-2011 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.17-r2.ebuild,v 1.2 2009/06/10 20:23:22 maekke Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/microcode-ctl/microcode-ctl-1.17-r2.ebuild,v 1.3 2011/01/24 14:16:01 darkside Exp $
-inherit toolchain-funcs
+inherit linux-info toolchain-funcs
MY_P=${PN/-/_}-${PV}
DESCRIPTION="Intel processor microcode update utility"
@@ -35,8 +35,14 @@ src_install() {
}
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."
+ # 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."
}