summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Moc <jakub@gentoo.org>2007-02-22 02:57:39 +0000
committerJakub Moc <jakub@gentoo.org>2007-02-22 02:57:39 +0000
commit8a96c7fbbd9792e37ca63ea81e71a8c732dec1dd (patch)
tree8484bc5d40ef8bc237b66c4bcfd4f2948724b30d /sys-power
parentnet-misc/blocksshd: Fix quotes. (diff)
downloadsunrise-8a96c7fbbd9792e37ca63ea81e71a8c732dec1dd.tar.gz
sunrise-8a96c7fbbd9792e37ca63ea81e71a8c732dec1dd.tar.bz2
sunrise-8a96c7fbbd9792e37ca63ea81e71a8c732dec1dd.zip
sys-power/s2ram - new ebuild for Bug 128468
svn path=/sunrise/; revision=3065
Diffstat (limited to 'sys-power')
-rw-r--r--sys-power/s2ram/ChangeLog7
-rw-r--r--sys-power/s2ram/Manifest16
-rw-r--r--sys-power/s2ram/files/digest-s2ram-0.53
-rw-r--r--sys-power/s2ram/metadata.xml5
-rw-r--r--sys-power/s2ram/s2ram-0.5.ebuild62
5 files changed, 93 insertions, 0 deletions
diff --git a/sys-power/s2ram/ChangeLog b/sys-power/s2ram/ChangeLog
new file mode 100644
index 000000000..62eec65e1
--- /dev/null
+++ b/sys-power/s2ram/ChangeLog
@@ -0,0 +1,7 @@
+# ChangeLog for sys-power/s2ram
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 22 Feb 2007; Jakub Moc <jakub@gentoo.org> ChangeLog:
+ New ebuild for Bug 128468.
+
diff --git a/sys-power/s2ram/Manifest b/sys-power/s2ram/Manifest
new file mode 100644
index 000000000..01b533dcf
--- /dev/null
+++ b/sys-power/s2ram/Manifest
@@ -0,0 +1,16 @@
+DIST suspend-0.5.tar.gz 163148 RMD160 8b38fcb18c7f860b4c292a4329f268bce6dc177a SHA1 6fbcb41ec5bcae277cc6fd6a95d85709e3bfc5a6 SHA256 ab87f1ee097dab98b4d56f98c95779a47a859de81512292743213e6bd5a352f1
+EBUILD s2ram-0.5.ebuild 1589 RMD160 8dbd3e84a87b292e7b696f97efb21ec65f139cf0 SHA1 372acf3ce55677256c1f88ef5bbd7cb7fd89aa52 SHA256 b1eeec8d0431203a312f673fdfb8c015dd157f5a4219989bbc08a218dfdd71bd
+MD5 3118b5d8c7c6673a341fc0aabc092988 s2ram-0.5.ebuild 1589
+RMD160 8dbd3e84a87b292e7b696f97efb21ec65f139cf0 s2ram-0.5.ebuild 1589
+SHA256 b1eeec8d0431203a312f673fdfb8c015dd157f5a4219989bbc08a218dfdd71bd s2ram-0.5.ebuild 1589
+MISC ChangeLog 201 RMD160 e8a5d26a1ddee9ac6514f198875d58f5ecf32d04 SHA1 8e8d60a4a04e582c3ea0b3152b4a13d643fd0fdc SHA256 753ae845dfde80731fa124595ed6645f2ba5a2f27059938f838cbf2c6720cafc
+MD5 3abc86ae94c900eab2ac63462d6f3de8 ChangeLog 201
+RMD160 e8a5d26a1ddee9ac6514f198875d58f5ecf32d04 ChangeLog 201
+SHA256 753ae845dfde80731fa124595ed6645f2ba5a2f27059938f838cbf2c6720cafc ChangeLog 201
+MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42
+MD5 1e678929a9fec6632e227bdf2262e9a1 metadata.xml 170
+RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 metadata.xml 170
+SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42 metadata.xml 170
+MD5 d95356dbf9330848f13263717ebbaa7f files/digest-s2ram-0.5 235
+RMD160 0ecd3940fcef378f5ac972184622e9bb1aa2a92f files/digest-s2ram-0.5 235
+SHA256 c032ba2cf2cf49b3e4d0ded00893002d1e3ad753ac81615b01cd0c821375cfa1 files/digest-s2ram-0.5 235
diff --git a/sys-power/s2ram/files/digest-s2ram-0.5 b/sys-power/s2ram/files/digest-s2ram-0.5
new file mode 100644
index 000000000..1ed150196
--- /dev/null
+++ b/sys-power/s2ram/files/digest-s2ram-0.5
@@ -0,0 +1,3 @@
+MD5 c0a89e47eeaf14ec68f9114f74b16d09 suspend-0.5.tar.gz 163148
+RMD160 8b38fcb18c7f860b4c292a4329f268bce6dc177a suspend-0.5.tar.gz 163148
+SHA256 ab87f1ee097dab98b4d56f98c95779a47a859de81512292743213e6bd5a352f1 suspend-0.5.tar.gz 163148
diff --git a/sys-power/s2ram/metadata.xml b/sys-power/s2ram/metadata.xml
new file mode 100644
index 000000000..7e3286984
--- /dev/null
+++ b/sys-power/s2ram/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>maintainer-wanted</herd>
+</pkgmetadata>
diff --git a/sys-power/s2ram/s2ram-0.5.ebuild b/sys-power/s2ram/s2ram-0.5.ebuild
new file mode 100644
index 000000000..aabaf3a5c
--- /dev/null
+++ b/sys-power/s2ram/s2ram-0.5.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header$
+
+inherit linux-info toolchain-funcs
+
+MY_P=suspend-${PV}
+
+DESCRIPTION="Suspend-to-RAM utility from Linux Suspend project"
+SRC_URI="mirror://sourceforge/suspend/${MY_P}.tar.gz"
+HOMEPAGE="http://en.opensuse.org/S2ram http://sf.net/projects/suspend/"
+KEYWORDS="~x86"
+
+SLOT="0"
+LICENSE="GPL-2"
+IUSE=""
+
+DEPEND="sys-apps/pciutils"
+RDEPEND=""
+
+S=${WORKDIR}/${MY_P}
+
+CONFIG_CHECK="SOFTWARE_SUSPEND"
+ERROR_SOFTWARE_SUSPEND="The kernel has to be configured to support software suspend.
+ Set CONFIG_SOFTWARE_SUSPEND=y and recompile your kernel."
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ sed -i -e "s@CFLAGS :=@CFLAGS +=@" Makefile || die "sed failed in Makefile"
+}
+
+pkg_setup() {
+ if kernel_is lt 2 6 17 ; then
+ eerror "2.6.17 or higher kernel is required to use ${PN}"
+ die "This will only work with recent 2.6 kernels"
+ fi
+ linux-info_pkg_setup
+}
+
+src_compile() {
+ emake CC=$(tc-getCC) s2ram || die "compile failed"
+}
+
+src_install() {
+ dosbin s2ram || die "install failed"
+ newdoc README.s2ram-whitelist README
+}
+
+pkg_postinst() {
+ if ! has_version sys-apps/vbetool ; then
+ elog "If you get blank screen on resume, then emerge sys-apps/vbetool"
+ elog "and read the supplied documentation."
+ fi
+
+ if ! has_version app-laptop/radeontool ; then
+ elog "To control backlight on suspend with ATI Radeon Mobility graphics cards,"
+ elog "you will need to emerge app-laptop/radeontool"
+ fi
+
+ elog "See README in /usr/share/doc/${PF} and ${PN} -h for quick usage instructions."
+}