/[gentoo-x86]/sys-apps/microcode-ctl/microcode-ctl-1.17-r2.ebuild
Gentoo

Contents of /sys-apps/microcode-ctl/microcode-ctl-1.17-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Mon Jan 24 14:16:01 2011 UTC (3 years, 6 months ago) by darkside
Branch: MAIN
Changes since 1.2: +13 -7 lines
Improve MICROCODE kernel detection/warning. Remove old version. Signed off by base-system team

(Portage version: 2.1.9.25/cvs/Linux i686)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $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 $
4
5 inherit linux-info toolchain-funcs
6
7 MY_P=${PN/-/_}-${PV}
8 DESCRIPTION="Intel processor microcode update utility"
9 HOMEPAGE="http://www.urbanmyth.org/microcode"
10 SRC_URI="http://www.urbanmyth.org/microcode/${MY_P}.tar.gz"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="-* amd64 x86"
15 IUSE=""
16
17 RDEPEND=">=sys-apps/microcode-data-20090330"
18
19 S=${WORKDIR}/${MY_P}
20
21 src_compile() {
22 emake \
23 CC="$(tc-getCC)" \
24 CFLAGS="${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" \
25 || die "compile problem"
26 }
27
28 src_install() {
29 dosbin microcode_ctl || die "dosbin"
30 doman microcode_ctl.8
31 dodoc Changelog README
32
33 newinitd "${FILESDIR}"/microcode_ctl.rc-r1 microcode_ctl
34 newconfd "${FILESDIR}"/microcode_ctl.conf.d microcode_ctl
35 }
36
37 pkg_postinst() {
38 # Just a friendly warning
39 if ! linux_config_exists || ! linux_chkconfig_present MICROCODE; then
40 echo
41 ewarn "Your kernel must include microcode update support."
42 ewarn " Processor type and features --->"
43 ewarn " <*> /dev/cpu/microcode - microcode support"
44 echo
45 fi
46 elog "Microcode updates will be lost at every reboot."
47 elog "You can use the init.d script to update at boot time."
48 }

  ViewVC Help
Powered by ViewVC 1.1.20