summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2010-04-04 16:39:09 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2010-04-04 16:39:09 +0000
commitab3364ed036110a634b7be57d377f1170c7b4b9f (patch)
tree2f3c4defbd383e908960784267f16b46bc460422 /sys-power/acpid
parentAdd manifest... (diff)
downloadgentoo-2-ab3364ed036110a634b7be57d377f1170c7b4b9f.tar.gz
gentoo-2-ab3364ed036110a634b7be57d377f1170c7b4b9f.tar.bz2
gentoo-2-ab3364ed036110a634b7be57d377f1170c7b4b9f.zip
Don't check for /proc/acpi anymore wrt #295854.
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'sys-power/acpid')
-rw-r--r--sys-power/acpid/ChangeLog8
-rw-r--r--sys-power/acpid/acpid-2.0.3-r1.ebuild50
-rw-r--r--sys-power/acpid/files/acpid-2.0.3-init.d30
3 files changed, 87 insertions, 1 deletions
diff --git a/sys-power/acpid/ChangeLog b/sys-power/acpid/ChangeLog
index 69c8498d6666..9c873543f3bd 100644
--- a/sys-power/acpid/ChangeLog
+++ b/sys-power/acpid/ChangeLog
@@ -1,6 +1,12 @@
# 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.44 2010/03/31 20:23:52 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-power/acpid/ChangeLog,v 1.45 2010/04/04 16:39:09 ssuominen Exp $
+
+*acpid-2.0.3-r1 (04 Apr 2010)
+
+ 04 Apr 2010; Samuli Suominen <ssuominen@gentoo.org>
+ +acpid-2.0.3-r1.ebuild, +files/acpid-2.0.3-init.d:
+ Don't check for /proc/acpi anymore wrt #295854.
31 Mar 2010; Samuli Suominen <ssuominen@gentoo.org> acpid-1.0.4-r5.ebuild:
Remove USE logrotate wrt #258173 by Thilo Bangert.
diff --git a/sys-power/acpid/acpid-2.0.3-r1.ebuild b/sys-power/acpid/acpid-2.0.3-r1.ebuild
new file mode 100644
index 000000000000..53d2b497fcfb
--- /dev/null
+++ b/sys-power/acpid/acpid-2.0.3-r1.ebuild
@@ -0,0 +1,50 @@
+# 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 $
+
+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}"/${P}.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}-1.0.6-default.sh default.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.3-init.d b/sys-power/acpid/files/acpid-2.0.3-init.d
new file mode 100644
index 000000000000..f6acb60a620c
--- /dev/null
+++ b/sys-power/acpid/files/acpid-2.0.3-init.d
@@ -0,0 +1,30 @@
+#!/sbin/runscript
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-power/acpid/files/acpid-2.0.3-init.d,v 1.1 2010/04/04 16:39:09 ssuominen Exp $
+
+opts="reload"
+
+depend() {
+ need localmount
+ use logger
+ before hald
+}
+
+start() {
+ ebegin "Starting acpid"
+ start-stop-daemon --start --quiet --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 $?
+}