wok-current annotate memtest/receipt @ rev 14810
Up: apr-util* (1.5.2)
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Wed Jul 17 13:35:05 2013 +0200 (2013-07-17) |
parents | 8ee389d86c73 |
children | b0e9e83532e2 |
rev | line source |
---|---|
pascal@524 | 1 # SliTaz package receipt. |
pascal@524 | 2 |
pascal@524 | 3 PACKAGE="memtest" |
slaxemulator@8153 | 4 VERSION="4.20" |
pascal@524 | 5 CATEGORY="base-system" |
pascal@524 | 6 SHORT_DESC="Memory failures detection tool." |
pascal@524 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@14798 | 8 LICENSE="GPL" |
pascal@1734 | 9 SOURCE="memtest86+" |
pascal@1734 | 10 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@524 | 11 WEB_SITE="http://www.memtest.org/" |
pascal@1734 | 12 WGET_URL="${WEB_SITE}download/$VERSION/$TARBALL" |
pascal@524 | 13 |
pascal@14798 | 14 BUILD_DEPENDS="xz" |
pascal@13269 | 15 |
pascal@524 | 16 # Rules to configure and make the package. |
pascal@524 | 17 compile_rules() |
pascal@524 | 18 { |
pascal@1734 | 19 cd $src |
pascal@1734 | 20 make |
pascal@13269 | 21 cp $stuff/*.S $stuff/pack . |
pascal@13269 | 22 cc -o unpack.o -Wa,-a=unpack.lst -c unpack.S |
pascal@13269 | 23 objcopy -O binary unpack.o unpack.bin |
pascal@13269 | 24 ./pack --build unpack.bin |
pascal@13269 | 25 ./pack memtest.bin memtest.packed |
pascal@14796 | 26 sed -i -e 's/SERIAL_CONSOLE_DEFAULT 0/SERIAL_CONSOLE_DEFAULT 1/' \ |
pascal@14796 | 27 -e 's/SERIAL_BAUD_RATE 9600/SERIAL_BAUD_RATE 115200/' config.h |
pascal@14796 | 28 make clean |
pascal@14796 | 29 make |
pascal@14796 | 30 ./pack memtest.bin memtest.packed-115200 |
pascal@524 | 31 } |
pascal@524 | 32 |
pascal@524 | 33 |
pascal@524 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@524 | 35 genpkg_rules() |
pascal@524 | 36 { |
pascal@13269 | 37 mkdir -p $fs/boot |
pascal@14797 | 38 cp $src/memtest.packed-115200 $fs/boot/memtest |
pascal@524 | 39 } |
pascal@14798 | 40 |
pascal@14798 | 41 # Pre and post install commands for Tazpkg. |
pascal@14798 | 42 post_install() |
pascal@14798 | 43 { |
pascal@14798 | 44 cat <<EOT |
pascal@14798 | 45 Output to vga and serial port. Default kernel cmdline: console=ttyS0,115200e8 |
pascal@14798 | 46 EOT |
pascal@14798 | 47 } |