# HG changeset patch # User Christopher Rogers # Date 1296531668 0 # Node ID 09c53e5c10629b11c87d2ab365c5e1b42d021b7b # Parent ea9d666ad709929df109a3cb9b4606029b60b267 Fixed usbip not to compile linux. Also no need to compile usbip kernel module since its compile with kernel now. diff -r ea9d666ad709 -r 09c53e5c1062 usbip/receipt --- a/usbip/receipt Tue Feb 01 03:25:21 2011 +0000 +++ b/usbip/receipt Tue Feb 01 03:41:08 2011 +0000 @@ -6,7 +6,7 @@ SHORT_DESC="general USB device sharing system over IP network." MAINTAINER="pascal.bellard@slitaz.org" TARBALL="$PACKAGE-$VERSION.tar.gz" -DEPENDS="sysfsutils glib libwrap" +DEPENDS="sysfsutils glib libwrap linux-usbip" BUILD_DEPENDS="sysfsutils-dev lzma libtool glib linux-module-headers libwrap libwrap-dev" WEB_SITE="http://usbip.sourceforge.net/" WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" @@ -16,35 +16,8 @@ compile_rules() { cd $src/drivers - # get kernel version - if [ ! -d $WOK/linux/taz ]; then - tazwok cook linux - fi - LINUX=$WOK/linux/$(ls $WOK/linux/taz) KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` - mkdir -p ../_pkg/lib/modules/$KERNEL_VERSION-slitaz/misc - if [ -d $LINUX/_pkg/lib/modules/*/kernel/drivers/staging/usbip ]; then - echo "Using linux-staging usbip modules." - cp $LINUX/_pkg/lib/modules/*/kernel/drivers/staging/usbip/* \ - ../_pkg/lib/modules/$KERNEL_VERSION-slitaz/misc - else - # Select patch according to kernel version - patch_dir=${KERNEL_VERSION%.*} - [ "$(echo $ker | sed 's/[0-9]//g')" = ".." ] && patch_dir=$KERNEL_VERSION - i=${patch_dir##*.} - while [ ! -e ${patch_dir%.*}.$i ]; do - [ "$i" = "0" ] && break - i=$(($i - 1)) - done - patch_dir=${patch_dir%.*}.$i - cd $patch_dir - make KSOURCE=/usr/src/linux || return 1 - for i in *.ko; do - lzma e $i ../../_pkg/lib/modules/${KERNEL_VERSION}-slitaz/misc/$i.gz - done - fi - cd $src/src ./autogen.sh ./configure --prefix=/usr --infodir=/usr/share/info \