Si comme moi vous êtes lassé de tirer des liens vers les plugins à
chaque installation de firefox, ajout de plugin, mozplugins moyennant un
ou 2 changement de variable vous facilitera la vie.
Testé sous Solaris X86 et à lancer sous root.
#!/bin/ksh
#
# mozplugins : Déclaration des plugins pour Mozilla Sun Solaris 10 et
# Mozilla et Firefox sous Solaris 8, 9, 10.
# Exemples d'utilisation :
# Pour Solaris 10 lancer : mozplugins
# Pour Mozilla de mozilla.org : mozplugins /usr/local/mozilla
# Pour Firefox de mozilla.org : mozplugins /usr/local/firefox
# Christian Pélissier 04/10/05
export PATH=/usr/bin
# Selon l'emplacement des plugins
#LOCAL=/opt/local
LOCAL=/usr/local
#
# Emplacement des plugins
#
### Java
#JAVA=/usr/j2se/jre/plugin
JAVA=/usr/java/jre/plugin
if [[ $JAVA == /usr/java/jre/plugin ]]
then
NS=ns7
else
NS=ns610
fi
# Macromedia Flash
FLASH=$LOCAL/flashplayer7
### Adobe Reader
if [[ "$(uname -p)" == sparc ]]
then
if [[ -d $LOCAL/Acrobat7 ]]
then
ADOBR=$LOCAL/Acrobat7/Browsers/sparcsolaris
else
ADOBR=$LOCAL/Acrobat5/Browsers/sparcsolaris
fi
else
ADOBR=$LOCAL/Acrobat4/Browsers/intelsolaris
fi
### RealPlayer ou HelixPlayer 10
#REALPLAY=$LOCAL/HelixPlayer/mozilla
REALPLAY=$LOCAL/RealPlayer/mozilla
### StarOffice 8 ou OpenOffice 2
#SOFFICE=/opt/openoffice2/program/
SOFFICE=/opt/staroffice8/program/
###
if [[ "$1" == "" ]]
then
MOZHOME=/usr/sfw/lib/mozilla
else
MOZHOME=$1
fi
if [[ ! -d $MOZHOME || ! -d $MOZHOME/plugins ]]
then
print -- "Can't find $MOZHOME or $MOZHOME/plugins directory"
fi
if cd $MOZHOME/plugins
then
# JAVA
if [[ -f $JAVA/$(uname -p)/$NS/libjavaplugin_oji.so ]]
then
if [[ -f libjavaplugin_oji.so ]]
then
print "Java plugin already declared"
else
ln -s $JAVA/$(uname -p)/$NS/libjavaplugin_oji.so
libjavaplugin_oji.so
fi
fi
# FLASH
if [[ -f $FLASH/libflashplayer.so ]]
then
if [[ -f libflashplayer.so ]]
then
print "Flash plugin already delared"
else
ln -s $FLASH/libflashplayer.so libflashplayer.so
ln -s $FLASH/flashplayer.xpt flashplayer.xpt
fi
fi
# ADOBE READER
if [[ -f $ADOBR/nppdf.so ]]
then
if [[ -f nppdf.so ]]
then
print "Adobe reader plugin already delared"
else
ln -s $ADOBR/nppdf.so nppdf.so
fi
fi
# REALPLAYER
if [[ -f $REALPLAY/nphelix.so ]]
then
if [[ -f nphelix.so && -f nphelix.xpt ]]
then
print "Realplayer plugin already delared"
else
ln -s $REALPLAY/nphelix.so nphelix.so
ln -s $REALPLAY/nphelix.xpt nphelix.xpt
fi
fi
# STAROFFICE
if [[ -f $SOFFICE/libnpsoplugin.so ]]
then
if [[ -f libnpsoplugin.so ]]
then
print "StarOpenOffice plugin already delared"
else
ln -s $SOFFICE/libnpsoplugin.so libnpsoplugin.so
fi
fi
fi
--
Christian Pélissier
Office National d'Études et de Recherches Aérospatiales
BP 72 92322 Chatillon
Tel: 33 1 46 73 44 19, Fax: 33 1 46 73 41 50
_______________________________________________
Solaris_fr liste de diffusion en français pour Solaris, sur toutes architectures
[email protected]
http://x86.sun.com/mailman/listinfo/solaris_fr