summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Brix Andersen <brix@gentoo.org>2005-04-30 13:50:42 +0000
committerHenrik Brix Andersen <brix@gentoo.org>2005-04-30 13:50:42 +0000
commit6015405b20bf4987fbcce178457d93f4a4ad32ae (patch)
tree85369f7de4280774bc4f98edd59baac9d34e4988 /sys-power
parentmarking myself as maintainer (diff)
downloadhistorical-6015405b20bf4987fbcce178457d93f4a4ad32ae.tar.gz
historical-6015405b20bf4987fbcce178457d93f4a4ad32ae.tar.bz2
historical-6015405b20bf4987fbcce178457d93f4a4ad32ae.zip
Version bump.
Package-Manager: portage-2.0.51.20-r5
Diffstat (limited to 'sys-power')
-rw-r--r--sys-power/hibernate-script/ChangeLog8
-rw-r--r--sys-power/hibernate-script/Manifest7
-rw-r--r--sys-power/hibernate-script/files/digest-hibernate-script-1.071
-rw-r--r--sys-power/hibernate-script/files/hibernate-script-1.07-init.d15
-rw-r--r--sys-power/hibernate-script/hibernate-script-1.07.ebuild71
5 files changed, 99 insertions, 3 deletions
diff --git a/sys-power/hibernate-script/ChangeLog b/sys-power/hibernate-script/ChangeLog
index 1b70b949d4e6..e750a08a6dc0 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.4 2005/04/09 11:07:17 blubb Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-power/hibernate-script/ChangeLog,v 1.5 2005/04/30 13:50:42 brix Exp $
+
+*hibernate-script-1.07 (30 Apr 2005)
+
+ 30 Apr 2005; <brix@gentoo.org> +files/hibernate-script-1.07-init.d,
+ +hibernate-script-1.07.ebuild:
+ Version bump.
09 Apr 2005; Simon Stelling <blubb@gentoo.org>
hibernate-script-1.06.ebuild:
diff --git a/sys-power/hibernate-script/Manifest b/sys-power/hibernate-script/Manifest
index 49d83a42e6d6..b0180deefa93 100644
--- a/sys-power/hibernate-script/Manifest
+++ b/sys-power/hibernate-script/Manifest
@@ -1,6 +1,9 @@
-MD5 017b7529003865aea5ba764597f319af ChangeLog 2504
+MD5 e22a54e346cb2d438249f7172597e8e2 hibernate-script-1.06.ebuild 1782
MD5 72a509c2b28d748f0f9b3d20de6cf74a hibernate-script-1.05.ebuild 1796
+MD5 3c577a491d3b54ca9347a0404dea2324 hibernate-script-1.07.ebuild 1984
+MD5 08fbc709d111b193479ef174ed6cd8a3 ChangeLog 2661
MD5 b280eebc74d70d85e664debf1adce2c3 metadata.xml 255
-MD5 e22a54e346cb2d438249f7172597e8e2 hibernate-script-1.06.ebuild 1782
+MD5 a20128474bbbcb3fb75b88a1c808e8f9 files/hibernate-script-1.07-init.d 409
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
diff --git a/sys-power/hibernate-script/files/digest-hibernate-script-1.07 b/sys-power/hibernate-script/files/digest-hibernate-script-1.07
new file mode 100644
index 000000000000..743d8e0ef0c4
--- /dev/null
+++ b/sys-power/hibernate-script/files/digest-hibernate-script-1.07
@@ -0,0 +1 @@
+MD5 0ceb0ec40065cdcf07a6c0ed51de95ac hibernate-script-1.07.tar.gz 59644
diff --git a/sys-power/hibernate-script/files/hibernate-script-1.07-init.d b/sys-power/hibernate-script/files/hibernate-script-1.07-init.d
new file mode 100644
index 000000000000..f81c7c230fa8
--- /dev/null
+++ b/sys-power/hibernate-script/files/hibernate-script-1.07-init.d
@@ -0,0 +1,15 @@
+#!/sbin/runscript
+# 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/files/hibernate-script-1.07-init.d,v 1.1 2005/04/30 13:50:42 brix Exp $
+
+depend() {
+ after localmount
+ before bootmisc
+}
+
+start() {
+ ebegin "Clearing Software Suspend 2 signatures"
+ /sbin/hibernate-cleanup.sh
+ eend ${?}
+}
diff --git a/sys-power/hibernate-script/hibernate-script-1.07.ebuild b/sys-power/hibernate-script/hibernate-script-1.07.ebuild
new file mode 100644
index 000000000000..019e21275384
--- /dev/null
+++ b/sys-power/hibernate-script/hibernate-script-1.07.ebuild
@@ -0,0 +1,71 @@
+# 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.07.ebuild,v 1.1 2005/04/30 13:50:42 brix Exp $
+
+# The following works with both pre-releases and releases
+MY_P=${PN}-${PV/_/-}
+S=${WORKDIR}/${MY_P}
+
+DESCRIPTION="Hibernate script supporting suspend-to-ram and suspend-to-disk"
+
+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}
+
+ # use /sys/power/state instead of swsusp2
+ sed -i \
+ -e "s:^\(UseSwsusp2\):# \1:" \
+ -e "s:^\(Reboot\):# \1:" \
+ -e "s:^\(EnableEscape\):# \1:" \
+ -e "s:^\(DefaultConsoleLevel\):# \1:" \
+ -e "s:^# \(PowerdownMethod shutdown\):\1:" \
+ -e "s:^# \(UseSysfsPowerState\) mem:\1 disk:" \
+ ${S}/hibernate.conf
+
+ # this 'hack' is needed in most cases
+ sed -i -e "s:^# \(SwitchToTextMode\):\1:" \
+ ${S}/hibernate.conf
+
+ # let our init script handle informational messages
+ sed -i -e "s:^\(echo\):# \1:" ${S}/init.d/hibernate-cleanup.sh
+}
+
+src_install() {
+ BASE_DIR=${D} PREFIX=/usr MAN_DIR=${D}/usr/share/man \
+ ${S}/install.sh
+
+ # hibernate-sleep will default to using sleep.conf
+ dosym /usr/sbin/hibernate /usr/sbin/hibernate-ram
+
+ into /
+ dosbin ${S}/init.d/hibernate-cleanup.sh
+ newinitd ${FILESDIR}/${P}-init.d 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
+}