wok rev 1454

tcc dropbear db chkrootkit: Apply patch once
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Oct 03 16:03:56 2008 +0000 (2008-10-03)
parents 17d849de3b0b
children 0d30d3d18dcb
files chkrootkit/receipt db/receipt dropbear/receipt tcc/receipt
line diff
     1.1 --- a/chkrootkit/receipt	Fri Oct 03 14:05:05 2008 +0000
     1.2 +++ b/chkrootkit/receipt	Fri Oct 03 16:03:56 2008 +0000
     1.3 @@ -13,7 +13,8 @@
     1.4  compile_rules()
     1.5  {
     1.6  	cd $src
     1.7 -	patch -p1 < ../stuff/chkrootkit.u
     1.8 +	[ -f done.chkrootkit.u ] || patch -p1 < ../stuff/chkrootkit.u
     1.9 +	touch done.chkrootkit.u
    1.10  	make sense
    1.11  }
    1.12  
     2.1 --- a/db/receipt	Fri Oct 03 14:05:05 2008 +0000
     2.2 +++ b/db/receipt	Fri Oct 03 16:03:56 2008 +0000
     2.3 @@ -18,7 +18,8 @@
     2.4  	ln -s $PACKAGE-$VERSION.NC $src
     2.5  	cd $src
     2.6  	wget  http://www.oracle.com/technology/products/berkeley-db/db/update/4.5.20/patch.4.5.20.1
     2.7 -	patch -p0 < patch.4.5.20.1
     2.8 +	[ -f done.patch.4.5.20.1 ] || patch -p0 < patch.4.5.20.1
     2.9 +	touch done.patch.4.5.20.1
    2.10  	cd build_unix
    2.11  	../dist/configure --prefix=/usr --infodir=/usr/share/info \
    2.12  		--mandir=/usr/share/man $CONFIGURE_ARGS
     3.1 --- a/dropbear/receipt	Fri Oct 03 14:05:05 2008 +0000
     3.2 +++ b/dropbear/receipt	Fri Oct 03 16:03:56 2008 +0000
     3.3 @@ -18,7 +18,8 @@
     3.4  	local DROPBEARS
     3.5  	DROPBEARS="dropbearkey dropbearconvert dbclient scp"
     3.6  	cd $src
     3.7 -	patch -p1 < ../stuff/dropbear-xauth.u
     3.8 +	[ -f done.dropbear-xauth.u ] || patch -p1 < ../stuff/dropbear-xauth.u
     3.9 +	touch done.dropbear-xauth.u
    3.10  	./configure --prefix=/usr $CONFIGURE_ARGS &&
    3.11  	make PROGRAMS="dropbear $DROPBEARS" MULTI=1 &&
    3.12  	install -d -m 755 $PWD/_pkg/usr/sbin &&
     4.1 --- a/tcc/receipt	Fri Oct 03 14:05:05 2008 +0000
     4.2 +++ b/tcc/receipt	Fri Oct 03 16:03:56 2008 +0000
     4.3 @@ -13,10 +13,13 @@
     4.4  compile_rules()
     4.5  {
     4.6  	cd $src
     4.7 -	patch < ../stuff/Makefile.u || return 1
     4.8 -	./configure --prefix=/usr $CONFIGURE_ARGS
     4.9 -	make
    4.10 -	make test
    4.11 +	if [ ! -f done.Makefile.u ]; then
    4.12 +		patch < ../stuff/Makefile.u || return 1
    4.13 +		touch done.Makefile.u
    4.14 +	fi
    4.15 +	./configure --prefix=/usr $CONFIGURE_ARGS &&
    4.16 +	make &&
    4.17 +	make test &&
    4.18  	make DESTDIR=$PWD/_pkg install
    4.19  }
    4.20