summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2006-06-02 02:39:40 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2006-06-02 02:39:40 +0000
commit95292d1b5defc2b1a23a12133d56eb7448d08e9a (patch)
treeb935ca3a36314e719f5b262410305f28d373fb8b /sys-power/pmtools
parentMove pmtools to sys-power. (diff)
downloadhistorical-95292d1b5defc2b1a23a12133d56eb7448d08e9a.tar.gz
historical-95292d1b5defc2b1a23a12133d56eb7448d08e9a.tar.bz2
historical-95292d1b5defc2b1a23a12133d56eb7448d08e9a.zip
Move pmtools from sys-apps to sys-power where other similar stuff is located.
Package-Manager: portage-2.1_rc3-r3
Diffstat (limited to 'sys-power/pmtools')
-rw-r--r--sys-power/pmtools/ChangeLog25
-rw-r--r--sys-power/pmtools/Manifest31
-rw-r--r--sys-power/pmtools/files/digest-pmtools-200511113
-rw-r--r--sys-power/pmtools/files/digest-pmtools-20051111-r13
-rw-r--r--sys-power/pmtools/files/pmtools-20051111-acpixtract-pmtools.patch76
-rw-r--r--sys-power/pmtools/files/pmtools-20051111-madt.patch24
-rw-r--r--sys-power/pmtools/metadata.xml15
-rw-r--r--sys-power/pmtools/pmtools-20051111-r1.ebuild48
-rw-r--r--sys-power/pmtools/pmtools-20051111.ebuild23
9 files changed, 248 insertions, 0 deletions
diff --git a/sys-power/pmtools/ChangeLog b/sys-power/pmtools/ChangeLog
new file mode 100644
index 000000000000..b8d4b3f53e91
--- /dev/null
+++ b/sys-power/pmtools/ChangeLog
@@ -0,0 +1,25 @@
+# ChangeLog for sys-apps/pmtools
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-power/pmtools/ChangeLog,v 1.1 2006/06/02 02:39:40 robbat2 Exp $
+
+ 02 Jun 2006; Robin H. Johnson <robbat2@gentoo.org>
+ +files/pmtools-20051111-acpixtract-pmtools.patch,
+ +files/pmtools-20051111-madt.patch, +metadata.xml,
+ +pmtools-20051111.ebuild, +pmtools-20051111-r1.ebuild:
+ Move pmtools from sys-apps to sys-power where other similar stuff is located.
+
+*pmtools-20051111-r1 (02 Jun 2006)
+
+ 02 Jun 2006; Robin H. Johnson <robbat2@gentoo.org>
+ +files/pmtools-20051111-acpixtract-pmtools.patch,
+ +files/pmtools-20051111-madt.patch, metadata.xml,
+ +pmtools-20051111-r1.ebuild:
+ Revamp ebuild to include all binaries, not conflict with iasl, build
+ cleaner, and be generally better. Also add myself to the maintainer list.
+
+*pmtools-20051111 (07 May 2006)
+
+ 07 May 2006; Steve Arnold <nerdboy@gentoo.org> +metadata.xml,
+ +pmtools-20051111.ebuild:
+ new ebuild to provide the acpidump utility (used with iasl)
+
diff --git a/sys-power/pmtools/Manifest b/sys-power/pmtools/Manifest
new file mode 100644
index 000000000000..f658cd3daaa3
--- /dev/null
+++ b/sys-power/pmtools/Manifest
@@ -0,0 +1,31 @@
+AUX pmtools-20051111-acpixtract-pmtools.patch 2876 RMD160 d5f86bfb22fde70f9bc309b17a8c86ab3f7c9a0b SHA1 cc18b0ed96592417b9bb25424ad1150bfeb121b4 SHA256 b8f75ec620cb523dd18915cece872161d96698a0d80bd7d323a40209b23ec671
+MD5 5bb49023f339fa1cabed1c0c1a6a1922 files/pmtools-20051111-acpixtract-pmtools.patch 2876
+RMD160 d5f86bfb22fde70f9bc309b17a8c86ab3f7c9a0b files/pmtools-20051111-acpixtract-pmtools.patch 2876
+SHA256 b8f75ec620cb523dd18915cece872161d96698a0d80bd7d323a40209b23ec671 files/pmtools-20051111-acpixtract-pmtools.patch 2876
+AUX pmtools-20051111-madt.patch 769 RMD160 94c13d627c3777ad463ce8d8c6386f1c89f94df8 SHA1 f204c4565a8efc55d1034418adc6f92661f8278a SHA256 f2434c65de462a26f8d97b75fa1eff815cade46d0ef91b8dc939da111ee1af18
+MD5 07dc4171cca85d9c1525bfe50f36bb4d files/pmtools-20051111-madt.patch 769
+RMD160 94c13d627c3777ad463ce8d8c6386f1c89f94df8 files/pmtools-20051111-madt.patch 769
+SHA256 f2434c65de462a26f8d97b75fa1eff815cade46d0ef91b8dc939da111ee1af18 files/pmtools-20051111-madt.patch 769
+DIST pmtools-20051111.tar.gz 48602 RMD160 16158a4e56dc2934c91cb07c6086beb141b486f7 SHA256 622c505c0cbb08a03a078e2b1e44c06491611c7345dcb59a28d18270bcd90bed
+EBUILD pmtools-20051111-r1.ebuild 1361 RMD160 8583ef5e47fd42b52a254068d41ea8654e720461 SHA1 d675443b397647f928f5db467ea8c5d98a28e647 SHA256 8be1792b3ee2cad6d69bb659825271a934dd00f564fc47d87deceed5cb661f08
+MD5 35f1b7c30d59516de2db3129706f0397 pmtools-20051111-r1.ebuild 1361
+RMD160 8583ef5e47fd42b52a254068d41ea8654e720461 pmtools-20051111-r1.ebuild 1361
+SHA256 8be1792b3ee2cad6d69bb659825271a934dd00f564fc47d87deceed5cb661f08 pmtools-20051111-r1.ebuild 1361
+EBUILD pmtools-20051111.ebuild 664 RMD160 5da51e6dd5e491fd079b28580727c51056867a1a SHA1 c38551f49be4dd93e077653f1310b3bdf395e93b SHA256 6c5686c1bb1e17d1fc79fedba8fad0b09fc5ec3ed72fac09173449c4c1ff4a66
+MD5 0918120da8d20b9b693894fff37679f7 pmtools-20051111.ebuild 664
+RMD160 5da51e6dd5e491fd079b28580727c51056867a1a pmtools-20051111.ebuild 664
+SHA256 6c5686c1bb1e17d1fc79fedba8fad0b09fc5ec3ed72fac09173449c4c1ff4a66 pmtools-20051111.ebuild 664
+MISC ChangeLog 1063 RMD160 0c86458e901242728aac84e81863b5bf6fafc3fe SHA1 bda4b795b62bad17764ceb3f1ef7588388055a6f SHA256 b19e08b33a147076dbf16ded7abff75565cbaa7dd9418d7649d3caa9b15aeeae
+MD5 6d62b330203d6ca607dce5c61e5bb7a3 ChangeLog 1063
+RMD160 0c86458e901242728aac84e81863b5bf6fafc3fe ChangeLog 1063
+SHA256 b19e08b33a147076dbf16ded7abff75565cbaa7dd9418d7649d3caa9b15aeeae ChangeLog 1063
+MISC metadata.xml 533 RMD160 06d6822d1d37fe42df032895be61852d748b4e60 SHA1 a0891a3a28f82a70ca3067431b2aebd8dd35b496 SHA256 095b685564533cd746483e96e141521b72a5cf63add86c58c7c4989aa0ec97b2
+MD5 6395ff82b9b5fc02a375970595a43528 metadata.xml 533
+RMD160 06d6822d1d37fe42df032895be61852d748b4e60 metadata.xml 533
+SHA256 095b685564533cd746483e96e141521b72a5cf63add86c58c7c4989aa0ec97b2 metadata.xml 533
+MD5 72560434a2006d05dabea6470a981c58 files/digest-pmtools-20051111 247
+RMD160 5c3570c0a13a405aa6efae0f0914c2a9e0ea1faf files/digest-pmtools-20051111 247
+SHA256 ecf0f8eed1a87b698615dfb8e18e4622d7c778e5862bbd5482027f66ba659f68 files/digest-pmtools-20051111 247
+MD5 72560434a2006d05dabea6470a981c58 files/digest-pmtools-20051111-r1 247
+RMD160 5c3570c0a13a405aa6efae0f0914c2a9e0ea1faf files/digest-pmtools-20051111-r1 247
+SHA256 ecf0f8eed1a87b698615dfb8e18e4622d7c778e5862bbd5482027f66ba659f68 files/digest-pmtools-20051111-r1 247
diff --git a/sys-power/pmtools/files/digest-pmtools-20051111 b/sys-power/pmtools/files/digest-pmtools-20051111
new file mode 100644
index 000000000000..82694a02bd5b
--- /dev/null
+++ b/sys-power/pmtools/files/digest-pmtools-20051111
@@ -0,0 +1,3 @@
+MD5 48024576f24ce8cf30cd17a1353aef6e pmtools-20051111.tar.gz 48602
+RMD160 16158a4e56dc2934c91cb07c6086beb141b486f7 pmtools-20051111.tar.gz 48602
+SHA256 622c505c0cbb08a03a078e2b1e44c06491611c7345dcb59a28d18270bcd90bed pmtools-20051111.tar.gz 48602
diff --git a/sys-power/pmtools/files/digest-pmtools-20051111-r1 b/sys-power/pmtools/files/digest-pmtools-20051111-r1
new file mode 100644
index 000000000000..82694a02bd5b
--- /dev/null
+++ b/sys-power/pmtools/files/digest-pmtools-20051111-r1
@@ -0,0 +1,3 @@
+MD5 48024576f24ce8cf30cd17a1353aef6e pmtools-20051111.tar.gz 48602
+RMD160 16158a4e56dc2934c91cb07c6086beb141b486f7 pmtools-20051111.tar.gz 48602
+SHA256 622c505c0cbb08a03a078e2b1e44c06491611c7345dcb59a28d18270bcd90bed pmtools-20051111.tar.gz 48602
diff --git a/sys-power/pmtools/files/pmtools-20051111-acpixtract-pmtools.patch b/sys-power/pmtools/files/pmtools-20051111-acpixtract-pmtools.patch
new file mode 100644
index 000000000000..d9d9b4650653
--- /dev/null
+++ b/sys-power/pmtools/files/pmtools-20051111-acpixtract-pmtools.patch
@@ -0,0 +1,76 @@
+diff -Nuar --exclude '*~' pmtools-20051111.orig/README pmtools-20051111/README
+--- pmtools-20051111.orig/README 2005-11-11 09:07:04.000000000 -0800
++++ pmtools-20051111/README 2006-06-01 19:24:56.917710915 -0700
+@@ -17,27 +17,27 @@
+
+ # ./acpidump -t DSDT -o DSDT
+
+-./acpidump/acpixtract
++./acpidump/acpixtract-pmtools
+ --------------------
+ Convert ASCII acpidump output to raw binary table:
+
+ # ./acpidump -t DSDT -b -o DSDT
+- $ cat email | ./acpixtract DSDT > DSDT
++ $ cat email | ./acpixtract-pmtools DSDT > DSDT
+
+ ./acpidump/acpitbl
+ -----------------
+ Dump the table header or contents of a raw ACPI table:
+
+ # ./acpidump -t FACP -b | ./acpitbl
+- $ cat email | ./acpixtract FACP | ./acpitbl
++ $ cat email | ./acpixtract-pmtools FACP | ./acpitbl
+
+ or
+- $ ./acpixtract FACP acpidump.out > FACP.bin
++ $ ./acpixtract-pmtools FACP acpidump.out > FACP.bin
+ and then
+ $ ./acpitbl FACP.bin
+
+ or
+- $ ./acpixtract -n 3 SSDT acpidump.out > SSDT3.bin
++ $ ./acpixtract-pmtools -n 3 SSDT acpidump.out > SSDT3.bin
+ to extract the n-th instance of a specified table type.
+
+ Disassembler
+diff -Nuar --exclude '*~' pmtools-20051111.orig/acpidump/acpitbl pmtools-20051111/acpidump/acpitbl
+--- pmtools-20051111.orig/acpidump/acpitbl 2005-11-11 09:07:04.000000000 -0800
++++ pmtools-20051111/acpidump/acpitbl 2006-06-01 19:24:37.848245056 -0700
+@@ -2,7 +2,7 @@
+ #
+ # acpitbl - ACPI table dumper
+ #
+-# Example: ./acpidump -t FACP | ./acpixtract | ./acpitbl
++# Example: ./acpidump -t FACP | ./acpixtract-pmtools | ./acpitbl
+ #
+
+ ($ME = $0) =~ s|.*/||;
+diff -Nuar --exclude '*~' pmtools-20051111.orig/acpidump/acpixtract pmtools-20051111/acpidump/acpixtract
+--- pmtools-20051111.orig/acpidump/acpixtract 2005-11-11 09:07:04.000000000 -0800
++++ pmtools-20051111/acpidump/acpixtract 2006-06-01 19:24:44.136728439 -0700
+@@ -1,9 +1,9 @@
+ #!/usr/bin/perl
+ #
+-# acpixtract - extract raw table from acpidump output
+-# usage: acpixtract [-n instance_number] <table> [input text file]
++# acpixtract-pmtools - extract raw table from acpidump output
++# usage: acpixtract-pmtools [-n instance_number] <table> [input text file]
+ #
+-# Example: cat mail.txt | ./acpixtract [-n instance_number] DSDT > DSDT
++# Example: cat mail.txt | ./acpixtract-pmtools [-n instance_number] DSDT > DSDT
+ # iasl -d DSDT
+ #
+
+diff -Nuar --exclude '*~' pmtools-20051111.orig/madt/README pmtools-20051111/madt/README
+--- pmtools-20051111.orig/madt/README 2005-11-11 09:07:04.000000000 -0800
++++ pmtools-20051111/madt/README 2006-06-01 19:24:51.717311154 -0700
+@@ -1,7 +1,7 @@
+ User utility to parse the ACPI MADT
+ Hacked out of Linux kernel code to do the same.
+
+-# ./acpidmp | ./acpixtract APIC | ./madt
++# ./acpidmp | ./acpixtract-pmtools APIC | ./madt
+
+ ACPI: APIC (v001 INTEL D845EBT2 0x20021021 MSFT 0x00000097) @ 0x(nil)
+ ACPI: LAPIC (acpi_id[0x01] lapic_id[0x00] enabled)
diff --git a/sys-power/pmtools/files/pmtools-20051111-madt.patch b/sys-power/pmtools/files/pmtools-20051111-madt.patch
new file mode 100644
index 000000000000..963da5210cfa
--- /dev/null
+++ b/sys-power/pmtools/files/pmtools-20051111-madt.patch
@@ -0,0 +1,24 @@
+diff -Nuar --exclude '*~' --exclude '*.orig' pmtools-20051111.orig/Makefile pmtools-20051111/Makefile
+--- pmtools-20051111.orig/Makefile 2005-11-11 09:07:04.000000000 -0800
++++ pmtools-20051111/Makefile 2006-05-29 17:12:54.153948801 -0700
+@@ -1,4 +1,4 @@
+-DIRS = acpidump
++DIRS = acpidump madt
+
+ all:
+ for i in $(DIRS); do $(MAKE) -C $$i $@; done
+diff -Nuar --exclude '*~' --exclude '*.orig' pmtools-20051111.orig/madt/Makefile pmtools-20051111/madt/Makefile
+--- pmtools-20051111.orig/madt/Makefile 2005-11-11 09:07:04.000000000 -0800
++++ pmtools-20051111/madt/Makefile 2006-05-29 17:15:41.877439276 -0700
+@@ -1,6 +1,10 @@
++all: madt
++
+ test: madt
+ ./madt < APIC
++
+ madt: madt.c acpi.h tables.c
+- cc -o madt madt.c
++ $(CC) $(CFLAGS) -o $@ madt.c
++
+ clean:
+ rm madt
diff --git a/sys-power/pmtools/metadata.xml b/sys-power/pmtools/metadata.xml
new file mode 100644
index 000000000000..bb6d633cfc30
--- /dev/null
+++ b/sys-power/pmtools/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>mobile</herd>
+<maintainer>
+ <email>nerdboy@gentoo.org</email>
+</maintainer>
+<maintainer>
+ <email>robbat2@gentoo.org</email>
+</maintainer>
+<longdescription>This package really just provides acpidump and associated tools
+for extracting ACPI tables to edit/reload buggy BIOS tables (works with iasl).
+Useful for all ACPI-based systems (not just mobile/laptop systems).
+</longdescription>
+</pkgmetadata>
diff --git a/sys-power/pmtools/pmtools-20051111-r1.ebuild b/sys-power/pmtools/pmtools-20051111-r1.ebuild
new file mode 100644
index 000000000000..7c5ebcef1622
--- /dev/null
+++ b/sys-power/pmtools/pmtools-20051111-r1.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-power/pmtools/pmtools-20051111-r1.ebuild,v 1.1 2006/06/02 02:39:40 robbat2 Exp $
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="ACPI disassembler tools, including acpidump"
+HOMEPAGE="http://ftp.kernel.org/pub/linux/kernel/people/lenb/acpi/"
+SRC_URI="http://ftp.kernel.org/pub/linux/kernel/people/lenb/acpi/utils/${P}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~ppc ~amd64 ~x86"
+IUSE=""
+DEPEND="virtual/libc"
+RDEPEND="${DEPEND}
+ dev-lang/perl
+ >=sys-power/iasl-20060512"
+
+src_unpack() {
+ unpack ${A}
+ epatch ${FILESDIR}/${P}-madt.patch
+ epatch ${FILESDIR}/${P}-acpixtract-pmtools.patch
+ sed -i.orig \
+ -e '/^CFLAGS/s, -s , ,' \
+ ${S}/acpidump/Makefile || die "sed failed"
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" || die "emake failed"
+}
+
+src_install() {
+ # acpidump access the ACPI data via /dev/mem or EFI firmware in /sys
+ dosbin acpidump/acpidump
+ # the other tools only process data
+ newbin acpidump/acpixtract acpixtract-pmtools
+ dobin acpidump/acpitbl
+ dobin madt/madt
+
+ dodoc README
+ docinto madt
+ dodoc madt/README madt/APIC*
+}
+
+pkg_postinst() {
+ ewarn "Please note that acpixtract is now named acpixtract-pmtools to avoid"
+ ewarn "conflicts with the new tool of the same name from the iasl package."
+}
diff --git a/sys-power/pmtools/pmtools-20051111.ebuild b/sys-power/pmtools/pmtools-20051111.ebuild
new file mode 100644
index 000000000000..3b41da55921f
--- /dev/null
+++ b/sys-power/pmtools/pmtools-20051111.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-power/pmtools/pmtools-20051111.ebuild,v 1.1 2006/06/02 02:39:40 robbat2 Exp $
+
+inherit libtool eutils
+
+DESCRIPTION="ACPI utilities, including acpidump"
+HOMEPAGE="http://ftp.kernel.org/pub/linux/kernel/people/lenb/acpi/"
+SRC_URI="http://ftp.kernel.org/pub/linux/kernel/people/lenb/acpi/utils/${P}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~ppc ~amd64 ~x86"
+IUSE=""
+DEPEND=""
+
+src_compile() {
+ make || die "emake failed"
+}
+
+src_install() {
+ dosbin acpidump/acpidump acpidump/acpitbl acpidump/acpixtract
+ dodoc README
+}