wok-next annotate pxe-kexec/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents 8e1b2a143eb3
children
rev   line source
al@21020 1 # SliTaz package receipt v2.
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"
al@21020 7 SHORT_DESC="Boots linux with kexec using pxelinux configuration"
pascal@16399 8 LICENSE="GPL2"
al@20949 9 WEB_SITE="https://web.archive.org/web/20100819083125/http://pxe-kexec.berlios.de/"
al@21020 10
pascal@16399 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@16399 12 WGET_URL="$SF_MIRROR/$PACKAGE.berlios/$TARBALL"
pascal@16399 13
pascal@20042 14 BUILD_DEPENDS="cmake curl-dev ncurses-dev perl"
pascal@16399 15
al@21020 16 compile_rules() {
pascal@16399 17 mkdir build
al@21020 18 cd build
al@21020 19 cmake \
al@21020 20 -DCMAKE_INSTALL_PREFIX=/usr \
al@21020 21 .. &&
pascal@16399 22 make &&
al@21020 23 make DESTDIR=$install install
pascal@16399 24 }
pascal@16403 25
al@21020 26 genpkg_rules() {
al@21020 27 copy @std
al@21020 28 DEPENDS="curl readline kexec-tools gcc-lib-base"
al@21020 29 }
al@21020 30
al@21020 31 post_install() {
pascal@18730 32 grep -q kexec "$1/etc/init.d/rc.shutdown" &&
pascal@18730 33 cat >> "$1/etc/init.d/rc.shutdown" <<EOT
pascal@16403 34 # pxe-kexec want kexec in shutdown script.
al@21020 35 kexec -e 2>&1 >/dev/null
pascal@16403 36 EOT
pascal@16403 37 }
pascal@16403 38
al@21020 39 post_remove() {
pascal@18730 40 sed -i '/kexec/d' "$1/etc/init.d/rc.shutdown"
pascal@16403 41 }