# ChangeLog for sys-apps/hibernate-script
-# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/hibernate-script/ChangeLog,v 1.5 2004/12/30 16:51:59 brix Exp $
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/hibernate-script/ChangeLog,v 1.6 2005/01/04 19:40:24 brix Exp $
+
+*hibernate-script-1.03 (04 Jan 2005)
+
+ 04 Jan 2005; Henrik Brix Andersen <brix@gentoo.org>
+ +hibernate-script-1.03.ebuild:
+ Version bump.
30 Dec 2004; Henrik Brix Andersen <brix@gentoo.org>
hibernate-script-1.02-r1.ebuild:
-MD5 3b7220dba4f87260b327484142e4249e hibernate-script-1.01.ebuild 1230
-MD5 d31271c9ba723cbcbf35b24788b4d9c8 hibernate-script-1.02-r1.ebuild 1795
-MD5 86554ec0d9835538f5dc142d50c63af1 hibernate-script-1.00.ebuild 1230
-MD5 21cd1f366cf9901df58fb9849d98ce49 hibernate-script-1.02.ebuild 1299
-MD5 610e461e0529a1fff25a311bfe4e286a ChangeLog 1040
+MD5 56d6d026ca954708a780db6eb7f92dde hibernate-script-1.01.ebuild 1230
+MD5 e385d2ad9898fd6f4964feccfb717a2f hibernate-script-1.02-r1.ebuild 1795
+MD5 86361f872aca04a6efa28936aa1a5625 hibernate-script-1.03.ebuild 1792
+MD5 0a4e754285f5d4962a294c706a87d967 hibernate-script-1.00.ebuild 1230
+MD5 5e51954566e7a7789396ae5bc950c3de hibernate-script-1.02.ebuild 1299
+MD5 6d804f2b074e12d1504aad22233237c9 ChangeLog 1182
MD5 93f5bba7043e57c7092196362f2b494f metadata.xml 255
MD5 8d975c41e4fcad78bf4ceb1fabdb27f9 files/digest-hibernate-script-1.02-r1 72
MD5 ebc451ea5a78f44953d9595e446ae1f0 files/digest-hibernate-script-1.00 72
MD5 c6a307ed804ad8d67438d0de38d8d430 files/digest-hibernate-script-1.01 72
MD5 8d975c41e4fcad78bf4ceb1fabdb27f9 files/digest-hibernate-script-1.02 72
+MD5 8d120706e9a040125072dd1a569c9851 files/digest-hibernate-script-1.03 72
--- /dev/null
+MD5 4fa839c1edbbb442e3e7f6b804557e53 hibernate-script-1.03.tar.gz 47755
-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/hibernate-script/hibernate-script-1.00.ebuild,v 1.1 2004/11/12 18:58:43 brix Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/hibernate-script/hibernate-script-1.00.ebuild,v 1.2 2005/01/04 19:40:24 brix Exp $
# The following works with both pre-releases and releases
MY_P=${PN}-${PV/_/-}
-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/hibernate-script/hibernate-script-1.01.ebuild,v 1.1 2004/11/19 18:31:53 brix Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/hibernate-script/hibernate-script-1.01.ebuild,v 1.2 2005/01/04 19:40:24 brix Exp $
# The following works with both pre-releases and releases
MY_P=${PN}-${PV/_/-}
-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/hibernate-script/hibernate-script-1.02-r1.ebuild,v 1.2 2004/12/30 16:51:59 brix Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/hibernate-script/hibernate-script-1.02-r1.ebuild,v 1.3 2005/01/04 19:40:24 brix Exp $
# The following works with both pre-releases and releases
MY_P=${PN}-${PV/_/-}
-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/hibernate-script/hibernate-script-1.02.ebuild,v 1.1 2004/11/24 19:32:05 brix Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/hibernate-script/hibernate-script-1.02.ebuild,v 1.2 2005/01/04 19:40:24 brix Exp $
# The following works with both pre-releases and releases
MY_P=${PN}-${PV/_/-}
--- /dev/null
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/hibernate-script/hibernate-script-1.03.ebuild,v 1.1 2005/01/04 19:40:24 brix Exp $
+
+# The following works with both pre-releases and releases
+MY_P=${PN}-${PV/_/-}
+S=${WORKDIR}/${MY_P}
+
+DESCRIPTION="Hibernate script supporting both suspend-to-ram and suspend-to-disk"
+
+HOMEPAGE="http://softwaresuspend.berlios.de"
+SRC_URI="http://download.berlios.de/softwaresuspend/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86"
+
+IUSE=""
+
+DEPEND="sys-apps/sed"
+RDEPEND=""
+
+src_unpack() {
+ unpack ${A}
+
+ # use /sys/power/state instead of swsusp2
+ sed -i "s:^\(UseSwsusp2\):# \1:" ${S}/hibernate.conf
+ sed -i "s:^\(Reboot\):# \1:" ${S}/hibernate.conf
+ sed -i "s:^\(EnableEscape\):# \1:" ${S}/hibernate.conf
+ sed -i "s:^\(DefaultConsoleLevel\):# \1:" ${S}/hibernate.conf
+ sed -i "s:^# \(PowerdownMethod shutdown\):\1:" ${S}/hibernate.conf
+
+ # this 'hack' is needed in most cases
+ sed -i "s:^\(SwitchToTextMode\):# \1:" ${S}/hibernate.conf
+
+ # sleep.conf for suspend to ram...
+ cp ${S}/hibernate.conf ${S}/sleep.conf
+ sed -i "s:^# \(UseSysfsPowerState\):\1:" ${S}/sleep.conf
+
+ # ... hibernate.conf for suspend to disk
+ sed -i "s:^# \(UseSysfsPowerState\) mem:\1 disk:" ${S}/hibernate.conf
+}
+
+src_install() {
+ BASE_DIR=${D} PREFIX=/usr MAN_DIR=${D}/usr/share/man ${S}/install.sh
+
+ insinto /etc/hibernate
+ doins ${S}/sleep.conf
+
+ # hibernate-sleep will default to using sleep.conf
+ dosym /usr/sbin/hibernate /usr/sbin/hibernate-sleep
+
+ # other ebuilds can install scriplets to this dir
+ keepdir /etc/hibernate/scriptlets.d/
+
+ dodoc CHANGELOG README SCRIPTLET-API TODO
+}