wok-next view pxe-kexec/receipt @ rev 21116
Update libxfce4util, xfconf, libxfce4ui
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Jan 14 00:11:29 2019 +0200 (2019-01-14) |
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 }