wok-6.x view memtest/receipt @ rev 19458
linux: CVE-2016-5195
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Oct 21 17:33:56 2016 +0200 (2016-10-21) |
parents | c01e683d8f21 |
children | 1bf63f69896d |
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 cd $src
20 sed -i '/scp memtest.bin/d' Makefile
21 for i in array-size io setup ; do
22 patch -p1 < $stuff/$SOURCE-$VERSION-$i.patch
23 done
24 make
25 cp $stuff/*.S $stuff/pack .
26 for i in bootloader unpack ; do
27 cc -o $i.o -Wa,-a=$i.lst -c $i.S
28 objcopy -O binary $i.o $i.bin
29 done
30 sed -i "s/VERSION/$VERSION/" pack
31 ./pack --build bootloader.bin unpack.bin
32 ./pack memtest.bin memtest.packed
33 mv memtest.bin memtest.bin.console
34 sed -i -e 's/SERIAL_CONSOLE_DEFAULT 0/SERIAL_CONSOLE_DEFAULT 1/' \
35 -e 's/SERIAL_BAUD_RATE 9600/SERIAL_BAUD_RATE 115200/' config.h
36 make clean
37 make
38 ./pack memtest.bin memtest.packed-115200
39 mv memtest.bin memtest.bin.serial
40 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir -p $fs/boot
47 cp $src/memtest.packed $fs/boot/memtest
48 }