wok rev 15193

Add larch
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Aug 30 11:24:48 2013 +0000 (2013-08-30)
parents 047146e76f87
children 0183577c3754
files larch/receipt memtest/stuff/pack memtest/stuff/unpack.S
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/larch/receipt	Fri Aug 30 11:24:48 2013 +0000
     1.3 @@ -0,0 +1,30 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="larch"
     1.7 +VERSION="1.1.2"
     1.8 +CATEGORY="network"
     1.9 +SHORT_DESC="Copies messages from one IMAP server to another."
    1.10 +MAINTAINER="pascal.bellard@slitaz.org"
    1.11 +LICENSE="GPL2"
    1.12 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.13 +WEB_SITE="https://github.com/rgrove/larch/"
    1.14 +WGET_URL="${WEB_SITE}archive/release-$VERSION.tar.gz"
    1.15 +
    1.16 +DEPENDS="ruby"
    1.17 +BUILD_DEPENDS="ruby-dev wget"
    1.18 +
    1.19 +# Rules to configure and make the package.
    1.20 +compile_rules()
    1.21 +{
    1.22 +	local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
    1.23 +	gem install --ignore-dependencies -i "$DESTDIR/$_gemdir" larch
    1.24 +}
    1.25 +
    1.26 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.27 +genpkg_rules()
    1.28 +{
    1.29 +	mkdir -p $fs/usr/bin
    1.30 +	cp -a $install/usr $fs
    1.31 +	cd $fs/usr
    1.32 +	ln -s ../$(ls lib/ruby/gems/*/bin/larch) bin
    1.33 +}
     2.1 --- a/memtest/stuff/pack	Wed Aug 28 23:24:49 2013 +0300
     2.2 +++ b/memtest/stuff/pack	Fri Aug 30 11:24:48 2013 +0000
     2.3 @@ -9,6 +9,8 @@
     2.4  	[ -n "$x" ] && sed -i "s/XXXP/$((513+0x$x))/" $0 || sed -i s="/XXXP$/d" $0
     2.5  	x=$(grep -s original_syssize ${2/.bin/.lst}|sed '$!d;s/.*t:\([^ ]*\).*/\1/')
     2.6  	[ -n "$x" ] && sed -i "s/XXXO/$((513+0x$x))/" $0 || sed -i s="/XXXO$/d" $0
     2.7 +	x=$(grep -s original_setupsize ${2/.bin/.lst}|sed '$!d;s/.*t:\([^ ]*\).*/\1/')
     2.8 +	[ -n "$x" ] && sed -i "s/XXXS/$((516+0x$x))/" $0 || sed -i s="/XXXS$/d" $0
     2.9  	helpmsg=$(sed '/helpmsg:/!d{n;s/ [0-9]* \([^ ]*\).*/\1/}' ${1/.bin/.lst} | sed '$!d')
    2.10  	sed -i "s/YYY/$((0x$helpmsg))/" $0
    2.11  	sed -i "s/ZZZ/$((496-0x$helpmsg))/" $0
    2.12 @@ -36,11 +38,13 @@
    2.13  	dd if=$1 bs=1 skip=497 seek=497 count=15 of=$2 conv=notrunc
    2.14  	setup="$(echo $(od -j 497 -N 1 -dAn $1))"
    2.15  	syssize="$(echo $(od -j 500 -N 2 -dAn $1))"
    2.16 +	store $syssize $2 XXXO
    2.17 +	store $setup $2 XXXS 1
    2.18 +	[ $syssize -eq 0 ] && syssize=$((($(stat -c %s $1) + 15 - 512*($setup + 1))/16))
    2.19  	dd if=$1 bs=512 count=$setup skip=1 | compress >>$2
    2.20  	dd if=$1 bs=16 count=$syssize skip=$((32*(1+$setup))) | compress >>$2
    2.21  	size=$(stat -c %s $2)
    2.22  	store $((($size-2560+15)/16)) $2 XXXP
    2.23 -	store $syssize $2 XXXO
    2.24  	store $((($size-2560+15)/16)) $2 500
    2.25  	store 4 $2 497 1
    2.26  	store $((($size+511)/512)) $2 4
     3.1 --- a/memtest/stuff/unpack.S	Wed Aug 28 23:24:49 2013 +0300
     3.2 +++ b/memtest/stuff/unpack.S	Fri Aug 30 11:24:48 2013 +0000
     3.3 @@ -156,6 +156,10 @@
     3.4  	popw	%ds
     3.5  #if UPDATE_SYSSIZE
     3.6  	movw	%ax, SYSSIZE
     3.7 +# if HARDCODED_SETUPSIZE
     3.8 +original_setupsize:
     3.9 +	movb	$4, SETUPSIZE
    3.10 +# endif
    3.11  #endif
    3.12  	popal
    3.13  	iret