[OpenIndiana-discuss] Firefox 27 Openindiana is available/HTML5 Score/script to update
cpforum
cpforum at orange.fr
Thu Feb 13 18:27:36 UTC 2014
New firefox 24.3.0esr and 27.0 are available on Mozilla.
26 and 27 release have the same HTML5 score (score=399) on the HTML5
conformance test site. Strange the Solaris10 Firefox 26/27 score is 401/403) :
http://html5test.com/
This site is very interesting to compare browser or same browser release against
the OS. To see the recent test logged : click OtherBrowser then Latest.
Score Browser When
503 Chrome 32 on Mac OS X 10.8.5 4 seconds ago
399 Firefox 27.0 on Solaris 6 seconds ago <<<<
442 Firefox 26.0 on Ubuntu 9 seconds ago
501 Chrome 32 on Windows XP 9 seconds ago
448 Firefox 27.0 on Windows 7 23 seconds ago
163 Firefox 12.0 on Windows 8 27 seconds ago
292 a Kyocera Event running Android 4.0.4 29 seconds ago
333 Viera 3.1.8 on a Panasonic Smart Viera 1 minute ago
503 Chrome 32 on Windows 7 1 minute ago
503 Chrome 32 on Windows 8.1 1 minute ago
503 Chrome 32 on Windows 8.1 1 minute ago
496 Lbbrowser on Windows 7 2 minutes ago
492 Opera 19.0 on Windows 7 2 minutes ago
446 Firefox 26.0 on Windows 7 2 minutes ago
446 Firefox 25.0 on Windows 7 2 minutes ago
369 Internet Explorer 11.0 on Windows 7 2 minutes ago
43 Internet Explorer 8.0 on Windows XP 2 minutes ago
444 Firefox 27.0 on Windows 7 2 minutes ago
369 Internet Explorer 11.0 on Windows 7 2 minutes ago
474 Opera 19.0 on Windows 8.1 2 minutes ago
448 Firefox 27.0 on Mac OS X 10.9 2 minutes ago
...
If you want an half/automatic Firefox update cut the shell upfirefox at the end of this mail :
If you prefer esr channel just use ./upfirefox esr else here is a demo with release channel.
# ./upfirefox
Updating Firefox to latest release 27.0
firefox-27.0.en-US.opensolaris-i386-pkg.bz2 computed MD5 match reference
Can't load locale http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/latest/linux-i686/xpi/.xpi/
The following package is currently installed:
SFWfirefox Mozilla Firefox Web browser
(i386) 26.0,REV=110.0.4.2013.12.06.20.05
Do you want to remove this package? [y,n,?,q] y
## Removing installed package instance
...
Removal of was successful.
The following packages are available:
1 SFWfirefox Mozilla Firefox Web browser
(i386) 27.0,REV=110.0.4.2014.02.11.19.35
Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]:
Processing package instance from
....
verifying class ]
Installation of was successful.
Firefox successuly installed
Now from firefox update locale by loading /tmp/.xpi
If firefox is already updated :
# ./upfirefox
Last Firefox 27.0 release already installed
===== upfirefox
#!/bin/ksh
#
# Download and Update Firefox by CP
#
export PATH=/usr/sbin:/usr/bin:/usr/sfw/bin:/usr/local/bin:/opt/sfw/bin
# Base URL
STABLE="latest"
if [[ "$1" == "esr" ]]
then
STABLE="latest-esr"
fi
UNIX="http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/$STABLE"
#http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/latest/contrib/solaris_pkgadd/
# Solaris Package
FFOX="$UNIX/contrib/solaris_pkgadd/"
# Get first 2 letters of current locale
LC=${LC_MESSAGES%_*}.xpi
# Get Linux locale extension
FXPI="$UNIX/linux-i686/xpi/$LC/"
# Debug 1 to debug
DEBUG=0
# Get OS release
OSR="$(uname -r)"
case $OSR in
5.10)
ID="solaris-10-fcs"
;;
5.11)
ID="opensolaris"
;;
esac
# Get i386 or Sparc
ARCH="$(uname -p)"
cd /tmp
# Get Firefox Current Release index
if ! curl --list-only --silent $FFOX > index
then
print "Can't list $FFOX"
exit 1
fi
MD5F=$( grep "firefox-.*$ID-$ARCH-pkg.bz2.md5sum" index | sed -e 's/.* href="//' -e 's/">.*//' )
PKGF="${MD5F%.md5sum}"
FFR=$(print $MD5F | sed -e 's/firefox-//' -e 's/.en-US.*//')
DEBUG=no
if [[ "$DEBUG" == "yes" ]]
then
print $FFOX
cat index
print
rm index
print $FFR
print $MD5F
print $PKGF
fi
if [[ -x /opt/sfw/bin/firefox ]]
then
# Mozilla Firefox X.Y.Z, Copyright (c) 1998 - 2009 mozilla.org
if /opt/sfw/bin/firefox -v | grep "Firefox $FFR" > /dev/null
then
print "Last Firefox $FFR release already installed"
exit
fi
fi
print "Updating Firefox to latest release $FFR"
if [[ "$DEBUG" == "yes" ]]
then
print "OSRelease=$OSR"
print "ARCH=$ARCH"
print "Firefox Release=$FFR"
print "MD5 Firefox Package File=$MD5F"
print "Firefox Package File=$PKGF"
print "Firefox base URL=$FFOX"
print "Firefox locale XPI=$FXPI"
exit
fi
# Get Package
# curl --ftp-pasv --progress-meter --url $FFOX/$PKGF --output-file $PKGF
if ! wget -q $FFOX/$PKGF
then
print "Can't load $FFOX/$PKGF"
exit 1
fi
md5c="$(digest -a md5 $PKGF)"
# Get MD5
# curl --ftp-pasv --progress-meter --url $FFOX/$MD5F --output-file $MD5F
if ! wget -q $FFOX/$MD5F
then
print "Can't load $FFOX/$MD5F"
exit 1
fi
# Compare MD5
cat $MD5F | read md5r pkg
if [[ "$md5c" != "$md5r" ]]
then
print "$PKGF computed MD5 is corrupted : update failure."
exit
else
print "$PKGF computed MD5 match reference"
rm $MD5F
fi
# Get .xpi localisation extension
if ! wget -q $FXPI
then
print "Can't load locale $FXPI"
fi
# Install
if cp /dev/null /firefox
then
rm /firefox
else
print "Install needs privileges. Please su - root and install from /tmp"
exit
fi
if bunzip2 $PKGF
then
pkgrm SFWfirefox
if pkgadd -d ${PKGF%.bz2}
then
rm ${PKGF%.bz2}
print "Firefox successuly installed"
print "Now from firefox update locale by loading /tmp/$LC"
else
print "Firefox installation failure"
fi
else
print "bunzip2 failure"
fi
===== end upfirefox
Everyone who know how to do is free to package this script into the SFE repository.
More information about the OpenIndiana-discuss
mailing list