/[gentoo-x86]/sys-apps/x86info/x86info-1.24-r2.ebuild
Gentoo

Contents of /sys-apps/x86info/x86info-1.24-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Fri Mar 30 13:20:39 2012 UTC (6 years, 2 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
punt the non-building copies

(Portage version: 2.2.0_alpha96/cvs/Linux x86_64)

1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-apps/x86info/x86info-1.24-r2.ebuild,v 1.3 2009/08/15 23:41:13 vapier Exp $
4
5 inherit eutils toolchain-funcs
6
7 DESCRIPTION="Dave Jones' handy, informative x86 CPU diagnostic utility"
8 HOMEPAGE="http://www.codemonkey.org.uk/projects/x86info/"
9 SRC_URI="http://www.codemonkey.org.uk/projects/x86info/${P}.tgz"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="-* ~amd64 ~x86"
14 IUSE=""
15
16 RDEPEND=""
17 DEPEND="sys-apps/sed"
18
19 src_unpack() {
20 unpack ${A}
21 cd "${S}"
22 epatch "${FILESDIR}"/1.21-pic.patch
23 epatch "${FILESDIR}"/${P}-pic.patch #270388
24 sed -i -e 's:$(CFLAGS) -o x86:$(LDFLAGS) $(CFLAGS) -o x86:' \
25 Makefile || die "I don't want your LDFLAGS."
26 }
27
28 src_compile() {
29 emake x86info CC="$(tc-getCC)" \
30 CFLAGS="${CFLAGS} ${CPPFLAGS}" || die "emake failed"
31 }
32
33 src_install() {
34 dobin x86info || die
35
36 insinto /etc/modprobe.d
37 newins "${FILESDIR}"/x86info-modules.conf-rc x86info.conf
38
39 dodoc TODO README
40 doman x86info.1
41 insinto /usr/share/doc/${PF}
42 doins -r results
43 prepalldocs
44 }
45
46 pkg_preinst() {
47 if [ -a "${ROOT}"/etc/modules.d/x86info ] && [ ! -a "${ROOT}"/etc/modprobe.d/x86info ] ; then
48 elog "Moving x86info from /etc/modules.d/ to /etc/modprobe.d/"
49 mv "${ROOT}"/etc/{modules,modprobe}.d/x86info
50 fi
51 if [ -a "${ROOT}"/etc/modprobe.d/x86info ] && [ ! -a "${ROOT}"/etc/modprobe.d/x86info.conf ] ; then
52 elog "Adding .conf suffix to x86info in /etc/modprobe.d/"
53 mv "${ROOT}"/etc/modprobe.d/x86info{,.conf}
54 fi
55 }
56
57 pkg_postinst() {
58 ewarn "Your kernel must be built with the following options"
59 ewarn "set to Y or M"
60 ewarn " Processor type and features ->"
61 ewarn " [*] /dev/cpu/*/msr - Model-specific register support"
62 ewarn " [*] /dev/cpu/*/cpuid - CPU information support"
63 }

  ViewVC Help
Powered by ViewVC 1.1.20