wok-next annotate pxe-kexec/receipt @ rev 20869
mono: fix build on 32-bit
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Jul 02 10:15:48 2018 +0300 (2018-07-02) |
parents | 9e01bc6321ea |
children | 8e1b2a143eb3 |
rev | line source |
---|---|
pascal@16399 | 1 # SliTaz package receipt. |
pascal@16399 | 2 |
pascal@16399 | 3 PACKAGE="pxe-kexec" |
pascal@16399 | 4 VERSION="0.2.5" |
pascal@16399 | 5 CATEGORY="misc" |
pascal@16399 | 6 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@16399 | 7 SHORT_DESC="Boots linux with kexec using pxelinux configuration." |
pascal@16399 | 8 LICENSE="GPL2" |
pascal@16399 | 9 WEB_SITE="http://pxe-kexec.berlios.de/" |
pascal@16399 | 10 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@16399 | 11 WGET_URL="$SF_MIRROR/$PACKAGE.berlios/$TARBALL" |
pascal@16399 | 12 |
pascal@16400 | 13 DEPENDS="curl readline kexec-tools gcc-lib-base" |
pascal@20042 | 14 BUILD_DEPENDS="cmake curl-dev ncurses-dev perl" |
pascal@16399 | 15 |
pascal@16399 | 16 # Rules to configure and make the package. |
pascal@16399 | 17 compile_rules() |
pascal@16399 | 18 { |
pascal@16399 | 19 mkdir build |
pascal@16399 | 20 cd build |
pascal@16399 | 21 cmake -DCMAKE_INSTALL_PREFIX=/usr .. && |
pascal@16399 | 22 make && |
pascal@16399 | 23 make DESTDIR=$DESTDIR install |
pascal@16399 | 24 } |
pascal@16399 | 25 |
pascal@16399 | 26 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@16399 | 27 genpkg_rules() |
pascal@16399 | 28 { |
pascal@16399 | 29 mkdir -p $fs/usr |
pascal@16399 | 30 cp -a $install/usr/sbin $fs/usr |
pascal@16399 | 31 } |
pascal@16403 | 32 |
pascal@16403 | 33 # Pre and post install commands for Tazpkg. |
pascal@16403 | 34 post_install() |
pascal@16403 | 35 { |
pascal@18730 | 36 grep -q kexec "$1/etc/init.d/rc.shutdown" && |
pascal@18730 | 37 cat >> "$1/etc/init.d/rc.shutdown" <<EOT |
pascal@16403 | 38 # pxe-kexec want kexec in shutdown script. |
pascal@16403 | 39 kexec -e 2>&1 > /dev/null |
pascal@16403 | 40 EOT |
pascal@16403 | 41 } |
pascal@16403 | 42 |
pascal@16403 | 43 post_remove() |
pascal@16403 | 44 { |
pascal@18730 | 45 sed -i '/kexec/d' "$1/etc/init.d/rc.shutdown" |
pascal@16403 | 46 } |