wok view pxe-kexec/receipt @ rev 24679
updated iso-codes (4.4 -> 4.9.0)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Mar 12 09:36:26 2022 +0100 (2022-03-12) |
parents | 8dd8bab3f0ca |
children |
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 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://sourceforge.net/projects/pxe-kexec.berlios/files/ 2>/dev/null | \
20 sed '/scope="row/!d;s|.*/pxe-kexec-||;s|.tar.*||;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 export LDFLAGS="$LDFLAGS -ltinfo"
27 mkdir build
28 cd build
29 cmake -DCMAKE_INSTALL_PREFIX=/usr .. &&
30 make &&
31 make DESTDIR=$DESTDIR install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr
38 cp -a $install/usr/sbin $fs/usr
39 }
41 # Pre and post install commands for Tazpkg.
42 post_install()
43 {
44 grep -q kexec "$1/etc/init.d/rc.shutdown" &&
45 cat >> "$1/etc/init.d/rc.shutdown" <<EOT
46 # pxe-kexec want kexec in shutdown script.
47 kexec -e 2>&1 > /dev/null
48 EOT
49 }
51 post_remove()
52 {
53 sed -i '/kexec/d' "$1/etc/init.d/rc.shutdown"
54 }