wok annotate pxe-kexec/receipt @ rev 22260
updated xorg-xf86-input-elographics (1.4.1 -> 1.4.2)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Nov 12 17:37:07 2019 +0100 (2019-11-12) |
parents | e9d3c81466d5 |
children | 080c1dff8494 |
rev | line source |
---|---|
pascal@16399 | 1 # SliTaz package receipt. |
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" |
pascal@16399 | 7 SHORT_DESC="Boots linux with kexec using pxelinux configuration." |
pascal@16399 | 8 LICENSE="GPL2" |
pascal@20672 | 9 WEB_SITE="https://web.archive.org/web/20100819083125/http://pxe-kexec.berlios.de/" |
pascal@16399 | 10 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@16399 | 11 WGET_URL="$SF_MIRROR/$PACKAGE.berlios/$TARBALL" |
pascal@16399 | 12 |
pascal@16400 | 13 DEPENDS="curl readline kexec-tools gcc-lib-base" |
pascal@16401 | 14 BUILD_DEPENDS="cmake curl-dev ncurses-dev" |
pascal@16399 | 15 |
pascal@16399 | 16 # Rules to configure and make the package. |
pascal@16399 | 17 compile_rules() |
pascal@16399 | 18 { |
pascal@19708 | 19 export LDFLAGS="$LDFLAGS -ltinfo" |
pascal@16399 | 20 mkdir build |
pascal@16399 | 21 cd build |
pascal@16399 | 22 cmake -DCMAKE_INSTALL_PREFIX=/usr .. && |
pascal@16399 | 23 make && |
pascal@16399 | 24 make DESTDIR=$DESTDIR install |
pascal@16399 | 25 } |
pascal@16399 | 26 |
pascal@16399 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@16399 | 28 genpkg_rules() |
pascal@16399 | 29 { |
pascal@16399 | 30 mkdir -p $fs/usr |
pascal@16399 | 31 cp -a $install/usr/sbin $fs/usr |
pascal@16399 | 32 } |
pascal@16403 | 33 |
pascal@16403 | 34 # Pre and post install commands for Tazpkg. |
pascal@16403 | 35 post_install() |
pascal@16403 | 36 { |
pascal@18730 | 37 grep -q kexec "$1/etc/init.d/rc.shutdown" && |
pascal@18730 | 38 cat >> "$1/etc/init.d/rc.shutdown" <<EOT |
pascal@16403 | 39 # pxe-kexec want kexec in shutdown script. |
pascal@16403 | 40 kexec -e 2>&1 > /dev/null |
pascal@16403 | 41 EOT |
pascal@16403 | 42 } |
pascal@16403 | 43 |
pascal@16403 | 44 post_remove() |
pascal@16403 | 45 { |
pascal@18730 | 46 sed -i '/kexec/d' "$1/etc/init.d/rc.shutdown" |
pascal@16403 | 47 } |