diff --git a/sys-power/acpid/ChangeLog b/sys-power/acpid/ChangeLog new file mode 100644 --- /dev/null +++ b/sys-power/acpid/ChangeLog @@ -0,0 +1,244 @@ +# ChangeLog for sys-power/acpid +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-power/acpid/ChangeLog,v 1.36 2008/08/16 04:08:44 cardoe Exp $ + + 27 Dec 2008; Nathan Brink +acpid-1.0.8.ebuild -acpid-1.0.6-r1.ebuild -acpid-1.0.4-r5.ebuild : + Initial import from Gentoo Portage, bump to version 1.0.8. + + 16 Aug 2008; Doug Goldstein metadata.xml: + add GLEP 56 USE flag desc from use.local.desc + + 14 Jun 2008; Diego Pettenò acpid-1.0.6-r1.ebuild: + Enable GNU sources for glibc 2.8 (bug #225417). + + 14 Nov 2007; Daniel Gryniewicz acpid-1.0.6-r1.ebuild: + Marked stable on amd64 for bug #194636 + + 03 Nov 2007; Raúl Porcel acpid-1.0.6-r1.ebuild: + ia64 stable wrt #194636 + + 14 Oct 2007; Markus Meier acpid-1.0.6-r1.ebuild: + x86 stable, bug #194636 + +*acpid-1.0.6-r1 (14 Oct 2007) + + 14 Oct 2007; Stefan Schweizer + -files/acpid-1.0.4-default.sh, -files/acpid-1.0.4-gcc4.patch, + -files/acpid-1.0.4-logrotate, files/acpid-1.0.6-default.sh, + files/acpid-1.0.6-init.d, -files/acpid.conf.d, -acpid-1.0.4-r2.ebuild, + -acpid-1.0.6.ebuild, +acpid-1.0.6-r1.ebuild: + Fix improper expansion in default.sh, bug 186141, and start init script + before hal, bug 194636, also remove old ebuilds + + 17 Jul 2007; Mike Frysinger + +files/acpid-1.0.6-default.sh, -files/acpid-1.0.6-examples.diff, + acpid-1.0.6.ebuild: + Use Gentoo defaults for /etc/acpi again since they are better than the + Debian ones and fix bashism #170213 by Roy Marples. Also make sure we + respect env CFLAGS. + +*acpid-1.0.6 (17 Jul 2007) + + 17 Jul 2007; Stefan Schweizer + +files/acpid-1.0.6-conf.d, +files/acpid-1.0.6-examples.diff, + +files/acpid-1.0.6-init.d, +acpid-1.0.6.ebuild: + version bump, thanks go to Matej Laitl in bug 185553, + also thanks for his excellent changelog: + * dropped debian patch from SRC_URI, we'll provide light version of that patch + * changed KEYWORDS to testing + * patch with our own patch, which is an extract from the big debian patch for + 1.0.4 (all source code changes are ignored, not needed for 1.0.6) + * dodir /usr/bin is not needed as acpid Makefile has been fixed + * we install sample conf.d file. (this file was already in portage tree but not + used in any recent ebuild) + * add elog comment about changed logging system + * kill doc useflag was not used in ebuild anyway. (this also applies to in-tree + 1.0.4-r5 ebuild AFAIK) + * kill logrotate useflag and modify patch not to ship logrotate file. It had no + sense when acpid logs to syslog. + + 12 May 2007; Daniel Gryniewicz acpid-1.0.4-r5.ebuild: + Marked stable on amd64 for bug #126131 + + 11 May 2007; Raúl Porcel acpid-1.0.4-r5.ebuild: + ia64 + x86 stable wrt #126131 + +*acpid-1.0.4-r5 (10 May 2007) + + 10 May 2007; Stefan Schweizer metadata.xml, + +acpid-1.0.4-r5.ebuild: + Clean up ebuild, use scripts from debian, maintainer back to mobile@, fixes + bugs #126131 and #170213 + +*acpid-1.0.4-r4 (23 Feb 2007) + + 23 Feb 2007; Roy Marples files/acpid-1.0.4-init.d, + +acpid-1.0.4-r4.ebuild: + Bump for a non bash init script. + + 07 Dec 2006; Roy Marples files/acpid-1.0.4-init.d: + Make acpid more robust for start-stop-daemon. + + 04 Jul 2006; Patrick McLean metadata.xml: + Take over maintainership. + + 10 Mar 2006; Aron Griffis acpid-1.0.4-r3.ebuild: + Mark 1.0.4-r3 stable on ia64 + + 20 Feb 2006; Scott Stoddard acpid-1.0.4-r3.ebuild: + Stable on amd64. + + 13 Feb 2006; Henrik Brix Andersen acpid-1.0.4-r3.ebuild: + Stable on x86. + + 13 Feb 2006; Henrik Brix Andersen -files/acpid.rc6, + -files/default.sh-gentoo.patch, -acpid-1.0.2-r2.ebuild: + Pruned old ebuild. + + 19 Jan 2006; Marcus D. Hanwell acpid-1.0.4-r2.ebuild: + Stable on amd64. + + 09 Jan 2006; Henrik Brix Andersen + files/acpid-1.0.4-init.d: + Quiet reload() in case acpid isn't running. + +*acpid-1.0.4-r3 (09 Jan 2006) + + 09 Jan 2006; Henrik Brix Andersen + files/acpid-1.0.4-init.d, +acpid-1.0.4-r3.ebuild: + Fix init script to work with baselayout-1.12.0_rcX. + + 17 Dec 2005; Henrik Brix Andersen + files/acpid-1.0.4-logrotate: + Quit down acpid reload from logrotate, thanks to Jan Spitalnik in bug #115564. + + 22 Oct 2005; Henrik Brix Andersen + -acpid-1.0.4-r1.ebuild: + Pruned old versions. + + 16 Sep 2005; Aron Griffis acpid-1.0.4-r2.ebuild: + Mark 1.0.4-r2 stable on alpha + + 08 Sep 2005; Henrik Brix Andersen acpid-1.0.2-r2.ebuild, + acpid-1.0.4-r1.ebuild, acpid-1.0.4-r2.ebuild: + Fixed dependencies, bug #105224. + + 23 Aug 2005; Aron Griffis acpid-1.0.4-r2.ebuild: + stable on ia64 + + 08 Aug 2005; Henrik Brix Andersen acpid-1.0.4-r2.ebuild: + Stable on x86. + +*acpid-1.0.4-r2 (02 Jul 2005) + + 02 Jul 2005; +files/acpid-1.0.4-init.d, + +files/acpid-1.0.4-logrotate, +acpid-1.0.4-r2.ebuild: + Added logrotate configuration file (bug #89350), added reload() function to + init script. + + 26 May 2005; -acpid-1.0.1.ebuild, + -acpid-1.0.2-r1.ebuild, -acpid-1.0.4.ebuild: + Pruned old ebuilds. + + 23 May 2005; acpid-1.0.4-r1.ebuild: + Stable on x86. + + 14 May 2005; acpid-1.0.4-r1.ebuild: + Do not treat warnings as errors, bug #90873. + + 26 Apr 2005; metadata.xml: + Updated metadata.xml + + 26 Apr 2005; Martin Schlemmer + +files/acpid-1.0.4-gcc4.patch, acpid-1.0.4-r1.ebuild: + Fix building with gcc4. Use proper compiler. + +*acpid-1.0.4-r1 (24 Apr 2005) + + 24 Apr 2005; files/acpid-1.0.4-default, + +acpid-1.0.4-r1.ebuild: + Fixed example regular expression, bug #89716. + +*acpid-1.0.4 (15 Mar 2005) +*acpid-1.0.2-r2 (15 Mar 2005) +*acpid-1.0.2-r1 (15 Mar 2005) +*acpid-1.0.1 (15 Mar 2005) + + 15 Mar 2005; Ciaran McCreesh + +files/acpid-1.0.4-default, +files/acpid-1.0.4-default.sh, + +files/acpid.rc6, +files/default.sh-gentoo.patch, +metadata.xml, + +acpid-1.0.1.ebuild, +acpid-1.0.2-r1.ebuild, +acpid-1.0.2-r2.ebuild, + +acpid-1.0.4.ebuild: + Moved from sys-apps/acpid to sys-power/acpid. + + 10 Jan 2005; Ciaran McCreesh acpid-1.0.1.ebuild, + acpid-1.0.2-r1.ebuild, acpid-1.0.2-r2.ebuild, acpid-1.0.4.ebuild: + Added in a message with a link to the Power Management Guide, bug #77338 + +*acpid-1.0.4 (19 Oct 2004) + + 19 Oct 2004; Henrik Brix Andersen + +files/acpid-1.0.4-default, +files/acpid-1.0.4-default.sh, + +acpid-1.0.4.ebuild: + Version bump. + + 27 Apr 2004; Aron Griffis acpid-1.0.2-r2.ebuild: + Add inherit eutils + + 28 Jan 2004; Aron Griffis acpid-1.0.2-r2.ebuild: + stable on alpha and ia64 + + 17 Oct 2003; Tom Payne acpid-1.0.2-r2.ebuild : + Changed ~x86 to x86. + +*acpid-1.0.2-r2 (27 Jul 2003) + + 27 Jul 2003; Tom Payne acpid-1.0.2-r2.ebuild : + Fix bug # 22238 (default.sh broken). + + 12 Jun 2003; Hanno Boeck acpid-1.0.2-r1.ebuild: + Changed ~x86 to x86. + +*acpid-1.0.2-r1 (07 Jun 2003) + + 07 Jun 2003; Seemant Kulleen acpid-1.0.1-r1.ebuild, + acpid-1.0.2-r1.ebuild, acpid-1.0.2.ebuild: + NO OPTIMISATIONS. DO NOT CHANGE THAT. Closes bug #22365 by Sybren Harmsma + + +*acpid-1.0.2 (14 May 2003) + + 14 May 2003; Hanno Boeck acpid-1.0.2.ebuild: + New version. Resolves #20852. + +*acpid-1.0.1-r1 (16 Oct 2002) + + 16 Oct 2002; Hanno Boeck acpid-1.0.1-r1.ebuild : + Added use of CFLAGS. Must be tested. + Resolves bug #8976. + +*acpid-1.0.1 (21 May 2002) + + 21 Jul 2002; Mark Guertin : + Added -ppc to keywords + + 11 Jun 2002; Martin Schlemmer : + + Fix kernel virtual .. should not be versioned. + + 14 Jul 2002; phoen][x acpid-1.0.1.ebuild : + Added KEYWORDS, SLOT. + + 21 May 2002; Martin Schlemmer : + + Updated version. Resolves bug #2867. + +*acpid-1.0.0 (1 Feb 2002) + + 1 Feb 2002; G.Bevin ChangeLog : + + Added initial ChangeLog which should be updated whenever the package is + updated in any way. This changelog is targetted to users. This means that the + comments should well explained and written in clean English. The details about + writing correct changelogs are explained in the skel.ChangeLog file which you + can find in the root directory of the portage repository. diff --git a/sys-power/acpid/Manifest b/sys-power/acpid/Manifest new file mode 100644 --- /dev/null +++ b/sys-power/acpid/Manifest @@ -0,0 +1,9 @@ +AUX acpid-1.0.4-default 663 RMD160 5e40661ec9112c3cc675a0d283e96311d2d159f1 SHA1 e74b2f7388c303fc3d3e33c0500d4b8185474dce SHA256 2b18111978043d68848983a54dfc946dd9b9b15592d0f4dc33491599dbe24b23 +AUX acpid-1.0.4-init.d 787 RMD160 6a6473a2e87f5f13d09a30acd09f9188f9d54997 SHA1 1c629da7f53a7aa549a52f698dedb72fe1f58328 SHA256 2aaeb6548b4bc2bc5f863c85face9f2bc8b1107ddc23dd3c8fb274f948ef2da2 +AUX acpid-1.0.6-conf.d 156 RMD160 a7c8822a88b51f185c8740b075c968d0c045791d SHA1 497f35e98f1f499d2223c52f4491218b3def489a SHA256 5dfc6dbf687a47e853b0a9f9ed491cb1778b0d99195df5e7a5de849d269ca28c +AUX acpid-1.0.6-default.sh 1214 RMD160 1d656cee490664931062cb6a8f6ee968b48f28d1 SHA1 52b7a36da5915dfb72636cf554d5b0aa99779ecc SHA256 9d95f204b39129758de47bd0b003ff47501759db98a8641034e1203130ea1f52 +AUX acpid-1.0.6-init.d 811 RMD160 8bb659de037284c371d0fce5372c240315c2384a SHA1 8d93c55fa82e7309d810a33f73969a9707ff8d3a SHA256 4dcb6fcdfa3d41817747f542f0f5e78760cfc9cb74e8b4e7c915464d174332e5 +DIST acpid-1.0.8.tar.gz 26102 RMD160 e66c3a15462aef060da5644f7bbc28124d9dd0c3 SHA1 f739321197cac703eaf67d55798d4b839f9a1a4d SHA256 d57ae5302c38c37d060a097fa51600fe06fbfffd575641d638407944f126b7b1 +EBUILD acpid-1.0.8.ebuild 1926 RMD160 907b27b24b28785864ddae2184941cd0b4bd0b4e SHA1 a71819879ea5a71374260d6ae8f61816bcfb7ce6 SHA256 929cc52673a4d227351b94271f9b26895c3ba0af15dbae31ce42ca29df85ddd4 +MISC ChangeLog 8846 RMD160 1e90537c80b5a8233519c92a40353dd84afa36d5 SHA1 91105aac7ea45c51174a7c699867acff3cc305c7 SHA256 634e0a14d6cfd700e61f6c2159d48543aae840498dfcc723b25673fbbcb0d8bd +MISC metadata.xml 258 RMD160 0372b01b1bbc0270c29f1527ea948da2125b0dbc SHA1 03fbb6dddc04dc110fc346d07a5e1079f2cfa568 SHA256 b9247f5f5e9dca9fcd3d365bbf17a6027388ce0721f30987a6e4f6423b503a8d diff --git a/sys-power/acpid/acpid-1.0.8.ebuild b/sys-power/acpid/acpid-1.0.8.ebuild new file mode 100644 --- /dev/null +++ b/sys-power/acpid/acpid-1.0.8.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-power/acpid/acpid-1.0.6-r1.ebuild,v 1.5 2008/06/14 09:00:57 flameeyes Exp $ + +inherit eutils toolchain-funcs flag-o-matic + +DESCRIPTION="Daemon for Advanced Configuration and Power Interface" +HOMEPAGE="http://acpid.sourceforge.net" +SRC_URI="mirror://sourceforge/acpid/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha amd64 ia64 -ppc x86" +IUSE="" + +DEPEND="sys-apps/sed" +RDEPEND="" + +src_unpack() { + unpack ${A} + cd "${S}" + sed -i \ + -e '/^CFLAGS /{s:=:+=:;s:-Werror -g::}' \ + Makefile +} + +src_compile() { + append-flags -D_GNU_SOURCE + + # DO NOT COMPILE WITH OPTIMISATIONS (bug #22365) + # That is a note to the devs. IF you are a user, go ahead and optimise + # if you want, but we won't support bugs associated with that. + emake CC="$(tc-getCC)" INSTPREFIX="${D}" || die "emake failed" +} + +src_install() { + emake INSTPREFIX="${D}" install || die "emake install failed" + + 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 + + newinitd "${FILESDIR}"/${PN}-1.0.6-init.d acpid + newconfd "${FILESDIR}"/${PN}-1.0.6-conf.d acpid + + docinto examples + dodoc samples/{acpi_handler.sh,sample.conf} + + docinto examples/battery + dodoc samples/battery/* + + docinto examples/panasonic + dodoc samples/panasonic/* +} + +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 + elog "As of version 1.0.6, acpid uses system log facility instead of custom log" + elog "file. This means acpid messages will be usually located in " + elog "/var/log/messages (and not in /var/log/acpid) for common setups." + echo +} diff --git a/sys-power/acpid/files/acpid-1.0.4-default b/sys-power/acpid/files/acpid-1.0.4-default new file mode 100644 --- /dev/null +++ b/sys-power/acpid/files/acpid-1.0.4-default @@ -0,0 +1,19 @@ +# /etc/acpi/events/default +# This is the ACPID default configuration, it takes all +# events and passes them to /etc/acpi/default.sh for further +# processing. + +# event keeps a regular expression matching the event. To get +# power events only, just use something like "event=button[ /]power.*" +# to catch it. +# action keeps the command to be executed after an event occurs +# In case of the power event above, your entry may look this way: +#event=button[ /]power.* +#action=/sbin/init 0 + +# Optionally you can specify the placeholder %e. It will pass +# through the whole kernel event message to the program you've +# specified. + +event=.* +action=/etc/acpi/default.sh %e diff --git a/sys-power/acpid/files/acpid-1.0.4-init.d b/sys-power/acpid/files/acpid-1.0.4-init.d new file mode 100644 --- /dev/null +++ b/sys-power/acpid/files/acpid-1.0.4-init.d @@ -0,0 +1,37 @@ +#!/sbin/runscript +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-power/acpid/files/acpid-1.0.4-init.d,v 1.6 2007/02/23 10:55:56 uberlord Exp $ + +opts="reload" + +depend() { + need localmount +} + +checkconfig() { + if [ ! -e /proc/acpi ] ; then + eerror "ACPI support has not been compiled into the kernel" + return 1 + fi +} + +start() { + checkconfig || return 1 + + ebegin "Starting acpid" + start-stop-daemon --start --exec /usr/sbin/acpid -- ${ACPID_OPTIONS} + eend $? +} + +stop() { + ebegin "Stopping acpid" + start-stop-daemon --stop --exec /usr/sbin/acpid + eend $? +} + +reload() { + ebegin "Reloading acpid configuration" + start-stop-daemon --stop --oknodo --exec /usr/sbin/acpid --signal HUP + eend $? +} diff --git a/sys-power/acpid/files/acpid-1.0.6-conf.d b/sys-power/acpid/files/acpid-1.0.6-conf.d new file mode 100644 --- /dev/null +++ b/sys-power/acpid/files/acpid-1.0.6-conf.d @@ -0,0 +1,6 @@ +# /etc/conf.d/acpid: config file for /etc/init.d/acpid + +# Options to pass to the acpid daemon. +# See the acpid(8) man page for more info. + +ACPID_OPTIONS="" diff --git a/sys-power/acpid/files/acpid-1.0.6-default.sh b/sys-power/acpid/files/acpid-1.0.6-default.sh new file mode 100755 --- /dev/null +++ b/sys-power/acpid/files/acpid-1.0.6-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) + /sbin/init 0 + ;; + + # 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-1.0.6-init.d b/sys-power/acpid/files/acpid-1.0.6-init.d new file mode 100644 --- /dev/null +++ b/sys-power/acpid/files/acpid-1.0.6-init.d @@ -0,0 +1,39 @@ +#!/sbin/runscript +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-power/acpid/files/acpid-1.0.6-init.d,v 1.2 2007/10/14 12:04:33 genstef Exp $ + +opts="reload" + +depend() { + need localmount + use logger + before hald +} + +checkconfig() { + if [ ! -e /proc/acpi ] ; then + eerror "ACPI support has not been compiled into the kernel" + return 1 + fi +} + +start() { + checkconfig || return 1 + + ebegin "Starting acpid" + start-stop-daemon --start --exec /usr/sbin/acpid -- ${ACPID_OPTIONS} + eend $? +} + +stop() { + ebegin "Stopping acpid" + start-stop-daemon --stop --exec /usr/sbin/acpid + eend $? +} + +reload() { + ebegin "Reloading acpid configuration" + start-stop-daemon --stop --oknodo --exec /usr/sbin/acpid --signal HUP + eend $? +} diff --git a/sys-power/acpid/metadata.xml b/sys-power/acpid/metadata.xml new file mode 100644 --- /dev/null +++ b/sys-power/acpid/metadata.xml @@ -0,0 +1,9 @@ + + + +mobile + + Use app-admin/logrotate for rotating + logs + +