wok-next annotate get-softmodem-driver/stuff/slmodem.receipt @ rev 21157

Update some WEB_SITE
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 04 11:54:13 2019 +0100 (2019-02-04)
parents 4aed2b24febc
children
rev   line source
pascal@13591 1 # SliTaz package receipt.
pascal@13591 2
pascal@13591 3 PACKAGE="slmodem"
pascal@13591 4 VERSION="2.9.11-20090222"
pascal@13591 5 CATEGORY="non-free"
pascal@13591 6 SHORT_DESC="Support for the SmartLink Softmodem and ALSA supported chipsets."
al@21020 7 MAINTAINER="devel@slitaz.org"
pascal@13591 8 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@13591 9 DEPENDS="alsa-lib module-init-tools linux-source"
pascal@13591 10 WEB_SITE="http://linmodems.technion.ac.il"
pascal@13591 11 WGET_URL="http://linmodems.technion.ac.il/packages/smartlink/$TARBALL"
pascal@13591 12
al@21020 13 post_install() {
pascal@13591 14 # Country detection
pascal@13591 15 if [ -e /etc/TZ ]; then
al@21020 16 ZONE=$(cat /etc/TZ)
al@21020 17 CODE=$(grep $ZONE /usr/share/slmodem/zone.tab | cut -f1)
pascal@13591 18 if [ -n $CODE ]; then
al@21020 19 COUNTRY=$(grep ^$CODE /usr/share/slmodem/slmodem.country | cut -f2)
pascal@13591 20 fi
pascal@13591 21 fi
pascal@13591 22 if [ -z $COUNTRY ]; then
pascal@13591 23 COUNTRY="USA"
pascal@13591 24 fi
pascal@13591 25 echo "Automatic country setting: $COUNTRY"
pascal@13591 26 # Save options
al@21020 27 if [ $(grep -c SLMODEM_OPTIONS /etc/daemons.conf) -gt 0 ]; then
pascal@13591 28 sed -i 's/SLMODEM_OPTIONS=.*/SLMODEM_OPTIONS="--country='"$COUNTRY"' \/dev\/slamr0"/' /etc/daemons.conf
pascal@13591 29 else
pascal@13591 30 echo "# slmodemd daemon options." >> $root/etc/daemons.conf
pascal@13591 31 echo "SLMODEM_OPTIONS=\"--country=$COUNTRY /dev/slamr0\"" >> $root/etc/daemons.conf
pascal@13591 32 echo >> $root/etc/daemons.conf
pascal@13591 33 fi
pascal@13591 34 # Load module
pascal@13591 35 depmod -a
pascal@13591 36 /sbin/modprobe slamr && /etc/init.d/slmodem start
pascal@13591 37 }
pascal@13591 38
pascal@13591 39 post_remove()
pascal@13591 40 {
pascal@13591 41 /etc/init.d/slmodem stop
pascal@13591 42 rm -rf /usr/share/slmodem
pascal@13591 43 }