wok rev 13330

linux: add RT2800PCI
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 04 11:11:15 2012 +0200 (2012-09-04)
parents 8b9b79fb08c1
children a679c2ae3e52
files get-opera/stuff/get-opera linux/stuff/linux-slitaz.config linux/stuff/linux-slitaz.config64
line diff
     1.1 --- a/get-opera/stuff/get-opera	Tue Sep 04 09:25:45 2012 +0200
     1.2 +++ b/get-opera/stuff/get-opera	Tue Sep 04 11:11:15 2012 +0200
     1.3 @@ -1,7 +1,9 @@
     1.4  #!/bin/sh -e
     1.5  
     1.6  PACKAGE="opera"
     1.7 +WEB_SITE="http://www.opera.com/"
     1.8  URL=http://mirrors.dedipower.com/opera/linux/
     1.9 +
    1.10  ROOT="$1"
    1.11  [ -d "$ROOT" ] || ROOT=""
    1.12  
    1.13 @@ -41,17 +43,19 @@
    1.14  	exit 1
    1.15  fi
    1.16  
    1.17 -mkdir opera
    1.18 -dpkg-deb -e $FILE opera/meta
    1.19 -dpkg-deb -x $FILE opera/fs
    1.20 +mkdir $PACKAGE
    1.21 +dpkg-deb -e $FILE $PACKAGE/meta
    1.22 +dpkg-deb -x $FILE $PACKAGE/fs
    1.23  # extracted pkg can be removed: Save RAM
    1.24  rm -f $FILE
    1.25  sed '/^Description:/,$!d;s/^Description://' \
    1.26 -	< opera/meta/control > opera/description.txt
    1.27 +	< $PACKAGE/meta/control > $PACKAGE/description.txt
    1.28  
    1.29 -VERSION=$(grep ^Version opera/meta/control | awk '{ print $2 }')
    1.30 -mv opera opera-$VERSION
    1.31 -cd opera-$VERSION/fs
    1.32 +SHORT_DESC="$(sed '/^Description:/!d;s/.*: //' $PACKAGE/meta/control)"
    1.33 +MAINTAINER="$(sed '/^Maintainer:/!d;s/.*: //' $PACKAGE/meta/control)"
    1.34 +VERSION="$(sed '/^Version:/!d;s/.*: //' $PACKAGE/meta/control)"
    1.35 +mv $PACKAGE $PACKAGE-$VERSION
    1.36 +cd $PACKAGE-$VERSION/fs
    1.37  
    1.38  # Create menu
    1.39  mkdir -p usr/share/applications
    1.40 @@ -94,38 +98,39 @@
    1.41  EOT
    1.42  cd ../..
    1.43  
    1.44 -cat > opera-$VERSION/receipt <<EOT
    1.45 +cat > $PACKAGE-$VERSION/receipt <<EOT
    1.46  PACKAGE="$PACKAGE"
    1.47  VERSION="$VERSION"
    1.48  CATEGORY="non-free"
    1.49 -SHORT_DESC="Opera Web browser."
    1.50 +SHORT_DESC="$SHORT_DESC"
    1.51 +MAINTAINER="$MAINTAINER"
    1.52  DEPENDS="libQtGui"
    1.53 -WEB_SITE="http://www.opera.com/"
    1.54 +WEB_SITE="$WEB_SITE"
    1.55  EOT
    1.56  
    1.57  # Remove unwanted locale
    1.58 -mv opera-$VERSION/fs/usr/share/opera/locale opera-$VERSION/fs/usr/share/opera/locale-full
    1.59 -mkdir -p opera-$VERSION/fs/usr/share/opera/locale 
    1.60 +mv $PACKAGE-$VERSION/fs/usr/share/opera/locale $PACKAGE-$VERSION/fs/usr/share/opera/locale-full
    1.61 +mkdir -p $PACKAGE-$VERSION/fs/usr/share/opera/locale 
    1.62  . /etc/locale.conf
    1.63  for i in $LANG ${LANG/_/-} ${LANG:0:2} fr pt de zh-cn ; do
    1.64 -	[ -d opera-$VERSION/fs/usr/share/opera/locale-full/$i ] &&
    1.65 -	cp -a opera-$VERSION/fs/usr/share/opera/locale-full/$i \
    1.66 -		opera-$VERSION/fs/usr/share/opera/locale
    1.67 +	[ -d $PACKAGE-$VERSION/fs/usr/share/opera/locale-full/$i ] &&
    1.68 +	cp -a $PACKAGE-$VERSION/fs/usr/share/opera/locale-full/$i \
    1.69 +		$PACKAGE-$VERSION/fs/usr/share/opera/locale
    1.70  done
    1.71 -rm -rf opera-$VERSION/fs/usr/share/opera/locale-full
    1.72 -rm -rf opera-$VERSION/fs/usr/share/pixmaps
    1.73 +rm -rf $PACKAGE-$VERSION/fs/usr/share/opera/locale-full
    1.74 +rm -rf $PACKAGE-$VERSION/fs/usr/share/pixmaps
    1.75  
    1.76  
    1.77  # Pack
    1.78 -tazpkg pack opera-$VERSION
    1.79 +tazpkg pack $PACKAGE-$VERSION
    1.80  
    1.81  # Clean to save RAM memory
    1.82 -rm -rf opera-$VERSION
    1.83 +rm -rf $PACKAGE-$VERSION
    1.84  
    1.85  # Install pseudo package
    1.86 -tazpkg install opera-$VERSION.tazpkg --root=$ROOT
    1.87 +tazpkg install $PACKAGE-$VERSION.tazpkg --root=$ROOT
    1.88  case " $@ " in
    1.89 -*\ --k*) mv opera-$VERSION.tazpkg $CUR_DIR ;;
    1.90 +*\ --k*) mv $PACKAGE-$VERSION.tazpkg $CUR_DIR ;;
    1.91  esac
    1.92  
    1.93  # Clean
     2.1 --- a/linux/stuff/linux-slitaz.config	Tue Sep 04 09:25:45 2012 +0200
     2.2 +++ b/linux/stuff/linux-slitaz.config	Tue Sep 04 11:11:15 2012 +0200
     2.3 @@ -1984,7 +1984,7 @@
     2.4  CONFIG_RT2400PCI=m
     2.5  CONFIG_RT2500PCI=m
     2.6  CONFIG_RT61PCI=m
     2.7 -# CONFIG_RT2800PCI is not set
     2.8 +CONFIG_RT2800PCI=m
     2.9  CONFIG_RT2500USB=m
    2.10  CONFIG_RT73USB=m
    2.11  CONFIG_RT2800USB=m
     3.1 --- a/linux/stuff/linux-slitaz.config64	Tue Sep 04 09:25:45 2012 +0200
     3.2 +++ b/linux/stuff/linux-slitaz.config64	Tue Sep 04 11:11:15 2012 +0200
     3.3 @@ -1858,7 +1858,7 @@
     3.4  CONFIG_RT2400PCI=m
     3.5  CONFIG_RT2500PCI=m
     3.6  CONFIG_RT61PCI=m
     3.7 -# CONFIG_RT2800PCI is not set
     3.8 +CONFIG_RT2800PCI=m
     3.9  CONFIG_RT2500USB=m
    3.10  CONFIG_RT73USB=m
    3.11  CONFIG_RT2800USB=m