wok-4.x diff usbip/receipt @ rev 2091
Update libiconv dependancy in some games
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jan 28 16:41:23 2009 +0100 (2009-01-28) |
parents | c1610baa4cf4 |
children | 74d9e193ac36 |
line diff
1.1 --- a/usbip/receipt Thu Jan 22 18:08:21 2009 +0000 1.2 +++ b/usbip/receipt Wed Jan 28 16:41:23 2009 +0100 1.3 @@ -1,7 +1,7 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="usbip" 1.7 -VERSION="0.1.6" 1.8 +VERSION="0.1.7" 1.9 CATEGORY="system-tools" 1.10 SHORT_DESC="general USB device sharing system over IP network." 1.11 MAINTAINER="pascal.bellard@slitaz.org" 1.12 @@ -19,23 +19,32 @@ 1.13 if [ ! -d $WOK/linux/taz ]; then 1.14 tazwok cook linux 1.15 fi 1.16 - kver=$(grep "kernel version" $WOK/linux/$(ls $WOK/linux/taz)/.config) 1.17 + LINUX=$WOK/linux/$(ls $WOK/linux/taz) 1.18 + kver=$(grep "kernel version" $LINUX/.config) 1.19 kver=${kver##* } 1.20 1.21 - # Select patch according to kernel version 1.22 - patch_dir=${kver%.*} 1.23 - i=${patch_dir##*.} 1.24 - while [ ! -e ${patch_dir%.*}.$i ]; do 1.25 - [ "$i" = "0" ] && break 1.26 - i=$(($i - 1)) 1.27 - done 1.28 - patch_dir=${patch_dir%.*}.$i 1.29 - cd $patch_dir 1.30 - make KSOURCE=$(ls -d $WOK/linux/linux-$kver) || return 1 1.31 - mkdir -p ../../_pkg/lib/modules/$kver-slitaz/misc 1.32 - for i in *.ko; do 1.33 - lzma e $i ../../_pkg/lib/modules/$kver-slitaz/misc/$i.gz 1.34 - done 1.35 + mkdir -p ../_pkg/lib/modules/$kver-slitaz/misc 1.36 + if [ -d $LINUX/_pkg/lib/modules/*/kernel/drivers/staging/usbip ]; then 1.37 + echo "Using linux-staging usbip modules." 1.38 + cp $LINUX/_pkg/lib/modules/*/kernel/drivers/staging/usbip/* \ 1.39 + ../_pkg/lib/modules/$kver-slitaz/misc 1.40 + else 1.41 + # Select patch according to kernel version 1.42 + patch_dir=${kver%.*} 1.43 + [ "$(echo $ker | sed 's/[0-9]//g')" = ".." ] && patch_dir=$kver 1.44 + i=${patch_dir##*.} 1.45 + while [ ! -e ${patch_dir%.*}.$i ]; do 1.46 + [ "$i" = "0" ] && break 1.47 + i=$(($i - 1)) 1.48 + done 1.49 + patch_dir=${patch_dir%.*}.$i 1.50 + cd $patch_dir 1.51 + make KSOURCE=$(ls -d $WOK/linux/linux-$kver) || return 1 1.52 + for i in *.ko; do 1.53 + lzma e $i ../../_pkg/lib/modules/$kver-slitaz/misc/$i.gz 1.54 + done 1.55 + fi 1.56 + 1.57 cd $src/src 1.58 ./autogen.sh 1.59 ./configure --prefix=/usr --infodir=/usr/share/info \