wok rev 9736

krb5: Fix build with cookutils (realy special case)
author Christophe Lincoln <pankso@slitaz.org>
date Tue May 10 00:20:55 2011 +0200 (2011-05-10)
parents cffb5294baec
children a0a049fe8e5c
files krb5/receipt
line diff
     1.1 --- a/krb5/receipt	Mon May 09 22:22:33 2011 +0200
     1.2 +++ b/krb5/receipt	Tue May 10 00:20:55 2011 +0200
     1.3 @@ -15,13 +15,17 @@
     1.4  # Rules to configure and make the package.
     1.5  compile_rules()
     1.6  {
     1.7 -	[ -d $src/src ] || tar xzf $src/$PACKAGE-$VERSION.tar.gz
     1.8 +	srcdir=$PACKAGE-$VERSION
     1.9 +	[ -d $src/src ] || tar xzf $src/$srcdir.tar.gz
    1.10 +	# This is for cookutils. If more than one file was extracted it create
    1.11 +	# $PACKAGE-$VERSION to move files in it. Krb5 is the only package like
    1.12 +	# that so we do the trick here.
    1.13 +	if [ -d "$srcdir" -a -x /usr/bin/cook ]; then
    1.14 +		mv $srcdir $CACHE && cd .. && rm -rf * && mv -f $CACHE/$srcdir .
    1.15 +	fi
    1.16  	cd $src/src
    1.17 -	./configure --prefix=/usr --infodir=/usr/share/info \
    1.18 -	--sysconfdir=/etc --localstatedir=/var \
    1.19 -	--mandir=/usr/share/man $CONFIGURE_ARGS &&
    1.20 -	make -j 4 &&
    1.21 -	make DESTDIR=$PWD/../_pkg install
    1.22 +	./configure --localstatedir=/var &&
    1.23 +	make -j 4 && make install
    1.24  }
    1.25  
    1.26  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.27 @@ -33,7 +37,7 @@
    1.28  	cp -a $_pkg/usr/sbin $fs/usr
    1.29  	cp -a $_pkg/usr/lib $fs/usr
    1.30  	cat $stuff/*.files-list | while read file; do
    1.31 -		rm -rf $fs$file
    1.32 +		rm -rf ${fs}$file
    1.33  	done
    1.34  }
    1.35