summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys-power/acpid/ChangeLog9
-rw-r--r--sys-power/acpid/Manifest11
-rw-r--r--sys-power/acpid/acpid-1.0.10_p4.ebuild64
-rw-r--r--sys-power/acpid/acpid-2.0.4-r1.ebuild64
-rw-r--r--sys-power/acpid/acpid-2.0.4-r2.ebuild (renamed from sys-power/acpid/acpid-2.0.3-r1.ebuild)4
-rw-r--r--sys-power/acpid/acpid-2.0.4.ebuild52
-rwxr-xr-xsys-power/acpid/files/acpid-2.0.4-default.sh59
-rw-r--r--sys-power/acpid/files/acpid-2.0.4-powerbtn.sh30
8 files changed, 12 insertions, 281 deletions
diff --git a/sys-power/acpid/ChangeLog b/sys-power/acpid/ChangeLog
index fe5e30074ab1..7ca0c0ffcf25 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.47 2010/04/28 15:21:07 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-power/acpid/ChangeLog,v 1.48 2010/05/03 19:44:42 ssuominen Exp $
+
+*acpid-2.0.4-r2 (03 May 2010)
+
+ 03 May 2010; Samuli Suominen <ssuominen@gentoo.org>
+ +acpid-2.0.4-r2.ebuild:
+ Revert back to 2.0.3-r1 state (no powerbtn.sh) for now. It will require a
+ bit work.
*acpid-2.0.4-r1 (28 Apr 2010)
diff --git a/sys-power/acpid/Manifest b/sys-power/acpid/Manifest
index 3aeed17a99c7..54821eaef8d2 100644
--- a/sys-power/acpid/Manifest
+++ b/sys-power/acpid/Manifest
@@ -4,16 +4,9 @@ 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
-AUX acpid-2.0.4-powerbtn.sh 657 RMD160 fe8578984fced622e726cf8212db2630722b26cd SHA1 f2268124fc7cc955e4c8b265f70baf2e2857ba70 SHA256 5d36b6900083c05c57b0a88a6ece2be9b6c16293ffbedcadc96a5831ac681f38
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
-EBUILD acpid-2.0.4-r1.ebuild 1634 RMD160 df08d2f542ad307b128e69c564f30d4ca8405c14 SHA1 7185aa2ee9677f4a0bd0f194e530d69e1719ea7e SHA256 9c42952c1a82aa5b3a7e8475c089e79caaf2032d0790a9a728e559220c9d0ce2
-EBUILD acpid-2.0.4.ebuild 1342 RMD160 9a14da70ccb9d811b09d16e818c0977f988cc196 SHA1 bc99284eda219511c2a704cfe7eb81d1d8ac8f9f SHA256 f426472d7277450018d284d4e1b61f714be1407ce017d0bab863449c92806a9c
-MISC ChangeLog 10798 RMD160 515b4c28b7eac3ce14996f191109ab4874dffdab SHA1 41940e8cf034ef7753cf222791e06554aacc6bee SHA256 cbccd6dd3bcab98484e537fc8f142d9eef2c2fccedb3809c7e9283dbfcc16912
+EBUILD acpid-2.0.4-r2.ebuild 1301 RMD160 2ba3ebd4e8738c41da32d51f3cac19f056b66db3 SHA1 8c254c687eb7de7c32dc3249049b3855c48d07bd SHA256 392410190a8a80e04688e9e53a58209ce9d585d9d66af154cde6b45c3421a8c0
+MISC ChangeLog 10998 RMD160 25cdfbabf367ad997248224ce1f5338a8ae4b2a4 SHA1 59328ca12244bec770bac1ce8ec6ccc0c9790f14 SHA256 ce6b32c9ef960d877ff9ddb6e74ca72d33115c88a9e79d1776dadfe4e1078615
MISC metadata.xml 272 RMD160 7d401536d693a7c82381765d21ac483be2fd78d6 SHA1 7e487f920eb77c7c2c69857c7fd3be0f7a50a0b8 SHA256 a98346ae16bb95d356f0800eb3f6df63cdfad5b7539357a3681237306658b5f3
diff --git a/sys-power/acpid/acpid-1.0.10_p4.ebuild b/sys-power/acpid/acpid-1.0.10_p4.ebuild
deleted file mode 100644
index d07ac94ce3de..000000000000
--- a/sys-power/acpid/acpid-1.0.10_p4.ebuild
+++ /dev/null
@@ -1,64 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-power/acpid/acpid-1.0.10_p4.ebuild,v 1.1 2009/08/31 22:29:13 loki_val Exp $
-
-inherit toolchain-funcs
-
-MY_P="${P%_p*}-netlink${PV#*_p}"
-S="${WORKDIR}/${MY_P}"
-
-DESCRIPTION="Daemon for Advanced Configuration and Power Interface"
-HOMEPAGE="http://acpid.sourceforge.net"
-SRC_URI="http://tedfelix.com/linux/${MY_P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~ia64 -ppc ~x86"
-IUSE=""
-
-DEPEND="sys-apps/sed"
-RDEPEND=""
-
-src_unpack() {
- unpack ${A}
- sed -i -e '/^CFLAGS /{s:=:+=:;s:-Werror::;s:-O2 -g::}' "${S}"/Makefile || die
-}
-
-src_compile() {
- emake CC="$(tc-getCC)" INSTPREFIX="${D}" || die "emake failed"
- emake -C kacpimon CFLAGS="${CFLAGS} -fno-strict-aliasing" CC="$(tc-getCC)" INSTPREFIX="${D}" || die "emake failed"
-}
-
-src_install() {
- emake INSTPREFIX="${D}" install || die "emake install failed"
-
- dobin kacpimon/kacpimon || die "kacpimon failed to install"
- newdoc kacpimon/README README-KACPIMON
-
- exeinto /etc/acpi
- newexe "${FILESDIR}"/${PN}-1.0.6-default.sh default.sh || die
- insinto /etc/acpi/events
- newins "${FILESDIR}"/${PN}-1.0.4-default default || die
-
- dodoc README Changelog TODO || die
-
- newinitd "${FILESDIR}"/${PN}-1.0.6-init.d acpid || die
- newconfd "${FILESDIR}"/${PN}-1.0.6-conf.d acpid || die
-
- docinto examples
- dodoc samples/{acpi_handler.sh,sample.conf} || die
-
- docinto examples/battery
- dodoc samples/battery/* || die
-
- docinto examples/panasonic
- dodoc samples/panasonic/* || die
-}
-
-pkg_postinst() {
- echo
- einfo "You may wish to read the Gentoo Linux Power Management Guide,"
- einfo "which can be found online at:"
- einfo " http://www.gentoo.org/doc/en/power-management-guide.xml"
- echo
-}
diff --git a/sys-power/acpid/acpid-2.0.4-r1.ebuild b/sys-power/acpid/acpid-2.0.4-r1.ebuild
deleted file mode 100644
index 9838b6bcf547..000000000000
--- a/sys-power/acpid/acpid-2.0.4-r1.ebuild
+++ /dev/null
@@ -1,64 +0,0 @@
-# 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-r1.ebuild,v 1.1 2010/04/28 15:21:07 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="consolekit"
-
-RDEPEND="consolekit? ( sys-auth/consolekit )"
-
-src_prepare() {
- epatch "${FILESDIR}"/${PN}-2.0.3.patch
- cp "${FILESDIR}"/${PN}-2.0.4-default.sh "${T}" || die
-
- if ! use consolekit; then
- sed -i \
- -e 's:/etc/acpi/powerbtn.sh:/sbin/init 0:' \
- "${T}"/${PN}-2.0.4-default.sh || die
- fi
-}
-
-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 "${T}"/${PN}-2.0.4-default.sh default.sh || die
-
- if use consolekit; then
- newexe "${FILESDIR}"/${PN}-2.0.4-powerbtn.sh powerbtn.sh || die
- fi
-
- 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/acpid-2.0.3-r1.ebuild b/sys-power/acpid/acpid-2.0.4-r2.ebuild
index 53d2b497fcfb..8cc85ba134f4 100644
--- a/sys-power/acpid/acpid-2.0.3-r1.ebuild
+++ b/sys-power/acpid/acpid-2.0.4-r2.ebuild
@@ -1,6 +1,6 @@
# 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.3-r1.ebuild,v 1.1 2010/04/04 16:39:09 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-power/acpid/acpid-2.0.4-r2.ebuild,v 1.1 2010/05/03 19:44:42 ssuominen Exp $
EAPI=2
inherit eutils toolchain-funcs
@@ -15,7 +15,7 @@ KEYWORDS="~alpha ~amd64 ~ia64 -ppc ~x86"
IUSE=""
src_prepare() {
- epatch "${FILESDIR}"/${P}.patch
+ epatch "${FILESDIR}"/${PN}-2.0.3.patch
}
src_compile() {
diff --git a/sys-power/acpid/acpid-2.0.4.ebuild b/sys-power/acpid/acpid-2.0.4.ebuild
deleted file mode 100644
index 6bd955302513..000000000000
--- a/sys-power/acpid/acpid-2.0.4.ebuild
+++ /dev/null
@@ -1,52 +0,0 @@
-# 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
deleted file mode 100755
index 7f8f6c963e25..000000000000
--- a/sys-power/acpid/files/acpid-2.0.4-default.sh
+++ /dev/null
@@ -1,59 +0,0 @@
-#!/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
diff --git a/sys-power/acpid/files/acpid-2.0.4-powerbtn.sh b/sys-power/acpid/files/acpid-2.0.4-powerbtn.sh
deleted file mode 100644
index 5d248db73cb3..000000000000
--- a/sys-power/acpid/files/acpid-2.0.4-powerbtn.sh
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/bin/sh
-
-PATH=/sbin:/bin:/usr/bin
-
-# Get the ID of the first active X11 session:
-uid_session=$(
-ck-list-sessions | \
-awk '
-/^Session[0-9]+:$/ { uid = active = x11 = "" ; next }
-{ gsub(/'\''/, "", $3) }
-$1 == "unix-user" { uid = $3 }
-$1 == "active" { active = $3 }
-$1 == "x11-display" { x11 = $3 }
-active == "TRUE" && x11 != "" {
- print uid
- exit
-}')
-
-# Check that there is a power manager, otherwise shut down.
-[ "$uid_session" ] &&
-ps axo uid,cmd | \
-awk '
- $1 == '$uid_session' &&
- ($2 ~ /gnome-power-manager/ || $2 ~ /kded4/ ||
- $3 ~ /kded4/ || $3 ~ /guidance-power-manager/) \
- { found = 1; exit }
- END { exit !found }
-' ||
- shutdown -h now
-