wok-current diff memtest/receipt @ rev 524
Add: memtest
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Apr 09 11:35:55 2008 +0000 (2008-04-09) |
parents | |
children | a1b4d13c1624 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/memtest/receipt Wed Apr 09 11:35:55 2008 +0000 1.3 @@ -0,0 +1,33 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="memtest" 1.7 +VERSION="2.01" 1.8 +CATEGORY="base-system" 1.9 +SHORT_DESC="Memory failures detection tool." 1.10 +MAINTAINER="pascal.bellard@slitaz.org" 1.11 +TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.12 +WEB_SITE="http://www.memtest.org/" 1.13 +RAW_WGET_URL="http://www.memtest.org/download/$VERSION/memtest86+-$VERSION.bin.gz" 1.14 + 1.15 +# Rules to configure and make the package. 1.16 +compile_rules() 1.17 +{ 1.18 + [ -f $(basename $RAW_WGET_URL) ] || wget $RAW_WGET_URL 1.19 +} 1.20 + 1.21 + 1.22 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.23 +genpkg_rules() 1.24 +{ 1.25 + mkdir -p $fs/usr/share/boot 1.26 + zcat $(basename $RAW_WGET_URL) | lzma e $fs/usr/share/boot/memtest.lzma -si 1.27 +} 1.28 + 1.29 +# Pre and post install commands for Tazpkg. 1.30 +post_install() 1.31 +{ 1.32 + echo "----" 1.33 + echo "You can create memtest boot floppy with:" 1.34 + echo "# unlzma /usr/share/boot/memtest.lzma > /dev/fd0" 1.35 + echo "----" 1.36 +}