wok-current rev 6879

Added linux-module-headers to kqemu build depends.
author Christopher Rogers <slaxemulator@gmail.com>
date Wed Oct 20 23:03:53 2010 +0000 (2010-10-20)
parents 6b1cdf8e9c54
children 3dcd4d122a1f
files kqemu/receipt
line diff
     1.1 --- a/kqemu/receipt	Wed Oct 20 22:53:02 2010 +0000
     1.2 +++ b/kqemu/receipt	Wed Oct 20 23:03:53 2010 +0000
     1.3 @@ -9,6 +9,7 @@
     1.4  WEB_SITE="http://www.nongnu.org/qemu/"
     1.5  WGET_URL="${WEB_SITE}$TARBALL"
     1.6  DEPENDS="linux"
     1.7 +BUILD_DEPENDS="linux-module-headers"
     1.8  SUGGESTED="qemu"
     1.9  TAG="virtualization"
    1.10  
    1.11 @@ -16,13 +17,12 @@
    1.12  compile_rules()
    1.13  {
    1.14  	local dir
    1.15 -	if [ ! -d $WOK/linux/taz ]; then
    1.16 -		tazwok cook linux
    1.17 -	fi
    1.18 -	dir=$(cd $WOK/linux/taz/linux*/fs ; ls -d lib/modules/*)/misc
    1.19 +	KERNEL_VERSION=`grep  ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
    1.20 +
    1.21 +	dir=/lib/modules/${KERNEL_VERSION}-slitaz/misc
    1.22  	cd $src
    1.23  	./configure --prefix=/usr \
    1.24 -		    --kernel-path=$(ls -d ../../linux/$(ls ../../linux/taz))
    1.25 +		    --kernel-path=/usr/src/linux
    1.26  	make
    1.27  	mkdir -p _pkg/$dir _pkg/dev
    1.28  	cp kqemu.ko _pkg/$dir