wok-next view pxe-kexec/receipt @ rev 17280

Up: udisks2 (2.1.3), libsoup (2.48.0), gvfs (1.22.1). Update gtk+3
bdeps. Now almost all gvfs backends works! Split them into separate
packages. And don't forget to add to flavors: gvfs, gvfs-fuse,
gvfs-udisks2 (maybe something more).
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun Oct 26 19:07:05 2014 +0200 (2014-10-26)
parents 280066b56ced
children 9e01bc6321ea
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="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 mkdir build
20 cd build
21 cmake -DCMAKE_INSTALL_PREFIX=/usr .. &&
22 make &&
23 make DESTDIR=$DESTDIR install
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/usr
30 cp -a $install/usr/sbin $fs/usr
31 }
33 # Pre and post install commands for Tazpkg.
34 post_install()
35 {
36 grep -q kexec $1/etc/init.d/rc.shutdown &&
37 cat >> $1/etc/init.d/rc.shutdown <<EOT
38 # pxe-kexec want kexec in shutdown script.
39 kexec -e 2>&1 > /dev/null
40 EOT
41 }
43 post_remove()
44 {
45 sed -i '/kexec/d' $1/etc/init.d/rc.shutdown
46 }