wok-6.x rev 3478

get-softmodem-driver: packages are now saved in tazwok packages_repository
author Dominique Corbex <domcox@users.sourceforge.net>
date Wed Jun 17 09:49:44 2009 +0200 (2009-06-17)
parents 3ae7a1c63bcd
children 778f75d8af14
files get-softmodem-driver/receipt get-softmodem-driver/stuff/get-softmodem-driver get-softmodem-driver/stuff/hcfpcimodem.receipt get-softmodem-driver/stuff/hsfmodem-7.80.02.04full.diff get-softmodem-driver/stuff/hsfmodem.receipt get-softmodem-driver/stuff/martian.init get-softmodem-driver/stuff/martian.receipt get-softmodem-driver/stuff/slmodem.init get-softmodem-driver/stuff/slmodem.receipt
line diff
     1.1 --- a/get-softmodem-driver/receipt	Tue Jun 16 23:46:38 2009 +0000
     1.2 +++ b/get-softmodem-driver/receipt	Wed Jun 17 09:49:44 2009 +0200
     1.3 @@ -1,7 +1,7 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="get-softmodem-driver"
     1.7 -VERSION="0.7"
     1.8 +VERSION="0.8"
     1.9  CATEGORY="non-free"
    1.10  SHORT_DESC="Get misc softmodem drivers."
    1.11  MAINTAINER="domcox@slitaz.org"
    1.12 @@ -13,7 +13,7 @@
    1.13  {
    1.14  	mkdir -p $fs/usr/bin
    1.15  	cp stuff/$PACKAGE $fs/usr/bin
    1.16 -	for i in hsfmodem hcfpcimodem martian; do
    1.17 +	for i in hsfmodem hcfpcimodem martian slmodem; do
    1.18  		ln -s $PACKAGE $fs/usr/bin/get-$i-driver
    1.19  	done
    1.20  	mkdir -p $fs/usr/share/softmodem
     2.1 --- a/get-softmodem-driver/stuff/get-softmodem-driver	Tue Jun 16 23:46:38 2009 +0000
     2.2 +++ b/get-softmodem-driver/stuff/get-softmodem-driver	Wed Jun 17 09:49:44 2009 +0200
     2.3 @@ -10,7 +10,7 @@
     2.4  echo "--------------------------------------------------------"
     2.5  echo "Due to a lack of compatible hardware for troubleshooting,"
     2.6  echo "this $PACKAGE package has not been tested."
     2.7 -echo "Please report any bug to help us make a reliable package."
     2.8 +echo "Please report any bug to SliTaz Labs or SliTaz Forum."
     2.9  echo "--------------------------------------------------------"
    2.10  sleep 1
    2.11  }
    2.12 @@ -18,16 +18,16 @@
    2.13  case "$PACKAGE" in
    2.14  hsfmodem)
    2.15  	. /usr/share/softmodem/hsfmodem.receipt
    2.16 -	echo "Support for the Conexant (formerly Rockwell) HSF Softmodem family." ;;
    2.17 +	echo $SHORT_DESC;;
    2.18  hcfpcimodem)
    2.19  	. /usr/share/softmodem/hcfpcimodem.receipt
    2.20 -	echo "Support for the Conexant HCF (controllerless) modem family." ;;
    2.21 +	echo $SHORT_DESC;;
    2.22  martian)
    2.23  	. /usr/share/softmodem/martian.receipt
    2.24 -	echo "Support for the Agere Systems PCI Modem built on DSP 164x (Mars) series." ;;
    2.25 +	echo $SHORT_DESC;;
    2.26  slmodem)
    2.27  	. /usr/share/softmodem/slmodem.receipt
    2.28 -	echo "Support for the SmartLink Softmodem" ;;
    2.29 +	echo $SHORT_DESC;;
    2.30  *)
    2.31  	echo "Unknown modem driver. Please run one of the following commands:"
    2.32  	for i in $(cd $(dirname $0); ls get-*-driver); do
    2.33 @@ -177,4 +177,9 @@
    2.34  tazpkg install $PACKAGE-$VERSION.tazpkg --root=$ROOT
    2.35  
    2.36  # Clean
    2.37 +if [ -e /etc/tazwok.conf ]; then
    2.38 +	. /etc/tazwok.conf
    2.39 +	mkdir -p $PACKAGES_REPOSITORY
    2.40 +	cp -a $PACKAGE-$VERSION.tazpkg $PACKAGES_REPOSITORY
    2.41 +fi
    2.42  rm -rf $taz
     3.1 --- a/get-softmodem-driver/stuff/hcfpcimodem.receipt	Tue Jun 16 23:46:38 2009 +0000
     3.2 +++ b/get-softmodem-driver/stuff/hcfpcimodem.receipt	Wed Jun 17 09:49:44 2009 +0200
     3.3 @@ -3,7 +3,7 @@
     3.4  PACKAGE="hcfpcimodem"
     3.5  VERSION="1.19full"
     3.6  CATEGORY="non-free"
     3.7 -SHORT_DESC="Modem driver for Conexant HCF PCI chipsets."
     3.8 +SHORT_DESC="Driver for the Conexant HCF (controllerless) Softmodem family."
     3.9  MAINTAINER="domcox@slitaz.org"
    3.10  TARBALL="$PACKAGE-$VERSION.tar.gz"
    3.11  DEPENDS="module-init-tools linux-source"
    3.12 @@ -16,3 +16,10 @@
    3.13  {
    3.14  	/usr/sbin/hcfpciconfig --auto
    3.15  }
    3.16 +
    3.17 +post_remove()
    3.18 +{
    3.19 +    echo -n "Removing modules.."
    3.20 +    rm -rf /lib/modules/`uname -r`/extra/hcfpci*
    3.21 +    status
    3.22 +}
    3.23 \ No newline at end of file
     4.1 --- a/get-softmodem-driver/stuff/hsfmodem-7.80.02.04full.diff	Tue Jun 16 23:46:38 2009 +0000
     4.2 +++ b/get-softmodem-driver/stuff/hsfmodem-7.80.02.04full.diff	Wed Jun 17 09:49:44 2009 +0200
     4.3 @@ -159,3 +159,12 @@
     4.4   	shift
     4.5   fi
     4.6  
     4.7 +@@ -3033,0 +3027,0 @@
     4.8 +
     4.9 + if ${do_cfgnewinstance}; then
    4.10 +  if [ ! -d "${cnxtnvmdir}/dynamic/${newinstance}" ]; then
    4.11 +-		mkdir --mode=700 --parents "${cnxtnvmdir}/dynamic/${newinstance}" || exit $?
    4.12 ++		mkdir -m 700 -p "${cnxtnvmdir}/dynamic/${newinstance}" || exit $?
    4.13 + 		# The purpose of --info here is to ensure module reload:
    4.14 + 		(sleep 2; exec @CNXTTARGET@config --auto --region=AUTO --info) </dev/null >/dev/null 2>&1 &
    4.15 + 	fi
     5.1 --- a/get-softmodem-driver/stuff/hsfmodem.receipt	Tue Jun 16 23:46:38 2009 +0000
     5.2 +++ b/get-softmodem-driver/stuff/hsfmodem.receipt	Wed Jun 17 09:49:44 2009 +0200
     5.3 @@ -3,7 +3,7 @@
     5.4  PACKAGE="hsfmodem"
     5.5  VERSION="7.80.02.04full"
     5.6  CATEGORY="non-free"
     5.7 -SHORT_DESC="Modem driver for Conexant HSF chipsets."
     5.8 +SHORT_DESC="Driver for the Conexant (formerly Rockwell) HSF Softmodem family."
     5.9  MAINTAINER="domcox@slitaz.org"
    5.10  TARBALL="$PACKAGE-$VERSION.tar.gz"
    5.11  DEPENDS="module-init-tools linux-source"
    5.12 @@ -16,3 +16,10 @@
    5.13  {
    5.14  	/usr/sbin/hsfconfig --auto
    5.15  }
    5.16 +
    5.17 +post_remove()
    5.18 +{
    5.19 +	echo -n "Removing modules.."
    5.20 +	rm -rf /lib/modules/`uname -r`/extra/hsf*
    5.21 +	status
    5.22 +}
    5.23 \ No newline at end of file
     6.1 --- a/get-softmodem-driver/stuff/martian.init	Tue Jun 16 23:46:38 2009 +0000
     6.2 +++ b/get-softmodem-driver/stuff/martian.init	Wed Jun 17 09:49:44 2009 +0200
     6.3 @@ -13,8 +13,9 @@
     6.4  DAEMON=/usr/sbin/martian_modem
     6.5  OPTIONS="--daemon $MARTIAN_OPTIONS /dev/ttySM0"
     6.6  PIDFILE=/var/run/martian.pid
     6.7 +MODULE="martian_dev"
     6.8  
     6.9 -if [ `/sbin/lsmod | grep -c martian_dev}` -lt "1" ]; then
    6.10 +if [ `/sbin/lsmod | grep -c ${MODULE}` -lt "1" ]; then
    6.11  	echo "kernel module is not loaded!"
    6.12  	exit 1
    6.13  fi
     7.1 --- a/get-softmodem-driver/stuff/martian.receipt	Tue Jun 16 23:46:38 2009 +0000
     7.2 +++ b/get-softmodem-driver/stuff/martian.receipt	Wed Jun 17 09:49:44 2009 +0200
     7.3 @@ -3,7 +3,7 @@
     7.4  PACKAGE="martian"
     7.5  VERSION="full-20080617"
     7.6  CATEGORY="non-free"
     7.7 -SHORT_DESC="Modem driver for Agere Systems PCI WinModem."
     7.8 +SHORT_DESC="Driver for the Agere Systems PCI Modem built on DSP 164x (Mars) series."
     7.9  MAINTAINER="domcox@slitaz.org"
    7.10  TARBALL="$PACKAGE-$VERSION.tar.gz"
    7.11  DEPENDS="module-init-tools linux-source"
     8.1 --- a/get-softmodem-driver/stuff/slmodem.init	Tue Jun 16 23:46:38 2009 +0000
     8.2 +++ b/get-softmodem-driver/stuff/slmodem.init	Wed Jun 17 09:49:44 2009 +0200
     8.3 @@ -11,10 +11,11 @@
     8.4  NAME=Smartlink modem
     8.5  DESC="Smart Link Modem deamon"
     8.6  DAEMON=/usr/sbin/slmodemd
     8.7 -OPTIONS=""
     8.8 +OPTIONS=$SLMODEM_OPTIONS
     8.9  PIDFILE=/var/run/slmodemd.pid
    8.10 +MODULE="slamr"
    8.11  
    8.12 -if [ `/sbin/lsmod | grep -c martian_dev}` -lt "1" ]; then
    8.13 +if [ `/sbin/lsmod | grep -c ${MODULE}` -lt "1" ]; then
    8.14  	echo "kernel module is not loaded!"
    8.15  	exit 1
    8.16  fi
     9.1 --- a/get-softmodem-driver/stuff/slmodem.receipt	Tue Jun 16 23:46:38 2009 +0000
     9.2 +++ b/get-softmodem-driver/stuff/slmodem.receipt	Wed Jun 17 09:49:44 2009 +0200
     9.3 @@ -3,7 +3,7 @@
     9.4  PACKAGE="slmodem"
     9.5  VERSION="2.9.11-20090222"
     9.6  CATEGORY="non-free"
     9.7 -SHORT_DESC="Modem driver for Smartlink Modem."
     9.8 +SHORT_DESC="Support for the SmartLink Softmodem and ALSA supported chipsets."
     9.9  MAINTAINER="domcox@slitaz.org"
    9.10  TARBALL="$PACKAGE-$VERSION.tar.gz"
    9.11  DEPENDS="module-init-tools linux-source"