wok annotate get-softmodem-driver/stuff/martian.receipt @ rev 11487
suricata: add pcre to depends
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Sun Dec 18 03:02:00 2011 +0100 (2011-12-18) |
parents | 8fc90d8b565b |
children |
rev | line source |
---|---|
domcox@3464 | 1 # SliTaz package receipt. |
domcox@3464 | 2 |
domcox@3464 | 3 PACKAGE="martian" |
domcox@3464 | 4 VERSION="full-20080617" |
domcox@3464 | 5 CATEGORY="non-free" |
domcox@3478 | 6 SHORT_DESC="Driver for the Agere Systems PCI Modem built on DSP 164x (Mars) series." |
domcox@3464 | 7 MAINTAINER="domcox@slitaz.org" |
domcox@3464 | 8 TARBALL="$PACKAGE-$VERSION.tar.gz" |
domcox@3464 | 9 DEPENDS="module-init-tools linux-source" |
domcox@3464 | 10 WEB_SITE="http://martian.barrelsoutofbond.org" |
domcox@3464 | 11 WGET_URL="http://www.barrelsoutofbond.org/downloads/$PACKAGE/$TARBALL" |
domcox@3464 | 12 |
domcox@3464 | 13 # Rules to gen a SliTaz package suitable for Tazpkg. |
domcox@3464 | 14 |
domcox@3464 | 15 post_install() |
domcox@3464 | 16 { |
domcox@3494 | 17 # Country settings |
domcox@3494 | 18 if [ -e /etc/TZ ]; then |
domcox@3494 | 19 ZONE=`cat /etc/TZ` |
domcox@3498 | 20 CODE=`grep $ZONE /usr/share/martian/zone.tab | cut -f1'` |
domcox@3494 | 21 if [ -n $CODE ]; then |
domcox@3498 | 22 COUNTRY=`grep ^$CODE /usr/share/martian/martian.country | cut -f2` |
domcox@3498 | 23 COUNTRY_NAME=`grep ^$CODE /usr/share/martian/martian.country | cut -f3` |
domcox@3494 | 24 fi |
domcox@3494 | 25 fi |
domcox@3494 | 26 if [ -z $COUNTRY ]; then |
domcox@3498 | 27 COUNTRY="us" |
domcox@3498 | 28 COUNTRY_NAME="USA" |
domcox@3494 | 29 fi |
domcox@3498 | 30 echo "Automatic country setting: $COUNTRY_NAME" |
domcox@3498 | 31 # Save options |
domcox@3498 | 32 if [ `grep -c MARTIAN_OPTIONS /etc/daemons.conf` -gt 0 ]; then |
domcox@3498 | 33 sed -i 's/MARTIAN_OPTIONS=.*/MARTIAN_OPTIONS="--country='"$COUNTRY"' \/dev\/ttySM0"/' /etc/daemons.conf |
domcox@3498 | 34 else |
domcox@3498 | 35 echo "# slmodemd daemon options." >> $root/etc/daemons.conf |
domcox@3498 | 36 echo "MARTIAN_OPTIONS=\"--country=$COUNTRY /dev/ttySM0\"" >> $root/etc/daemons.conf |
domcox@3498 | 37 echo >> $root/etc/daemons.conf |
domcox@3498 | 38 fi |
domcox@3494 | 39 # Load module |
domcox@3464 | 40 /sbin/depmod -a |
domcox@3464 | 41 /sbin/modprobe martian_dev && \ |
domcox@3464 | 42 /etc/init.d/martian start |
domcox@3464 | 43 } |
domcox@3498 | 44 |
domcox@3498 | 45 post_remove() |
domcox@3498 | 46 { |
domcox@3498 | 47 /etc/init.d/martian stop |
domcox@3498 | 48 rm -rf /usr/share/martian |
domcox@3498 | 49 } |