Version bump, with patch for new kernels since the /proc/acpi/info file is not presen...
authorRobin H. Johnson <robbat2@gentoo.org>
Mon, 12 Feb 2007 19:18:11 +0000 (19:18 +0000)
committerRobin H. Johnson <robbat2@gentoo.org>
Mon, 12 Feb 2007 19:18:11 +0000 (19:18 +0000)
Package-Manager: portage-2.1.2-r9

sys-power/acpitool/ChangeLog
sys-power/acpitool/Manifest
sys-power/acpitool/acpitool-0.4.7.ebuild [new file with mode: 0644]
sys-power/acpitool/files/acpitool-0.4.7-proc_acpi_info_move.patch [new file with mode: 0644]
sys-power/acpitool/files/digest-acpitool-0.4.7 [new file with mode: 0644]

index e88a3c8b7ebee8a9426d8f1ac187c72e4a30fd02..c93c7a133def1166086223b1642f6047d156e371 100644 (file)
@@ -1,6 +1,13 @@
 # ChangeLog for sys-power/acpitool
-# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-power/acpitool/ChangeLog,v 1.4 2006/10/28 14:03:44 swegener Exp $
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-power/acpitool/ChangeLog,v 1.5 2007/02/12 19:18:11 robbat2 Exp $
+
+*acpitool-0.4.7 (12 Feb 2007)
+
+  12 Feb 2007; Robin H. Johnson <robbat2@gentoo.org>
+  +files/acpitool-0.4.7-proc_acpi_info_move.patch, +acpitool-0.4.7.ebuild:
+  Version bump, with patch for new kernels since the /proc/acpi/info file is
+  not present anymore.
 
   27 Oct 2006; Piotr JaroszyƄski <peper@gentoo.org> -acpitool-0.2.5.ebuild:
   Remove old version.
index 6e51435072cb880defb92ed11fe674f3a2a4f064..a90357b7f0100d3d6b81abf7ce1184b7eec4a2a3 100644 (file)
@@ -1,15 +1,21 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
+AUX acpitool-0.4.7-proc_acpi_info_move.patch 1860 RMD160 b72a703236fa870b179765f343656476bc8c1435 SHA1 4fc062ed03531c648aa4ee120dd5527cf666b49d SHA256 9cebb2cd4d143e43ace0bdf8f1c39325c9104c430948c5795e9e3fcec43aad68
+MD5 babd314f923e84c3530b8949ab61f5e9 files/acpitool-0.4.7-proc_acpi_info_move.patch 1860
+RMD160 b72a703236fa870b179765f343656476bc8c1435 files/acpitool-0.4.7-proc_acpi_info_move.patch 1860
+SHA256 9cebb2cd4d143e43ace0bdf8f1c39325c9104c430948c5795e9e3fcec43aad68 files/acpitool-0.4.7-proc_acpi_info_move.patch 1860
 DIST acpitool-0.4.6.tar.bz2 101920 RMD160 b2bd2c2684bd2e792ab6fc695683743fb7b444d7 SHA1 59a44a48fab17916b77f4923f85d85d2d06ce671 SHA256 6964522c943540dd5672643de99ebea96fc579edccea9d6e20f9a8fcd59685cb
+DIST acpitool-0.4.7.tar.bz2 105943 RMD160 82385c84d94cdcbf272b2b54d8df3b05afc73cdd SHA1 203ed12250d88eb5bc5a4ab4bb837317c9222ca0 SHA256 6908261eb226edd397e43fb6e0d0f673b7cfcd1635dd0948a280e284d96b6b8c
 EBUILD acpitool-0.4.6.ebuild 602 RMD160 33555f984b890be43cb088d2d718b7766e7920ed SHA1 e55ce48c19b1b5d2291dbbf22cc342df138e3b88 SHA256 391ee1e8eba0d55e4f6fd4f3cc6c72eab3ceca9c5c7c2a6607906fa2e379658e
 MD5 48ce5f7c31681a5a2e1c695ae585d5d5 acpitool-0.4.6.ebuild 602
 RMD160 33555f984b890be43cb088d2d718b7766e7920ed acpitool-0.4.6.ebuild 602
 SHA256 391ee1e8eba0d55e4f6fd4f3cc6c72eab3ceca9c5c7c2a6607906fa2e379658e acpitool-0.4.6.ebuild 602
