wok-current diff usbip/receipt @ rev 1507
Add usbip-module
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Oct 05 17:27:44 2008 +0000 (2008-10-05) |
parents | 41b5625ef0ab |
children | d55c18ef84e6 |
line diff
1.1 --- a/usbip/receipt Sun Oct 05 12:01:39 2008 +0000 1.2 +++ b/usbip/receipt Sun Oct 05 17:27:44 2008 +0000 1.3 @@ -7,13 +7,35 @@ 1.4 MAINTAINER="pascal.bellard@slitaz.org" 1.5 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.6 DEPENDS="sysfsutils" 1.7 -BUILD_DEPENDS="sysfsutils-dev" 1.8 +BUILD_DEPENDS="sysfsutils-dev lzma" 1.9 WEB_SITE="http://usbip.sourceforge.net/" 1.10 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" 1.11 1.12 # Rules to configure and make the package. 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 + kver=$(grep "kernel version" $WOK/linux/linux-*/.config) 1.21 + kver=${kver##* } 1.22 + 1.23 + # Select patch according to kernel version 1.24 + patch_dir=${kver%.*} 1.25 + i=${patch_dir##*.} 1.26 + while [ ! -e ${patch_dir%.*}.$i ]; do 1.27 + [ "$i" = "0" ] && break 1.28 + i=$(($i - 1)) 1.29 + done 1.30 + patch_dir=${patch_dir%.*}.$i 1.31 + cd $patch_dir 1.32 + make KSOURCE=$(ls -d $WOK/linux/linux-$kver) || return 1 1.33 + mkdir -p ../../_pkg/lib/modules/$kver-slitaz/misc 1.34 + for i in *.ko; do 1.35 + lzma e $i ../../_pkg/lib/modules/$kver-slitaz/misc/$i.gz 1.36 + done 1.37 cd $src/src 1.38 ./autogen.sh 1.39 ./configure --prefix=/usr --infodir=/usr/share/info \ 1.40 @@ -29,5 +51,10 @@ 1.41 cp -a $_pkg/usr/bin $fs/usr 1.42 cp -a $_pkg/usr/share $fs/usr 1.43 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib 1.44 + # Package all usbip pkgs 1.45 + for i in $(cd $WOK; ls -d usbip-*) 1.46 + do 1.47 + tazwok genpkg $i 1.48 + done 1.49 } 1.50