wok-tiny annotate memtest/receipt @ rev 169
memtest,plop: tune lzma compression
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu May 06 12:57:42 2021 +0000 (2021-05-06) |
parents | a88405d94c1e |
children | eb617e43dc08 |
rev | line source |
---|---|
pascal@104 | 1 # SliTaz package receipt. |
pascal@104 | 2 |
pascal@104 | 3 PACKAGE="memtest" |
pascal@104 | 4 VERSION="5.01" |
pascal@104 | 5 CATEGORY="base-system" |
pascal@104 | 6 SHORT_DESC="Memory failures detection tool." |
pascal@104 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@104 | 8 LICENSE="GPL2" |
pascal@104 | 9 WEB_SITE="http://www.memtest.org/" |
pascal@168 | 10 TARBALL="memtest86+-$VERSION.tar.gz" |
pascal@168 | 11 WGET_URL="http://www.memtest.org/download/$VERSION/$TARBALL" |
pascal@104 | 12 TARGET="i486" |
pascal@104 | 13 |
pascal@168 | 14 BUILD_DEPENDS="xz" |
pascal@168 | 15 |
pascal@168 | 16 # Rules to configure and make the package. |
pascal@168 | 17 compile_rules() |
pascal@168 | 18 { |
pascal@169 | 19 ls $stuff/memtest*-$VERSION-*.patch 2> /dev/null && |
pascal@168 | 20 for i in $stuff/memtest*-$VERSION-*.patch ; do |
pascal@168 | 21 patch -p1 < $i |
pascal@168 | 22 done |
pascal@168 | 23 make |
pascal@168 | 24 cp $stuff/*.S $stuff/pack . |
pascal@168 | 25 for i in bootloader unpack ; do |
pascal@168 | 26 cc -o $i.o -Wa,-a=$i.lst -c $i.S |
pascal@168 | 27 objcopy -O binary $i.o $i.bin |
pascal@168 | 28 done |
pascal@168 | 29 sed -i "s/VERSION/$VERSION/" pack |
pascal@168 | 30 ./pack --build bootloader.bin unpack.bin |
pascal@168 | 31 ./pack memtest.bin memtest.packed |
pascal@168 | 32 } |
pascal@168 | 33 |
pascal@104 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@104 | 35 genpkg_rules() |
pascal@104 | 36 { |
pascal@104 | 37 mkdir -p $fs/boot |
pascal@168 | 38 cp $src/memtest.packed $fs/boot/$PACKAGE |
pascal@104 | 39 } |
pascal@153 | 40 |
pascal@153 | 41 # Post install/remove commands for Tazpkg. |
pascal@153 | 42 post_install() |
pascal@153 | 43 { |
pascal@153 | 44 grep -qs ^memtest $1/boot/bootmenu || |
pascal@154 | 45 echo "memtest Memtest,test,mem Check memory (may run under DOS, in real mode or with emm386, if renamed to memtest.exe)" >> $1/boot/bootmenu |
pascal@153 | 46 } |