wok-next diff usbip/receipt @ rev 20837
lua: add SHA1sum
author | Erkan Yilmaz <erkan@slitaz.org> |
---|---|
date | Sun Jun 17 19:28:49 2018 +0000 (2018-06-17) |
parents | 380ffe05937a |
children | d5aab818505e |
line diff
1.1 --- a/usbip/receipt Sat Aug 10 17:00:38 2013 +0000 1.2 +++ b/usbip/receipt Sun Jun 17 19:28:49 2018 +0000 1.3 @@ -1,39 +1,47 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="usbip" 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 +SHORT_DESC="General USB device sharing system over IP network" 1.12 MAINTAINER="pascal.bellard@slitaz.org" 1.13 LICENSE="GPL2" 1.14 +WEB_SITE="http://usbip.sourceforge.net/" 1.15 + 1.16 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.17 -WEB_SITE="http://usbip.sourceforge.net/" 1.18 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" 1.19 -TAGS="usb" 1.20 1.21 -DEPENDS="sysfsutils glib libwrap linux-usbip" 1.22 -BUILD_DEPENDS="sysfsutils-dev lzma libtool glib-dev libwrap libwrap-dev" 1.23 +BUILD_DEPENDS="automake libtool sysfsutils-dev libwrap-dev glib-dev" 1.24 +SPLIT="usbip-dev" 1.25 1.26 -# Rules to configure and make the package. 1.27 -compile_rules() 1.28 -{ 1.29 - cd $src/drivers 1.30 - KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` 1.31 +# From usbip web site: http://usbip.sourceforge.net/#download 1.32 +# 1.33 +# For Linux, the source code of usbip was merged into the staging tree, and 1.34 +# finally has been moved to the mainline since Linux-3.17. Development is 1.35 +# ongoing in the kernel community, not here. Linux distributions will provide 1.36 +# binary packages of usbip. Just for historical records, the project page keeps 1.37 +# old download files of the Linux version. Do not use them. 1.38 +# 1.39 +# ? 1.40 + 1.41 +compile_rules() { 1.42 + KERNEL_VERSION=$(grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g') 1.43 1.44 cd $src/src 1.45 - ./autogen.sh 1.46 - ./configure --prefix=/usr --infodir=/usr/share/info \ 1.47 - --mandir=/usr/share/man $CONFIGURE_ARGS && 1.48 - make && 1.49 - make DESTDIR=$DESTDIR install 1.50 + ./autogen.sh && 1.51 + ./configure $CONFIGURE_ARGS && make && make install 1.52 } 1.53 1.54 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.55 -genpkg_rules() 1.56 -{ 1.57 - mkdir -p $fs/usr/lib 1.58 - cp -a $install/usr/bin $fs/usr 1.59 - cp -a $install/usr/share $fs/usr 1.60 - cp -a $install/usr/lib/*.so* $fs/usr/lib 1.61 +genpkg_rules() { 1.62 + case $PACKAGE in 1.63 + usbip) 1.64 + copy @std 1.65 + DEPENDS="glib libwrap pcre sysfsutils linux-usbip" 1.66 + TAGS="usb" 1.67 + ;; 1.68 + *-dev) 1.69 + copy @dev 1.70 + DEPENDS="usbip libwrap-dev sysfsutils-dev" 1.71 + ;; 1.72 + esac 1.73 } 1.74 -