wok view memtest/receipt @ rev 21158
Up libboost-signals (1.69.0) again
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Mar 30 18:17:37 2019 +0100 (2019-03-30) |
parents | beda06c66d60 |
children | d44f69067aca |
line source
1 # SliTaz package receipt.
3 PACKAGE="memtest"
4 VERSION="5.01"
5 CATEGORY="base-system"
6 SHORT_DESC="Memory failures detection tool."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 SOURCE="memtest86+"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="http://www.memtest.org/"
12 WGET_URL="${WEB_SITE}download/$VERSION/$TARBALL"
14 BUILD_DEPENDS="xz"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 sed -i '/scp memtest.bin/d' Makefile
20 for i in array-size io setup ; do
21 patch -p1 < $stuff/$SOURCE-$VERSION-$i.patch
22 done
23 make
24 cp $stuff/*.S $stuff/pack .
25 for i in bootloader unpack ; do
26 cc -o $i.o -Wa,-a=$i.lst -c $i.S
27 objcopy -O binary $i.o $i.bin
28 done
29 sed -i "s/VERSION/$VERSION/" pack
30 ./pack --build bootloader.bin unpack.bin
31 ./pack memtest.bin memtest.packed
32 mv memtest.bin memtest.bin.console
33 sed -i -e 's/SERIAL_CONSOLE_DEFAULT 0/SERIAL_CONSOLE_DEFAULT 1/' \
34 -e 's/SERIAL_BAUD_RATE 9600/SERIAL_BAUD_RATE 115200/' config.h
35 make clean
36 make
37 ./pack memtest.bin memtest.packed-115200
38 mv memtest.bin memtest.bin.serial
39 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/boot $install/usr/share/doc
46 cp $src/README* $install/usr/share/doc
47 cp $src/FAQ $install/usr/share/doc
48 cp $src/memtest.packed $fs/boot/memtest.exe
49 }
51 # Pre and post install commands for Tazpkg.
52 post_install()
53 {
54 [ -s $1/boot/isolinux/isolinux.cfg ] &&
55 ! grep -qs 'Check memory' $1/boot/isolinux/isolinux.cfg && sed -i \
56 's|LABEL md5|LABEL memtest mem ram\
57 MENU LABEL Check memory\
58 KERNEL /boot/memtest.exe\
59 \n&|' $1/boot/isolinux/isolinux.cfg
60 true
61 }