wok-next annotate get-softmodem-driver/stuff/martian.receipt @ rev 21727

created recipe for vbindiff
author Hans-G?nter Theisgen
date Sat Nov 21 14:32:44 2020 +0100 (2020-11-21)
parents 4aed2b24febc
children
rev   line source
pascal@13591 1 # SliTaz package receipt.
pascal@13591 2
pascal@13591 3 PACKAGE="martian"
pascal@13591 4 VERSION="full-20080617"
pascal@13591 5 CATEGORY="non-free"
pascal@13591 6 SHORT_DESC="Driver for the Agere Systems PCI Modem built on DSP 164x (Mars) series."
al@21020 7 MAINTAINER="devel@slitaz.org"
al@21020 8 WEB_SITE="http://martian.barrelsoutofbond.org"
al@21020 9
pascal@13591 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@13591 11 WGET_URL="http://www.barrelsoutofbond.org/downloads/$PACKAGE/$TARBALL"
pascal@13591 12
al@21020 13 DEPENDS="module-init-tools linux-source"
pascal@13591 14
al@21020 15 post_install() {
pascal@13591 16 # Country settings
pascal@13591 17 if [ -e /etc/TZ ]; then
al@21020 18 ZONE=$(cat /etc/TZ)
al@21020 19 CODE=$(grep $ZONE /usr/share/martian/zone.tab | cut -f1)
pascal@13591 20 if [ -n $CODE ]; then
al@21020 21 COUNTRY=$(grep ^$CODE /usr/share/martian/martian.country | cut -f2)
al@21020 22 COUNTRY_NAME=$(grep ^$CODE /usr/share/martian/martian.country | cut -f3)
pascal@13591 23 fi
pascal@13591 24 fi
pascal@13591 25 if [ -z $COUNTRY ]; then
pascal@13591 26 COUNTRY="us"
pascal@13591 27 COUNTRY_NAME="USA"
pascal@13591 28 fi
pascal@13591 29 echo "Automatic country setting: $COUNTRY_NAME"
pascal@13591 30 # Save options
al@21020 31 if [ $(grep -c MARTIAN_OPTIONS /etc/daemons.conf) -gt 0 ]; then
pascal@13591 32 sed -i 's/MARTIAN_OPTIONS=.*/MARTIAN_OPTIONS="--country='"$COUNTRY"' \/dev\/ttySM0"/' /etc/daemons.conf
pascal@13591 33 else
al@21020 34 echo "# slmodemd daemon options." >> $root/etc/daemons.conf
pascal@13591 35 echo "MARTIAN_OPTIONS=\"--country=$COUNTRY /dev/ttySM0\"" >> $root/etc/daemons.conf
pascal@13591 36 echo >> $root/etc/daemons.conf
pascal@13591 37 fi
pascal@13591 38 # Load module
pascal@13591 39 /sbin/depmod -a
al@21020 40 /sbin/modprobe martian_dev &&
pascal@13591 41 /etc/init.d/martian start
pascal@13591 42 }
pascal@13591 43
al@21020 44 post_remove() {
pascal@13591 45 /etc/init.d/martian stop
pascal@13591 46 rm -rf /usr/share/martian
pascal@13591 47 }