-MISC ChangeLog 2539 RMD160 66082cb485f1902798379d0b146b73a03748f7b5 SHA1 bead3d1c412ee2ac6f387b81e999b3b32e596a56 SHA256 cf9abd7af6ac4b5f2e9d4445a35ca26fba485e2a0d2a4dd45828d036301dc604
-MD5 c280ce47d8a0fe2b789871986f532625 ChangeLog 2539
-RMD160 66082cb485f1902798379d0b146b73a03748f7b5 ChangeLog 2539
-SHA256 cf9abd7af6ac4b5f2e9d4445a35ca26fba485e2a0d2a4dd45828d036301dc604 ChangeLog 2539
+EBUILD acpitool-0.4.7.ebuild 708 RMD160 b7cc435b5d0a6087a1516d7b2da1bc7ed04db736 SHA1 c7c7f2342ee2946764987139c5e4493aa6838273 SHA256 3d9e8495046141dd473f850d0e0bab8a405e6b176518293c7424a71bff03a2a2
+MD5 3333129ef19b198c4ad80422ba8b8f77 acpitool-0.4.7.ebuild 708
+RMD160 b7cc435b5d0a6087a1516d7b2da1bc7ed04db736 acpitool-0.4.7.ebuild 708
+SHA256 3d9e8495046141dd473f850d0e0bab8a405e6b176518293c7424a71bff03a2a2 acpitool-0.4.7.ebuild 708
+MISC ChangeLog 2798 RMD160 35c901c40253d74c8d94e9aafe402f5b4226e40b SHA1 59a7ad76c98eb7dd96442469f6aad43b32af2923 SHA256 8906284eb95fcb555ea5c7d1b76c4bd60fa2418d78aa273efc1a6aa2717c496f
+MD5 7ef52584b96a31eb2fe03a031ecc499e ChangeLog 2798
+RMD160 35c901c40253d74c8d94e9aafe402f5b4226e40b ChangeLog 2798
+SHA256 8906284eb95fcb555ea5c7d1b76c4bd60fa2418d78aa273efc1a6aa2717c496f ChangeLog 2798
 MISC metadata.xml 224 RMD160 e73100c3b7b6e761987fafac8783a4607a96ff5b SHA1 84bc5a9f7616f4a37850c82df191c19ead26a6c0 SHA256 4649248bc71af10e619a06fa064d31e7df18cde3e446c9d67f387bffb0062e37
 MD5 8629d3ef30ef3be4b273182406eef4f2 metadata.xml 224
 RMD160 e73100c3b7b6e761987fafac8783a4607a96ff5b metadata.xml 224
