summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Schweizer <genstef@gentoo.org>2006-05-07 10:29:45 +0000
committerStefan Schweizer <genstef@gentoo.org>2006-05-07 10:29:45 +0000
commitdd71f9e547aa129657c52162488d087d1a6bd2fc (patch)
treeb94ffae53379269b6d37a3c9ec9eae5831bf2a0b /sys-power/powersave
parentmask powersave (diff)
downloadgentoo-2-dd71f9e547aa129657c52162488d087d1a6bd2fc.tar.gz
gentoo-2-dd71f9e547aa129657c52162488d087d1a6bd2fc.tar.bz2
gentoo-2-dd71f9e547aa129657c52162488d087d1a6bd2fc.zip
New ebuild thanks to Jiri Tyr <jiri.tyr@e-learning.vslib.cz>, Matt Whitlock <mwhitlock@whitsoftdev.com> and Stefan Scheler <sts@synflood.de> in bug 122278
(Portage version: 2.1_pre10-r3)
Diffstat (limited to 'sys-power/powersave')
-rw-r--r--sys-power/powersave/ChangeLog13
-rw-r--r--sys-power/powersave/Manifest24
-rw-r--r--sys-power/powersave/files/digest-powersave-0.13.13
-rw-r--r--sys-power/powersave/files/plugdev_access.patch11
-rw-r--r--sys-power/powersave/files/powersaved.rc23
-rw-r--r--sys-power/powersave/metadata.xml9
-rw-r--r--sys-power/powersave/powersave-0.13.1.ebuild60
7 files changed, 143 insertions, 0 deletions
diff --git a/sys-power/powersave/ChangeLog b/sys-power/powersave/ChangeLog
new file mode 100644
index 000000000000..d04dc174aced
--- /dev/null
+++ b/sys-power/powersave/ChangeLog
@@ -0,0 +1,13 @@
+# ChangeLog for sys-power/powersave
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-power/powersave/ChangeLog,v 1.1 2006/05/07 10:29:45 genstef Exp $
+
+*powersave-0.13.1 (07 May 2006)
+
+ 07 May 2006; Stefan Schweizer <genstef@gentoo.org>
+ +files/plugdev_access.patch, +files/powersaved.rc, +metadata.xml,
+ +powersave-0.13.1.ebuild:
+ New ebuild thanks to Jiri Tyr <jiri.tyr@e-learning.vslib.cz>, Matt Whitlock
+ <mwhitlock@whitsoftdev.com> and Stefan Scheler <sts@synflood.de> in bug
+ 122278
+
diff --git a/sys-power/powersave/Manifest b/sys-power/powersave/Manifest
new file mode 100644
index 000000000000..176cd947ec09
--- /dev/null
+++ b/sys-power/powersave/Manifest
@@ -0,0 +1,24 @@
+AUX plugdev_access.patch 458 RMD160 703fb134a737172057f5244cd2df96ccc934cd54 SHA1 a8bba986e1b7ef871bd23a6d076ab4ba7dfe45e5 SHA256 ad40b156534c78fbcebe6547310151cbfc475aaa6d1a5d4f3122fec14d405f60 size 458
+MD5 3a488e1b0de1c161a2ab46c08de2a183 files/plugdev_access.patch 458
+RMD160 703fb134a737172057f5244cd2df96ccc934cd54 files/plugdev_access.patch 458
+SHA256 ad40b156534c78fbcebe6547310151cbfc475aaa6d1a5d4f3122fec14d405f60 files/plugdev_access.patch 458
+AUX powersaved.rc 512 RMD160 eb56df6d1813a4a8014758e76d16418e3625eac1 SHA1 3b1346400203469d7fa34c9fa00feb5614f6c1fe SHA256 640ceacf012e8065f4047438329577e2d8f7f17a49eecac7e4f50f5ee5b4f0bc size 512
+MD5 0fb28dc1b0525beb859beecbd9624390 files/powersaved.rc 512
+RMD160 eb56df6d1813a4a8014758e76d16418e3625eac1 files/powersaved.rc 512
+SHA256 640ceacf012e8065f4047438329577e2d8f7f17a49eecac7e4f50f5ee5b4f0bc files/powersaved.rc 512
+DIST powersave-0.13.1.tar.bz2 568778 RMD160 a8f29703c5d09d98b7699ac82d6b354d81392e2f SHA256 87cb873d148fa989b678dfcef3f629515cfe01d98c10ec189a4ed60d5a265615 size 568778
+EBUILD powersave-0.13.1.ebuild 1473 RMD160 4db54a6c8860db53e66695bc7b8a1ededca715ad SHA1 02c53a577d9369215f5653d5d89f81f93695cd5d SHA256 cb1c3cec0bfaa507e1541535dd47a2369d39901b71bf326c1a9002cd6ff82956 size 1473
+MD5 2d1c3a4fd7e4b489b5d238da2ec54fb5 powersave-0.13.1.ebuild 1473
+RMD160 4db54a6c8860db53e66695bc7b8a1ededca715ad powersave-0.13.1.ebuild 1473
+SHA256 cb1c3cec0bfaa507e1541535dd47a2369d39901b71bf326c1a9002cd6ff82956 powersave-0.13.1.ebuild 1473
+MISC ChangeLog 464 RMD160 9af1234376fa466a2614d2392bb8ed13d22b49b9 SHA1 cb03e3381400a2fc35962171fa4c0a353f0f8810 SHA256 609f67332a0d5247686c45350d5d0f9b1ec2606643be585517cb41c241274fe9 size 464
+MD5 266aba6dc9c5258c34c9da7ef35cc813 ChangeLog 464
+RMD160 9af1234376fa466a2614d2392bb8ed13d22b49b9 ChangeLog 464
+SHA256 609f67332a0d5247686c45350d5d0f9b1ec2606643be585517cb41c241274fe9 ChangeLog 464
+MISC metadata.xml 264 RMD160 f0a7ffecb77c58db347daaf1c348b12ab0526429 SHA1 943b8b424ee3872f0f4ac2d99b5e620ae4c82ca5 SHA256 b97f69b9acc177e7c613f542e17461256be508ac97086f4538f31e65df3647bf size 264
+MD5 f17c483cfcc1efe580afd0b737d3f2c3 metadata.xml 264
+RMD160 f0a7ffecb77c58db347daaf1c348b12ab0526429 metadata.xml 264
+SHA256 b97f69b9acc177e7c613f542e17461256be508ac97086f4538f31e65df3647bf metadata.xml 264
+MD5 a635b1fc0e2229458fdbdffca326a247 files/digest-powersave-0.13.1 253
+RMD160 8cc519126feeb1bbd4b410cd7db917870f725e77 files/digest-powersave-0.13.1 253
+SHA256 00c491a82cc876498fb0a871a02d5f09bf0c356be46a33c49e2f77d3a78d87b6 files/digest-powersave-0.13.1 253
diff --git a/sys-power/powersave/files/digest-powersave-0.13.1 b/sys-power/powersave/files/digest-powersave-0.13.1
new file mode 100644
index 000000000000..2ad50a19346e
--- /dev/null
+++ b/sys-power/powersave/files/digest-powersave-0.13.1
@@ -0,0 +1,3 @@
+MD5 a20e1a9518944d72873cc2d8e433f34c powersave-0.13.1.tar.bz2 568778
+RMD160 a8f29703c5d09d98b7699ac82d6b354d81392e2f powersave-0.13.1.tar.bz2 568778
+SHA256 87cb873d148fa989b678dfcef3f629515cfe01d98c10ec189a4ed60d5a265615 powersave-0.13.1.tar.bz2 568778
diff --git a/sys-power/powersave/files/plugdev_access.patch b/sys-power/powersave/files/plugdev_access.patch
new file mode 100644
index 000000000000..1216fa07087f
--- /dev/null
+++ b/sys-power/powersave/files/plugdev_access.patch
@@ -0,0 +1,11 @@
+--- config_files/dbus_powersave.conf.orig 2005-11-28 12:53:23.000000000 +0100
++++ config_files/dbus_powersave.conf 2005-11-28 12:53:56.000000000 +0100
+@@ -42,7 +42,7 @@
+ </policy>
+
+ <!-- Allow desktop users to connect -->
+- <policy at_console="true">
++ <policy group="users">
+ <allow send_interface="com.novell.powersave"/>
+ <allow send_interface="com.novell.powersave.manager"/>
+ <allow send_interface="com.novell.powersave.request"/>
diff --git a/sys-power/powersave/files/powersaved.rc b/sys-power/powersave/files/powersaved.rc
new file mode 100644
index 000000000000..bc2c1e732cea
--- /dev/null
+++ b/sys-power/powersave/files/powersaved.rc
@@ -0,0 +1,23 @@
+#!/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/powersave/files/powersaved.rc,v 1.1 2006/05/07 10:29:45 genstef Exp $
+
+depend() {
+ need localmount dbus hald
+ use logger acpid
+}
+
+start() {
+ ebegin "Starting powersave daemon"
+ start-stop-daemon --start --quiet --exec /usr/sbin/powersaved -- \
+ -d \
+ $([[ -S /var/run/acpid.socket ]] && echo "-f /var/run/acpid.socket")
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping powersave daemon"
+ start-stop-daemon --stop --exec /usr/sbin/powersaved
+ eend $?
+}
diff --git a/sys-power/powersave/metadata.xml b/sys-power/powersave/metadata.xml
new file mode 100644
index 000000000000..c2d04231c51e
--- /dev/null
+++ b/sys-power/powersave/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>mobile</herd>
+ <maintainer>
+ <email>genstef@gentoo.org</email>
+ <name>Stefan Schweizer</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/sys-power/powersave/powersave-0.13.1.ebuild b/sys-power/powersave/powersave-0.13.1.ebuild
new file mode 100644
index 000000000000..c51a6fa158fe
--- /dev/null
+++ b/sys-power/powersave/powersave-0.13.1.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-power/powersave/powersave-0.13.1.ebuild,v 1.1 2006/05/07 10:29:45 genstef Exp $
+
+inherit eutils flag-o-matic
+
+DESCRIPTION="Powersave Daemon"
+SRC_URI="mirror://sourceforge/powersave/${P}.tar.bz2"
+HOMEPAGE="http://powersave.sf.net/"
+KEYWORDS="~x86 ~amd64"
+SLOT="0"
+LICENSE="GPL-2"
+IUSE="pam_console"
+
+
+RDEPEND=">=sys-apps/dbus-0.30
+ >=sys-apps/hal-0.5.3
+ >=sys-power/cpufrequtils-0.4
+ pam_console? ( sys-libs/pam )"
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen
+ app-text/tetex )"
+
+pkg_setup() {
+ if use pam_console && ! built_with_use sys-libs/pam pam_console ; then
+ eerror "You need to build pam with pam_console support"
+ eerror "Please remerge sys-libs/pam with USE=pam_console"
+ die "pam without pam_console detected"
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ # Use pam_console or group plugdev to control access to powersave
+ use pam_console || epatch ${FILESDIR}/plugdev_access.patch
+ libtoolize --copy --force
+}
+
+src_compile() {
+ #http://bugs.gentoo.org/132544
+ filter-ldflags -Wl,--as-needed --as-needed
+ econf \
+ --with-gnome-bindir=/usr/bin \
+ --with-kde-bindir=$(kde-config --prefix)/bin \
+ $(use_enable doc docs) || die "econf failed"
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR=${D} install || die "emake install failed"
+
+ rm ${D}/usr/sbin/rcpowersaved
+ rm -rf ${D}/usr/share/doc/packages
+
+ dodoc docs/powersave.html docs/powersave_manual.txt
+
+ newinitd ${FILESDIR}/powersaved.rc powersaved
+}