wok annotate pxe-kexec/receipt @ rev 18120
mesa-wayland: update PROVIDE
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jun 08 11:00:29 2015 +0200 (2015-06-08) |
parents | 280066b56ced |
children | 9e01bc6321ea |
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@16401 | 14 BUILD_DEPENDS="cmake curl-dev ncurses-dev" |
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@16403 | 36 grep -q kexec $1/etc/init.d/rc.shutdown && |
pascal@16403 | 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@16403 | 45 sed -i '/kexec/d' $1/etc/init.d/rc.shutdown |
pascal@16403 | 46 } |