@@ -17,10 +23,6 @@ SHA256 4649248bc71af10e619a06fa064d31e7df18cde3e446c9d67f387bffb0062e37 metadata
 MD5 dc4395f55153368807cd7defee7b3172 files/digest-acpitool-0.4.6 247
 RMD160 d2b2abb135038fc11169dd58c43ca0e23ae4adbc files/digest-acpitool-0.4.6 247
 SHA256 56cd3b643234669e70a789bd9e78903ca6f30c776d5de725c4cd9b04f36eb620 files/digest-acpitool-0.4.6 247
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.5 (GNU/Linux)
-
-iD8DBQFFQ2NGI1lqEGTUzyQRAg8jAKDL6zhmWvBsJsoyIACSV2u67SPB6wCfUMPX
-oT5TR3v7sU6vgVNNVEhCBr4=
-=b/Ro
------END PGP SIGNATURE-----
+MD5 3d655a4e8d70f4c36ed8e1754fa9dd0a files/digest-acpitool-0.4.7 247
+RMD160 15bdc7a748fa39e973934de50f48d86e05c2cada files/digest-acpitool-0.4.7 247
+SHA256 2bdee9cdf3e4ba58f469a11a69b4067fda46c862f9051d22a208847181b0d664 files/digest-acpitool-0.4.7 247
diff --git a/sys-power/acpitool/acpitool-0.4.7.ebuild b/sys-power/acpitool/acpitool-0.4.7.ebuild
new file mode 100644 (file)
index 0000000..6c1407a
--- /dev/null
@@ -0,0 +1,24 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-power/acpitool/acpitool-0.4.7.ebuild,v 1.1 2007/02/12 19:18:11 robbat2 Exp $
+
+inherit eutils
+
+DESCRIPTION="A small command line application, intended to be a replacement for the apm tool"
+HOMEPAGE="http://freeunix.dyndns.org:8088/site2/acpitool.shtml"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+src_unpack() {
+       unpack ${A}
+       epatch ${FILESDIR}/${PN}-0.4.7-proc_acpi_info_move.patch
+}
+
+src_install() {
+       make DESTDIR="${D}" install || die "make install failed"
+       dodoc AUTHORS ChangeLog README TODO
+}
diff --git a/sys-power/acpitool/files/acpitool-0.4.7-proc_acpi_info_move.patch b/sys-power/acpitool/files/acpitool-0.4.7-proc_acpi_info_move.patch
new file mode 100644 (file)
index 0000000..5746eb1
--- /dev/null
@@ -0,0 +1,73 @@
+Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
+
+Support the new location for the acpica version information, as /proc/acpi/info
+no longers exists in 2.6.21 development tree.
+
+diff -Nuar acpitool-0.4.7.orig/src/acpitool.cpp acpitool-0.4.7/src/acpitool.cpp
+--- acpitool-0.4.7.orig/src/acpitool.cpp       2007-02-06 12:03:02.000000000 -0800
++++ acpitool-0.4.7/src/acpitool.cpp    2007-02-12 12:04:35.000000000 -0800
+@@ -54,15 +54,18 @@
+     char *filename;
+     
+     filename = "/proc/acpi/info";
+-    
+     file_in.open(filename);
+-    if (!file_in)
+-      return 0;
+-    else
+-    {
++    if(file_in) goto has_success;
++    filename = "/sys/module/acpi/parameters/acpica_version";
++    file_in.open(filename);
++    if(file_in) goto has_success;
++    // failure
++    return 0;
++
++has_success:
+       file_in.close();
+         return 1;
+-    }
++
+ }
+     
+ int Print_ACPI_Info(int show_ac, int show_therm, int show_trip, int show_fan, int show_batteries, int show_empty, int show_version, int show_cpu, int show_wake, int e_set, int info_level, int verbose)
+@@ -96,23 +99,27 @@
+     char *filename, str[50];
+     
+     filename = "/proc/acpi/info";
+-    
+     file_in.open(filename);
+-    if (!file_in)
++    if(file_in) goto version_success;
++    filename = "/sys/module/acpi/parameters/acpica_version";
++    file_in.open(filename);
++    if(file_in) goto version_success;
++
++    // failure
++    if(!verbose)
+     {
+-      if(!verbose)
+-      {
+           strcpy(c, "<n.a>");
+-          return 0;
+-      }
+-      else
+-      {
+-          cout<<"  Could not open file : "<<filename<<endl;
++          return 0;
++    }
++    else
++    {
++          cout<<"  Could not open file : "<<filename<<endl;
+           cout<<"  Make sure your kernel has ACPI support enabled."<<endl;
+           return -1;
+-      }       
+-    }
+-       
++    } 
++
++version_success:
++
+     file_in.getline(str, 50);
+     file_in.close();
+     
diff --git a/sys-power/acpitool/files/digest-acpitool-0.4.7 b/sys-power/acpitool/files/digest-acpitool-0.4.7
new file mode 100644 (file)
index 0000000..ea6eb2c
--- /dev/null
@@ -0,0 +1,3 @@
+MD5 cba416a11229e896ec2639c59b6f59c5 acpitool-0.4.7.tar.bz2 105943
+RMD160 82385c84d94cdcbf272b2b54d8df3b05afc73cdd acpitool-0.4.7.tar.bz2 105943
+SHA256 6908261eb226edd397e43fb6e0d0f673b7cfcd1635dd0948a280e284d96b6b8c acpitool-0.4.7.tar.bz2 105943