summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCiaran McCreesh <ciaranm@gentoo.org>2005-03-15 19:15:53 +0000
committerCiaran McCreesh <ciaranm@gentoo.org>2005-03-15 19:15:53 +0000
commite579a18891615309e3b864321cb667588a9b41ae (patch)
treed64d53688fc214d58d7ac535eef9a1b81e17ac2d /sys-power/acpid
parentKeywording for ~sparc - makes manifest signing so much nicer. Bug 85376 (diff)
downloadhistorical-e579a18891615309e3b864321cb667588a9b41ae.tar.gz
historical-e579a18891615309e3b864321cb667588a9b41ae.tar.bz2
historical-e579a18891615309e3b864321cb667588a9b41ae.zip
Moved from sys-apps/acpid to sys-power/acpid.
Diffstat (limited to 'sys-power/acpid')
-rw-r--r--sys-power/acpid/ChangeLog87
-rw-r--r--sys-power/acpid/Manifest24
-rw-r--r--sys-power/acpid/acpid-1.0.1.ebuild46
-rw-r--r--sys-power/acpid/acpid-1.0.2-r1.ebuild47
-rw-r--r--sys-power/acpid/acpid-1.0.2-r2.ebuild52
-rw-r--r--sys-power/acpid/acpid-1.0.4.ebuild59
-rw-r--r--sys-power/acpid/files/acpid-1.0.4-default22
-rwxr-xr-xsys-power/acpid/files/acpid-1.0.4-default.sh26
-rwxr-xr-xsys-power/acpid/files/acpid.rc628
-rw-r--r--sys-power/acpid/files/default.sh-gentoo.patch27
-rw-r--r--sys-power/acpid/files/digest-acpid-1.0.11
-rw-r--r--sys-power/acpid/files/digest-acpid-1.0.2-r11
-rw-r--r--sys-power/acpid/files/digest-acpid-1.0.2-r21
-rw-r--r--sys-power/acpid/files/digest-acpid-1.0.41
-rw-r--r--sys-power/acpid/metadata.xml5
15 files changed, 427 insertions, 0 deletions
diff --git a/sys-power/acpid/ChangeLog b/sys-power/acpid/ChangeLog
new file mode 100644
index 000000000000..dc3f99730763
--- /dev/null
+++ b/sys-power/acpid/ChangeLog
@@ -0,0 +1,87 @@
+# ChangeLog for sys-apps/acpid
+# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-power/acpid/ChangeLog,v 1.1 2005/03/15 19:15:53 ciaranm Exp $
+
+*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 <ciaranm@gentoo.org>
+ +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 <ciaranm@gentoo.org> 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 <brix@gentoo.org>
+ +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 <agriffis@gentoo.org> acpid-1.0.2-r2.ebuild:
+ Add inherit eutils
+
+ 28 Jan 2004; Aron Griffis <agriffis@gentoo.org> acpid-1.0.2-r2.ebuild:
+ stable on alpha and ia64
+
+ 17 Oct 2003; Tom Payne <twp@gentoo.org> acpid-1.0.2-r2.ebuild :
+ Changed ~x86 to x86.
+
+*acpid-1.0.2-r2 (27 Jul 2003)
+
+ 27 Jul 2003; Tom Payne <twp@gentoo.org> acpid-1.0.2-r2.ebuild :
+ Fix bug # 22238 (default.sh broken).
+
+ 12 Jun 2003; Hanno Boeck <hanno@gentoo.org> acpid-1.0.2-r1.ebuild:
+ Changed ~x86 to x86.
+
+*acpid-1.0.2-r1 (07 Jun 2003)
+
+ 07 Jun 2003; Seemant Kulleen <seemant@gentoo.org> 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
+ <S.Harmsma@student.rug.nl>
+
+*acpid-1.0.2 (14 May 2003)
+
+ 14 May 2003; Hanno Boeck <hanno@gentoo.org> acpid-1.0.2.ebuild:
+ New version. Resolves #20852.
+
+*acpid-1.0.1-r1 (16 Oct 2002)
+
+ 16 Oct 2002; Hanno Boeck <hanno@gmx.de> 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 <gerk@gentoo.org> :
+ Added -ppc to keywords
+
+ 11 Jun 2002; Martin Schlemmer <azarah@gentoo.org> :
+
+ Fix kernel virtual .. should not be versioned.
+
+ 14 Jul 2002; phoen][x <phoenix@gentoo.org> acpid-1.0.1.ebuild :
+ Added KEYWORDS, SLOT.
+
+ 21 May 2002; Martin Schlemmer <azarah@gentoo.org> :
+
+ Updated version. Resolves bug #2867.
+
+*acpid-1.0.0 (1 Feb 2002)
+
+ 1 Feb 2002; G.Bevin <gbevin@gentoo.org> 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
index 000000000000..d900e956d5a1
--- /dev/null
+++ b/sys-power/acpid/Manifest
@@ -0,0 +1,24 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+MD5 c69e723525437b4da0c20958b40aae39 acpid-1.0.1.ebuild 1192
+MD5 21aa4eac8f401db3aad770ff2b36b55d ChangeLog 2516
+MD5 7c6fe5b05c32c2ef0c1e47034eedcb7b acpid-1.0.4.ebuild 1523
+MD5 a2afe31857f0179a4b0feab4558e10c1 acpid-1.0.2-r1.ebuild 1304
+MD5 d79d27e52b98c90be232a57529c32e66 acpid-1.0.2-r2.ebuild 1442
+MD5 9a09f8d531c582e78977dbfd96edc1f2 metadata.xml 164
+MD5 735600819af9eec47fa7e9774d150a62 files/acpid-1.0.4-default 851
+MD5 1ad4b7deead64fc207ea20bd1c340973 files/digest-acpid-1.0.1 62
+MD5 ee393ad4dd2a122f9382473999330386 files/acpid.rc6 646
+MD5 3cc2de9822a0f65e061e31184ad2e91f files/default.sh-gentoo.patch 550
+MD5 4bf4b207e7f3c9f7a966c62236dd73be files/digest-acpid-1.0.2-r2 62
+MD5 4bf4b207e7f3c9f7a966c62236dd73be files/digest-acpid-1.0.2-r1 62
+MD5 e193d813bbbabf9aceb89ba3c612e58e files/digest-acpid-1.0.4 62
+MD5 5db64ebc6764c2ca6b4a835c40568058 files/acpid-1.0.4-default.sh 556
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.2.6 (GNU/Linux)
+
+iD8DBQFB4ss0LLFUmVNQ7rkRAtqkAJ9kSwxEX9ivS4c9tEMDziX2FX2DWgCgzulV
+loUbbgIoEEaGUTVnOgRgAf8=
+=I0D1
+-----END PGP SIGNATURE-----
diff --git a/sys-power/acpid/acpid-1.0.1.ebuild b/sys-power/acpid/acpid-1.0.1.ebuild
new file mode 100644
index 000000000000..0a3ac20a37e6
--- /dev/null
+++ b/sys-power/acpid/acpid-1.0.1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-power/acpid/acpid-1.0.1.ebuild,v 1.1 2005/03/15 19:15:53 ciaranm Exp $
+
+DESCRIPTION="Daemon for Advanced Configuration and Power Interface"
+HOMEPAGE="http://acpid.sourceforge.net/"
+SRC_URI="ftp://download.sourceforge.net/pub/sourceforge/acpid/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86 amd64"
+IUSE=""
+
+# We need the patched kernel with latest ACPI code, or else it will
+# be broken. Hopefully it will be merge into release kernel soon.
+DEPEND="virtual/libc
+ virtual/linux-sources"
+
+src_compile() {
+ # DO NOT compile with optimizations !
+ make INSTPREFIX=${D} ||die
+}
+
+src_install() {
+ make INSTPREFIX=${D} install || die
+
+ dodir /etc/acpi/events
+ exeinto /etc/acpi
+ doexe debian/default.sh
+ insinto /etc/acpi/events
+ doins debian/default
+
+ dodoc README Changelog
+
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/acpid.rc6 acpid
+}
+
+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-1.0.2-r1.ebuild b/sys-power/acpid/acpid-1.0.2-r1.ebuild
new file mode 100644
index 000000000000..77c264579508
--- /dev/null
+++ b/sys-power/acpid/acpid-1.0.2-r1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-power/acpid/acpid-1.0.2-r1.ebuild,v 1.1 2005/03/15 19:15:53 ciaranm Exp $
+
+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="x86 amd64"
+IUSE=""
+
+# We need the patched kernel with latest ACPI code, or else it will
+# be broken. Hopefully it will be merge into release kernel soon.
+DEPEND="virtual/libc
+ virtual/linux-sources"
+
+src_compile() {
+ # DO NOT COMPILE WITH OPTIMISATIONS.
+ # 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"
+ make INSTPREFIX=${D} || die
+}
+
+src_install() {
+ make INSTPREFIX=${D} install || die
+
+ dodir /etc/acpi/events
+ exeinto /etc/acpi
+ doexe debian/default.sh
+ insinto /etc/acpi/events
+ doins debian/default
+
+ dodoc README Changelog
+
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/acpid.rc6 acpid
+}
+
+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-1.0.2-r2.ebuild b/sys-power/acpid/acpid-1.0.2-r2.ebuild
new file mode 100644
index 000000000000..81c45885a003
--- /dev/null
+++ b/sys-power/acpid/acpid-1.0.2-r2.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-power/acpid/acpid-1.0.2-r2.ebuild,v 1.1 2005/03/15 19:15:53 ciaranm Exp $
+
+inherit eutils
+
+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="x86 -ppc alpha amd64 ia64"
+IUSE=""
+
+# We need the patched kernel with latest ACPI code, or else it will
+# be broken. Hopefully it will be merge into release kernel soon.
+DEPEND="virtual/libc
+ virtual/linux-sources"
+
+src_compile() {
+ # Fix bug # 22238 (default.sh broken)
+ cd debian && epatch ${FILESDIR}/default.sh-gentoo.patch && cd ..
+
+ # DO NOT COMPILE WITH OPTIMISATIONS.
+ # 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"
+ make INSTPREFIX=${D} || die
+}
+
+src_install() {
+ make INSTPREFIX=${D} install || die
+
+ dodir /etc/acpi/events
+ exeinto /etc/acpi
+ doexe debian/default.sh
+ insinto /etc/acpi/events
+ doins debian/default
+
+ dodoc README Changelog
+
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/acpid.rc6 acpid
+}
+
+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-1.0.4.ebuild b/sys-power/acpid/acpid-1.0.4.ebuild
new file mode 100644
index 000000000000..7d24d89f13d6
--- /dev/null
+++ b/sys-power/acpid/acpid-1.0.4.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-power/acpid/acpid-1.0.4.ebuild,v 1.1 2005/03/15 19:15:53 ciaranm Exp $
+
+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="~x86 -ppc ~alpha ~amd64 ~ia64"
+IUSE="doc"
+
+DEPEND="virtual/libc
+ virtual/linux-sources"
+
+src_compile() {
+ # 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.
+ make INSTPREFIX=${D} || die
+}
+
+src_install() {
+ # needed since the Makefile doesn't do 'mkdir -p $(BINDIR)'
+ dodir /usr/bin
+
+ make INSTPREFIX=${D} install || die
+
+ exeinto /etc/acpi
+ newexe ${FILESDIR}/${P}-default.sh default.sh || die
+
+ insinto /etc/acpi/events
+ newins ${FILESDIR}/${P}-default default || die
+
+ dodoc README Changelog TODO
+
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/acpid.rc6 acpid || die
+
+ if use doc; then
+ docinto examples
+ dodoc samples/{acpi_handler.sh,sample.conf}
+
+ docinto examples/battery
+ dodoc samples/battery/*
+
+ docinto examples/panasonic
+ dodoc samples/panasonic/*
+ fi
+}
+
+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/files/acpid-1.0.4-default b/sys-power/acpid/files/acpid-1.0.4-default
new file mode 100644
index 000000000000..ae001fdbe3b8
--- /dev/null
+++ b/sys-power/acpid/files/acpid-1.0.4-default
@@ -0,0 +1,22 @@
+# Copyright 1999-2004 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-default,v 1.1 2005/03/15 19:15:53 ciaranm Exp $
+
+# 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-default.sh b/sys-power/acpid/files/acpid-1.0.4-default.sh
new file mode 100755
index 000000000000..f7255d435f9e
--- /dev/null
+++ b/sys-power/acpid/files/acpid-1.0.4-default.sh
@@ -0,0 +1,26 @@
+#!/bin/sh
+# Copyright 1999-2004 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-default.sh,v 1.1 2005/03/15 19:15:53 ciaranm Exp $
+
+# Default acpi script that takes an entry for all actions
+
+set $*
+
+group=${1/\/*/}
+action=${1/*\//}
+
+case "$group" in
+ button)
+ case "$action" in
+ power) /sbin/init 0
+ ;;
+ *) logger "ACPI action $action is not defined"
+ ;;
+ esac
+ ;;
+
+ *)
+ logger "ACPI group $group / action $action is not defined"
+ ;;
+esac
diff --git a/sys-power/acpid/files/acpid.rc6 b/sys-power/acpid/files/acpid.rc6
new file mode 100755
index 000000000000..29a8629774ff
--- /dev/null
+++ b/sys-power/acpid/files/acpid.rc6
@@ -0,0 +1,28 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-power/acpid/files/acpid.rc6,v 1.1 2005/03/15 19:15:53 ciaranm Exp $
+
+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 --quiet --exec /usr/sbin/acpid -- -c /etc/acpi/events
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping acpid"
+ start-stop-daemon --stop --quiet --exec /usr/sbin/acpid
+ eend $?
+}
diff --git a/sys-power/acpid/files/default.sh-gentoo.patch b/sys-power/acpid/files/default.sh-gentoo.patch
new file mode 100644
index 000000000000..6da547d2ded1
--- /dev/null
+++ b/sys-power/acpid/files/default.sh-gentoo.patch
@@ -0,0 +1,27 @@
+--- acpi/default.sh 2003-07-27 19:06:47.000000000 +0200
++++ acpi-gentoo/default.sh 2003-07-27 19:11:45.000000000 +0200
+@@ -3,17 +3,20 @@
+
+ set $*
+
+-case "$1" in
++group=${1/\/*/}
++action=${1/*\//}
++
++case "$group" in
+ button)
+- case "$2" in
++ case "$action" in
+ power) /sbin/init 0
+ ;;
+- *) logger "ACPI action $2 is not defined"
++ *) logger "ACPI action $action is not defined"
+ ;;
+ esac
+ ;;
+
+ *)
+- logger "ACPI group $1 / action $2 is not defined"
++ logger "ACPI group $group / action $action is not defined"
+ ;;
+ esac
diff --git a/sys-power/acpid/files/digest-acpid-1.0.1 b/sys-power/acpid/files/digest-acpid-1.0.1
new file mode 100644
index 000000000000..57cc4183c33a
--- /dev/null
+++ b/sys-power/acpid/files/digest-acpid-1.0.1
@@ -0,0 +1 @@
+MD5 0c03d957aec557857ffc7941243083d9 acpid-1.0.1.tar.gz 15762
diff --git a/sys-power/acpid/files/digest-acpid-1.0.2-r1 b/sys-power/acpid/files/digest-acpid-1.0.2-r1
new file mode 100644
index 000000000000..ea5c9cf27a55
--- /dev/null
+++ b/sys-power/acpid/files/digest-acpid-1.0.2-r1
@@ -0,0 +1 @@
+MD5 15884aaf0b82717954f9366b5c00808b acpid-1.0.2.tar.gz 23554
diff --git a/sys-power/acpid/files/digest-acpid-1.0.2-r2 b/sys-power/acpid/files/digest-acpid-1.0.2-r2
new file mode 100644
index 000000000000..ea5c9cf27a55
--- /dev/null
+++ b/sys-power/acpid/files/digest-acpid-1.0.2-r2
@@ -0,0 +1 @@
+MD5 15884aaf0b82717954f9366b5c00808b acpid-1.0.2.tar.gz 23554
diff --git a/sys-power/acpid/files/digest-acpid-1.0.4 b/sys-power/acpid/files/digest-acpid-1.0.4
new file mode 100644
index 000000000000..37c23c5f0323
--- /dev/null
+++ b/sys-power/acpid/files/digest-acpid-1.0.4
@@ -0,0 +1 @@
+MD5 3aff94e92186e99ed5fd6dcee2db7c74 acpid-1.0.4.tar.gz 23416
diff --git a/sys-power/acpid/metadata.xml b/sys-power/acpid/metadata.xml
new file mode 100644
index 000000000000..96a2d586367d
--- /dev/null
+++ b/sys-power/acpid/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>base-system</herd>
+</pkgmetadata>