wok-stable rev 8318
Fixed usbip not to compile linux. Also no need to compile usbip kernel module since its compile with kernel now.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Tue Feb 01 03:41:08 2011 +0000 (2011-02-01) |
parents | ea9d666ad709 |
children | a6ee492d79c4 |
files | usbip/receipt |
line diff
1.1 --- a/usbip/receipt Tue Feb 01 03:25:21 2011 +0000 1.2 +++ b/usbip/receipt Tue Feb 01 03:41:08 2011 +0000 1.3 @@ -6,7 +6,7 @@ 1.4 SHORT_DESC="general USB device sharing system over IP network." 1.5 MAINTAINER="pascal.bellard@slitaz.org" 1.6 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.7 -DEPENDS="sysfsutils glib libwrap" 1.8 +DEPENDS="sysfsutils glib libwrap linux-usbip" 1.9 BUILD_DEPENDS="sysfsutils-dev lzma libtool glib linux-module-headers libwrap libwrap-dev" 1.10 WEB_SITE="http://usbip.sourceforge.net/" 1.11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" 1.12 @@ -16,35 +16,8 @@ 1.13 compile_rules() 1.14 { 1.15 cd $src/drivers 1.16 - # get kernel version 1.17 - if [ ! -d $WOK/linux/taz ]; then 1.18 - tazwok cook linux 1.19 - fi 1.20 - LINUX=$WOK/linux/$(ls $WOK/linux/taz) 1.21 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` 1.22 1.23 - mkdir -p ../_pkg/lib/modules/$KERNEL_VERSION-slitaz/misc 1.24 - if [ -d $LINUX/_pkg/lib/modules/*/kernel/drivers/staging/usbip ]; then 1.25 - echo "Using linux-staging usbip modules." 1.26 - cp $LINUX/_pkg/lib/modules/*/kernel/drivers/staging/usbip/* \ 1.27 - ../_pkg/lib/modules/$KERNEL_VERSION-slitaz/misc 1.28 - else 1.29 - # Select patch according to kernel version 1.30 - patch_dir=${KERNEL_VERSION%.*} 1.31 - [ "$(echo $ker | sed 's/[0-9]//g')" = ".." ] && patch_dir=$KERNEL_VERSION 1.32 - i=${patch_dir##*.} 1.33 - while [ ! -e ${patch_dir%.*}.$i ]; do 1.34 - [ "$i" = "0" ] && break 1.35 - i=$(($i - 1)) 1.36 - done 1.37 - patch_dir=${patch_dir%.*}.$i 1.38 - cd $patch_dir 1.39 - make KSOURCE=/usr/src/linux || return 1 1.40 - for i in *.ko; do 1.41 - lzma e $i ../../_pkg/lib/modules/${KERNEL_VERSION}-slitaz/misc/$i.gz 1.42 - done 1.43 - fi 1.44 - 1.45 cd $src/src 1.46 ./autogen.sh 1.47 ./configure --prefix=/usr --infodir=/usr/share/info \