summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Brix Andersen <brix@gentoo.org>2005-04-04 13:04:27 +0000
committerHenrik Brix Andersen <brix@gentoo.org>2005-04-04 13:04:27 +0000
commitbebcacfb8618dcdfa7557d5a980216e785d7e413 (patch)
treea3e9d6e1365ec3c9ff9b2868e2df8fc5cd4bf3dc /sys-power/hibernate-script
parentFix typo. (diff)
downloadhistorical-bebcacfb8618dcdfa7557d5a980216e785d7e413.tar.gz
historical-bebcacfb8618dcdfa7557d5a980216e785d7e413.tar.bz2
historical-bebcacfb8618dcdfa7557d5a980216e785d7e413.zip
Version bump.
Package-Manager: portage-2.0.51.19
Diffstat (limited to 'sys-power/hibernate-script')
-rw-r--r--sys-power/hibernate-script/ChangeLog7
-rw-r--r--sys-power/hibernate-script/Manifest14
-rw-r--r--sys-power/hibernate-script/files/digest-hibernate-script-1.061
-rw-r--r--sys-power/hibernate-script/hibernate-script-1.06.ebuild57
4 files changed, 67 insertions, 12 deletions
diff --git a/sys-power/hibernate-script/ChangeLog b/sys-power/hibernate-script/ChangeLog
index c6ce04dab430..e308016124f9 100644
--- a/sys-power/hibernate-script/ChangeLog
+++ b/sys-power/hibernate-script/ChangeLog
@@ -1,6 +1,11 @@
# 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.2 2005/03/15 16:36:26 swegener Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-power/hibernate-script/ChangeLog,v 1.3 2005/04/04 13:04:27 brix Exp $
+
+*hibernate-script-1.06 (04 Apr 2005)
+
+ 04 Apr 2005; <brix@gentoo.org> +hibernate-script-1.06.ebuild:
+ Version bump.
*hibernate-script-1.05 (14 Mar 2005)
diff --git a/sys-power/hibernate-script/Manifest b/sys-power/hibernate-script/Manifest
index a69ff6fe3c4b..a3e5a2c4a3db 100644
--- a/sys-power/hibernate-script/Manifest
+++ b/sys-power/hibernate-script/Manifest
@@ -1,14 +1,6 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
+MD5 787cc607aa12488e18b4a43b009e2f8c hibernate-script-1.06.ebuild 1774
MD5 72a509c2b28d748f0f9b3d20de6cf74a hibernate-script-1.05.ebuild 1796
-MD5 0bc5dad50a2a62fce7870aade690f5fa ChangeLog 2291
+MD5 5b1149093e3aae06d6ef66e0a58114c5 ChangeLog 2406
MD5 b280eebc74d70d85e664debf1adce2c3 metadata.xml 255
MD5 51d8389f2aa4b5374d7d13b249924f09 files/digest-hibernate-script-1.05 72
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.0 (GNU/Linux)
-
-iD8DBQFCNw8sI1lqEGTUzyQRAoXxAKDa1tIgrPRH9lAiImNrerTacnuwQgCeNr7T
-GWoolf96McwgnKhsmbWv6t0=
-=LjTf
------END PGP SIGNATURE-----
+MD5 c77ea22cdce37884bb74d31ca6c478f3 files/digest-hibernate-script-1.06 72
diff --git a/sys-power/hibernate-script/files/digest-hibernate-script-1.06 b/sys-power/hibernate-script/files/digest-hibernate-script-1.06
new file mode 100644
index 000000000000..979a6f5e8547
--- /dev/null
+++ b/sys-power/hibernate-script/files/digest-hibernate-script-1.06
@@ -0,0 +1 @@
+MD5 0c4830dcf0532f78f26086ea1003e473 hibernate-script-1.06.tar.gz 58952
diff --git a/sys-power/hibernate-script/hibernate-script-1.06.ebuild b/sys-power/hibernate-script/hibernate-script-1.06.ebuild
new file mode 100644
index 000000000000..420aa79d793f
--- /dev/null
+++ b/sys-power/hibernate-script/hibernate-script-1.06.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.06.ebuild,v 1.1 2005/04/04 13:04:27 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"
+
+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
+}