summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Palimaka <kensington@gentoo.org>2012-12-11 17:25:35 +0000
committerMichael Palimaka <kensington@gentoo.org>2012-12-11 17:25:35 +0000
commit7e4f560c46690c1fe3a7d02bad80a41e21344a4a (patch)
tree19eeda7760510c91a29111ee6d508fe75b38e372 /sys-apps/msr-tools
parentvirtualize udev dependency, use udev.eclass to install rules (diff)
downloadgentoo-2-7e4f560c46690c1fe3a7d02bad80a41e21344a4a.tar.gz
gentoo-2-7e4f560c46690c1fe3a7d02bad80a41e21344a4a.tar.bz2
gentoo-2-7e4f560c46690c1fe3a7d02bad80a41e21344a4a.zip
New package wrt bug #401061, based on work by haarp <liquitsnake@gmx.net>.
(Portage version: 2.1.11.36/cvs/Linux x86_64, signed Manifest commit with key 675D0D2C)
Diffstat (limited to 'sys-apps/msr-tools')
-rw-r--r--sys-apps/msr-tools/ChangeLog9
-rw-r--r--sys-apps/msr-tools/metadata.xml7
-rw-r--r--sys-apps/msr-tools/msr-tools-1.2.ebuild32
3 files changed, 48 insertions, 0 deletions
diff --git a/sys-apps/msr-tools/ChangeLog b/sys-apps/msr-tools/ChangeLog
new file mode 100644
index 000000000000..350602f7a5ab
--- /dev/null
+++ b/sys-apps/msr-tools/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for sys-apps/msr-tools
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/msr-tools/ChangeLog,v 1.1 2012/12/11 17:25:35 kensington Exp $
+
+*msr-tools-1.2 (11 Dec 2012)
+
+ 11 Dec 2012; Michael Palimaka <kensington@gentoo.org> +metadata.xml,
+ +msr-tools-1.2.ebuild:
+ New package wrt bug #401061, based on work by haarp <liquitsnake@gmx.net>.
diff --git a/sys-apps/msr-tools/metadata.xml b/sys-apps/msr-tools/metadata.xml
new file mode 100644
index 000000000000..07339f6f0ce8
--- /dev/null
+++ b/sys-apps/msr-tools/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>kensington@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/sys-apps/msr-tools/msr-tools-1.2.ebuild b/sys-apps/msr-tools/msr-tools-1.2.ebuild
new file mode 100644
index 000000000000..4a262975146f
--- /dev/null
+++ b/sys-apps/msr-tools/msr-tools-1.2.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/msr-tools/msr-tools-1.2.ebuild,v 1.1 2012/12/11 17:25:35 kensington Exp $
+
+EAPI=5
+CONFIG_CHECK="~X86_MSR"
+DEB_P="msr-tools_1.2-3"
+
+inherit eutils linux-info toolchain-funcs
+
+DESCRIPTION="Utilities allowing the read and write of CPU model-specific registers (MSR)"
+HOMEPAGE="http://www.kernel.org/pub/linux/utils/cpu/msr-tools/"
+SRC_URI="http://dev.gentoo.org/~kensington/distfiles/${P}.tar.gz mirror://debian/pool/main/m/${PN}/${DEB_P}.diff.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+
+src_prepare() {
+ epatch "${WORKDIR}"/${DEB_P}.diff
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
+}
+
+src_install() {
+ dosbin rdmsr
+ dosbin wrmsr
+
+ doman ${P}/debian/rdmsr.1 ${P}/debian/wrmsr.1
+}