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