wok-next view memtest/receipt @ rev 20884

Check Repology info from m* to python-babel
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Jul 12 18:34:58 2018 +0300 (2018-07-12)
parents fc15bece1af6
children d5aab818505e
line source
1 # SliTaz package receipt v2.
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 WEB_SITE="http://www.memtest.org/"
10 REPOLOGY="memtest86+"
11 HOST_ARCH="i486"
13 TARBALL="memtest86+-$VERSION.tar.gz"
14 WGET_URL="${WEB_SITE}download/$VERSION/$TARBALL"
16 BUILD_DEPENDS="xz gcc3"
17 SPLIT="memtest-serial:serial"
19 compile_rules() {
20 sed -i '/scp memtest.bin/d; s/gcc/gcc-3/; s/-fno-stack-protector//' Makefile
21 sed -i 's/0b10/2/' init.c
23 case $SET in
24 '')
25 make || return 1
26 cp $stuff/*.S $stuff/pack .
27 for i in bootloader unpack; do
28 cc -o $i.o -Wa,-a=$i.lst -c $i.S
29 objcopy -O binary $i.o $i.bin
30 done
31 sed -i "s/VERSION/$VERSION/" pack
32 ./pack --build bootloader.bin unpack.bin
33 ./pack memtest.bin memtest.packed
34 mv memtest.bin memtest.bin.console
36 install -Dm644 memtest.packed $install/boot/memtest
37 ;;
38 serial)
39 sed -i \
40 -e 's/SERIAL_CONSOLE_DEFAULT 0/SERIAL_CONSOLE_DEFAULT 1/' \
41 -e 's/SERIAL_BAUD_RATE 9600/SERIAL_BAUD_RATE 115200/' config.h
42 make clean
43 make || return 1
44 ./pack memtest.bin memtest.packed-115200
45 mv memtest.bin memtest.bin.serial
47 install -Dm644 memtest.packed-115200 $install/boot/memtest
48 ;;
49 esac
50 }
52 genpkg_rules() {
53 case $PACKAGE in
54 memtest)
55 copy @std
56 ;;
57 memtest-serial)
58 copy @std
59 CAT="base-system|using serial port"
60 ;;
61 esac
62 }
64 post_install_memtest_serial() {
65 [ -n "$quiet" ] || cat <<EOT
67 .------------------------------------------------.
68 | Output to vga and serial port. |
69 | Default kernel cmdline: console=ttyS0,115200e8 |
70 '------------------------------------------------'
71 EOT
72 }