wok-next annotate memtest/receipt @ rev 1734

memtest: build from source
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Nov 21 10:23:14 2008 +0000 (2008-11-21)
parents 74b1a6f5d5b0
children 05e629675346
rev   line source
pascal@524 1 # SliTaz package receipt.
pascal@524 2
pascal@524 3 PACKAGE="memtest"
pascal@1715 4 VERSION="2.10"
pascal@524 5 CATEGORY="base-system"
pascal@524 6 SHORT_DESC="Memory failures detection tool."
pascal@524 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@1734 8 SOURCE="memtest86+"
pascal@1734 9 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@524 10 WEB_SITE="http://www.memtest.org/"
pascal@1734 11 WGET_URL="${WEB_SITE}download/$VERSION/$TARBALL"
pascal@524 12
pascal@524 13 # Rules to configure and make the package.
pascal@524 14 compile_rules()
pascal@524 15 {
pascal@1734 16 cd $src
pascal@1734 17 make
pascal@524 18 }
pascal@524 19
pascal@524 20
pascal@524 21 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@524 22 genpkg_rules()
pascal@524 23 {
pascal@1734 24 mkdir -p $fs/usr/share/boot
pascal@1734 25 lzma e $src/memtest.bin $fs/usr/share/boot/memtest.lzma
pascal@524 26 }
pascal@524 27
pascal@524 28 # Pre and post install commands for Tazpkg.
pascal@524 29 post_install()
pascal@524 30 {
pascal@524 31 echo "----"
pascal@524 32 echo "You can create memtest boot floppy with:"
pascal@526 33 echo "# unlzma -c /usr/share/boot/memtest.lzma > /dev/fd0"
pascal@524 34 echo "----"
pascal@524 35 }