wok-6.x diff krb5/receipt @ rev 10309

tilda: Add $CONFIGURE_ARGS.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat May 21 21:22:39 2011 +0000 (2011-05-21)
parents d1768332cee0
children b7319995b37e
line diff
     1.1 --- a/krb5/receipt	Sun May 08 09:01:58 2011 +0000
     1.2 +++ b/krb5/receipt	Sat May 21 21:22:39 2011 +0000
     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