wok annotate pxe-kexec/receipt @ rev 25496
Up expat (2.5.0), CVE-2022-43680. Again.
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Dec 02 10:26:08 2022 +0000 (23 months ago) |
parents | 8dd8bab3f0ca |
children |
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@24396 | 16 # What is the latest version available today? |
pascal@24396 | 17 current_version() |
pascal@24396 | 18 { |
pascal@24396 | 19 wget -O - https://sourceforge.net/projects/pxe-kexec.berlios/files/ 2>/dev/null | \ |
pascal@24396 | 20 sed '/scope="row/!d;s|.*/pxe-kexec-||;s|.tar.*||;q' |
pascal@24396 | 21 } |
pascal@24396 | 22 |
pascal@16399 | 23 # Rules to configure and make the package. |
pascal@16399 | 24 compile_rules() |
pascal@16399 | 25 { |
pascal@19708 | 26 export LDFLAGS="$LDFLAGS -ltinfo" |
pascal@16399 | 27 mkdir build |
pascal@16399 | 28 cd build |
pascal@16399 | 29 cmake -DCMAKE_INSTALL_PREFIX=/usr .. && |
pascal@16399 | 30 make && |
pascal@16399 | 31 make DESTDIR=$DESTDIR install |
pascal@16399 | 32 } |
pascal@16399 | 33 |
pascal@16399 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@16399 | 35 genpkg_rules() |
pascal@16399 | 36 { |
pascal@16399 | 37 mkdir -p $fs/usr |
pascal@16399 | 38 cp -a $install/usr/sbin $fs/usr |
pascal@16399 | 39 } |
pascal@16403 | 40 |
pascal@16403 | 41 # Pre and post install commands for Tazpkg. |
pascal@16403 | 42 post_install() |
pascal@16403 | 43 { |
pascal@18730 | 44 grep -q kexec "$1/etc/init.d/rc.shutdown" && |
pascal@18730 | 45 cat >> "$1/etc/init.d/rc.shutdown" <<EOT |
pascal@16403 | 46 # pxe-kexec want kexec in shutdown script. |
pascal@16403 | 47 kexec -e 2>&1 > /dev/null |
pascal@16403 | 48 EOT |
pascal@16403 | 49 } |
pascal@16403 | 50 |
pascal@16403 | 51 post_remove() |
pascal@16403 | 52 { |
pascal@18730 | 53 sed -i '/kexec/d' "$1/etc/init.d/rc.shutdown" |
pascal@16403 | 54 } |