summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Brix Andersen <brix@gentoo.org>2005-08-17 13:37:34 +0000
committerHenrik Brix Andersen <brix@gentoo.org>2005-08-17 13:37:34 +0000
commit77f8b9b921c67e12d6e5eddac01b03a54570a628 (patch)
tree87d710ff268d38f3bcd7bf062fbf9649f1a0ce47 /sys-power
parentPort to qt3.eclass. Fixes bug #92550. (diff)
downloadhistorical-77f8b9b921c67e12d6e5eddac01b03a54570a628.tar.gz
historical-77f8b9b921c67e12d6e5eddac01b03a54570a628.tar.bz2
historical-77f8b9b921c67e12d6e5eddac01b03a54570a628.zip
Set Distribution to gentoo, thanks to Florian Zierer.
Package-Manager: portage-2.0.51.22-r2
Diffstat (limited to 'sys-power')
-rw-r--r--sys-power/hibernate-script/ChangeLog8
-rw-r--r--sys-power/hibernate-script/Manifest4
-rw-r--r--sys-power/hibernate-script/files/digest-hibernate-script-1.10-r11
-rw-r--r--sys-power/hibernate-script/hibernate-script-1.10-r1.ebuild69
4 files changed, 80 insertions, 2 deletions
diff --git a/sys-power/hibernate-script/ChangeLog b/sys-power/hibernate-script/ChangeLog
index 51fc6d3a749f..7b2165bfce32 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.15 2005/07/25 08:22:02 brix Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-power/hibernate-script/ChangeLog,v 1.16 2005/08/17 13:37:34 brix Exp $
+
+*hibernate-script-1.10-r1 (17 Aug 2005)
+
+ 17 Aug 2005; Henrik Brix Andersen <brix@gentoo.org>
+ +hibernate-script-1.10-r1.ebuild:
+ Set Distribution to gentoo, thanks to Florian Zierer.
25 Jul 2005; Henrik Brix Andersen <brix@gentoo.org>
hibernate-script-1.09.ebuild:
diff --git a/sys-power/hibernate-script/Manifest b/sys-power/hibernate-script/Manifest
index d50c3817775f..1bb5014685d7 100644
--- a/sys-power/hibernate-script/Manifest
+++ b/sys-power/hibernate-script/Manifest
@@ -1,9 +1,11 @@
MD5 7e07438d9b8d512e72ffa80189fd6b8d hibernate-script-1.10.ebuild 1694
MD5 75a62b5a706a1ba62fe943ea60c69a6e hibernate-script-1.08.ebuild 1846
-MD5 02b7f84cbf1e9a15d8e24fa7263d34fb ChangeLog 4032
+MD5 db41957a92c4ab13bda812b768da723a ChangeLog 4220
MD5 0a991b349d084d0844a403a6886a1b3a hibernate-script-1.09.ebuild 1948
MD5 b280eebc74d70d85e664debf1adce2c3 metadata.xml 255
+MD5 a55c769b54a334e9ad46c446dabf891a hibernate-script-1.10-r1.ebuild 1828
MD5 b26c9213098780eba2f1005cf54ee270 files/hibernate-script-1.09-gentoo.patch 836
+MD5 3a748c4fedc6be95753e465baec60a79 files/digest-hibernate-script-1.10-r1 72
MD5 26eee00879feba424f6a696d7204c100 files/hibernate-script-1.08-gentoo.patch 836
MD5 03bb82879e20ab60a6d5aec0e0b7905c files/hibernate-script-1.10-gentoo.patch 836
MD5 3ea7912a4180fb618723d861d0286afd files/digest-hibernate-script-1.08 72
diff --git a/sys-power/hibernate-script/files/digest-hibernate-script-1.10-r1 b/sys-power/hibernate-script/files/digest-hibernate-script-1.10-r1
new file mode 100644
index 000000000000..1d5fbfdf2692
--- /dev/null
+++ b/sys-power/hibernate-script/files/digest-hibernate-script-1.10-r1
@@ -0,0 +1 @@
+MD5 cbd8320a2a458d1cfad5420c6fa6a823 hibernate-script-1.10.tar.gz 63598
diff --git a/sys-power/hibernate-script/hibernate-script-1.10-r1.ebuild b/sys-power/hibernate-script/hibernate-script-1.10-r1.ebuild
new file mode 100644
index 000000000000..f7a81d89b3b6
--- /dev/null
+++ b/sys-power/hibernate-script/hibernate-script-1.10-r1.ebuild
@@ -0,0 +1,69 @@
+# 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.10-r1.ebuild,v 1.1 2005/08/17 13:37:34 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 ~ppc ~x86"
+
+IUSE="logrotate"
+
+DEPEND="sys-apps/sed"
+RDEPEND="logrotate? ( app-admin/logrotate )"
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ epatch ${FILESDIR}/${P}-gentoo.patch
+
+ # remove obsolete swsusp2_15 scriptlet
+ rm -f ${S}/scriptlets.d/swsusp2_15
+
+ sed -i -e "s:^# \(Distribution\).*:\1 gentoo:" ${S}/hibernate.conf
+ sed -i -e "s:^# \(Distribution\).*:\1 gentoo:" ${S}/ram.conf
+}
+
+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."
+ einfo
+ einfo "See /usr/share/doc/${PF}/README.gz for further details."
+ einfo
+ einfo "Please note that /etc/hibernate/hibernate.conf now defaults"
+ einfo "to using Software Suspend 2."
+ einfo
+}