wok view memtest/receipt @ rev 20042

Add snapper
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Aug 29 20:35:56 2017 +0200 (2017-08-29)
parents 9e463ebef079
children beda06c66d60
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
49 }