wok-4.x rev 2065
Up usbip (0.1.7)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jan 23 14:42:53 2009 +0000 (2009-01-23) |
parents | 480c740ff712 |
children | d20010b27acf |
files | usbip-dev/receipt usbip-module/receipt usbip/receipt |
line diff
1.1 --- a/usbip-dev/receipt Fri Jan 23 11:15:34 2009 +0000 1.2 +++ b/usbip-dev/receipt Fri Jan 23 14:42:53 2009 +0000 1.3 @@ -1,7 +1,7 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="usbip-dev" 1.7 -VERSION="0.1.6" 1.8 +VERSION="0.1.7" 1.9 CATEGORY="development" 1.10 SHORT_DESC="general USB device sharing system over IP network, development files." 1.11 MAINTAINER="pascal.bellard@slitaz.org"
2.1 --- a/usbip-module/receipt Fri Jan 23 11:15:34 2009 +0000 2.2 +++ b/usbip-module/receipt Fri Jan 23 14:42:53 2009 +0000 2.3 @@ -1,7 +1,7 @@ 2.4 # SliTaz package receipt. 2.5 2.6 PACKAGE="usbip-module" 2.7 -VERSION="0.1.6" 2.8 +VERSION="0.1.7" 2.9 CATEGORY="base-system" 2.10 SHORT_DESC="general USB device sharing system over IP network, kernel modules." 2.11 MAINTAINER="pascal.bellard@slitaz.org"
3.1 --- a/usbip/receipt Fri Jan 23 11:15:34 2009 +0000 3.2 +++ b/usbip/receipt Fri Jan 23 14:42:53 2009 +0000 3.3 @@ -1,7 +1,7 @@ 3.4 # SliTaz package receipt. 3.5 3.6 PACKAGE="usbip" 3.7 -VERSION="0.1.6" 3.8 +VERSION="0.1.7" 3.9 CATEGORY="system-tools" 3.10 SHORT_DESC="general USB device sharing system over IP network." 3.11 MAINTAINER="pascal.bellard@slitaz.org" 3.12 @@ -19,23 +19,32 @@ 3.13 if [ ! -d $WOK/linux/taz ]; then 3.14 tazwok cook linux 3.15 fi 3.16 - kver=$(grep "kernel version" $WOK/linux/$(ls $WOK/linux/taz)/.config) 3.17 + LINUX=$WOK/linux/$(ls $WOK/linux/taz) 3.18 + kver=$(grep "kernel version" $LINUX/.config) 3.19 kver=${kver##* } 3.20 3.21 - # Select patch according to kernel version 3.22 - patch_dir=${kver%.*} 3.23 - i=${patch_dir##*.} 3.24 - while [ ! -e ${patch_dir%.*}.$i ]; do 3.25 - [ "$i" = "0" ] && break 3.26 - i=$(($i - 1)) 3.27 - done 3.28 - patch_dir=${patch_dir%.*}.$i 3.29 - cd $patch_dir 3.30 - make KSOURCE=$(ls -d $WOK/linux/linux-$kver) || return 1 3.31 - mkdir -p ../../_pkg/lib/modules/$kver-slitaz/misc 3.32 - for i in *.ko; do 3.33 - lzma e $i ../../_pkg/lib/modules/$kver-slitaz/misc/$i.gz 3.34 - done 3.35 + mkdir -p ../_pkg/lib/modules/$kver-slitaz/misc 3.36 + if [ -d $LINUX/_pkg/lib/modules/*/kernel/drivers/staging/usbip ]; then 3.37 + echo "Using linux-staging usbip modules." 3.38 + cp $LINUX/_pkg/lib/modules/*/kernel/drivers/staging/usbip/* \ 3.39 + ../_pkg/lib/modules/$kver-slitaz/misc 3.40 + else 3.41 + # Select patch according to kernel version 3.42 + patch_dir=${kver%.*} 3.43 + [ "$(echo $ker | sed 's/[0-9]//g')" = ".." ] && patch_dir=$kver 3.44 + i=${patch_dir##*.} 3.45 + while [ ! -e ${patch_dir%.*}.$i ]; do 3.46 + [ "$i" = "0" ] && break 3.47 + i=$(($i - 1)) 3.48 + done 3.49 + patch_dir=${patch_dir%.*}.$i 3.50 + cd $patch_dir 3.51 + make KSOURCE=$(ls -d $WOK/linux/linux-$kver) || return 1 3.52 + for i in *.ko; do 3.53 + lzma e $i ../../_pkg/lib/modules/$kver-slitaz/misc/$i.gz 3.54 + done 3.55 + fi 3.56 + 3.57 cd $src/src 3.58 ./autogen.sh 3.59 ./configure --prefix=/usr --infodir=/usr/share/info \