diff options
author | Henrik Brix Andersen <brix@gentoo.org> | 2005-04-30 13:50:42 +0000 |
---|---|---|
committer | Henrik Brix Andersen <brix@gentoo.org> | 2005-04-30 13:50:42 +0000 |
commit | b05a6b2f991b1c93e80a3c6372d44e31dda3b058 (patch) | |
tree | 3fd862064693c471e16992a06e2aa46e335330c7 /sys-power/hibernate-script | |
parent | marking myself as maintainer (diff) | |
download | gentoo-2-b05a6b2f991b1c93e80a3c6372d44e31dda3b058.tar.gz gentoo-2-b05a6b2f991b1c93e80a3c6372d44e31dda3b058.tar.bz2 gentoo-2-b05a6b2f991b1c93e80a3c6372d44e31dda3b058.zip |
Version bump.
(Portage version: 2.0.51.20-r5)
Diffstat (limited to 'sys-power/hibernate-script')
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..f7cb667ef0e4 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 a022185167bf2fe33eaf1fae3c007d6d hibernate-script-1.07.ebuild 1869 +MD5 c69c490880fcbe9676d27f0172519723 ChangeLog 2662 MD5 b280eebc74d70d85e664debf1adce2c3 metadata.xml 255 -MD5 e22a54e346cb2d438249f7172597e8e2 hibernate-script-1.06.ebuild 1782 +MD5 07e3a5b5f179d58ace58dbb5de27d488 files/hibernate-script-1.07-init.d 288 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 +} |