wok-next view pxe-kexec/receipt @ rev 21382
updated nbd (3.3 -> 3.20)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Apr 16 17:27:00 2020 +0100 (2020-04-16) |
parents | 8e1b2a143eb3 |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="pxe-kexec"
4 VERSION="0.2.5"
5 CATEGORY="misc"
6 MAINTAINER="pascal.bellard@slitaz.org"
7 SHORT_DESC="Boots linux with kexec using pxelinux configuration"
8 LICENSE="GPL2"
9 WEB_SITE="https://web.archive.org/web/20100819083125/http://pxe-kexec.berlios.de/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="$SF_MIRROR/$PACKAGE.berlios/$TARBALL"
14 BUILD_DEPENDS="cmake curl-dev ncurses-dev perl"
16 compile_rules() {
17 mkdir build
18 cd build
19 cmake \
20 -DCMAKE_INSTALL_PREFIX=/usr \
21 .. &&
22 make &&
23 make DESTDIR=$install install
24 }
26 genpkg_rules() {
27 copy @std
28 DEPENDS="curl readline kexec-tools gcc-lib-base"
29 }
31 post_install() {
32 grep -q kexec "$1/etc/init.d/rc.shutdown" &&
33 cat >> "$1/etc/init.d/rc.shutdown" <<EOT
34 # pxe-kexec want kexec in shutdown script.
35 kexec -e 2>&1 >/dev/null
36 EOT
37 }
39 post_remove() {
40 sed -i '/kexec/d' "$1/etc/init.d/rc.shutdown"
41 }