summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Brix Andersen <brix@gentoo.org>2004-11-12 18:58:43 +0000
committerHenrik Brix Andersen <brix@gentoo.org>2004-11-12 18:58:43 +0000
commit90151ca2e4f634c4eb86e61cc918eaaf942dd5db (patch)
tree0534da1329fe551216544ce75f08484f33dccbb5 /sys-apps/hibernate-script
parentVersion bump for the binfmt_elf security vulnerability, bug #70681. (Manifest... (diff)
downloadgentoo-2-90151ca2e4f634c4eb86e61cc918eaaf942dd5db.tar.gz
gentoo-2-90151ca2e4f634c4eb86e61cc918eaaf942dd5db.tar.bz2
gentoo-2-90151ca2e4f634c4eb86e61cc918eaaf942dd5db.zip
Initial check-in. Fixes bug #52019
Diffstat (limited to 'sys-apps/hibernate-script')
-rw-r--r--sys-apps/hibernate-script/ChangeLog10
-rw-r--r--sys-apps/hibernate-script/Manifest3
-rw-r--r--sys-apps/hibernate-script/files/digest-hibernate-script-1.001
-rw-r--r--sys-apps/hibernate-script/hibernate-script-1.00.ebuild41
-rw-r--r--sys-apps/hibernate-script/metadata.xml9
5 files changed, 64 insertions, 0 deletions
diff --git a/sys-apps/hibernate-script/ChangeLog b/sys-apps/hibernate-script/ChangeLog
new file mode 100644
index 000000000000..89bd9e6e4fbd
--- /dev/null
+++ b/sys-apps/hibernate-script/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for sys-apps/hibernate-script
+# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/hibernate-script/ChangeLog,v 1.1 2004/11/12 18:58:43 brix Exp $
+
+*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-apps/hibernate-script/Manifest b/sys-apps/hibernate-script/Manifest
new file mode 100644
index 000000000000..664e734c42e4
--- /dev/null
+++ b/sys-apps/hibernate-script/Manifest
@@ -0,0 +1,3 @@
+MD5 4c6b6051134bb4134abbe8bdae4e4b7b hibernate-script-1.00.ebuild 1116
+MD5 93f5bba7043e57c7092196362f2b494f metadata.xml 255
+MD5 ebc451ea5a78f44953d9595e446ae1f0 files/digest-hibernate-script-1.00 72
diff --git a/sys-apps/hibernate-script/files/digest-hibernate-script-1.00 b/sys-apps/hibernate-script/files/digest-hibernate-script-1.00
new file mode 100644
index 000000000000..e9bdcad741ea
--- /dev/null
+++ b/sys-apps/hibernate-script/files/digest-hibernate-script-1.00
@@ -0,0 +1 @@
+MD5 ab4bd0dd2dafd560174802f6ef288ad5 hibernate-script-1.00.tar.gz 42488
diff --git a/sys-apps/hibernate-script/hibernate-script-1.00.ebuild b/sys-apps/hibernate-script/hibernate-script-1.00.ebuild
new file mode 100644
index 000000000000..28f6d87054f7
--- /dev/null
+++ b/sys-apps/hibernate-script/hibernate-script-1.00.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/hibernate-script/hibernate-script-1.00.ebuild,v 1.1 2004/11/12 18:58:43 brix 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:^# \(UseSysfsPowerState\):\1:" ${S}/hibernate.conf
+}
+
+src_install() {
+ BASE_DIR=${D} PREFIX=/usr MAN_DIR=${D}/usr/share/man ${S}/install.sh
+
+ # other ebuilds can install scriplets to this dir
+ keepdir /etc/hibernate/scriptlets.d/
+
+ dodoc CHANGELOG README SCRIPTLET-API TODO
+}
diff --git a/sys-apps/hibernate-script/metadata.xml b/sys-apps/hibernate-script/metadata.xml
new file mode 100644
index 000000000000..a7e8c888f719
--- /dev/null
+++ b/sys-apps/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>kernel</herd>
+<maintainer>
+ <email>brix@gentoo.org</email>
+ <name>Henrik Brix Andersen</name>
+</maintainer>
+</pkgmetadata>