wok-current rev 1563

libcap: fix compile_rules
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Oct 13 14:20:20 2008 +0000 (2008-10-13)
parents 04a7e4dead15
children 3334406ef266
files libcap/receipt
line diff
     1.1 --- a/libcap/receipt	Mon Oct 13 13:06:22 2008 +0000
     1.2 +++ b/libcap/receipt	Mon Oct 13 14:20:20 2008 +0000
     1.3 @@ -6,19 +6,22 @@
     1.4  SHORT_DESC="Support for getting/setting POSIX.1e capabilities."
     1.5  MAINTAINER="pankso@slitaz.org"
     1.6  DEPENDS="linux"
     1.7 +BUILD_DEPENDS="gperf"
     1.8  TARBALL="$PACKAGE-$VERSION.tar.gz"
     1.9  WEB_SITE="http://www.kernel.org/pub/linux/libs/security/linux-privs/"
    1.10 -WGET_URL="http://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/$TARBALL"
    1.11 +WGET_URL="${WEB_SITE}libcap2/$TARBALL"
    1.12  
    1.13  # Rules to configure and make the package.
    1.14  compile_rules()
    1.15  {
    1.16 -	# Temp sym link for xattr.h
    1.17 -	mkdir -p /usr/include/attr
    1.18 -	ln -s /usr/include/linux/xattr.h /usr/include/attr/xattr.h
    1.19 +	if [ ! -d $WOK/linux/taz ]; then
    1.20 +		tazwok cook linux
    1.21 +	fi
    1.22  	cd $src
    1.23 -	make
    1.24 -	rm -rf /usr/include/attr
    1.25 +	sed -i -e s/'\\n'/"' -e '1i"/g -e 's/| indent -kr//' libcap/Makefile
    1.26 +	mkdir libcap/include/attr
    1.27 +	ln -s $WOK/linux/linux-*/include/linux/xattr.h libcap/include/attr/
    1.28 +	make &&
    1.29  	make FAKEROOT=$PWD/_pkg install
    1.30  }
    1.31