From 75c78eccb1030ce544411ab58d612853e2b5c571 Mon Sep 17 00:00:00 2001 From: hannes Date: Wed, 8 Dec 2004 10:41:25 +0000 Subject: [PATCH] hannes: add package hibernate script for hibernating the linux with swsusp2 [2004120402013108807] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@5057 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- package/hannes/hibernate/hibernate.conf | 29 ++++++++++++++ package/hannes/hibernate/hibernate.desc | 46 +++++++++++++++++++++++ package/hannes/hibernate/install-sh.patch | 40 ++++++++++++++++++++ 3 files changed, 115 insertions(+) create mode 100644 package/hannes/hibernate/hibernate.conf create mode 100644 package/hannes/hibernate/hibernate.desc create mode 100644 package/hannes/hibernate/install-sh.patch diff --git a/package/hannes/hibernate/hibernate.conf b/package/hannes/hibernate/hibernate.conf new file mode 100644 index 000000000..7c25b6022 --- /dev/null +++ b/package/hannes/hibernate/hibernate.conf @@ -0,0 +1,29 @@ +# --- ROCK-COPYRIGHT-NOTE-BEGIN --- +# +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# Please add additional copyright information _after_ the line containing +# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by +# the ./scripts/Create-CopyPatch script. Do not edit this copyright text! +# +# ROCK Linux: rock-src/package/hannes/hibernate/hibernate.conf +# ROCK Linux is Copyright (C) 1998 - 2004 Clifford Wolf +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. A copy of the GNU General Public +# License can be found at Documentation/COPYING. +# +# Many people helped and are helping developing ROCK Linux. Please +# have a look at http://www.rocklinux.org/ and the Documentation/TEAM +# file for details. +# +# --- ROCK-COPYRIGHT-NOTE-END --- + + +hibernate_main() +{ + BASE_DIR=$root/ PREFIX=usr/ ./install.sh +} + +custmain="hibernate_main" diff --git a/package/hannes/hibernate/hibernate.desc b/package/hannes/hibernate/hibernate.desc new file mode 100644 index 000000000..7027d9317 --- /dev/null +++ b/package/hannes/hibernate/hibernate.desc @@ -0,0 +1,46 @@ +[COPY] --- ROCK-COPYRIGHT-NOTE-BEGIN --- +[COPY] +[COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch. +[COPY] Please add additional copyright information _after_ the line containing +[COPY] the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by +[COPY] the ./scripts/Create-CopyPatch script. Do not edit this copyright text! +[COPY] +[COPY] ROCK Linux: rock-src/package/hannes/hibernate/hibernate.desc +[COPY] ROCK Linux is Copyright (C) 1998 - 2004 Clifford Wolf +[COPY] +[COPY] This program is free software; you can redistribute it and/or modify +[COPY] it under the terms of the GNU General Public License as published by +[COPY] the Free Software Foundation; either version 2 of the License, or +[COPY] (at your option) any later version. A copy of the GNU General Public +[COPY] License can be found at Documentation/COPYING. +[COPY] +[COPY] Many people helped and are helping developing ROCK Linux. Please +[COPY] have a look at http://www.rocklinux.org/ and the Documentation/TEAM +[COPY] file for details. +[COPY] +[COPY] --- ROCK-COPYRIGHT-NOTE-END --- + +[I] a script providing OS based support for suspending your Linux computer + +[T] Software Suspend is most easily described as the Linux equivalent of +[T] Windows' hibernate functionality. It saves the contents of memory to +[T] disk and powers down. When the computer is started up again, it reloads +[T] the contents and the user can continue from where they left off. No +[T] documents need to be reloaded or applications reopened and the process +[T] is much faster than a normal shutdown and start up. + +[U] http://developer.berlios.de/projects/softwaresuspend/ + +[A] Bernard B. +[A] Michael Frank +[A] Nigel Cunningham +[M] hannes + +[C] extra/base + +[L] GPL +[S] Stable +[V] 1.02 +[P] X -?---5---9 300.000 + +[D] 3316050455 hibernate-script-1.02.tar.gz http://download.berlios.de/softwaresuspend/ diff --git a/package/hannes/hibernate/install-sh.patch b/package/hannes/hibernate/install-sh.patch new file mode 100644 index 000000000..5642a9b91 --- /dev/null +++ b/package/hannes/hibernate/install-sh.patch @@ -0,0 +1,40 @@ +# --- ROCK-COPYRIGHT-NOTE-BEGIN --- +# +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# Please add additional copyright information _after_ the line containing +# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by +# the ./scripts/Create-CopyPatch script. Do not edit this copyright text! +# +# ROCK Linux: rock-src/package/hannes/hibernate/install-sh.patch +# ROCK Linux is Copyright (C) 1998 - 2004 Clifford Wolf +# +# This patch file is dual-licensed. It is available under the license the +# patched project is licensed under, as long as it is an OpenSource license +# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms +# of the GNU General Public License as published by the Free Software +# Foundation; either version 2 of the License, or (at your option) any later +# version. +# +# --- ROCK-COPYRIGHT-NOTE-END --- + +--- ./install.sh.orig 2004-12-04 00:40:57.651911496 +0100 ++++ ./install.sh 2004-12-04 00:41:12.443662808 +0100 +@@ -14,18 +14,6 @@ + + [ -z "$OLD_SCRIPTLET_DIR" ] && OLD_SCRIPTLET_DIR=$CONFIG_DIR/scriptlets.d + +-# Test if the script is already installed. +-if [ -d $CONFIG_DIR -o -f $SCRIPT_DEST ] ; then +- echo "Config directory $CONFIG_DIR and/or $SCRIPT_DEST already exist." +- echo -n "Are you sure you want to overwrite them? (y/N) " +- read REPLY +- echo +- case $REPLY in +- y*|Y*) ;; +- *) echo "Aborting!" ; exit 1 ;; +- esac +-fi +- + ( + set -e +