You are not logged in.

#1 2004-10-31 19:59:40

soniX
Member
From: Oslo, Norway
Registered: 2004-01-23
Posts: 161

[new] Hibernate / swsusp2 - kernel patch + hibernate-scripts

Requires a pathed 2.6.9 kernel..
add to your source array in your kernel PKGBUILD

http://download.berlios.de/softwaresuspend/software-suspend-2.1-for-2.6.9.tar.bz2

to patch it, add

$startdir/src/software-suspend-2.1-for-$pkgver/apply

where the PKGBUILD tells you to add patches

next we need to install the hibernate scripts

pkgname=hibernate-script
pkgver=0.99
pkgrel=1
pkgdesc="scripts needed for software suspend aka hibernate"
url="http://softwaresuspend.berlios.de"
license="GPL"
source=(http://download.berlios.de/softwaresuspend/$pkgname-$pkgver.tar.gz)

build() {
  cd $startdir/src/$pkgname-$pkgver
  #make the needed directories to run install.sh
  mkdir -p $startdir/pkg/usr/local/sbin
  mkdir -p $startdir/pkg/usr/local/man/man5
  mkdir -p $startdir/pkg/usr/local/man/man8
  #set BASE_DIR variable so the files end up where we want them
  export BASE_DIR=${startdir}/pkg
  ./install.sh
  #now, lets move!
  cd $startdir/pkg
  mv usr/local/sbin usr/
  mv usr/local/man usr/
  mv usr/local/share/hibernate/scriptlets.d etc/hibernate/
  #finally, lets get rid of that local folder
  rm -rf usr/local

  #messages
  echo '####################################################################'
  echo 'Dont pay attention to the messages printet by the original installer'
  echo 'The files are now located in the following places :'
  echo 'hibernate script    : /usr/sbin/hibernate'
  echo 'configuration files : /etc/hibernate'
  echo 'scriptlets          : /etc/hibernate/scriplets.d'
  echo 'man files           : /usr/man'
  echo ' '
  echo 'now configure /etc/hibernate/hibernate.conf to your liking'
  echo 'http://softwaresuspend.berlios.de for more info'
  echo '####################################################################'
}

the PKGBUILD looks like shit, 'cause I took the time to move stuff where it is supposed to be instead of putting everything in /usr/local as the default install script tries to.
I had to set the $BASE_DIR variable to make the install script put the files inside the pkgbuild and not directly into your filesystem..

I did not include an install file, so if you uninstall, the hibernate config files will be removed by pacman I guess...

It actually works... both with and without x running
(it will not however resume to x with dri enabled on my computer yet)

enjoy

Offline

#2 2004-10-31 21:22:35

IceRAM
Member
From: Bucharest, Romania
Registered: 2004-03-04
Posts: 772
Website

Re: [new] Hibernate / swsusp2 - kernel patch + hibernate-scripts

1. Great thing you've done, packaging hibernate. I've been thinking for several days to make myself a swsusp2 aware kernel.
2. doesn't that install.sh script provide some kind of argument to choose the install dir, such as "--prefix=/usr"?

Offline

#3 2004-10-31 22:28:28

soniX
Member
From: Oslo, Norway
Registered: 2004-01-23
Posts: 161

Re: [new] Hibernate / swsusp2 - kernel patch + hibernate-scripts

1: thank you
2: ha ha.. it think it does.. I feel like true dumbass right now... Did this whole thing last night, and perhaps I was too sleepy to see that one (my total lack of bash knowledge might also have something to do with it).... I'll change it to reflect the more "clever" way of doing it...

Offline

#4 2004-10-31 23:31:11

soniX
Member
From: Oslo, Norway
Registered: 2004-01-23
Posts: 161

Re: [new] Hibernate / swsusp2 - kernel patch + hibernate-scripts

new and improved PKGBUILD... (--prefix=/usr is working, but not the way its ment to. atleast this one looks a bit better than the last one..
for some reason, the only way I can set the variables in the install script is like i've done here)

pkgname=hibernate-script
pkgver=0.99
pkgrel=1
pkgdesc="scripts needed for software suspend aka hibernate"
url="http://softwaresuspend.berlios.de"
license="GPL"
source=(http://download.berlios.de/softwaresuspend/$pkgname-$pkgver.tar.gz)

build() {
  cd $startdir/src/$pkgname-$pkgver
  export BASE_DIR=${startdir}/pkg
  export PREFIX=/usr 
  ./install.sh
}

Offline

#5 2005-03-15 10:11:09

big_gie
Member
Registered: 2005-01-19
Posts: 637

Re: [new] Hibernate / swsusp2 - kernel patch + hibernate-scripts

Updated version (v1.05 as of march 15 2005)

pkgname=hibernate-script
pkgver=1.05
pkgrel=1
pkgdesc="scripts needed for software suspend aka hibernate"
url="http://softwaresuspend.berlios.de"
license="GPL"
source=(http://www.suspend2.net/downloads/all/$pkgname-$pkgver.tar.gz)
md5sums=(9497b9843f414b231a48e5ae2addb0f9)

build() {
  cd $startdir/src/$pkgname-$pkgver
  export BASE_DIR=${startdir}/pkg
  export PREFIX=/usr
  ./install.sh
}

Offline

#6 2005-05-15 15:57:40

big_gie
Member
Registered: 2005-01-19
Posts: 637

Re: [new] Hibernate / swsusp2 - kernel patch + hibernate-scripts

Updated version (v1.08)

pkgname=hibernate-script
pkgver=1.08
pkgrel=1
pkgdesc="Scripts needed for software suspend aka hibernate"
url="http://softwaresuspend.berlios.de"
license="GPL"
source=(http://www.suspend2.net/downloads/all/$pkgname-$pkgver.tar.gz)
md5sums=('f6d52b74076d423ae519aa8c66da88ea')

build() {
  cd $startdir/src/$pkgname-$pkgver
  export BASE_DIR=${startdir}/pkg
  export PREFIX=/usr
  ./install.sh
}

Offline

#7 2005-05-16 03:17:56

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: [new] Hibernate / swsusp2 - kernel patch + hibernate-scripts

[whisper]

big_gie: hello again, mate.  Just thought you should know we don't use the license tag - its use is undecided - just so you know smile

[/whisper]

Offline

#8 2005-05-16 05:41:03

big_gie
Member
Registered: 2005-01-19
Posts: 637

Re: [new] Hibernate / swsusp2 - kernel patch + hibernate-scripts

hey dibblethewrecker,

So the license is useless you say? I'll check my PKGBUILD to remove them.

Thanx!

Offline

#9 2005-05-16 06:56:42

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: [new] Hibernate / swsusp2 - kernel patch + hibernate-scripts

not useless - just not yet used.... smile

Offline

#10 2005-06-22 15:49:45

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: [new] Hibernate / swsusp2 - kernel patch + hibernate-scripts

Someone has asked me about a pkg for for this so I have added it to my repo

Offline

Board footer

Powered by FluxBB