diff options
author | Martin Blapp <mbr@FreeBSD.org> | 2003-09-17 04:06:28 +0000 |
---|---|---|
committer | Martin Blapp <mbr@FreeBSD.org> | 2003-09-17 04:06:28 +0000 |
commit | f95a4f2995b7b811c30555137a7899d62b5e5de1 (patch) | |
tree | 10d0b988fbe5a6d43377088b5376b1ef000cd4e3 /editors/openoffice-devel/files | |
parent | Add XFree86-4-Server-snap (diff) |
Make it easier for people, move a big chunk of the startup
wrapper out into a script included by soffice.sh. This way
there aren't any traps at first startup time and people
hopefully don't ask the same questions anymore.
At the same time, make more substitutions, also in oo_setup.resp.
Approved by: marcus (portsmgr)
Notes
Notes:
svn path=/head/; revision=89015
Diffstat (limited to 'editors/openoffice-devel/files')
4 files changed, 86 insertions, 61 deletions
diff --git a/editors/openoffice-devel/files/freebsd-local.sh b/editors/openoffice-devel/files/freebsd-local.sh new file mode 100644 index 000000000000..b2a0d769ee14 --- /dev/null +++ b/editors/openoffice-devel/files/freebsd-local.sh @@ -0,0 +1,73 @@ +#!/bin/sh +# +# $FreeBSD $ + +OOHOME="$HOME/OpenOffice.org%%FRELEASE_NR%%" + +save_common_xcu() { +sed 's/^X//' > $OOHOME/tmp/Common.xcu << 'END-of-Common.xcu' +X<?xml version="1.0" encoding="UTF-8"?> +X<oor:component-data xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" oor:name="Common" oor:package="org.openoffice.Office"> +X <node oor:name="Internal"> +X <prop oor:name="CurrentTempURL" oor:type="xs:string"> +X <value/> +X </prop> +X </node> +X <node oor:name="Misc"> +X <prop oor:name="FirstRun" oor:type="xs:boolean"> +X <value>true</value> +X </prop> +X </node> +X <node oor:name="ExternalApps"> +X <prop oor:name="file" oor:type="xs:string"> +X <value/> +X </prop> +X <prop oor:name="ftp" oor:type="xs:string"> +X <value/> +X </prop> +X <prop oor:name="http" oor:type="xs:string"> +X <value>%%mozilla%%</value> +X </prop> +X <prop oor:name="https" oor:type="xs:string"> +X <value/> +X </prop> +X <prop oor:name="mailto" oor:type="xs:string"> +X <value/> +X </prop> +X </node> +X</oor:component-data> +END-of-Common.xcu +mozilla=`which mozilla`; +if [ $? -eq 0 ]; then + sed -i orig -e 's#%%mozilla%%#'$mozilla'#g' $OOHOME/tmp/Common.xcu +fi +mozilla=`which linux-mozilla`; +if [ $? -eq 0 ]; then + sed -i orig -e 's#%%mozilla%%#'$mozilla'#g' $OOHOME/tmp/Common.xcu +fi +mv $OOHOME/tmp/Common.xcu $OOHOME/user/registry/data/org/openoffice/Office +} + +# +# Set default lang to en_US.ISO8859-15 +# +if [ ! $LANG ]; then + export LANG=en_US.ISO8859-15 +fi + +# +# Create soffice.cfg if it does not exist. +# +if [ -e $OOHOME/setup ]; then + if [ ! -e $OOHOME/user/config/soffice.cfg ]; then + touch $OOHOME/user/config/soffice.cfg + fi +fi + +# +# Detect installed mozilla +# +if [ ! -e $OOHOME/user/registry/data/org/openoffice/Office/Common.xcu ]; then + mkdir -p $OOHOME/tmp; + save_common_xcu; +fi diff --git a/editors/openoffice-devel/files/oo_setup.resp b/editors/openoffice-devel/files/oo_setup.resp index 9218fb9522a6..a85c68b65d8a 100644 --- a/editors/openoffice-devel/files/oo_setup.resp +++ b/editors/openoffice-devel/files/oo_setup.resp @@ -1,7 +1,7 @@ [Environment] InstallationMode = INSTALL_NETWORK InstallationType = STANDARD -DestinationPath = %%PREFIX%%/OpenOffice.org1.1.0 +DestinationPath = %%PREFIX%%/OpenOffice.org%%FRELEASE_NR%% [Java] JavaSupport = preinstalled_or_none diff --git a/editors/openoffice-devel/files/openoffice-wrapper b/editors/openoffice-devel/files/openoffice-wrapper index ebc4844b9512..55317eb0e340 100644 --- a/editors/openoffice-devel/files/openoffice-wrapper +++ b/editors/openoffice-devel/files/openoffice-wrapper @@ -1,69 +1,10 @@ #!/bin/sh # -# $FreeBSD: /tmp/pcvs/ports/editors/openoffice-devel/files/Attic/openoffice-wrapper,v 1.10 2003-09-16 06:50:17 mbr Exp $ +# $FreeBSD: /tmp/pcvs/ports/editors/openoffice-devel/files/Attic/openoffice-wrapper,v 1.11 2003-09-17 04:06:28 mbr Exp $ oopath=%%PREFIX%%/OpenOffice.org%%FRELEASE_NR%%/program/ program=`echo $0 | sed -e 's|.*-%%RELEASE_NR%%-||'` -if [ ! $LANG ]; then - export LANG=%%LANG%% -fi - -save_common_xcu() { -sed 's/^X//' > tmp/Common.xcu << 'END-of-Common.xcu' -X<?xml version="1.0" encoding="UTF-8"?> -X<oor:component-data xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" oor:name="Common" oor:package="org.openoffice.Office"> -X <node oor:name="Internal"> -X <prop oor:name="CurrentTempURL" oor:type="xs:string"> -X <value/> -X </prop> -X </node> -X <node oor:name="Misc"> -X <prop oor:name="FirstRun" oor:type="xs:boolean"> -X <value>true</value> -X </prop> -X </node> -X <node oor:name="ExternalApps"> -X <prop oor:name="file" oor:type="xs:string"> -X <value/> -X </prop> -X <prop oor:name="ftp" oor:type="xs:string"> -X <value/> -X </prop> -X <prop oor:name="http" oor:type="xs:string"> -X <value>%%mozilla%%</value> -X </prop> -X <prop oor:name="https" oor:type="xs:string"> -X <value/> -X </prop> -X <prop oor:name="mailto" oor:type="xs:string"> -X <value/> -X </prop> -X </node> -X</oor:component-data> -END-of-Common.xcu -mozilla=`which mozilla`; -if [ $? -eq 0 ]; then - sed -i orig -e 's#%%mozilla%%#'$mozilla'#g' tmp/Common.xcu -fi -mozilla=`which linux-mozilla`; -if [ $? -eq 0 ]; then - sed -i orig -e 's#%%mozilla%%#'$mozilla'#g' tmp/Common.xcu -fi -mv tmp/Common.xcu user/registry/data/org/openoffice/Office -} - -if [ -e $HOME/OpenOffice.org%%FRELEASE_NR%%/setup ]; then - cd $HOME/OpenOffice.org%%FRELEASE_NR%% - if [ ! -e $HOME/OpenOffice.org%%FRELEASE_NR%%/user/config/soffice.cfg ]; then - touch $HOME/OpenOffice.org%%FRELEASE_NR%%/user/config/soffice.cfg - fi - if [ ! -e user/registry/data/org/openoffice/Office/Common.xcu ]; then - mkdir -p tmp; - save_common_xcu; - fi -fi - case $program in $0) cd $oopath && ./soffice "$@" diff --git a/editors/openoffice-devel/files/patch-desktop+scripts+soffice.sh b/editors/openoffice-devel/files/patch-desktop+scripts+soffice.sh new file mode 100644 index 000000000000..ad1235c24e01 --- /dev/null +++ b/editors/openoffice-devel/files/patch-desktop+scripts+soffice.sh @@ -0,0 +1,11 @@ +--- ../desktop/scripts/soffice.sh.orig Wed Sep 17 05:21:54 2003 ++++ ../desktop/scripts/soffice.sh Wed Sep 17 05:24:59 2003 +@@ -233,6 +233,8 @@ + PATH="$sd_prog":$PATH + export PATH + ++. $sd_prog/freebsd-local.sh ++ + # execute soffice binary + exec "$sd_prog/$sd_binary" "$@" + |