wok rev 13249

usb-modeswitch: add datas
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Aug 14 14:24:15 2012 +0200 (2012-08-14)
parents 58689c13dd4b
children d4f38f8df84f
files usb-modeswitch/receipt
line diff
     1.1 --- a/usb-modeswitch/receipt	Tue Aug 14 14:15:38 2012 +0200
     1.2 +++ b/usb-modeswitch/receipt	Tue Aug 14 14:24:15 2012 +0200
     1.3 @@ -2,12 +2,14 @@
     1.4  
     1.5  PACKAGE="usb-modeswitch"
     1.6  VERSION="1.2.3"
     1.7 +PACKAGE_DATA="${PACKAGE}-data-20120531"
     1.8  CATEGORY="system-tools"
     1.9  SHORT_DESC="Handling Mode-Switching USB Devices on Linux."
    1.10  MAINTAINER="pankso@slitaz.org"
    1.11  WEB_SITE="http://www.draisberghof.de/usb_modeswitch/"
    1.12  TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.13  WGET_URL="http://www.draisberghof.de/usb_modeswitch/$TARBALL"
    1.14 +TAGS="3g-modem"
    1.15  
    1.16  DEPENDS="libusb-compat"
    1.17  BUILD_DEPENDS="libusb-compat-dev"
    1.18 @@ -15,7 +17,19 @@
    1.19  # Rules to configure and make the package.
    1.20  compile_rules()
    1.21  {
    1.22 +	cd $src
    1.23  	make && make install
    1.24 +
    1.25 +	# download data
    1.26 +	[ -s $SOURCES_REPOSITORY/$PACKAGE_DATA.tar.bz2 ] ||
    1.27 +		wget -P $SOURCES_REPOSITORY $WEB_SITE/$PACKAGE_DATA.tar.bz2
    1.28 +	[ -d $PACKAGE_DATA ] ||
    1.29 +		tar -xjf $SOURCES_REPOSITORY/$PACKAGE_DATA.tar.bz2
    1.30 +
    1.31 +	# download setup config
    1.32 +	[ -s  $SOURCES_REPOSITORY/usb_modeswitch.setup ] ||
    1.33 +		wget -O $SOURCES_REPOSITORY/usb_modeswitch.setup \
    1.34 +			$WEB_SITE/device_reference.txt
    1.35  }
    1.36  
    1.37  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.38 @@ -26,4 +40,7 @@
    1.39  	cp -a $install/lib $fs
    1.40  	cp -a $install/var $fs
    1.41  	cp -a $install/usr/sbin $fs/usr
    1.42 +	cp -a $src/$PACKAGE_DATA/usb_modeswitch.d/* $fs/etc/usb_modeswitch.d
    1.43 +	cp -a $src/$PACKAGE_DATA/40-usb_modeswitch.rules $fs/lib/udev/rules.d
    1.44 +	cp -a $SOURCES_REPOSITORY/usb_modeswitch.setup $fs/etc/
    1.45  }