wok view pxe-kexec/receipt @ rev 21350
amule: add debian libupnp1.8.patch
author | Richard Dunbar <mojo@slitaz.org> |
---|---|
date | Sat Apr 20 15:44:26 2019 -0400 (2019-04-20) |
parents | e9d3c81466d5 |
children | 080c1dff8494 |
line source
1 # SliTaz package receipt.
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/"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WGET_URL="$SF_MIRROR/$PACKAGE.berlios/$TARBALL"
13 DEPENDS="curl readline kexec-tools gcc-lib-base"
14 BUILD_DEPENDS="cmake curl-dev ncurses-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 export LDFLAGS="$LDFLAGS -ltinfo"
20 mkdir build
21 cd build
22 cmake -DCMAKE_INSTALL_PREFIX=/usr .. &&
23 make &&
24 make DESTDIR=$DESTDIR install
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/usr
31 cp -a $install/usr/sbin $fs/usr
32 }
34 # Pre and post install commands for Tazpkg.
35 post_install()
36 {
37 grep -q kexec "$1/etc/init.d/rc.shutdown" &&
38 cat >> "$1/etc/init.d/rc.shutdown" <<EOT
39 # pxe-kexec want kexec in shutdown script.
40 kexec -e 2>&1 > /dev/null
41 EOT
42 }
44 post_remove()
45 {
46 sed -i '/kexec/d' "$1/etc/init.d/rc.shutdown"
47 }