summaryrefslogtreecommitdiff
blob: 30d47bc3752d692b833196ae930e4f9acd43170f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Maintainer: William McArthur <sandymac@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/sys-apps/microcode_ctl/microcode_ctl-1.06.ebuild,v 1.1 2002/04/30 13:52:59 sandymac Exp $

S=${WORKDIR}/${P}
DESCRIPTION="Intel IA32 microcode update utility"
HOMEPAGE="http://www.urbanmyth.org/microcode"
LICENSE="GPL-2"
SRC_URI="http://www.urbanmyth.org/microcode/${P}.tar.gz"
DEPEND="virtual/linux-sources"

src_compile() {
	make all || die "compile problem"
}

src_install() {
	into /usr/
	dosbin microcode_ctl
	doman microcode_ctl.8
	dodoc Changelog README
	insinto /etc/
	doins ${FILESDIR}/${PVR}/microcode.dat
	exeinto /etc/init.d/
	doexe ${FILESDIR}/${PVR}/microcode_ctl
}

pkg_postinst() {
	einfo
	einfo '################################################################'
	einfo '# For the microcode update to work, you need to have a kernel  #'
	einfo '# compiled with both devfs and microcode update support.       #'
	einfo '#                                                              #'
	einfo '#   To update the microcode now, simply type:                  #'
	einfo '#        "microcode_ctl -u"                                    #'
	einfo '#                                                              #'
	einfo '#   The update will not survive a reboot, for that type:       #'
	einfo '#        "rc-update add microcode_ctl default"                 #'
	einfo '################################################################'
	einfo
}