wok-next rev 20219

memtest: shrink
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Nov 05 13:03:25 2017 +0100 (2017-11-05)
parents d5e98d58b7d4
children 83a6c575264f
files memtest-serial/receipt memtest/receipt
line diff
     1.1 --- a/memtest-serial/receipt	Sun Nov 05 11:20:24 2017 +0100
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,26 +0,0 @@
     1.4 -# SliTaz package receipt.
     1.5 -
     1.6 -PACKAGE="memtest-serial"
     1.7 -VERSION="5.01"
     1.8 -CATEGORY="base-system"
     1.9 -SHORT_DESC="Memory failures detection tool using serial port."
    1.10 -MAINTAINER="pascal.bellard@slitaz.org"
    1.11 -LICENSE="GPL2"
    1.12 -WEB_SITE="http://www.memtest.org/"
    1.13 -
    1.14 -WANTED="memtest"
    1.15 -
    1.16 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.17 -genpkg_rules()
    1.18 -{
    1.19 -	mkdir -p $fs/boot
    1.20 -	cp $src/memtest.packed-115200 $fs/boot/memtest
    1.21 -}
    1.22 -
    1.23 -# Pre and post install commands for Tazpkg.
    1.24 -post_install()
    1.25 -{
    1.26 -	cat <<EOT
    1.27 -Output to vga and serial port. Default kernel cmdline: console=ttyS0,115200e8
    1.28 -EOT
    1.29 -}
     2.1 --- a/memtest/receipt	Sun Nov 05 11:20:24 2017 +0100
     2.2 +++ b/memtest/receipt	Sun Nov 05 13:03:25 2017 +0100
     2.3 @@ -1,4 +1,4 @@
     2.4 -# SliTaz package receipt.
     2.5 +# SliTaz package receipt v2.
     2.6  
     2.7  PACKAGE="memtest"
     2.8  VERSION="5.01"
     2.9 @@ -13,13 +13,14 @@
    2.10  WGET_URL="${WEB_SITE}download/$VERSION/$TARBALL"
    2.11  
    2.12  BUILD_DEPENDS="xz"
    2.13 -SPLIT="memtest-serial"
    2.14 +SPLIT="memtest-serial gcc3"
    2.15  
    2.16  # Rules to configure and make the package.
    2.17  compile_rules()
    2.18  {
    2.19 -	sed -i  -e '/scp memtest.bin/d' \
    2.20 -		-e 's/no-stack-protector/& -fgnu89-inline/' Makefile
    2.21 +	sed -i  -e '/scp memtest.bin/d' -e 's/gcc/gcc-3/' \
    2.22 +		-e 's/-fno-stack-protector//' Makefile
    2.23 +	sed -i 's/0b10/2/' init.c
    2.24  	patch -p1 < $stuff/$SOURCE-$VERSION-array-size.patch
    2.25  	make
    2.26  	cp $stuff/*.S $stuff/pack .
    2.27 @@ -43,6 +44,23 @@
    2.28  # Rules to gen a SliTaz package suitable for Tazpkg.
    2.29  genpkg_rules()
    2.30  {
    2.31 -	mkdir -p $fs/boot
    2.32 -	cp $src/memtest.packed $fs/boot/memtest
    2.33 +	case $PACKAGE in
    2.34 +	memtest)
    2.35 +		mkdir -p $fs/boot
    2.36 +		cp $src/memtest.packed $fs/boot/memtest
    2.37 +		;;
    2.38 +	memtest-serial)
    2.39 +		CAT="base-system|Memory failures detection tool using serial port."
    2.40 +		mkdir -p $fs/boot
    2.41 +		cp $src/memtest.packed-115200 $fs/boot/memtest
    2.42 +		;;
    2.43 +	esac
    2.44  }
    2.45 +
    2.46 +# Pre and post install commands for Tazpkg.
    2.47 +post_install_memtest_serial()
    2.48 +{
    2.49 +	cat <<EOT
    2.50 +Output to vga and serial port. Default kernel cmdline: console=ttyS0,115200e8
    2.51 +EOT
    2.52 +}