wok-stable diff usbip/receipt @ rev 8238

busybox: remove revision in stuff files
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jan 27 12:11:34 2011 +0100 (2011-01-27)
parents 53e1828da719
children 09c53e5c1062
line diff
     1.1 --- a/usbip/receipt	Wed Nov 17 03:47:52 2010 +0000
     1.2 +++ b/usbip/receipt	Thu Jan 27 12:11:34 2011 +0100
     1.3 @@ -7,7 +7,7 @@
     1.4  MAINTAINER="pascal.bellard@slitaz.org"
     1.5  TARBALL="$PACKAGE-$VERSION.tar.gz"
     1.6  DEPENDS="sysfsutils glib libwrap"
     1.7 -BUILD_DEPENDS="sysfsutils-dev lzma libtool glib libwrap libwrap-dev"
     1.8 +BUILD_DEPENDS="sysfsutils-dev lzma libtool glib linux-module-headers libwrap libwrap-dev"
     1.9  WEB_SITE="http://usbip.sourceforge.net/"
    1.10  WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    1.11  TAGS="usb"
    1.12 @@ -21,18 +21,17 @@
    1.13  		tazwok cook linux
    1.14  	fi
    1.15  	LINUX=$WOK/linux/$(ls $WOK/linux/taz)
    1.16 -	kver=$(grep "kernel version" $LINUX/.config)
    1.17 -	kver=${kver##* }
    1.18 +	KERNEL_VERSION=`grep  ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
    1.19  
    1.20 -	mkdir -p ../_pkg/lib/modules/$kver-slitaz/misc
    1.21 +	mkdir -p ../_pkg/lib/modules/$KERNEL_VERSION-slitaz/misc
    1.22  	if [ -d $LINUX/_pkg/lib/modules/*/kernel/drivers/staging/usbip ]; then
    1.23  		echo "Using linux-staging usbip modules."
    1.24  		cp $LINUX/_pkg/lib/modules/*/kernel/drivers/staging/usbip/* \
    1.25 -			../_pkg/lib/modules/$kver-slitaz/misc
    1.26 +			../_pkg/lib/modules/$KERNEL_VERSION-slitaz/misc
    1.27  	else
    1.28  		# Select patch according to kernel version
    1.29 -		patch_dir=${kver%.*}
    1.30 -		[ "$(echo $ker | sed 's/[0-9]//g')" = ".." ] && patch_dir=$kver
    1.31 +		patch_dir=${KERNEL_VERSION%.*}
    1.32 +		[ "$(echo $ker | sed 's/[0-9]//g')" = ".." ] && patch_dir=$KERNEL_VERSION
    1.33  		i=${patch_dir##*.}
    1.34  		while [ ! -e ${patch_dir%.*}.$i ]; do
    1.35  			[ "$i" = "0" ] && break
    1.36 @@ -40,9 +39,9 @@
    1.37  		done
    1.38  		patch_dir=${patch_dir%.*}.$i
    1.39  		cd $patch_dir
    1.40 -		make KSOURCE=$(ls -d $WOK/linux/linux-$kver) || return 1
    1.41 +		make KSOURCE=/usr/src/linux || return 1
    1.42  		for i in *.ko; do
    1.43 -			lzma e $i ../../_pkg/lib/modules/$kver-slitaz/misc/$i.gz
    1.44 +			lzma e $i ../../_pkg/lib/modules/${KERNEL_VERSION}-slitaz/misc/$i.gz
    1.45  		done
    1.46  	fi
    1.47