wok-6.x annotate kexec-tools/receipt @ rev 17212
cyrus-imapd: enable murder
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Oct 10 15:22:16 2014 +0200 (2014-10-10) |
parents | 7896f0694ef6 |
children | 17e313b5b9c1 |
rev | line source |
---|---|
pascal@14254 | 1 # SliTaz package receipt. |
pascal@14254 | 2 |
pascal@14254 | 3 PACKAGE="kexec-tools" |
pascal@14254 | 4 VERSION="2.0.4" |
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@14254 | 10 WEB_SITE="ftp://ftp.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@14254 | 15 BUILD_DEPENDS="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@14254 | 20 cd $src |
pascal@14254 | 21 export LDFLAGS="-lpthread" |
pascal@16398 | 22 case "$ARCH" in |
pascal@16398 | 23 i?86) |
pascal@16398 | 24 ./configure prefix=/usr \ |
pascal@16398 | 25 --target=i386-linux ;; |
pascal@16398 | 26 *) |
pascal@16398 | 27 ./configure prefix=/usr \ |
pascal@16398 | 28 --build=$BUILD_SYSTEM \ |
pascal@16398 | 29 --host=$HOST_SYSTEM ;; |
pascal@16398 | 30 esac && |
pascal@14254 | 31 make && |
pascal@14254 | 32 make DESTDIR=$DESTDIR install |
pascal@14254 | 33 } |
pascal@14254 | 34 |
pascal@16398 | 35 # Important cross compiled package so run readelf. |
pascal@16398 | 36 testsuite() |
pascal@16398 | 37 { |
pascal@16398 | 38 cd $install |
pascal@16398 | 39 readelf -h usr/sbin/kexec |
pascal@16398 | 40 } |
pascal@16398 | 41 |
pascal@14254 | 42 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@14254 | 43 genpkg_rules() |
pascal@14254 | 44 { |
pascal@14254 | 45 cp -a $install/usr $fs |
pascal@14254 | 46 rm -rf $fs/usr/share |
pascal@14254 | 47 } |
pascal@14254 | 48 |