# HG changeset patch # User Christophe Lincoln # Date 1304979655 -7200 # Node ID cba14e272d6e84f430ca62dde2629562be4afd6a # Parent cffb5294baec18e327e49cb3b076f3b8bac5cfec krb5: Fix build with cookutils (realy special case) diff -r cffb5294baec -r cba14e272d6e krb5/receipt --- a/krb5/receipt Mon May 09 22:22:33 2011 +0200 +++ b/krb5/receipt Tue May 10 00:20:55 2011 +0200 @@ -15,13 +15,17 @@ # Rules to configure and make the package. compile_rules() { - [ -d $src/src ] || tar xzf $src/$PACKAGE-$VERSION.tar.gz + srcdir=$PACKAGE-$VERSION + [ -d $src/src ] || tar xzf $src/$srcdir.tar.gz + # This is for cookutils. If more than one file was extracted it create + # $PACKAGE-$VERSION to move files in it. Krb5 is the only package like + # that so we do the trick here. + if [ -d "$srcdir" -a -x /usr/bin/cook ]; then + mv $srcdir $CACHE && cd .. && rm -rf * && mv -f $CACHE/$srcdir . + fi cd $src/src - ./configure --prefix=/usr --infodir=/usr/share/info \ - --sysconfdir=/etc --localstatedir=/var \ - --mandir=/usr/share/man $CONFIGURE_ARGS && - make -j 4 && - make DESTDIR=$PWD/../_pkg install + ./configure --localstatedir=/var && + make -j 4 && make install } # Rules to gen a SliTaz package suitable for Tazpkg. @@ -33,7 +37,7 @@ cp -a $_pkg/usr/sbin $fs/usr cp -a $_pkg/usr/lib $fs/usr cat $stuff/*.files-list | while read file; do - rm -rf $fs$file + rm -rf ${fs}$file done }