wok-current annotate kexec-tools/receipt @ rev 20560
net-tools: use archive web_site
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Dec 12 19:27:33 2018 +0100 (2018-12-12) |
parents | 543e0fa614bc |
children | 71360a13cd94 |
rev | line source |
---|---|
pascal@14254 | 1 # SliTaz package receipt. |
pascal@14254 | 2 |
pascal@14254 | 3 PACKAGE="kexec-tools" |
pascal@20418 | 4 VERSION="2.0.17" |
pascal@14254 | 5 CATEGORY="system-tools" |
pascal@14254 | 6 SHORT_DESC="Directly boot into a new kernel." |
pascal@14254 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15002 | 8 LICENSE="GPL2" |
pascal@14254 | 9 TARBALL="$PACKAGE-$VERSION.tar.xz" |
pascal@17923 | 10 WEB_SITE="https://www.kernel.org/pub/linux/utils/kernel/kexec/" |
pascal@14254 | 11 WGET_URL="${WEB_SITE}$TARBALL" |
pascal@16398 | 12 HOST_ARCH="i486 arm x86_64" |
pascal@14254 | 13 |
pascal@14254 | 14 DEPENDS="zlib" |
pascal@17923 | 15 BUILD_DEPENDS="wget zlib-dev liblzma-dev" |
pascal@14254 | 16 |
pascal@14254 | 17 # Rules to configure and make the package. |
pascal@14254 | 18 compile_rules() |
pascal@14254 | 19 { |
pascal@17670 | 20 export LDFLAGS="$LDFLAGS -lpthread" |
pascal@16398 | 21 case "$ARCH" in |
pascal@16398 | 22 i?86) |
pascal@16398 | 23 ./configure prefix=/usr \ |
pascal@20560 | 24 --build=$BUILD_SYSTEM \ |
pascal@20560 | 25 --host=$HOST_SYSTEM \ |
pascal@16398 | 26 --target=i386-linux ;; |
pascal@16398 | 27 *) |
pascal@16398 | 28 ./configure prefix=/usr \ |
pascal@16398 | 29 --build=$BUILD_SYSTEM \ |
pascal@16398 | 30 --host=$HOST_SYSTEM ;; |
pascal@16398 | 31 esac && |
pascal@14254 | 32 make && |
pascal@14254 | 33 make DESTDIR=$DESTDIR install |
pascal@14254 | 34 } |
pascal@14254 | 35 |
pascal@16398 | 36 # Important cross compiled package so run readelf. |
pascal@16398 | 37 testsuite() |
pascal@16398 | 38 { |
pascal@16398 | 39 cd $install |
pascal@16398 | 40 readelf -h usr/sbin/kexec |
pascal@16398 | 41 } |
pascal@16398 | 42 |
pascal@14254 | 43 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@14254 | 44 genpkg_rules() |
pascal@14254 | 45 { |
pascal@14254 | 46 cp -a $install/usr $fs |
pascal@14254 | 47 rm -rf $fs/usr/share |
pascal@14254 | 48 } |