wok-6.x rev 4591

Add speedtouch modem
author Rohit Joshi <jozee@slitaz.org>
date Thu Dec 10 13:29:28 2009 +0000 (2009-12-10)
parents fe3602b923a8
children 5a843ceafdd6
files speedtouch/receipt speedtouch/stuff/speedtouch-1.3.1-gcc4.u
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/speedtouch/receipt	Thu Dec 10 13:29:28 2009 +0000
     1.3 @@ -0,0 +1,39 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="speedtouch"
     1.7 +VERSION="1.3.1"
     1.8 +CATEGORY="misc"
     1.9 +MAINTAINER="jozee@slitaz.org"
    1.10 +SHORT_DESC="Driver for the ADSL Speed Touch USB modem"
    1.11 +WEB_SITE="http://speedtouch.sourceforge.net/"
    1.12 +DEPENDS="bash"
    1.13 +TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.14 +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    1.15 +
    1.16 +
    1.17 +# Rules to configure and make the package.
    1.18 +
    1.19 +compile_rules() {
    1.20 +  cd $src
    1.21 +  while read file; do
    1.22 +    	[ -f done.$file ] && continue
    1.23 +    	echo "Apply $file..."
    1.24 +    	patch -p1 < ../stuff/$PACKAGE-$VERSION-$file || return 1
    1.25 +	touch done.$file
    1.26 +    done <<EOT
    1.27 +	gcc4.u
    1.28 +EOT
    1.29 +   ./configure --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man &&
    1.30 +  make &&
    1.31 +  make prefix=$PWD/_pkg/usr sysconfdir=$PWD/_pkg/etc mandir=$PWD/_pkg/usr/share/man install 
    1.32 +}
    1.33 +	
    1.34 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.35 +genpkg_rules()
    1.36 +{
    1.37 +	mkdir -p $fs/usr/share
    1.38 +	cp -a $_pkg/usr/bin $fs/usr
    1.39 +	cp -a $_pkg/usr/sbin $fs/usr
    1.40 +	cp -a $_pkg/etc $fs
    1.41 +	cp -a $_pkg/usr/share/$PACKAGE $fs/usr/share	
    1.42 +}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/speedtouch/stuff/speedtouch-1.3.1-gcc4.u	Thu Dec 10 13:29:28 2009 +0000
     2.3 @@ -0,0 +1,10 @@
     2.4 +--- speedtouch-1.3.1/src/modem.h	Wed Sep 29 20:56:31 2004
     2.5 ++++ speedtouch-1.3.1/src/modem.h	Wed Nov  4 19:00:20 2009
     2.6 +@@ -38,7 +38,5 @@
     2.7 + #define EP_CODE_IN  0x85
     2.8 + #define EP_CODE_OUT 0x05
     2.9 + 
    2.10 +-/* Global Variables */
    2.11 +-extern int verbose;
    2.12 + 
    2.13 + #endif