# HG changeset patch # User Pascal Bellard # Date 1223049836 0 # Node ID fd4eda949f1eee04f5d12ab89cebade7d826c47c # Parent 17d849de3b0be4fbc9bf0a4211a366a7933183ec tcc dropbear db chkrootkit: Apply patch once diff -r 17d849de3b0b -r fd4eda949f1e chkrootkit/receipt --- a/chkrootkit/receipt Fri Oct 03 14:05:05 2008 +0000 +++ b/chkrootkit/receipt Fri Oct 03 16:03:56 2008 +0000 @@ -13,7 +13,8 @@ compile_rules() { cd $src - patch -p1 < ../stuff/chkrootkit.u + [ -f done.chkrootkit.u ] || patch -p1 < ../stuff/chkrootkit.u + touch done.chkrootkit.u make sense } diff -r 17d849de3b0b -r fd4eda949f1e db/receipt --- a/db/receipt Fri Oct 03 14:05:05 2008 +0000 +++ b/db/receipt Fri Oct 03 16:03:56 2008 +0000 @@ -18,7 +18,8 @@ ln -s $PACKAGE-$VERSION.NC $src cd $src wget http://www.oracle.com/technology/products/berkeley-db/db/update/4.5.20/patch.4.5.20.1 - patch -p0 < patch.4.5.20.1 + [ -f done.patch.4.5.20.1 ] || patch -p0 < patch.4.5.20.1 + touch done.patch.4.5.20.1 cd build_unix ../dist/configure --prefix=/usr --infodir=/usr/share/info \ --mandir=/usr/share/man $CONFIGURE_ARGS diff -r 17d849de3b0b -r fd4eda949f1e dropbear/receipt --- a/dropbear/receipt Fri Oct 03 14:05:05 2008 +0000 +++ b/dropbear/receipt Fri Oct 03 16:03:56 2008 +0000 @@ -18,7 +18,8 @@ local DROPBEARS DROPBEARS="dropbearkey dropbearconvert dbclient scp" cd $src - patch -p1 < ../stuff/dropbear-xauth.u + [ -f done.dropbear-xauth.u ] || patch -p1 < ../stuff/dropbear-xauth.u + touch done.dropbear-xauth.u ./configure --prefix=/usr $CONFIGURE_ARGS && make PROGRAMS="dropbear $DROPBEARS" MULTI=1 && install -d -m 755 $PWD/_pkg/usr/sbin && diff -r 17d849de3b0b -r fd4eda949f1e tcc/receipt --- a/tcc/receipt Fri Oct 03 14:05:05 2008 +0000 +++ b/tcc/receipt Fri Oct 03 16:03:56 2008 +0000 @@ -13,10 +13,13 @@ compile_rules() { cd $src - patch < ../stuff/Makefile.u || return 1 - ./configure --prefix=/usr $CONFIGURE_ARGS - make - make test + if [ ! -f done.Makefile.u ]; then + patch < ../stuff/Makefile.u || return 1 + touch done.Makefile.u + fi + ./configure --prefix=/usr $CONFIGURE_ARGS && + make && + make test && make DESTDIR=$PWD/_pkg install }