wok-current view kexec-tools/receipt @ rev 20008
Add: description.txt and links revision.
author | Leonardo Laporte <hackdorte@yandex.com> |
---|---|
date | Wed Aug 02 14:08:19 2017 -0300 (2017-08-02) |
parents | 17e313b5b9c1 |
children | 543e0fa614bc |
line source
1 # SliTaz package receipt.
3 PACKAGE="kexec-tools"
4 VERSION="2.0.4"
5 CATEGORY="system-tools"
6 SHORT_DESC="Directly boot into a new kernel."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.xz"
10 WEB_SITE="https://www.kernel.org/pub/linux/utils/kernel/kexec/"
11 WGET_URL="${WEB_SITE}$TARBALL"
12 HOST_ARCH="i486 arm x86_64"
14 DEPENDS="zlib"
15 BUILD_DEPENDS="wget zlib-dev liblzma-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 export LDFLAGS="$LDFLAGS -lpthread"
21 case "$ARCH" in
22 i?86)
23 ./configure prefix=/usr \
24 --target=i386-linux ;;
25 *)
26 ./configure prefix=/usr \
27 --build=$BUILD_SYSTEM \
28 --host=$HOST_SYSTEM ;;
29 esac &&
30 make &&
31 make DESTDIR=$DESTDIR install
32 }
34 # Important cross compiled package so run readelf.
35 testsuite()
36 {
37 cd $install
38 readelf -h usr/sbin/kexec
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 cp -a $install/usr $fs
45 rm -rf $fs/usr/share
46 }