wok-6.x diff get-softmodem-driver/stuff/martian.receipt @ rev 14870
python-pygame: no more linux/videodev.h
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jul 23 08:56:31 2013 +0000 (2013-07-23) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/get-softmodem-driver/stuff/martian.receipt Tue Jul 23 08:56:31 2013 +0000 1.3 @@ -0,0 +1,49 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="martian" 1.7 +VERSION="full-20080617" 1.8 +CATEGORY="non-free" 1.9 +SHORT_DESC="Driver for the Agere Systems PCI Modem built on DSP 164x (Mars) series." 1.10 +MAINTAINER="domcox@slitaz.org" 1.11 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.12 +DEPENDS="module-init-tools linux-source" 1.13 +WEB_SITE="http://martian.barrelsoutofbond.org" 1.14 +WGET_URL="http://www.barrelsoutofbond.org/downloads/$PACKAGE/$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 settings 1.21 + if [ -e /etc/TZ ]; then 1.22 + ZONE=`cat /etc/TZ` 1.23 + CODE=`grep $ZONE /usr/share/martian/zone.tab | cut -f1'` 1.24 + if [ -n $CODE ]; then 1.25 + COUNTRY=`grep ^$CODE /usr/share/martian/martian.country | cut -f2` 1.26 + COUNTRY_NAME=`grep ^$CODE /usr/share/martian/martian.country | cut -f3` 1.27 + fi 1.28 + fi 1.29 + if [ -z $COUNTRY ]; then 1.30 + COUNTRY="us" 1.31 + COUNTRY_NAME="USA" 1.32 + fi 1.33 + echo "Automatic country setting: $COUNTRY_NAME" 1.34 + # Save options 1.35 + if [ `grep -c MARTIAN_OPTIONS /etc/daemons.conf` -gt 0 ]; then 1.36 + sed -i 's/MARTIAN_OPTIONS=.*/MARTIAN_OPTIONS="--country='"$COUNTRY"' \/dev\/ttySM0"/' /etc/daemons.conf 1.37 + else 1.38 + echo "# slmodemd daemon options." >> $root/etc/daemons.conf 1.39 + echo "MARTIAN_OPTIONS=\"--country=$COUNTRY /dev/ttySM0\"" >> $root/etc/daemons.conf 1.40 + echo >> $root/etc/daemons.conf 1.41 + fi 1.42 + # Load module 1.43 + /sbin/depmod -a 1.44 + /sbin/modprobe martian_dev && \ 1.45 + /etc/init.d/martian start 1.46 +} 1.47 + 1.48 +post_remove() 1.49 +{ 1.50 + /etc/init.d/martian stop 1.51 + rm -rf /usr/share/martian 1.52 +}