diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2010-04-26 12:55:42 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2010-04-26 12:55:42 +0000 |
commit | 3e3e9b76da451a0db296d5a8d75c2bdb9420f910 (patch) | |
tree | f2a5774ee57319b2712cda9848c51d43e667a3c7 /sys-power | |
parent | old (diff) | |
download | historical-3e3e9b76da451a0db296d5a8d75c2bdb9420f910.tar.gz historical-3e3e9b76da451a0db296d5a8d75c2bdb9420f910.tar.bz2 historical-3e3e9b76da451a0db296d5a8d75c2bdb9420f910.zip |
Version bump wrt #317273 by Tim Harder. Install new powerbtn.sh wrt #253764 by Pacho Ramos.
Package-Manager: portage-2.2_rc67/cvs/Linux x86_64
Diffstat (limited to 'sys-power')
-rw-r--r-- | sys-power/acpid/ChangeLog | 9 | ||||
-rw-r--r-- | sys-power/acpid/Manifest | 5 | ||||
-rw-r--r-- | sys-power/acpid/acpid-2.0.4.ebuild | 52 | ||||
-rwxr-xr-x | sys-power/acpid/files/acpid-2.0.4-default.sh | 59 |
4 files changed, 123 insertions, 2 deletions
diff --git a/sys-power/acpid/ChangeLog b/sys-power/acpid/ChangeLog index 9c873543f3bd..922b0e6dc7ee 100644 --- a/sys-power/acpid/ChangeLog +++ b/sys-power/acpid/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for sys-power/acpid # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-power/acpid/ChangeLog,v 1.45 2010/04/04 16:39:09 ssuominen Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-power/acpid/ChangeLog,v 1.46 2010/04/26 12:55:42 ssuominen Exp $ + +*acpid-2.0.4 (26 Apr 2010) + + 26 Apr 2010; Samuli Suominen <ssuominen@gentoo.org> +acpid-2.0.4.ebuild, + +files/acpid-2.0.4-default.sh: + Version bump wrt #317273 by Tim Harder. Install new powerbtn.sh wrt + #253764 by Pacho Ramos. *acpid-2.0.3-r1 (04 Apr 2010) diff --git a/sys-power/acpid/Manifest b/sys-power/acpid/Manifest index 045c5dd68aa4..da3a81071090 100644 --- a/sys-power/acpid/Manifest +++ b/sys-power/acpid/Manifest @@ -4,11 +4,14 @@ AUX acpid-1.0.6-default.sh 1214 RMD160 1d656cee490664931062cb6a8f6ee968b48f28d1 AUX acpid-1.0.6-init.d 818 RMD160 f840ae1b287d303076fcb1b553a53dd7c0664fc0 SHA1 aa1d2a8012c49add5c74c60a9a7cb4b9c7b81593 SHA256 d7daabbf924c2223dab085adae3b38d43c9969cdd49921b4e66cfd497a15fa66 AUX acpid-2.0.3-init.d 668 RMD160 66d460850e02e8e817c3dbabef120a0d0e53758f SHA1 f4fc04c345215eb4c1ec971d284cb18a9405a0e8 SHA256 70d0ffc4cc11046e4445619784e187c009a97273b9826e7f62a0b7c92aa330d0 AUX acpid-2.0.3.patch 881 RMD160 81a32d23d72e3104d67c37863f14aa88fe8b5b39 SHA1 ea9c629cbfed5f2e3e34c4d242fcff2b69fda51d SHA256 d313d9645e705221ef9f4610a0b127ee38240125d5e2f39554537bde38a7a813 +AUX acpid-2.0.4-default.sh 1223 RMD160 b1330c8ead1dc178539458913149fd2bf18723d1 SHA1 aaeb6e48d26a99942780940f6b7e09618e569880 SHA256 da6912652012d202d833810616c2ce5021e2e17f1c086395e439aad836b14e00 DIST acpid-1.0.10-netlink3.tar.bz2 84647 RMD160 e677ce9a4c1a3bb3412c72b4afbfbf8336f0442e SHA1 fd01f9cb7856ab40c8f5ce6467944982e3202e59 SHA256 883a95e08c32fd7864de83ec3f5b51082bb16e7b200a40aa518be6de7d84d66e DIST acpid-1.0.10-netlink4.tar.gz 53761 RMD160 48eb7fe7f27935ff0aa69dd5c5798a89e5523723 SHA1 5f4875f194a2c893f9786e5bd9e7604f8c60ad43 SHA256 175697b9aaa6659cb375d0289cc56d8f8c19fe9de6bdfaafa1302d5f523758f7 DIST acpid-2.0.3.tar.gz 72787 RMD160 ffc747d4aea905ddc979f6ad2cc350b7d080ca58 SHA1 f2663db294d91a35dd07cfb78ef77bf1bab545c0 SHA256 be5f85a0bffa954a6c0f82f9a90914cbe78d8863a05b110a6683566964e053b8 +DIST acpid-2.0.4.tar.gz 73730 RMD160 59db3e5926beebfa6ff131c79cbbecf0a9e72027 SHA1 8d6bcaa9acd74e67acaa881a8f361ef1f91c93dd SHA256 e844807af6f55f6407d2b513fc4811b11237e964e007ac597ee30765a522d3b4 EBUILD acpid-1.0.10_p3.ebuild 1544 RMD160 f95fda8c9bff2af92bb8086fd2357fc06ed7849b SHA1 b7d30edd0925ae487569c674aca4ed7a028a0242 SHA256 6ffc0b5f7c44ed749a3fc9af810d830516d12e05e5e64d536bb8e6de15865745 EBUILD acpid-1.0.10_p4.ebuild 1786 RMD160 06df9b51d06d2bd08ccd5a8826d5c5de19e596ef SHA1 40e20f70e02c3293c6744714f830dde67692813b SHA256 73b1a0b15cbeaf5e08b0e9a32c3c3662e8742d36e1191bf5ba05cf2dbf1412e0 EBUILD acpid-2.0.3-r1.ebuild 1294 RMD160 7a56a5f3377d416b4da800757d0bf7361c76eb72 SHA1 a2969720303b34ffea66d2bd0619076d6970023a SHA256 1518b5470cbc4ba5c121f78a9b71612e946391747febaa245a38784503c3c8a7 -MISC ChangeLog 10349 RMD160 07eef1077502be563d0bdbbfe62c8a22d396154e SHA1 bf83214c35225e18c09388813e64077e0c5e0f62 SHA256 67eef0baf9dd61c78cc50edc9f705ba6f273ff70421dba893962b616d16101e8 +EBUILD acpid-2.0.4.ebuild 1342 RMD160 9a14da70ccb9d811b09d16e818c0977f988cc196 SHA1 bc99284eda219511c2a704cfe7eb81d1d8ac8f9f SHA256 f426472d7277450018d284d4e1b61f714be1407ce017d0bab863449c92806a9c +MISC ChangeLog 10582 RMD160 fb8e06f084ef6a73b685c2203242d693e598e289 SHA1 3e42e6218079f0349ad93811f9e21d41bab211ec SHA256 10a02c1d270b0e68d5d7fd394ac360697b4afa672d8f7204976dc1f0e34ac343 MISC metadata.xml 159 RMD160 54af1e9a61e5ed1b49b2bbbf3ef2278999c66b13 SHA1 bce3da4745192397c9a08bdbcf7e4914eac9b77b SHA256 ed3a0d440cfa5672284f4172ebde0ea6506c1a38e9a3ed9f14f3d2c093aac42f diff --git a/sys-power/acpid/acpid-2.0.4.ebuild b/sys-power/acpid/acpid-2.0.4.ebuild new file mode 100644 index 000000000000..6bd955302513 --- /dev/null +++ b/sys-power/acpid/acpid-2.0.4.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-power/acpid/acpid-2.0.4.ebuild,v 1.1 2010/04/26 12:55:42 ssuominen Exp $ + +EAPI=2 +inherit eutils toolchain-funcs + +DESCRIPTION="Daemon for Advanced Configuration and Power Interface" +HOMEPAGE="http://tedfelix.com/linux/acpid-netlink.html" +SRC_URI="http://tedfelix.com/linux/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ia64 -ppc ~x86" +IUSE="" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-2.0.3.patch +} + +src_compile() { + tc-export CC CPP + emake || die + emake -C kacpimon || die +} + +src_install() { + emake DESTDIR="${D}" DOCDIR="/usr/share/doc/${PF}" install || die + + dobin kacpimon/kacpimon || die + newdoc kacpimon/README README.kacpimon + + exeinto /etc/acpi + newexe "${FILESDIR}"/${PN}-2.0.4-default.sh default.sh || die + doexe samples/powerbtn/powerbtn.sh || die + + insinto /etc/acpi/events + newins "${FILESDIR}"/${PN}-1.0.4-default default || die + + newinitd "${FILESDIR}"/${PN}-2.0.3-init.d acpid || die + newconfd "${FILESDIR}"/${PN}-1.0.6-conf.d acpid || die + + prepalldocs +} + +pkg_postinst() { + echo + elog "You may wish to read the Gentoo Linux Power Management Guide," + elog "which can be found online at:" + elog "http://www.gentoo.org/doc/en/power-management-guide.xml" + echo +} diff --git a/sys-power/acpid/files/acpid-2.0.4-default.sh b/sys-power/acpid/files/acpid-2.0.4-default.sh new file mode 100755 index 000000000000..7f8f6c963e25 --- /dev/null +++ b/sys-power/acpid/files/acpid-2.0.4-default.sh @@ -0,0 +1,59 @@ +#!/bin/sh +# /etc/acpi/default.sh +# Default acpi script that takes an entry for all actions + +set $* + +group=${1%%/*} +action=${1#*/} +device=$2 +id=$3 +value=$4 + +log_unhandled() { + logger "ACPI event unhandled: $*" +} + +case "$group" in + button) + case "$action" in + power) + /etc/acpi/powerbtn.sh + ;; + + # if your laptop doesnt turn on/off the display via hardware + # switch and instead just generates an acpi event, you can force + # X to turn off the display via dpms. note you will have to run + # 'xhost +local:0' so root can access the X DISPLAY. + #lid) + # xset dpms force off + # ;; + + *) log_unhandled $* ;; + esac + ;; + + ac_adapter) + case "$value" in + # Add code here to handle when the system is unplugged + # (maybe change cpu scaling to powersave mode). For + # multicore systems, make sure you set powersave mode + # for each core! + #*0) + # cpufreq-set -g powersave + # ;; + + # Add code here to handle when the system is plugged in + # (maybe change cpu scaling to performance mode). For + # multicore systems, make sure you set performance mode + # for each core! + #*1) + # cpufreq-set -g performance + # ;; + + *) log_unhandled $* ;; + esac + ;; + + *) log_unhandled $* ;; +esac |