wok-6.x rev 1442

linux lzma hardinfo etherboot mISDN busybox: apply path once
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Oct 02 16:39:02 2008 +0000 (2008-10-02)
parents 90a3c5374ebc
children f686472ad1af
files busybox/receipt etherboot/receipt hardinfo/receipt linux/receipt lzma/receipt mISDN/receipt
line diff
     1.1 --- a/busybox/receipt	Thu Oct 02 16:24:12 2008 +0000
     1.2 +++ b/busybox/receipt	Thu Oct 02 16:39:02 2008 +0000
     1.3 @@ -17,8 +17,13 @@
     1.4  {
     1.5      cd $src
     1.6      while read file; do
     1.7 +    	if [ -f done.$file ]; then
     1.8 +    		echo "Skipping $file"
     1.9 +    		continue
    1.10 +    	fi
    1.11      	echo "Apply $file..."
    1.12      	patch -p1 < ../stuff/$file || return 1
    1.13 +    	touch done.$file
    1.14      done <<EOT
    1.15  $PACKAGE-$VERSION-vcsa2txt.u
    1.16  $PACKAGE-$VERSION-dhcpc.u
     2.1 --- a/etherboot/receipt	Thu Oct 02 16:24:12 2008 +0000
     2.2 +++ b/etherboot/receipt	Thu Oct 02 16:39:02 2008 +0000
     2.3 @@ -13,8 +13,14 @@
     2.4  compile_rules()
     2.5  {
     2.6  	cd $src/src
     2.7 -	patch -p2 < ../../stuff/etherboot-net.u
     2.8 -	patch -p2 < ../../stuff/etherboot-prefix.u
     2.9 +	while read file; do
    2.10 +		[ -f done.$file ] && continue
    2.11 +		patch -p2 < ../../stuff/$file
    2.12 +		touch done.$file
    2.13 +	done <<EOT
    2.14 +etherboot-net.u
    2.15 +etherboot-prefix.u
    2.16 +EOT
    2.17  	make bin/etherboot-net.bzImage
    2.18  }
    2.19  
     3.1 --- a/hardinfo/receipt	Thu Oct 02 16:24:12 2008 +0000
     3.2 +++ b/hardinfo/receipt	Thu Oct 02 16:39:02 2008 +0000
     3.3 @@ -15,7 +15,9 @@
     3.4  {
     3.5  	cd $src
     3.6  	while read file; do
     3.7 +		[ -f done.$file ] && continue
     3.8  		patch -p0 < ../stuff/$file || exit 1
     3.9 +		touch done.$file
    3.10  	done <<EOT
    3.11  modules.patch
    3.12  users.patch
    3.13 @@ -25,8 +27,8 @@
    3.14  EOT
    3.15  	./configure \
    3.16  		--prefix=/usr \
    3.17 -		$CONFIGURE_ARGS
    3.18 -	make
    3.19 +		$CONFIGURE_ARGS &&
    3.20 +	make &&
    3.21  	make DESTDIR=$PWD/_pkg install
    3.22  }
    3.23  
     4.1 --- a/linux/receipt	Thu Oct 02 16:24:12 2008 +0000
     4.2 +++ b/linux/receipt	Thu Oct 02 16:39:02 2008 +0000
     4.3 @@ -19,10 +19,15 @@
     4.4  	cp ../stuff/gztazmod.sh ../stuff/list_modules.sh slitaz
     4.5  	# lzma and misc patches from pascal
     4.6  	while read patch_file; do
     4.7 +		if [ -f done.$patch_file ]; then
     4.8 +			echo "Skipping $patch_file"
     4.9 +			continue
    4.10 +		fi
    4.11  		echo "Apply $patch_file"
    4.12  		patch -p1 < ../stuff/$patch_file || return 1
    4.13  		echo "$patch_file" >> slitaz/patches
    4.14  		cp ../stuff/$patch_file slitaz/$patch_file
    4.15 +		touch done.$patch_file
    4.16  	done <<EOT
    4.17  $PACKAGE-lzma-$VERSION.u
    4.18  $PACKAGE-utf8-$VERSION.u
     5.1 --- a/lzma/receipt	Thu Oct 02 16:24:12 2008 +0000
     5.2 +++ b/lzma/receipt	Thu Oct 02 16:39:02 2008 +0000
     5.3 @@ -14,7 +14,10 @@
     5.4  compile_rules()
     5.5  {
     5.6  	ln -sf . $src
     5.7 -	patch -p0 < stuff/lzlib.u || return 1
     5.8 +	if [ ! -f done.lzlib.u ]; then
     5.9 +		patch -p0 < stuff/lzlib.u || return 1
    5.10 +		touch done.lzlib.u
    5.11 +	fi
    5.12  	cd CPP/7zip/Compress/LZMA_Alone
    5.13  	make -f makefile.gcc lzma
    5.14  	make -f makefile.gcc liblz.so.1.0.0
     6.1 --- a/mISDN/receipt	Thu Oct 02 16:24:12 2008 +0000
     6.2 +++ b/mISDN/receipt	Thu Oct 02 16:39:02 2008 +0000
     6.3 @@ -20,8 +20,14 @@
     6.4  	KVERS=${KVERS##* }
     6.5  	KSRC=$(cd ../linux/linux-* ; pwd)
     6.6  	cd $src
     6.7 -	patch -p1 < ../stuff/Makefile.u || return 1
     6.8 -	patch -p1 < ../stuff/${KVERS%.*}.u || return 1
     6.9 +	while read file; do
    6.10 +		[ -f done.$file ] && continue
    6.11 +		patch -p1 < ../stuff/$file || return 1
    6.12 +		touch done.$file
    6.13 +	done <<EOT
    6.14 +Makefile.u
    6.15 +${KVERS%.*}.u
    6.16 +EOT
    6.17  	cp -a include/linux drivers/isdn/hardware/mISDN/
    6.18  	ln -s . drivers/isdn/hardware/mISDN/linux/linux
    6.19  	for i in $(cd include; ls linux/*); do