wok rev 4313

java-j*: add link targets
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Sep 28 18:46:51 2009 +0200 (2009-09-28)
parents 08a89bfa3890
children f65c32b5d6ac
files icedtea6-jdk/receipt java-jdk/receipt java-jre/receipt
line diff
     1.1 --- a/icedtea6-jdk/receipt	Mon Sep 28 17:02:43 2009 +0200
     1.2 +++ b/icedtea6-jdk/receipt	Mon Sep 28 18:46:51 2009 +0200
     1.3 @@ -31,7 +31,7 @@
     1.4  	cat > slitaz.sh <<EOT
     1.5  # Busybox compatibility
     1.6  find -name Sanity.gmk | xargs sed -i 's/--sync -kP/-k/' Makefile 
     1.7 -find -name Platform.gmk | xargs sed -i 's@MB_OF_MEMORY :=.*@MB_OF_MEMORY := \$(shell free | awk '"'"'/Mem:/ { printf "%d\\\\n",\$2/1024 }'"'"')@' Makefile
     1.8 +find -name Platform.gmk | xargs sed -i 's@MB_OF_MEMORY :=.*@MB_OF_MEMORY := \$(shell free | awk '"'"'/Mem:/ { printf "%d\\\\n",\\\$2/1024 }'"'"')@' Makefile
     1.9  EOT
    1.10  	sed -i  -e 's|touch stamps/extract.stamp|&\n\tsh slitaz.sh|' \
    1.11  		-e 's|touch stamps/download.stamp|&\n\tsh slitaz.sh|' \
     2.1 --- a/java-jdk/receipt	Mon Sep 28 17:02:43 2009 +0200
     2.2 +++ b/java-jdk/receipt	Mon Sep 28 18:46:51 2009 +0200
     2.3 @@ -17,6 +17,16 @@
     2.4  	# tazwok does not define _pkg correctly when both WANTED and SOURCE are set
     2.5  	_pkg=$WOK/$WANTED/$SOURCE-$VERSION/_pkg
     2.6  
     2.7 -	mkdir -p $fs/usr/bin
     2.8 +	mkdir -p $fs/usr/bin $fs/usr/lib/jvm/java-icedtea/jre/lib/i386/jli
     2.9 +	cp -a $_pkg/usr/lib/jvm/java-icedtea/jre/lib/i386/jli/libjli.so \
    2.10 +		$fs/usr/lib/jvm/java-icedtea/jre/lib/i386/jli
    2.11  	cp -a $_pkg/usr/jdk-bin/* $fs/usr/bin
    2.12 +	for i in $_pkg/usr/jdk-bin/* ; do
    2.13 +		while [ -L $i ]; do
    2.14 +			target=$(readlink $i)
    2.15 +			mkdir -p $fs$(dirname $target)
    2.16 +			cp -a $_pkg$target $fs$target
    2.17 +			i=$_pkg$target
    2.18 +		done
    2.19 +	done
    2.20  }
     3.1 --- a/java-jre/receipt	Mon Sep 28 17:02:43 2009 +0200
     3.2 +++ b/java-jre/receipt	Mon Sep 28 18:46:51 2009 +0200
     3.3 @@ -17,6 +17,16 @@
     3.4  	# tazwok does not define _pkg correctly when both WANTED and SOURCE are set
     3.5  	_pkg=$WOK/$WANTED/$SOURCE-$VERSION/_pkg
     3.6  
     3.7 -	mkdir -p $fs/usr/bin
     3.8 +	mkdir -p $fs/usr/bin $fs/usr/lib/jvm/java-icedtea/jre/lib/i386/jli
     3.9 +	cp -a $_pkg/usr/lib/jvm/java-icedtea/jre/lib/i386/jli/libjli.so \
    3.10 +		$fs/usr/lib/jvm/java-icedtea/jre/lib/i386/jli
    3.11  	cp -a $_pkg/usr/jre-bin/* $fs/usr/bin
    3.12 +	for i in $_pkg/usr/jre-bin/* ; do
    3.13 +		while [ -L $i ]; do
    3.14 +			target=$(readlink $i)
    3.15 +			mkdir -p $fs$(dirname $target)
    3.16 +			cp -a $_pkg$target $fs$target
    3.17 +			i=$_pkg$target
    3.18 +		done
    3.19 +	done
    3.20  }