wok-6.x rev 17410
Add trickle
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Nov 29 11:26:00 2014 +0100 (2014-11-29) |
parents | e984520e54db |
children | 80e8762db4bd |
files | memtest/stuff/unlzma.S trickle/receipt |
line diff
1.1 --- a/memtest/stuff/unlzma.S Fri Nov 28 21:49:51 2014 +0100 1.2 +++ b/memtest/stuff/unlzma.S Sat Nov 29 11:26:00 2014 +0100 1.3 @@ -139,7 +139,20 @@ 1.4 // } 1.5 // RC_INIT(inStream); 1.6 1.7 - add $13, SI // skip header 1.8 +#ifndef NO_LZMA_HEADER 1.9 +#ifdef CHECK_LZMA_HEADER 1.10 + cmp.w $0x5A4C, (SI) // lzip header ('LZIP' version:1 dicobits:1) 1.11 + je lzip_header 1.12 + cmp.b $0x5D, (SI) // lzma header (0x5D dicosz:4 orgsz:8) 1.13 + jne no_header 1.14 + add $13-6, SI // skip lzma header 1.15 +lzip_header: 1.16 + add $6, SI // skip lzip header 1.17 +no_header: 1.18 +#else 1.19 + add $13, SI // skip lzma header (0x5D dicosz:4 orgsz:8) 1.20 +#endif 1.21 +#endif 1.22 setrep: 1.23 call RC_LOAD_BYTE 1.24 decb Range(BP)
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/trickle/receipt Sat Nov 29 11:26:00 2014 +0100 2.3 @@ -0,0 +1,32 @@ 2.4 +# SliTaz package receipt. 2.5 + 2.6 +PACKAGE="trickle" 2.7 +HASH=17ed72d9f10b1be38cea333e7ed7875a3cc9fb7b 2.8 +VERSION="${HASH:0:7}" 2.9 +CATEGORY="network" 2.10 +SHORT_DESC="A portable lightweight userspace bandwidth shaper" 2.11 +MAINTAINER="pascal.bellard@slitaz.org" 2.12 +LICENSE="BSD" 2.13 +TARBALL="$PACKAGE-$VERSION.zip" 2.14 +WEB_SITE="http://monkey.org/~marius/pages/?page=trickle" 2.15 +WGET_URL="https://github.com/mariusae/trickle/archive/$HASH.zip" 2.16 + 2.17 +DEPEND="libevent" 2.18 +BUILD_DEPENDS="libevent-dev wget" 2.19 + 2.20 +# Rules to configure and make the package. 2.21 +compile_rules() 2.22 +{ 2.23 + touch libtrickle.so 2.24 + ./configure --prefix=/usr \ 2.25 + $CONFIGURE_ARGS && 2.26 + make && 2.27 + make DESTDIR=$DESTDIR install 2.28 +} 2.29 + 2.30 +# Rules to gen a SliTaz package suitable for Tazpkg. 2.31 +genpkg_rules() 2.32 +{ 2.33 + mkdir -p $fs/usr 2.34 + cp -a $install/usr/bin $fs/usr 2.35 +}