diff options
author | Ciaran McCreesh <ciaranm@gentoo.org> | 2005-03-14 23:11:55 +0000 |
---|---|---|
committer | Ciaran McCreesh <ciaranm@gentoo.org> | 2005-03-14 23:11:55 +0000 |
commit | d7000a588747be37c6807ea899d5ee51441a9268 (patch) | |
tree | 9c5d8059acdc19bd5c96e5d72102ef074691539b /sys-power | |
parent | use find -print0 | xargs -0 #85053 (diff) | |
download | gentoo-2-d7000a588747be37c6807ea899d5ee51441a9268.tar.gz gentoo-2-d7000a588747be37c6807ea899d5ee51441a9268.tar.bz2 gentoo-2-d7000a588747be37c6807ea899d5ee51441a9268.zip |
Moved from sys-apps/hibernate-script to sys-power/hibernate-script.
Diffstat (limited to 'sys-power')
-rw-r--r-- | sys-power/hibernate-script/ChangeLog | 75 | ||||
-rw-r--r-- | sys-power/hibernate-script/Manifest | 4 | ||||
-rw-r--r-- | sys-power/hibernate-script/files/digest-hibernate-script-1.05 | 1 | ||||
-rw-r--r-- | sys-power/hibernate-script/hibernate-script-1.05.ebuild | 57 | ||||
-rw-r--r-- | sys-power/hibernate-script/metadata.xml | 9 |
5 files changed, 146 insertions, 0 deletions
diff --git a/sys-power/hibernate-script/ChangeLog b/sys-power/hibernate-script/ChangeLog new file mode 100644 index 000000000000..6e2d7927c4ee --- /dev/null +++ b/sys-power/hibernate-script/ChangeLog @@ -0,0 +1,75 @@ +# ChangeLog for sys-apps/hibernate-script +# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-power/hibernate-script/ChangeLog,v 1.1 2005/03/14 23:11:55 ciaranm Exp $ + +*hibernate-script-1.05 (14 Mar 2005) + + 14 Mar 2005; Ciaran McCreesh <ciaranm@gentoo.org> +metadata.xml, + +hibernate-script-1.05.ebuild: + Moved from sys-apps/hibernate-script to sys-power/hibernate-script. + + 12 Mar 2005; Henrik Brix Andersen <brix@gentoo.org> + -hibernate-script-1.00.ebuild, -hibernate-script-1.01.ebuild, + -hibernate-script-1.02-r1.ebuild, -hibernate-script-1.02.ebuild, + -hibernate-script-1.03.ebuild, -hibernate-script-1.04.ebuild: + Pruned old versions. + + 02 Mar 2005; Henrik Brix Andersen <brix@gentoo.org> + hibernate-script-1.05.ebuild: + Stable on x86. + +*hibernate-script-1.05 (08 Feb 2005) + + 08 Feb 2005; Henrik Brix Andersen <brix@gentoo.org> + +hibernate-script-1.05.ebuild: + Version bump. + +*hibernate-script-1.04 (08 Feb 2005) + + 08 Feb 2005; Henrik Brix Andersen <brix@gentoo.org> + +hibernate-script-1.04.ebuild: + Version bump. + + 05 Feb 2005; Henrik Brix Andersen <brix@gentoo.org> + hibernate-script-1.03.ebuild: + Stable on x86. + + 04 Jan 2005; Henrik Brix Andersen <brix@gentoo.org> + hibernate-script-1.03.ebuild: + Accidentally marked 1.03 stable on x86. + +*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: + Stable on x86. + +*hibernate-script-1.02-r1 (07 Dec 2004) + + 07 Dec 2004; Henrik Brix Andersen <brix@gentoo.org> + +hibernate-script-1.02-r1.ebuild: + Allow calling hibernate for suspend-to-disk, and hibernate-sleep for + suspend-to-ram. + +*hibernate-script-1.02 (24 Nov 2004) + + 24 Nov 2004; Henrik Brix Andersen <brix@gentoo.org> + +hibernate-script-1.02.ebuild: + Version bump. + +*hibernate-script-1.01 (19 Nov 2004) + + 19 Nov 2004; Henrik Brix Andersen <brix@gentoo.org> + +hibernate-script-1.01.ebuild: + Version bump. + +*hibernate-script-1.00 (12 Nov 2004) + + 12 Nov 2004; Henrik Brix Andersen <brix@gentoo.org> +metadata.xml, + +hibernate-script-1.00.ebuild: + Initial check-in. Thank you to all who commented on bug #52019. + diff --git a/sys-power/hibernate-script/Manifest b/sys-power/hibernate-script/Manifest new file mode 100644 index 000000000000..485e62af13eb --- /dev/null +++ b/sys-power/hibernate-script/Manifest @@ -0,0 +1,4 @@ +MD5 1b20521a8deebee3bae5d2837b92fb6a hibernate-script-1.05.ebuild 1792 +MD5 7d1c8bc5f602c590d61d84b650dfac24 ChangeLog 2077 +MD5 b280eebc74d70d85e664debf1adce2c3 metadata.xml 255 +MD5 51d8389f2aa4b5374d7d13b249924f09 files/digest-hibernate-script-1.05 72 diff --git a/sys-power/hibernate-script/files/digest-hibernate-script-1.05 b/sys-power/hibernate-script/files/digest-hibernate-script-1.05 new file mode 100644 index 000000000000..02bc646fa8ee --- /dev/null +++ b/sys-power/hibernate-script/files/digest-hibernate-script-1.05 @@ -0,0 +1 @@ +MD5 9497b9843f414b231a48e5ae2addb0f9 hibernate-script-1.05.tar.gz 52167 diff --git a/sys-power/hibernate-script/hibernate-script-1.05.ebuild b/sys-power/hibernate-script/hibernate-script-1.05.ebuild new file mode 100644 index 000000000000..faece9c3740e --- /dev/null +++ b/sys-power/hibernate-script/hibernate-script-1.05.ebuild @@ -0,0 +1,57 @@ +# 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.05.ebuild,v 1.1 2005/03/14 23:11:55 ciaranm 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 +} diff --git a/sys-power/hibernate-script/metadata.xml b/sys-power/hibernate-script/metadata.xml new file mode 100644 index 000000000000..cfbdff13bd61 --- /dev/null +++ b/sys-power/hibernate-script/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>brix@gentoo.org</email> + <name>Henrik Brix Andersen</name> +</maintainer> +</pkgmetadata> |