wok-current diff get-softmodem-driver/stuff/slmodem.receipt @ rev 20590
Update some deps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Dec 15 19:21:31 2018 +0100 (2018-12-15) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/get-softmodem-driver/stuff/slmodem.receipt Sat Dec 15 19:21:31 2018 +0100 1.3 @@ -0,0 +1,46 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="slmodem" 1.7 +VERSION="2.9.11-20090222" 1.8 +CATEGORY="non-free" 1.9 +SHORT_DESC="Support for the SmartLink Softmodem and ALSA supported chipsets." 1.10 +MAINTAINER="domcox@slitaz.org" 1.11 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.12 +DEPENDS="alsa-lib module-init-tools linux-source" 1.13 +WEB_SITE="http://linmodems.technion.ac.il" 1.14 +WGET_URL="http://linmodems.technion.ac.il/packages/smartlink/$TARBALL" 1.15 + 1.16 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.17 + 1.18 +post_install() 1.19 +{ 1.20 + # Country detection 1.21 + if [ -e /etc/TZ ]; then 1.22 + ZONE=`cat /etc/TZ` 1.23 + CODE=`grep $ZONE /usr/share/slmodem/zone.tab | cut -f1'` 1.24 + if [ -n $CODE ]; then 1.25 + COUNTRY=`grep ^$CODE /usr/share/slmodem/slmodem.country | cut -f2` 1.26 + fi 1.27 + fi 1.28 + if [ -z $COUNTRY ]; then 1.29 + COUNTRY="USA" 1.30 + fi 1.31 + echo "Automatic country setting: $COUNTRY" 1.32 + # Save options 1.33 + if [ `grep -c SLMODEM_OPTIONS /etc/daemons.conf` -gt 0 ]; then 1.34 + sed -i 's/SLMODEM_OPTIONS=.*/SLMODEM_OPTIONS="--country='"$COUNTRY"' \/dev\/slamr0"/' /etc/daemons.conf 1.35 + else 1.36 + echo "# slmodemd daemon options." >> $root/etc/daemons.conf 1.37 + echo "SLMODEM_OPTIONS=\"--country=$COUNTRY /dev/slamr0\"" >> $root/etc/daemons.conf 1.38 + echo >> $root/etc/daemons.conf 1.39 + fi 1.40 + # Load module 1.41 + depmod -a 1.42 + /sbin/modprobe slamr && /etc/init.d/slmodem start 1.43 +} 1.44 + 1.45 +post_remove() 1.46 +{ 1.47 + /etc/init.d/slmodem stop 1.48 + rm -rf /usr/share/slmodem 1.49 +} 1.50 \ No newline at end of file