summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Brix Andersen <brix@gentoo.org>2005-05-13 14:16:41 +0000
committerHenrik Brix Andersen <brix@gentoo.org>2005-05-13 14:16:41 +0000
commit345aba617afe7f143444b6435f593a6f25ae2930 (patch)
tree86ee7e836454d936df9a335817adaaf74051567b /sys-power
parentVersion bump (diff)
downloadgentoo-2-345aba617afe7f143444b6435f593a6f25ae2930.tar.gz
gentoo-2-345aba617afe7f143444b6435f593a6f25ae2930.tar.bz2
gentoo-2-345aba617afe7f143444b6435f593a6f25ae2930.zip
Version bump.
(Portage version: 2.0.51.21-r1)
Diffstat (limited to 'sys-power')
-rw-r--r--sys-power/hibernate-script/ChangeLog8
-rw-r--r--sys-power/hibernate-script/Manifest3
-rw-r--r--sys-power/hibernate-script/files/digest-hibernate-script-1.081
-rw-r--r--sys-power/hibernate-script/files/hibernate-script-1.08-gentoo.patch29
-rw-r--r--sys-power/hibernate-script/hibernate-script-1.08.ebuild70
5 files changed, 110 insertions, 1 deletions
diff --git a/sys-power/hibernate-script/ChangeLog b/sys-power/hibernate-script/ChangeLog
index b2b1d4c41e21..616b8f34deb3 100644
--- a/sys-power/hibernate-script/ChangeLog
+++ b/sys-power/hibernate-script/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-power/hibernate-script
# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-power/hibernate-script/ChangeLog,v 1.7 2005/05/04 11:09:33 brix Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-power/hibernate-script/ChangeLog,v 1.8 2005/05/13 14:16:41 brix Exp $
+
+*hibernate-script-1.08 (13 May 2005)
+
+ 13 May 2005; <brix@gentoo.org> +files/hibernate-script-1.08-gentoo.patch,
+ +hibernate-script-1.08.ebuild:
+ Version bump.
04 May 2005; <brix@gentoo.org> hibernate-script-1.06.ebuild:
Stable on x86.
diff --git a/sys-power/hibernate-script/Manifest b/sys-power/hibernate-script/Manifest
index 2f946b19a5fa..ab29b067ff91 100644
--- a/sys-power/hibernate-script/Manifest
+++ b/sys-power/hibernate-script/Manifest
@@ -1,9 +1,12 @@
MD5 28c14baa47dad1306b8f2f7209c62f52 hibernate-script-1.06.ebuild 1780
+MD5 4c8b6aac453e0beca3bf627a2a33ad0b hibernate-script-1.08.ebuild 1732
MD5 72a509c2b28d748f0f9b3d20de6cf74a hibernate-script-1.05.ebuild 1796
MD5 c8c6265156a1ccfd2ac26d04211b510f hibernate-script-1.07.ebuild 1879
MD5 f584c0d42c28f304e8b8cbdfe9b97bd9 ChangeLog 2925
MD5 b280eebc74d70d85e664debf1adce2c3 metadata.xml 255
+MD5 26eee00879feba424f6a696d7204c100 files/hibernate-script-1.08-gentoo.patch 836
MD5 da0b44360bc5a0cc63a6e4f8eed2a719 files/hibernate-script-1.07-gentoo.patch 836
MD5 51d8389f2aa4b5374d7d13b249924f09 files/digest-hibernate-script-1.05 72
MD5 c77ea22cdce37884bb74d31ca6c478f3 files/digest-hibernate-script-1.06 72
MD5 7e1e665c891b7f2de03da0ae07d8a82b files/digest-hibernate-script-1.07 72
+MD5 3ea7912a4180fb618723d861d0286afd files/digest-hibernate-script-1.08 72
diff --git a/sys-power/hibernate-script/files/digest-hibernate-script-1.08 b/sys-power/hibernate-script/files/digest-hibernate-script-1.08
new file mode 100644
index 000000000000..56ad265681e4
--- /dev/null
+++ b/sys-power/hibernate-script/files/digest-hibernate-script-1.08
@@ -0,0 +1 @@
+MD5 f6d52b74076d423ae519aa8c66da88ea hibernate-script-1.08.tar.gz 62182
diff --git a/sys-power/hibernate-script/files/hibernate-script-1.08-gentoo.patch b/sys-power/hibernate-script/files/hibernate-script-1.08-gentoo.patch
new file mode 100644
index 000000000000..4393afd88211
--- /dev/null
+++ b/sys-power/hibernate-script/files/hibernate-script-1.08-gentoo.patch
@@ -0,0 +1,29 @@
+diff -urp hibernate-script-1.08/init.d/hibernate-cleanup.sh hibernate-script-1.08-gentoo/init.d/hibernate-cleanup.sh
+--- hibernate-script-1.08/init.d/hibernate-cleanup.sh 2005-05-13 15:28:26.000000000 +0200
++++ hibernate-script-1.08-gentoo/init.d/hibernate-cleanup.sh 2005-05-13 15:43:10.000000000 +0200
+@@ -1,4 +1,4 @@
+-#!/bin/sh
++#!/sbin/runscript
+
+ # This script invalidates any stale swsusp and Software Suspend 2 images. It
+ # searches all swap partitions on your machine, as well as Suspend2's
+@@ -57,9 +57,14 @@ check_filewriter_sig() {
+ esac
+ }
+
+-echo -n "Clearing Software Suspend 2 signatures... "
+-check_swap_sig
+-check_filewriter_sig
+-echo "done."
++depend() {
++ after localmount
++ before bootmisc
++}
+
+-exit 0
++start() {
++ ebegin "Clearing Software Suspend 2 signatures"
++ check_swap_sig
++ check_filewriter_sig
++ eend
++}
diff --git a/sys-power/hibernate-script/hibernate-script-1.08.ebuild b/sys-power/hibernate-script/hibernate-script-1.08.ebuild
new file mode 100644
index 000000000000..4b72baa185fa
--- /dev/null
+++ b/sys-power/hibernate-script/hibernate-script-1.08.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-power/hibernate-script/hibernate-script-1.08.ebuild,v 1.1 2005/05/13 14:16:41 brix Exp $
+
+inherit eutils
+
+# The following works with both pre-releases and releases
+MY_P=${PN}-${PV/_/-}
+S=${WORKDIR}/${MY_P}
+
+DESCRIPTION="Hibernate script supporting multiple suspend methods"
+
+HOMEPAGE="http://www.suspend2.net"
+SRC_URI="http://www.suspend2.net/downloads/all/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+
+IUSE=""
+
+DEPEND="sys-apps/sed"
+RDEPEND=""
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ epatch ${FILESDIR}/${P}-gentoo.patch
+
+ # use /sys/power/state instead of swsusp2
+ sed -i \
+ -e "s:^\(UseSuspend2\):# \1:" \
+ -e "s:^\(Reboot\):# \1:" \
+ -e "s:^\(EnableEscape\):# \1:" \
+ -e "s:^\(DefaultConsoleLevel\):# \1:" \
+ -e "s:^# \(UseSysfsPowerState\) mem:\1 disk:" \
+ -e "s:^# \(PowerdownMethod shutdown\):\1:" \
+ ${S}/hibernate.conf
+
+ # remove obsolete swsusp2_15 scriptlet
+ rm -f ${S}/scriptlets.d/swsusp2_15
+}
+
+src_install() {
+ BASE_DIR=${D} PREFIX=/usr MAN_DIR=${D}/usr/share/man \
+ ${S}/install.sh
+
+ # hibernate-ram will default to using ram.conf
+ dosym /usr/sbin/hibernate /usr/sbin/hibernate-ram
+
+ newinitd ${S}/init.d/hibernate-cleanup.sh hibernate-cleanup
+
+ # other ebuilds can install scriplets to this dir
+ keepdir /etc/hibernate/scriptlets.d/
+
+ dodoc CHANGELOG README SCRIPTLET-API TODO
+}
+
+pkg_postinst() {
+ einfo
+ einfo "The /etc/hibernate/sleep.conf file has been moved to"
+ einfo "/etc/hibernate/ram.conf to follow upstream."
+ einfo
+ einfo "If you use Software Suspend 2 you should run"
+ einfo " rc-update add hibernate-cleanup boot"
+ einfo "to invalidate suspend images on a clean boot. See"
+ einfo "/usr/share/doc/${PF}/README.gz for further details."
+ einfo
+}