wok-6.x view usbip/receipt @ rev 1688
Add dtach
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Nov 10 15:03:44 2008 +0000 (2008-11-10) |
parents | 86896ca215ac |
children | c1610baa4cf4 |
line source
1 # SliTaz package receipt.
3 PACKAGE="usbip"
4 VERSION="0.1.6"
5 CATEGORY="system-tools"
6 SHORT_DESC="general USB device sharing system over IP network."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 DEPENDS="sysfsutils glib"
10 BUILD_DEPENDS="sysfsutils-dev lzma libtool glib libwrap libwrap-dev"
11 WEB_SITE="http://usbip.sourceforge.net/"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src/drivers
18 # get kernel version
19 if [ ! -d $WOK/linux/taz ]; then
20 tazwok cook linux
21 fi
22 kver=$(grep "kernel version" $WOK/linux/linux-*/.config)
23 kver=${kver##* }
25 # Select patch according to kernel version
26 patch_dir=${kver%.*}
27 i=${patch_dir##*.}
28 while [ ! -e ${patch_dir%.*}.$i ]; do
29 [ "$i" = "0" ] && break
30 i=$(($i - 1))
31 done
32 patch_dir=${patch_dir%.*}.$i
33 cd $patch_dir
34 make KSOURCE=$(ls -d $WOK/linux/linux-$kver) || return 1
35 mkdir -p ../../_pkg/lib/modules/$kver-slitaz/misc
36 for i in *.ko; do
37 lzma e $i ../../_pkg/lib/modules/$kver-slitaz/misc/$i.gz
38 done
39 cd $src/src
40 ./autogen.sh
41 ./configure --prefix=/usr --infodir=/usr/share/info \
42 --mandir=/usr/share/man $CONFIGURE_ARGS &&
43 make &&
44 make DESTDIR=$PWD/../_pkg install
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 mkdir -p $fs/usr/lib
51 cp -a $_pkg/usr/bin $fs/usr
52 cp -a $_pkg/usr/share $fs/usr
53 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
54 # Package all usbip pkgs
55 for i in $(cd $WOK; ls -d usbip-*)
56 do
57 tazwok genpkg $i
58 done
59 }