wok-current rev 20457

Add python-websocket-client
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Oct 09 18:50:30 2018 +0200 (2018-10-09)
parents 623f02d7e6c8
children 77cbb661144f
files linld/receipt linld/stuff/src/_BEG.ASM python-websocket-client/receipt
line diff
     1.1 --- a/linld/receipt	Sat Oct 06 18:50:19 2018 +0200
     1.2 +++ b/linld/receipt	Tue Oct 09 18:50:30 2018 +0200
     1.3 @@ -38,8 +38,17 @@
     1.4  	cp TAZBOOT/TAZBOOT.COM tazboot.com
     1.5  	objdump -D -b binary -mi386 -Maddr16,data16 --adjust-vma=0x100 \
     1.6  		linld.com > linld.lst
     1.7 -	upx -5 --8086 linld.com
     1.8 -	upx -5 --8086 tazboot.com
     1.9 +	for f in linld.com tazboot.com ; do
    1.10 +		cp $f tmp.com
    1.11 +		for i in $(seq 1 9); do
    1.12 +			upx -$i --8086 tmp.com
    1.13 +			[ $(stat -c "%s" $f) -gt $(stat -c "%s" tmp.com) ] &&
    1.14 +				cp tmp.com $f
    1.15 +			upx -d tmp.com
    1.16 +		done > /dev/null 2>&1
    1.17 +		rm tmp.com
    1.18 +	done
    1.19 +	upx -l linld.com tazboot.com
    1.20  	cc -o tobzimage.o -Wa,-algms=tobzimage.lst -c $stuff/tobzimage.S
    1.21  	objcopy -O binary tobzimage.o tobzimage.bin
    1.22  	cp $stuff/tobzimage .
     2.1 --- a/linld/stuff/src/_BEG.ASM	Sat Oct 06 18:50:19 2018 +0200
     2.2 +++ b/linld/stuff/src/_BEG.ASM	Tue Oct 09 18:50:30 2018 +0200
     2.3 @@ -50,7 +50,7 @@
     2.4  ; clear bss
     2.5  ;***************************************************************
     2.6  		mov	si,offset _bss_start
     2.7 -		mov	bx, 0F000h	; cld ; cli
     2.8 +		mov	bx, 0F000h	; cld ; cli & empty string
     2.9  clearbss:
    2.10  		mov	[si],bl		; clear bss + heap + sp
    2.11  		inc	si
    2.12 @@ -68,40 +68,33 @@
    2.13  		add	dh,bh		; NS=386+, S+NC=286, S+C=86/186
    2.14  		ifndef	NO386
    2.15  		mov	bx,offset msg_badcpu
    2.16 -                js	no_vcpi   	;it is not a 386+
    2.17 +                js	godie   	;it is not a 386+
    2.18  		else
    2.19 -                js	endcpu   	;it is not a 386+
    2.20 +                js	endcpu86   	;it is not a 386+
    2.21  		endif
    2.22                  p386
    2.23 -		ifdef	EXTRA
    2.24 -		pushfd
    2.25 -		pop	dx
    2.26 -		pop	ax
    2.27 -		mov	bl,al
    2.28 -		xor	al,20h		; toggle CPUID feature bit 21
    2.29 -		push	ax
    2.30 -		push	dx
    2.31 -		popfd
    2.32 -		pushfd
    2.33 -		pop	dx
    2.34 -		pop	ax
    2.35 -		xor	al,bl		; clear C
    2.36 -		je	@@check_vm	; CPUID feature bit changed ?
    2.37 -		mov	eax,80000001h	; Extended Processor Info and Feature Bits
    2.38 -		cpuid
    2.39 -		mov	[_cpu_features],edx
    2.40 -@@check_vm:
    2.41 -		endif
    2.42  ; Check for vm
    2.43                  smsw    ax      ;SMSW cannot be trapped! :-)
    2.44                  and     al,1	;MSW_PE
    2.45  ; We're in vm
    2.46 -		jz	check_rm_paging
    2.47 +		jnz	check_vcpi
    2.48 +
    2.49 +check_rm_paging:
    2.50 +; It's a 386 in real mode, chk for paging (crazy but possible)
    2.51 +                mov     eax,cr0
    2.52 +                inc     eax             ;CR0_PG to S
    2.53 +		jns	endcpu386
    2.54 +no_vcpi:
    2.55 +                p8086
    2.56 +                extrn   die:near
    2.57 +godie:
    2.58 +		call	near die
    2.59  
    2.60  ;***************************************************************
    2.61  ; checks for vcpi
    2.62  ;***************************************************************
    2.63  label   check_vcpi near
    2.64 +                p386
    2.65                  push    ds
    2.66  ; Check whether it is safe to call 67h (we trust only known EMM managers)
    2.67                  push    si
    2.68 @@ -142,29 +135,35 @@
    2.69                  test    ah,ah
    2.70  		jnz	no_vcpi
    2.71  is386vcpi:
    2.72 -		inc	[byte _vcpi]
    2.73                  extrn   prepare_vcpi:near
    2.74  		call	prepare_vcpi
    2.75  ;    get_vcpi_interface() || die("VCPI: low 640k: need 1:1 mapping");
    2.76                  ;extrn   _get_vcpi_interface:near
    2.77  		;call	_get_vcpi_interface
    2.78  		mov	bx,offset msg_badmapping
    2.79 -		jz	endcpu
    2.80 -no_vcpi:
    2.81 -                p8086
    2.82 -              ;;pop     dx              ;$ handle
    2.83 -              ;;mov     ax,4500h        ; DEALLOCATE PAGES
    2.84 -              ;;int     67h
    2.85 -                extrn   die:near
    2.86 -godie:
    2.87 -		call	near die
    2.88 -check_rm_paging:
    2.89 -; It's a 386 in real mode, chk for paging (crazy but possible)
    2.90 -                p386
    2.91 -                mov     eax,cr0
    2.92 -                inc     eax             ;CR0_PG to S
    2.93 -		js	no_vcpi
    2.94 -endcpu:
    2.95 +		jnz	no_vcpi
    2.96 +		inc	[byte bx+_vcpi-msg_badmapping]
    2.97 +endcpu386:
    2.98 +		ifdef	EXTRA
    2.99 +		pushfd
   2.100 +		pop	dx
   2.101 +		pop	ax
   2.102 +		mov	bl,al
   2.103 +		xor	al,20h		; toggle CPUID feature bit 21
   2.104 +		push	ax
   2.105 +		push	dx
   2.106 +		popfd
   2.107 +		pushfd
   2.108 +		pop	dx
   2.109 +		pop	ax
   2.110 +		xor	al,bl		; clear C
   2.111 +		je	@@no_cpuid	; CPUID feature bit changed ?
   2.112 +		mov	eax,80000001h	; Extended Processor Info and Feature Bits
   2.113 +		cpuid
   2.114 +		mov	[_cpu_features],edx
   2.115 +@@no_cpuid:
   2.116 +		endif
   2.117 +endcpu86:
   2.118                  p8086
   2.119  
   2.120  ;***************************************************************
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/python-websocket-client/receipt	Tue Oct 09 18:50:30 2018 +0200
     3.3 @@ -0,0 +1,29 @@
     3.4 +# SliTaz package receipt.
     3.5 +
     3.6 +PACKAGE="python-websocket-client"
     3.7 +SOURCE="websocket_client"
     3.8 +VERSION="0.53.0"
     3.9 +CATEGORY="development"
    3.10 +SHORT_DESC="WebSocket client for Python. hybi13 is supported."
    3.11 +MAINTAINER="pascal.bellard@slitaz.org"
    3.12 +LICENSE="LGPL2.1"
    3.13 +WEB_SITE="https://github.com/websocket-client/websocket-client.git"
    3.14 +TARBALL="$SOURCE-$VERSION.tar.gz"
    3.15 +WGET_URL="https://files.pythonhosted.org/packages/fb/1f/9acd71b77e66fafb19cfb023e50cbb7ed2c3be3c72db999162bd36c518c4/$TARBALL"
    3.16 +
    3.17 +DEPENDS="python"
    3.18 +BUILD_DEPENDS="setuptools"
    3.19 +
    3.20 +# Rules to configure and make the package.
    3.21 +compile_rules()
    3.22 +{
    3.23 +	python setup.py install --prefix=/usr --root=$DESTDIR
    3.24 +}
    3.25 +
    3.26 +# Rules to gen a SliTaz package suitable for Tazpkg.
    3.27 +genpkg_rules()
    3.28 +{
    3.29 +	mkdir -p $install/usr/share/doc
    3.30 +	cp $src/README* $install/usr/share/doc
    3.31 +	cp -a $install/usr $fs/
    3.32 +}