wok-next view memtest/receipt @ rev 15362
Add some licenses
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Oct 02 13:07:29 2013 +0000 (2013-10-02) |
parents | 8d9ce0de31e0 |
children | 8ac80fe62efb |
line source
1 # SliTaz package receipt.
3 PACKAGE="memtest"
4 VERSION="4.20"
5 CATEGORY="base-system"
6 SHORT_DESC="Memory failures detection tool."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL"
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 make
21 cp $stuff/*.S $stuff/pack .
22 for i in bootloader unpack ; do
23 cc -o $i.o -Wa,-a=$i.lst -c $i.S
24 objcopy -O binary $i.o $i.bin
25 done
26 ./pack --build bootloader.bin unpack.bin
27 ./pack memtest.bin memtest.packed
28 sed -i -e 's/SERIAL_CONSOLE_DEFAULT 0/SERIAL_CONSOLE_DEFAULT 1/' \
29 -e 's/SERIAL_BAUD_RATE 9600/SERIAL_BAUD_RATE 115200/' config.h
30 make clean
31 make
32 ./pack memtest.bin memtest.packed-115200
33 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/boot
40 cp $src/memtest.packed $fs/boot/memtest
41 }