wok diff get-softmodem-driver/stuff/get-softmodem-driver @ rev 3453

get-softmodem-driver: hsfmodem up to 7.80.02.04
author Dominique Corbex <domcox@users.sourceforge.net>
date Mon Jun 15 15:05:01 2009 +0200 (2009-06-15)
parents d1e04eb36da3
children 60e75b775499
line diff
     1.1 --- a/get-softmodem-driver/stuff/get-softmodem-driver	Mon Jun 15 09:08:48 2009 +0200
     1.2 +++ b/get-softmodem-driver/stuff/get-softmodem-driver	Mon Jun 15 15:05:01 2009 +0200
     1.3 @@ -7,12 +7,7 @@
     1.4  
     1.5  case "$PACKAGE" in
     1.6  hsfmodem)
     1.7 -	VERSION="7.80.02.03full"
     1.8 -	TARBALL="$PACKAGE-$VERSION.tar.gz"
     1.9 -	SHORT_DESC="Modem driver for Conexant HSF chipsets"
    1.10 -	WEB_SITE="http://www.linuxant.com/drivers"
    1.11 -	WGET_URL="http://www.linuxant.com/drivers/hsf/full/archive/$PACKAGE-$VERSION/$TARBALL"
    1.12 -	DEPENDS="module-init-tools linux-source"
    1.13 +	. /usr/share/softmodem/hsfmodem.receipt
    1.14  	;;
    1.15  *)	echo "Unknown modem driver. Please run one of the following commands:"
    1.16  	for i in $(cd $(dirname $0); ls get-*-driver); do
    1.17 @@ -80,13 +75,8 @@
    1.18  hsfmodem)
    1.19  	# Rules to configure and make the package.
    1.20  	cd $src
    1.21 -	while read file; do
    1.22 -		echo "Apply $file..."
    1.23 -		patch -p1 < /usr/share/softmodem/$PACKAGE-$VERSION-$file || return 1
    1.24 -	done <<EOT
    1.25 -makefile.diff
    1.26 -cnxtconfig.diff
    1.27 -EOT
    1.28 +	echo "Apply $file..."
    1.29 +	patch -p1 < /usr/share/softmodem/$PACKAGE-$VERSION.diff || return 1
    1.30  	# Build
    1.31  	make DESTDIR=$_pkg install
    1.32  	cd $_pkg/usr/lib/hsfmodem/modules
    1.33 @@ -98,19 +88,17 @@
    1.34  	MODS_DIR=$fs/lib/modules/`uname -r`/extra
    1.35  	mkdir -p $MODS_DIR
    1.36  	cp -a $_pkg/usr/lib/hsfmodem/modules/*.ko $MODS_DIR
    1.37 +	cd $src
    1.38 +	make clean
    1.39 +	cd $taz
    1.40 +	mkdir -p $fs/usr/src
    1.41 +	mv $src $fs/usr/src
    1.42  	;;
    1.43  esac
    1.44  
    1.45  # Create receipt
    1.46  cd $taz
    1.47 -cat > $PACKAGE-$VERSION/receipt <<EOT
    1.48 -PACKAGE="$PACKAGE"
    1.49 -VERSION="$VERSION"
    1.50 -CATEGORY="non-free"
    1.51 -SHORT_DESC="$SHORT_DESC."
    1.52 -WEB_SITE="$WEB_SITE"
    1.53 -DEPENDS="$DEPENDS"
    1.54 -EOT
    1.55 +cat /usr/share/softmodem/hsfmodem.receipt> $PACKAGE-$VERSION/receipt
    1.56  
    1.57  # Pack
    1.58  tazpkg pack $PACKAGE-$VERSION
    1.59 @@ -120,5 +108,3 @@
    1.60  
    1.61  # Clean
    1.62  rm -rf $taz
    1.63 -cd $src
    1.64 -make clean