summaryrefslogtreecommitdiff
path: root/extra/kexec-tools/PKGBUILD
blob: df36156001ea80df77cad0948d34e92c1c8878d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# $Id: PKGBUILD 155721 2012-04-05 13:08:48Z dreisner $
# Contributor: Camille Moncelier <pix@devlife.org>, simo <simo@archlinux.org>
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>

pkgname=kexec-tools
pkgver=2.0.2
pkgrel=5
pkgdesc="Load another kernel from the currently executing Linux kernel"
arch=('i686' 'x86_64')
url="http://kernel.org/pub/linux/utils/kernel/kexec/"
source=("http://kernel.org/pub/linux/utils/kernel/kexec/kexec-tools-${pkgver}.tar.bz2"
        'kexec-tools-2.0.0-purgatory-makefile.patch'
        'kexec' 
        'kexec.conf.d')
depends=('gawk' 'zlib' 'xz')
backup=('etc/conf.d/kexec')
license=('GPL2')
md5sums=('35d05fed1c97008ac34c5bfb929295eb'
         'b96f47c29757fcadfbc50ea6ea22f839'
         'be059a103e5989519d22fca99f860a64'
         '9ca7e31d2c5c66c436a9a2baf20ad9b2')

build() {
  cd $srcdir/$pkgname-$pkgver
  patch -Np1 -i ../kexec-tools-2.0.0-purgatory-makefile.patch
  ./configure --prefix=/usr
  make
}

package() {
  cd $srcdir/$pkgname-$pkgver
  make DESTDIR=$pkgdir install

  mv $pkgdir/usr/sbin $pkgdir/sbin

  install -D -m644 kexec/kexec.8 $pkgdir/usr/share/man/man8/kexec.8
  install -D -m644 $srcdir/kexec.conf.d $pkgdir/etc/conf.d/kexec
  install -D -m755 $srcdir/kexec $pkgdir/etc/rc.d/kexec
}