summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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..caa55af59604
--- /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 1360 RMD160 654977f802671ed22d0b25cae2755f7fcfb4040a SHA1 2b19d0a53aef7237ab76cfa49089e7dc093c2658 SHA256 bc0679da93de100a03690e7e7466ad057df44f46fe191d40f4900908ccf81478
+MD5 7eb98f6398b618d3cce22e565f86ac40 pmtools-20051111-r1.ebuild 1360
+RMD160 654977f802671ed22d0b25cae2755f7fcfb4040a pmtools-20051111-r1.ebuild 1360
+SHA256 bc0679da93de100a03690e7e7466ad057df44f46fe191d40f4900908ccf81478 pmtools-20051111-r1.ebuild 1360
+EBUILD pmtools-20051111.ebuild 663 RMD160 e4d685f973e3153d4ca96ed414ba9e1ce276b8ef SHA1 cdaffd96e15cf03a5f5c26cfc3899235103dd0e1 SHA256 f28d35283ac5a72d93e6abdb94b6d108a05bac020e477a3dbd5c5008b3c72c85
+MD5 e8cdb9bff6e4ecfd049da81978096c7e pmtools-20051111.ebuild 663
+RMD160 e4d685f973e3153d4ca96ed414ba9e1ce276b8ef pmtools-20051111.ebuild 663
+SHA256 f28d35283ac5a72d93e6abdb94b6d108a05bac020e477a3dbd5c5008b3c72c85 pmtools-20051111.ebuild 663
+MISC ChangeLog 1062 RMD160 e9ab5ae31ede474e9a898635ab7dd8b3d932eea9 SHA1 23e0f0e9df7bcee4f16b85e5abcd8e0d779f9e6f SHA256 f2afdc6131fd065949f5286f551f14faf606b49d9f53c7bbc4fa7f5dc53f3651
+MD5 5d1aa96ac1717b21a446b396002c4eca ChangeLog 1062
+RMD160 e9ab5ae31ede474e9a898635ab7dd8b3d932eea9 ChangeLog 1062
+SHA256 f2afdc6131fd065949f5286f551f14faf606b49d9f53c7bbc4fa7f5dc53f3651 ChangeLog 1062
+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
+}