# HG changeset patch # User Pascal Bellard # Date 1207740955 0 # Node ID 72f7366a39f9b1fed30d54c038eaebd46faa02c0 # Parent 1d36ba1a79f023f4c165670b28cee86d56697354 Add: memtest diff -r 1d36ba1a79f0 -r 72f7366a39f9 memtest/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/memtest/receipt Wed Apr 09 11:35:55 2008 +0000 @@ -0,0 +1,33 @@ +# SliTaz package receipt. + +PACKAGE="memtest" +VERSION="2.01" +CATEGORY="base-system" +SHORT_DESC="Memory failures detection tool." +MAINTAINER="pascal.bellard@slitaz.org" +TARBALL="$PACKAGE-$VERSION.tar.bz2" +WEB_SITE="http://www.memtest.org/" +RAW_WGET_URL="http://www.memtest.org/download/$VERSION/memtest86+-$VERSION.bin.gz" + +# Rules to configure and make the package. +compile_rules() +{ + [ -f $(basename $RAW_WGET_URL) ] || wget $RAW_WGET_URL +} + + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/share/boot + zcat $(basename $RAW_WGET_URL) | lzma e $fs/usr/share/boot/memtest.lzma -si +} + +# Pre and post install commands for Tazpkg. +post_install() +{ + echo "----" + echo "You can create memtest boot floppy with:" + echo "# unlzma /usr/share/boot/memtest.lzma > /dev/fd0" + echo "----" +}