diff options
author | Henrik Brix Andersen <brix@gentoo.org> | 2005-06-27 16:23:54 +0000 |
---|---|---|
committer | Henrik Brix Andersen <brix@gentoo.org> | 2005-06-27 16:23:54 +0000 |
commit | 8ad02a67aa2b30db24e100aa2eaad889de08ae6e (patch) | |
tree | 744efc528d01b50826ff670e4de8928b4dbdfc79 /sys-power | |
parent | Added sys-power/hibernate-script:logrotate (diff) | |
download | gentoo-2-8ad02a67aa2b30db24e100aa2eaad889de08ae6e.tar.gz gentoo-2-8ad02a67aa2b30db24e100aa2eaad889de08ae6e.tar.bz2 gentoo-2-8ad02a67aa2b30db24e100aa2eaad889de08ae6e.zip |
Version bump.
(Portage version: 2.0.51.22-r1)
Diffstat (limited to 'sys-power')
5 files changed, 115 insertions, 2 deletions
diff --git a/sys-power/hibernate-script/ChangeLog b/sys-power/hibernate-script/ChangeLog index e79d38625b34..58c0e6e17709 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.11 2005/06/11 18:08:34 brix Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-power/hibernate-script/ChangeLog,v 1.12 2005/06/27 16:23:54 brix Exp $ + +*hibernate-script-1.09 (27 Jun 2005) + + 27 Jun 2005; <brix@gentoo.org> +files/hibernate-script-1.09-gentoo.patch, + +hibernate-script-1.09.ebuild: + Version bump. 11 Jun 2005; <brix@gentoo.org> -files/hibernate-script-1.07-gentoo.patch, -hibernate-script-1.05.ebuild, -hibernate-script-1.06.ebuild, diff --git a/sys-power/hibernate-script/Manifest b/sys-power/hibernate-script/Manifest index 651089aa7462..a56ddc7a57aa 100644 --- a/sys-power/hibernate-script/Manifest +++ b/sys-power/hibernate-script/Manifest @@ -1,5 +1,8 @@ MD5 75a62b5a706a1ba62fe943ea60c69a6e hibernate-script-1.08.ebuild 1846 -MD5 b60f0b115252464882466df60f9e2bcc ChangeLog 3448 +MD5 eae3b738c314cece3d3d7d403d9cbd69 ChangeLog 3612 +MD5 349b8c8e322b56cbd2537e31a7ca8316 hibernate-script-1.09.ebuild 1829 MD5 b280eebc74d70d85e664debf1adce2c3 metadata.xml 255 +MD5 b26c9213098780eba2f1005cf54ee270 files/hibernate-script-1.09-gentoo.patch 836 MD5 26eee00879feba424f6a696d7204c100 files/hibernate-script-1.08-gentoo.patch 836 MD5 3ea7912a4180fb618723d861d0286afd files/digest-hibernate-script-1.08 72 +MD5 916c1fcd7b2571c043ee122c075dd93b files/digest-hibernate-script-1.09 72 diff --git a/sys-power/hibernate-script/files/digest-hibernate-script-1.09 b/sys-power/hibernate-script/files/digest-hibernate-script-1.09 new file mode 100644 index 000000000000..ffe655f103fb --- /dev/null +++ b/sys-power/hibernate-script/files/digest-hibernate-script-1.09 @@ -0,0 +1 @@ +MD5 2adfa48d3020b1f33005eebc9bd5ac8a hibernate-script-1.09.tar.gz 63823 diff --git a/sys-power/hibernate-script/files/hibernate-script-1.09-gentoo.patch b/sys-power/hibernate-script/files/hibernate-script-1.09-gentoo.patch new file mode 100644 index 000000000000..3c9d838dc3a9 --- /dev/null +++ b/sys-power/hibernate-script/files/hibernate-script-1.09-gentoo.patch @@ -0,0 +1,29 @@ +diff -urp hibernate-script-1.09/init.d/hibernate-cleanup.sh hibernate-script-1.09-gentoo/init.d/hibernate-cleanup.sh +--- hibernate-script-1.09/init.d/hibernate-cleanup.sh 2005-06-27 17:58:32.000000000 +0200 ++++ hibernate-script-1.09-gentoo/init.d/hibernate-cleanup.sh 2005-06-27 18:02:54.000000000 +0200 +@@ -1,4 +1,4 @@ +-#!/bin/sh ++#!/sbin/runscript + + # This script invalidates any stale swsusp and Software Suspend 2 images. It + # searches all swap partitions on your machine, as well as Suspend2's +@@ -57,9 +57,14 @@ check_filewriter_sig() { + esac + } + +-echo -n "Clearing Software Suspend 2 signatures... " +-check_swap_sig +-check_filewriter_sig +-echo "done." ++depend() { ++ after localmount ++ before bootmisc ++} + +-exit 0 ++start() { ++ ebegin "Clearing Software Suspend 2 signatures" ++ check_swap_sig ++ check_filewriter_sig ++ eend ++} diff --git a/sys-power/hibernate-script/hibernate-script-1.09.ebuild b/sys-power/hibernate-script/hibernate-script-1.09.ebuild new file mode 100644 index 000000000000..123c32187726 --- /dev/null +++ b/sys-power/hibernate-script/hibernate-script-1.09.ebuild @@ -0,0 +1,74 @@ +# 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.09.ebuild,v 1.1 2005/06/27 16:23:54 brix Exp $ + +inherit eutils + +# The following works with both pre-releases and releases +MY_P=${PN}-${PV/_/-} +S=${WORKDIR}/${MY_P} + +DESCRIPTION="Hibernate script supporting multiple suspend methods" + +HOMEPAGE="http://www.suspend2.net" +SRC_URI="http://www.suspend2.net/downloads/all/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="logrotate" + +DEPEND="sys-apps/sed" +RDEPEND="logrotate? ( app-admin/logrotate )" + +src_unpack() { + unpack ${A} + + cd ${S} + epatch ${FILESDIR}/${P}-gentoo.patch + + # use /sys/power/state instead of swsusp2 + sed -i \ + -e "s:^\(UseSuspend2\):# \1:" \ + -e "s:^\(Reboot\):# \1:" \ + -e "s:^\(EnableEscape\):# \1:" \ + -e "s:^\(DefaultConsoleLevel\):# \1:" \ + -e "s:^\(Compressor\):# \1:" \ + -e "s:^\(Encryptor\):# \1:" \ + -e "s:^# \(UseSysfsPowerState\) mem:\1 disk:" \ + -e "s:^# \(PowerdownMethod shutdown\):\1:" \ + ${S}/hibernate.conf + + # remove obsolete swsusp2_15 scriptlet + rm -f ${S}/scriptlets.d/swsusp2_15 +} + +src_install() { + BASE_DIR=${D} PREFIX=/usr MAN_DIR=${D}/usr/share/man \ + ${S}/install.sh + + # hibernate-ram will default to using ram.conf + dosym /usr/sbin/hibernate /usr/sbin/hibernate-ram + + newinitd ${S}/init.d/hibernate-cleanup.sh hibernate-cleanup + + # other ebuilds can install scriplets to this dir + keepdir /etc/hibernate/scriptlets.d/ + + dodoc CHANGELOG README SCRIPTLET-API TODO + + if use logrotate; then + insinto /etc/logrotate.d + newins logrotate.d-hibernate-script hibernate-script + fi +} + +pkg_postinst() { + 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 +} |