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)
This commit is contained in:
parent
d22c136912
commit
f95a4f2995
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=89015
85 changed files with 1733 additions and 1206 deletions
|
@ -499,10 +499,10 @@ do-build:
|
|||
|
||||
pre-install:
|
||||
@${CP} ${FILESDIR}/oo_setup.resp \
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/
|
||||
@${SED} -i orig -e 's#%%PREFIX%%#${PREFIX}#g' \
|
||||
-e 's#%%PORTVERSION%%#${BUILD_NR}#g' \
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/oo_setup.resp
|
||||
-e 's#%%FRELEASE_NR%%#${FRELEASE_NR}#g' \
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/oo_setup.resp
|
||||
@${MKDIR} -p ${WRKSRC}/../solver/${BUILD_NR}/unxfbsd.pro/bin/${LANG_EXT}/osl/
|
||||
|
||||
do-install:
|
||||
|
@ -529,13 +529,19 @@ install-user:
|
|||
|
||||
post-install:
|
||||
@${ECHO_MSG} "===> Add wrapper scripts";
|
||||
@${CP} ${FILESDIR}/openoffice-wrapper ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%PREFIX%%#${PREFIX}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%LANG%%#${USE_LANG}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%BUILD_NR%%#${BUILD_NR}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%RELEASE_NR%%#${RELEASE_NR}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%FRELEASE_NR%%#${FRELEASE_NR}#g' ${WRKDIR}/openoffice
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/openoffice ${PREFIX}/bin/openoffice-${RELEASE_NR}
|
||||
@${CP} ${FILESDIR}/openoffice-wrapper ${WRKDIR}/
|
||||
@${CP} ${FILESDIR}/freebsd-local.sh ${WRKDIR}/
|
||||
@${SED} -i orig -e 's#%%PREFIX%%#${PREFIX}#g' \
|
||||
-e 's#%%LANG%%#${USE_LANG}#g' \
|
||||
-e 's#%%BUILD_NR%%#${BUILD_NR}#g' \
|
||||
-e 's#%%RELEASE_NR%%#${RELEASE_NR}#g' \
|
||||
-e 's#%%FRELEASE_NR%%#${FRELEASE_NR}#g' \
|
||||
${WRKDIR}/openoffice \
|
||||
${WRKDIR}/freebsd-local.sh
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/openoffice \
|
||||
${PREFIX}/bin/openoffice-${RELEASE_NR}
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/freebsd-local.sh \
|
||||
${PREFIX}/${INSTALLATION_BASEDIR}/freebsd-local.sh
|
||||
@${LN} -fs ${PREFIX}/bin/openoffice-${RELEASE_NR} ${PREFIX}/bin/openoffice-${RELEASE_NR}-sagenda
|
||||
@${LN} -fs ${PREFIX}/bin/openoffice-${RELEASE_NR} ${PREFIX}/bin/openoffice-${RELEASE_NR}-scalc
|
||||
@${LN} -fs ${PREFIX}/bin/openoffice-${RELEASE_NR} ${PREFIX}/bin/openoffice-${RELEASE_NR}-sdraw
|
||||
|
|
73
editors/openoffice-1.1-devel/files/freebsd-local.sh
Normal file
73
editors/openoffice-1.1-devel/files/freebsd-local.sh
Normal file
|
@ -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
|
|
@ -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
|
||||
|
|
|
@ -1,69 +1,10 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD: /tmp/pcvs/ports/editors/openoffice-1.1-devel/files/Attic/openoffice-wrapper,v 1.10 2003-09-16 06:50:17 mbr Exp $
|
||||
# $FreeBSD: /tmp/pcvs/ports/editors/openoffice-1.1-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 "$@"
|
||||
|
|
|
@ -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" "$@"
|
||||
|
|
@ -499,10 +499,10 @@ do-build:
|
|||
|
||||
pre-install:
|
||||
@${CP} ${FILESDIR}/oo_setup.resp \
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/
|
||||
@${SED} -i orig -e 's#%%PREFIX%%#${PREFIX}#g' \
|
||||
-e 's#%%PORTVERSION%%#${BUILD_NR}#g' \
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/oo_setup.resp
|
||||
-e 's#%%FRELEASE_NR%%#${FRELEASE_NR}#g' \
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/oo_setup.resp
|
||||
@${MKDIR} -p ${WRKSRC}/../solver/${BUILD_NR}/unxfbsd.pro/bin/${LANG_EXT}/osl/
|
||||
|
||||
do-install:
|
||||
|
@ -529,13 +529,19 @@ install-user:
|
|||
|
||||
post-install:
|
||||
@${ECHO_MSG} "===> Add wrapper scripts";
|
||||
@${CP} ${FILESDIR}/openoffice-wrapper ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%PREFIX%%#${PREFIX}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%LANG%%#${USE_LANG}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%BUILD_NR%%#${BUILD_NR}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%RELEASE_NR%%#${RELEASE_NR}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%FRELEASE_NR%%#${FRELEASE_NR}#g' ${WRKDIR}/openoffice
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/openoffice ${PREFIX}/bin/openoffice-${RELEASE_NR}
|
||||
@${CP} ${FILESDIR}/openoffice-wrapper ${WRKDIR}/
|
||||
@${CP} ${FILESDIR}/freebsd-local.sh ${WRKDIR}/
|
||||
@${SED} -i orig -e 's#%%PREFIX%%#${PREFIX}#g' \
|
||||
-e 's#%%LANG%%#${USE_LANG}#g' \
|
||||
-e 's#%%BUILD_NR%%#${BUILD_NR}#g' \
|
||||
-e 's#%%RELEASE_NR%%#${RELEASE_NR}#g' \
|
||||
-e 's#%%FRELEASE_NR%%#${FRELEASE_NR}#g' \
|
||||
${WRKDIR}/openoffice \
|
||||
${WRKDIR}/freebsd-local.sh
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/openoffice \
|
||||
${PREFIX}/bin/openoffice-${RELEASE_NR}
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/freebsd-local.sh \
|
||||
${PREFIX}/${INSTALLATION_BASEDIR}/freebsd-local.sh
|
||||
@${LN} -fs ${PREFIX}/bin/openoffice-${RELEASE_NR} ${PREFIX}/bin/openoffice-${RELEASE_NR}-sagenda
|
||||
@${LN} -fs ${PREFIX}/bin/openoffice-${RELEASE_NR} ${PREFIX}/bin/openoffice-${RELEASE_NR}-scalc
|
||||
@${LN} -fs ${PREFIX}/bin/openoffice-${RELEASE_NR} ${PREFIX}/bin/openoffice-${RELEASE_NR}-sdraw
|
||||
|
|
73
editors/openoffice-1.1/files/freebsd-local.sh
Normal file
73
editors/openoffice-1.1/files/freebsd-local.sh
Normal file
|
@ -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
|
|
@ -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
|
||||
|
|
|
@ -1,69 +1,10 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD: /tmp/pcvs/ports/editors/openoffice-1.1/files/Attic/openoffice-wrapper,v 1.10 2003-09-16 06:50:17 mbr Exp $
|
||||
# $FreeBSD: /tmp/pcvs/ports/editors/openoffice-1.1/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 "$@"
|
||||
|
|
|
@ -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" "$@"
|
||||
|
|
@ -499,10 +499,10 @@ do-build:
|
|||
|
||||
pre-install:
|
||||
@${CP} ${FILESDIR}/oo_setup.resp \
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/
|
||||
@${SED} -i orig -e 's#%%PREFIX%%#${PREFIX}#g' \
|
||||
-e 's#%%PORTVERSION%%#${BUILD_NR}#g' \
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/oo_setup.resp
|
||||
-e 's#%%FRELEASE_NR%%#${FRELEASE_NR}#g' \
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/oo_setup.resp
|
||||
@${MKDIR} -p ${WRKSRC}/../solver/${BUILD_NR}/unxfbsd.pro/bin/${LANG_EXT}/osl/
|
||||
|
||||
do-install:
|
||||
|
@ -529,13 +529,19 @@ install-user:
|
|||
|
||||
post-install:
|
||||
@${ECHO_MSG} "===> Add wrapper scripts";
|
||||
@${CP} ${FILESDIR}/openoffice-wrapper ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%PREFIX%%#${PREFIX}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%LANG%%#${USE_LANG}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%BUILD_NR%%#${BUILD_NR}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%RELEASE_NR%%#${RELEASE_NR}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%FRELEASE_NR%%#${FRELEASE_NR}#g' ${WRKDIR}/openoffice
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/openoffice ${PREFIX}/bin/openoffice-${RELEASE_NR}
|
||||
@${CP} ${FILESDIR}/openoffice-wrapper ${WRKDIR}/
|
||||
@${CP} ${FILESDIR}/freebsd-local.sh ${WRKDIR}/
|
||||
@${SED} -i orig -e 's#%%PREFIX%%#${PREFIX}#g' \
|
||||
-e 's#%%LANG%%#${USE_LANG}#g' \
|
||||
-e 's#%%BUILD_NR%%#${BUILD_NR}#g' \
|
||||
-e 's#%%RELEASE_NR%%#${RELEASE_NR}#g' \
|
||||
-e 's#%%FRELEASE_NR%%#${FRELEASE_NR}#g' \
|
||||
${WRKDIR}/openoffice \
|
||||
${WRKDIR}/freebsd-local.sh
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/openoffice \
|
||||
${PREFIX}/bin/openoffice-${RELEASE_NR}
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/freebsd-local.sh \
|
||||
${PREFIX}/${INSTALLATION_BASEDIR}/freebsd-local.sh
|
||||
@${LN} -fs ${PREFIX}/bin/openoffice-${RELEASE_NR} ${PREFIX}/bin/openoffice-${RELEASE_NR}-sagenda
|
||||
@${LN} -fs ${PREFIX}/bin/openoffice-${RELEASE_NR} ${PREFIX}/bin/openoffice-${RELEASE_NR}-scalc
|
||||
@${LN} -fs ${PREFIX}/bin/openoffice-${RELEASE_NR} ${PREFIX}/bin/openoffice-${RELEASE_NR}-sdraw
|
||||
|
|
73
editors/openoffice-2.0-devel/files/freebsd-local.sh
Normal file
73
editors/openoffice-2.0-devel/files/freebsd-local.sh
Normal file
|
@ -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
|
|
@ -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
|
||||
|
|
|
@ -1,69 +1,10 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD: /tmp/pcvs/ports/editors/openoffice-2.0-devel/files/Attic/openoffice-wrapper,v 1.10 2003-09-16 06:50:17 mbr Exp $
|
||||
# $FreeBSD: /tmp/pcvs/ports/editors/openoffice-2.0-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 "$@"
|
||||
|
|
|
@ -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" "$@"
|
||||
|
|
@ -499,10 +499,10 @@ do-build:
|
|||
|
||||
pre-install:
|
||||
@${CP} ${FILESDIR}/oo_setup.resp \
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/
|
||||
@${SED} -i orig -e 's#%%PREFIX%%#${PREFIX}#g' \
|
||||
-e 's#%%PORTVERSION%%#${BUILD_NR}#g' \
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/oo_setup.resp
|
||||
-e 's#%%FRELEASE_NR%%#${FRELEASE_NR}#g' \
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/oo_setup.resp
|
||||
@${MKDIR} -p ${WRKSRC}/../solver/${BUILD_NR}/unxfbsd.pro/bin/${LANG_EXT}/osl/
|
||||
|
||||
do-install:
|
||||
|
@ -529,13 +529,19 @@ install-user:
|
|||
|
||||
post-install:
|
||||
@${ECHO_MSG} "===> Add wrapper scripts";
|
||||
@${CP} ${FILESDIR}/openoffice-wrapper ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%PREFIX%%#${PREFIX}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%LANG%%#${USE_LANG}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%BUILD_NR%%#${BUILD_NR}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%RELEASE_NR%%#${RELEASE_NR}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%FRELEASE_NR%%#${FRELEASE_NR}#g' ${WRKDIR}/openoffice
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/openoffice ${PREFIX}/bin/openoffice-${RELEASE_NR}
|
||||
@${CP} ${FILESDIR}/openoffice-wrapper ${WRKDIR}/
|
||||
@${CP} ${FILESDIR}/freebsd-local.sh ${WRKDIR}/
|
||||
@${SED} -i orig -e 's#%%PREFIX%%#${PREFIX}#g' \
|
||||
-e 's#%%LANG%%#${USE_LANG}#g' \
|
||||
-e 's#%%BUILD_NR%%#${BUILD_NR}#g' \
|
||||
-e 's#%%RELEASE_NR%%#${RELEASE_NR}#g' \
|
||||
-e 's#%%FRELEASE_NR%%#${FRELEASE_NR}#g' \
|
||||
${WRKDIR}/openoffice \
|
||||
${WRKDIR}/freebsd-local.sh
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/openoffice \
|
||||
${PREFIX}/bin/openoffice-${RELEASE_NR}
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/freebsd-local.sh \
|
||||
${PREFIX}/${INSTALLATION_BASEDIR}/freebsd-local.sh
|
||||
@${LN} -fs ${PREFIX}/bin/openoffice-${RELEASE_NR} ${PREFIX}/bin/openoffice-${RELEASE_NR}-sagenda
|
||||
@${LN} -fs ${PREFIX}/bin/openoffice-${RELEASE_NR} ${PREFIX}/bin/openoffice-${RELEASE_NR}-scalc
|
||||
@${LN} -fs ${PREFIX}/bin/openoffice-${RELEASE_NR} ${PREFIX}/bin/openoffice-${RELEASE_NR}-sdraw
|
||||
|
|
73
editors/openoffice-3-devel/files/freebsd-local.sh
Normal file
73
editors/openoffice-3-devel/files/freebsd-local.sh
Normal file
|
@ -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
|
|
@ -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
|
||||
|
|
|
@ -5,65 +5,6 @@
|
|||
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 "$@"
|
||||
|
|
|
@ -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" "$@"
|
||||
|
|
@ -499,10 +499,10 @@ do-build:
|
|||
|
||||
pre-install:
|
||||
@${CP} ${FILESDIR}/oo_setup.resp \
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/
|
||||
@${SED} -i orig -e 's#%%PREFIX%%#${PREFIX}#g' \
|
||||
-e 's#%%PORTVERSION%%#${BUILD_NR}#g' \
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/oo_setup.resp
|
||||
-e 's#%%FRELEASE_NR%%#${FRELEASE_NR}#g' \
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/oo_setup.resp
|
||||
@${MKDIR} -p ${WRKSRC}/../solver/${BUILD_NR}/unxfbsd.pro/bin/${LANG_EXT}/osl/
|
||||
|
||||
do-install:
|
||||
|
@ -529,13 +529,19 @@ install-user:
|
|||
|
||||
post-install:
|
||||
@${ECHO_MSG} "===> Add wrapper scripts";
|
||||
@${CP} ${FILESDIR}/openoffice-wrapper ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%PREFIX%%#${PREFIX}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%LANG%%#${USE_LANG}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%BUILD_NR%%#${BUILD_NR}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%RELEASE_NR%%#${RELEASE_NR}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%FRELEASE_NR%%#${FRELEASE_NR}#g' ${WRKDIR}/openoffice
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/openoffice ${PREFIX}/bin/openoffice-${RELEASE_NR}
|
||||
@${CP} ${FILESDIR}/openoffice-wrapper ${WRKDIR}/
|
||||
@${CP} ${FILESDIR}/freebsd-local.sh ${WRKDIR}/
|
||||
@${SED} -i orig -e 's#%%PREFIX%%#${PREFIX}#g' \
|
||||
-e 's#%%LANG%%#${USE_LANG}#g' \
|
||||
-e 's#%%BUILD_NR%%#${BUILD_NR}#g' \
|
||||
-e 's#%%RELEASE_NR%%#${RELEASE_NR}#g' \
|
||||
-e 's#%%FRELEASE_NR%%#${FRELEASE_NR}#g' \
|
||||
${WRKDIR}/openoffice \
|
||||
${WRKDIR}/freebsd-local.sh
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/openoffice \
|
||||
${PREFIX}/bin/openoffice-${RELEASE_NR}
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/freebsd-local.sh \
|
||||
${PREFIX}/${INSTALLATION_BASEDIR}/freebsd-local.sh
|
||||
@${LN} -fs ${PREFIX}/bin/openoffice-${RELEASE_NR} ${PREFIX}/bin/openoffice-${RELEASE_NR}-sagenda
|
||||
@${LN} -fs ${PREFIX}/bin/openoffice-${RELEASE_NR} ${PREFIX}/bin/openoffice-${RELEASE_NR}-scalc
|
||||
@${LN} -fs ${PREFIX}/bin/openoffice-${RELEASE_NR} ${PREFIX}/bin/openoffice-${RELEASE_NR}-sdraw
|
||||
|
|
73
editors/openoffice-3/files/freebsd-local.sh
Normal file
73
editors/openoffice-3/files/freebsd-local.sh
Normal file
|
@ -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
|
|
@ -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
|
||||
|
|
|
@ -1,69 +1,10 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD: /tmp/pcvs/ports/editors/openoffice-3/files/openoffice-wrapper,v 1.10 2003-09-16 06:50:17 mbr Exp $
|
||||
# $FreeBSD: /tmp/pcvs/ports/editors/openoffice-3/files/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 "$@"
|
||||
|
|
11
editors/openoffice-3/files/patch-desktop+scripts+soffice.sh
Normal file
11
editors/openoffice-3/files/patch-desktop+scripts+soffice.sh
Normal file
|
@ -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" "$@"
|
||||
|
|
@ -499,10 +499,10 @@ do-build:
|
|||
|
||||
pre-install:
|
||||
@${CP} ${FILESDIR}/oo_setup.resp \
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/
|
||||
@${SED} -i orig -e 's#%%PREFIX%%#${PREFIX}#g' \
|
||||
-e 's#%%PORTVERSION%%#${BUILD_NR}#g' \
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/oo_setup.resp
|
||||
-e 's#%%FRELEASE_NR%%#${FRELEASE_NR}#g' \
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/oo_setup.resp
|
||||
@${MKDIR} -p ${WRKSRC}/../solver/${BUILD_NR}/unxfbsd.pro/bin/${LANG_EXT}/osl/
|
||||
|
||||
do-install:
|
||||
|
@ -529,13 +529,19 @@ install-user:
|
|||
|
||||
post-install:
|
||||
@${ECHO_MSG} "===> Add wrapper scripts";
|
||||
@${CP} ${FILESDIR}/openoffice-wrapper ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%PREFIX%%#${PREFIX}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%LANG%%#${USE_LANG}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%BUILD_NR%%#${BUILD_NR}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%RELEASE_NR%%#${RELEASE_NR}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%FRELEASE_NR%%#${FRELEASE_NR}#g' ${WRKDIR}/openoffice
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/openoffice ${PREFIX}/bin/openoffice-${RELEASE_NR}
|
||||
@${CP} ${FILESDIR}/openoffice-wrapper ${WRKDIR}/
|
||||
@${CP} ${FILESDIR}/freebsd-local.sh ${WRKDIR}/
|
||||
@${SED} -i orig -e 's#%%PREFIX%%#${PREFIX}#g' \
|
||||
-e 's#%%LANG%%#${USE_LANG}#g' \
|
||||
-e 's#%%BUILD_NR%%#${BUILD_NR}#g' \
|
||||
-e 's#%%RELEASE_NR%%#${RELEASE_NR}#g' \
|
||||
-e 's#%%FRELEASE_NR%%#${FRELEASE_NR}#g' \
|
||||
${WRKDIR}/openoffice \
|
||||
${WRKDIR}/freebsd-local.sh
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/openoffice \
|
||||
${PREFIX}/bin/openoffice-${RELEASE_NR}
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/freebsd-local.sh \
|
||||
${PREFIX}/${INSTALLATION_BASEDIR}/freebsd-local.sh
|
||||
@${LN} -fs ${PREFIX}/bin/openoffice-${RELEASE_NR} ${PREFIX}/bin/openoffice-${RELEASE_NR}-sagenda
|
||||
@${LN} -fs ${PREFIX}/bin/openoffice-${RELEASE_NR} ${PREFIX}/bin/openoffice-${RELEASE_NR}-scalc
|
||||
@${LN} -fs ${PREFIX}/bin/openoffice-${RELEASE_NR} ${PREFIX}/bin/openoffice-${RELEASE_NR}-sdraw
|
||||
|
|
73
editors/openoffice-devel/files/freebsd-local.sh
Normal file
73
editors/openoffice-devel/files/freebsd-local.sh
Normal file
|
@ -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
|
|
@ -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
|
||||
|
|
|
@ -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 "$@"
|
||||
|
|
|
@ -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" "$@"
|
||||
|
|
@ -499,10 +499,10 @@ do-build:
|
|||
|
||||
pre-install:
|
||||
@${CP} ${FILESDIR}/oo_setup.resp \
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/
|
||||
@${SED} -i orig -e 's#%%PREFIX%%#${PREFIX}#g' \
|
||||
-e 's#%%PORTVERSION%%#${BUILD_NR}#g' \
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/oo_setup.resp
|
||||
-e 's#%%FRELEASE_NR%%#${FRELEASE_NR}#g' \
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/oo_setup.resp
|
||||
@${MKDIR} -p ${WRKSRC}/../solver/${BUILD_NR}/unxfbsd.pro/bin/${LANG_EXT}/osl/
|
||||
|
||||
do-install:
|
||||
|
@ -529,13 +529,19 @@ install-user:
|
|||
|
||||
post-install:
|
||||
@${ECHO_MSG} "===> Add wrapper scripts";
|
||||
@${CP} ${FILESDIR}/openoffice-wrapper ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%PREFIX%%#${PREFIX}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%LANG%%#${USE_LANG}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%BUILD_NR%%#${BUILD_NR}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%RELEASE_NR%%#${RELEASE_NR}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%FRELEASE_NR%%#${FRELEASE_NR}#g' ${WRKDIR}/openoffice
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/openoffice ${PREFIX}/bin/openoffice-${RELEASE_NR}
|
||||
@${CP} ${FILESDIR}/openoffice-wrapper ${WRKDIR}/
|
||||
@${CP} ${FILESDIR}/freebsd-local.sh ${WRKDIR}/
|
||||
@${SED} -i orig -e 's#%%PREFIX%%#${PREFIX}#g' \
|
||||
-e 's#%%LANG%%#${USE_LANG}#g' \
|
||||
-e 's#%%BUILD_NR%%#${BUILD_NR}#g' \
|
||||
-e 's#%%RELEASE_NR%%#${RELEASE_NR}#g' \
|
||||
-e 's#%%FRELEASE_NR%%#${FRELEASE_NR}#g' \
|
||||
${WRKDIR}/openoffice \
|
||||
${WRKDIR}/freebsd-local.sh
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/openoffice \
|
||||
${PREFIX}/bin/openoffice-${RELEASE_NR}
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/freebsd-local.sh \
|
||||
${PREFIX}/${INSTALLATION_BASEDIR}/freebsd-local.sh
|
||||
@${LN} -fs ${PREFIX}/bin/openoffice-${RELEASE_NR} ${PREFIX}/bin/openoffice-${RELEASE_NR}-sagenda
|
||||
@${LN} -fs ${PREFIX}/bin/openoffice-${RELEASE_NR} ${PREFIX}/bin/openoffice-${RELEASE_NR}-scalc
|
||||
@${LN} -fs ${PREFIX}/bin/openoffice-${RELEASE_NR} ${PREFIX}/bin/openoffice-${RELEASE_NR}-sdraw
|
||||
|
|
73
editors/openoffice.org-1.1-devel/files/freebsd-local.sh
Normal file
73
editors/openoffice.org-1.1-devel/files/freebsd-local.sh
Normal file
|
@ -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
|
|
@ -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
|
||||
|
|
|
@ -1,69 +1,10 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD: /tmp/pcvs/ports/editors/openoffice.org-1.1-devel/files/Attic/openoffice-wrapper,v 1.10 2003-09-16 06:50:17 mbr Exp $
|
||||
# $FreeBSD: /tmp/pcvs/ports/editors/openoffice.org-1.1-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 "$@"
|
||||
|
|
|
@ -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" "$@"
|
||||
|
|
@ -499,10 +499,10 @@ do-build:
|
|||
|
||||
pre-install:
|
||||
@${CP} ${FILESDIR}/oo_setup.resp \
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/
|
||||
@${SED} -i orig -e 's#%%PREFIX%%#${PREFIX}#g' \
|
||||
-e 's#%%PORTVERSION%%#${BUILD_NR}#g' \
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/oo_setup.resp
|
||||
-e 's#%%FRELEASE_NR%%#${FRELEASE_NR}#g' \
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/oo_setup.resp
|
||||
@${MKDIR} -p ${WRKSRC}/../solver/${BUILD_NR}/unxfbsd.pro/bin/${LANG_EXT}/osl/
|
||||
|
||||
do-install:
|
||||
|
@ -529,13 +529,19 @@ install-user:
|
|||
|
||||
post-install:
|
||||
@${ECHO_MSG} "===> Add wrapper scripts";
|
||||
@${CP} ${FILESDIR}/openoffice-wrapper ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%PREFIX%%#${PREFIX}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%LANG%%#${USE_LANG}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%BUILD_NR%%#${BUILD_NR}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%RELEASE_NR%%#${RELEASE_NR}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%FRELEASE_NR%%#${FRELEASE_NR}#g' ${WRKDIR}/openoffice
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/openoffice ${PREFIX}/bin/openoffice-${RELEASE_NR}
|
||||
@${CP} ${FILESDIR}/openoffice-wrapper ${WRKDIR}/
|
||||
@${CP} ${FILESDIR}/freebsd-local.sh ${WRKDIR}/
|
||||
@${SED} -i orig -e 's#%%PREFIX%%#${PREFIX}#g' \
|
||||
-e 's#%%LANG%%#${USE_LANG}#g' \
|
||||
-e 's#%%BUILD_NR%%#${BUILD_NR}#g' \
|
||||
-e 's#%%RELEASE_NR%%#${RELEASE_NR}#g' \
|
||||
-e 's#%%FRELEASE_NR%%#${FRELEASE_NR}#g' \
|
||||
${WRKDIR}/openoffice \
|
||||
${WRKDIR}/freebsd-local.sh
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/openoffice \
|
||||
${PREFIX}/bin/openoffice-${RELEASE_NR}
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/freebsd-local.sh \
|
||||
${PREFIX}/${INSTALLATION_BASEDIR}/freebsd-local.sh
|
||||
@${LN} -fs ${PREFIX}/bin/openoffice-${RELEASE_NR} ${PREFIX}/bin/openoffice-${RELEASE_NR}-sagenda
|
||||
@${LN} -fs ${PREFIX}/bin/openoffice-${RELEASE_NR} ${PREFIX}/bin/openoffice-${RELEASE_NR}-scalc
|
||||
@${LN} -fs ${PREFIX}/bin/openoffice-${RELEASE_NR} ${PREFIX}/bin/openoffice-${RELEASE_NR}-sdraw
|
||||
|
|
73
editors/openoffice.org-1.1/files/freebsd-local.sh
Normal file
73
editors/openoffice.org-1.1/files/freebsd-local.sh
Normal file
|
@ -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
|
|
@ -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
|
||||
|
|
|
@ -1,69 +1,10 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD: /tmp/pcvs/ports/editors/openoffice.org-1.1/files/Attic/openoffice-wrapper,v 1.10 2003-09-16 06:50:17 mbr Exp $
|
||||
# $FreeBSD: /tmp/pcvs/ports/editors/openoffice.org-1.1/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 "$@"
|
||||
|
|
|
@ -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" "$@"
|
||||
|
|
@ -499,10 +499,10 @@ do-build:
|
|||
|
||||
pre-install:
|
||||
@${CP} ${FILESDIR}/oo_setup.resp \
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/
|
||||
@${SED} -i orig -e 's#%%PREFIX%%#${PREFIX}#g' \
|
||||
-e 's#%%PORTVERSION%%#${BUILD_NR}#g' \
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/oo_setup.resp
|
||||
-e 's#%%FRELEASE_NR%%#${FRELEASE_NR}#g' \
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/oo_setup.resp
|
||||
@${MKDIR} -p ${WRKSRC}/../solver/${BUILD_NR}/unxfbsd.pro/bin/${LANG_EXT}/osl/
|
||||
|
||||
do-install:
|
||||
|
@ -529,13 +529,19 @@ install-user:
|
|||
|
||||
post-install:
|
||||
@${ECHO_MSG} "===> Add wrapper scripts";
|
||||
@${CP} ${FILESDIR}/openoffice-wrapper ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%PREFIX%%#${PREFIX}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%LANG%%#${USE_LANG}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%BUILD_NR%%#${BUILD_NR}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%RELEASE_NR%%#${RELEASE_NR}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%FRELEASE_NR%%#${FRELEASE_NR}#g' ${WRKDIR}/openoffice
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/openoffice ${PREFIX}/bin/openoffice-${RELEASE_NR}
|
||||
@${CP} ${FILESDIR}/openoffice-wrapper ${WRKDIR}/
|
||||
@${CP} ${FILESDIR}/freebsd-local.sh ${WRKDIR}/
|
||||
@${SED} -i orig -e 's#%%PREFIX%%#${PREFIX}#g' \
|
||||
-e 's#%%LANG%%#${USE_LANG}#g' \
|
||||
-e 's#%%BUILD_NR%%#${BUILD_NR}#g' \
|
||||
-e 's#%%RELEASE_NR%%#${RELEASE_NR}#g' \
|
||||
-e 's#%%FRELEASE_NR%%#${FRELEASE_NR}#g' \
|
||||
${WRKDIR}/openoffice \
|
||||
${WRKDIR}/freebsd-local.sh
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/openoffice \
|
||||
${PREFIX}/bin/openoffice-${RELEASE_NR}
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/freebsd-local.sh \
|
||||
${PREFIX}/${INSTALLATION_BASEDIR}/freebsd-local.sh
|
||||
@${LN} -fs ${PREFIX}/bin/openoffice-${RELEASE_NR} ${PREFIX}/bin/openoffice-${RELEASE_NR}-sagenda
|
||||
@${LN} -fs ${PREFIX}/bin/openoffice-${RELEASE_NR} ${PREFIX}/bin/openoffice-${RELEASE_NR}-scalc
|
||||
@${LN} -fs ${PREFIX}/bin/openoffice-${RELEASE_NR} ${PREFIX}/bin/openoffice-${RELEASE_NR}-sdraw
|
||||
|
|
73
editors/openoffice.org-2-RC/files/freebsd-local.sh
Normal file
73
editors/openoffice.org-2-RC/files/freebsd-local.sh
Normal file
|
@ -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
|
|
@ -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
|
||||
|
|
|
@ -1,69 +1,10 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD: /tmp/pcvs/ports/editors/openoffice.org-2-RC/files/Attic/openoffice-wrapper,v 1.10 2003-09-16 06:50:17 mbr Exp $
|
||||
# $FreeBSD: /tmp/pcvs/ports/editors/openoffice.org-2-RC/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 "$@"
|
||||
|
|
|
@ -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" "$@"
|
||||
|
|
@ -499,10 +499,10 @@ do-build:
|
|||
|
||||
pre-install:
|
||||
@${CP} ${FILESDIR}/oo_setup.resp \
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/
|
||||
@${SED} -i orig -e 's#%%PREFIX%%#${PREFIX}#g' \
|
||||
-e 's#%%PORTVERSION%%#${BUILD_NR}#g' \
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/oo_setup.resp
|
||||
-e 's#%%FRELEASE_NR%%#${FRELEASE_NR}#g' \
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/oo_setup.resp
|
||||
@${MKDIR} -p ${WRKSRC}/../solver/${BUILD_NR}/unxfbsd.pro/bin/${LANG_EXT}/osl/
|
||||
|
||||
do-install:
|
||||
|
@ -529,13 +529,19 @@ install-user:
|
|||
|
||||
post-install:
|
||||
@${ECHO_MSG} "===> Add wrapper scripts";
|
||||
@${CP} ${FILESDIR}/openoffice-wrapper ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%PREFIX%%#${PREFIX}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%LANG%%#${USE_LANG}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%BUILD_NR%%#${BUILD_NR}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%RELEASE_NR%%#${RELEASE_NR}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%FRELEASE_NR%%#${FRELEASE_NR}#g' ${WRKDIR}/openoffice
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/openoffice ${PREFIX}/bin/openoffice-${RELEASE_NR}
|
||||
@${CP} ${FILESDIR}/openoffice-wrapper ${WRKDIR}/
|
||||
@${CP} ${FILESDIR}/freebsd-local.sh ${WRKDIR}/
|
||||
@${SED} -i orig -e 's#%%PREFIX%%#${PREFIX}#g' \
|
||||
-e 's#%%LANG%%#${USE_LANG}#g' \
|
||||
-e 's#%%BUILD_NR%%#${BUILD_NR}#g' \
|
||||
-e 's#%%RELEASE_NR%%#${RELEASE_NR}#g' \
|
||||
-e 's#%%FRELEASE_NR%%#${FRELEASE_NR}#g' \
|
||||
${WRKDIR}/openoffice \
|
||||
${WRKDIR}/freebsd-local.sh
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/openoffice \
|
||||
${PREFIX}/bin/openoffice-${RELEASE_NR}
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/freebsd-local.sh \
|
||||
${PREFIX}/${INSTALLATION_BASEDIR}/freebsd-local.sh
|
||||
@${LN} -fs ${PREFIX}/bin/openoffice-${RELEASE_NR} ${PREFIX}/bin/openoffice-${RELEASE_NR}-sagenda
|
||||
@${LN} -fs ${PREFIX}/bin/openoffice-${RELEASE_NR} ${PREFIX}/bin/openoffice-${RELEASE_NR}-scalc
|
||||
@${LN} -fs ${PREFIX}/bin/openoffice-${RELEASE_NR} ${PREFIX}/bin/openoffice-${RELEASE_NR}-sdraw
|
||||
|
|
73
editors/openoffice.org-2-devel/files/freebsd-local.sh
Normal file
73
editors/openoffice.org-2-devel/files/freebsd-local.sh
Normal file
|
@ -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
|
|
@ -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
|
||||
|
|
|
@ -1,69 +1,10 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD: /tmp/pcvs/ports/editors/openoffice.org-2-devel/files/Attic/openoffice-wrapper,v 1.10 2003-09-16 06:50:17 mbr Exp $
|
||||
# $FreeBSD: /tmp/pcvs/ports/editors/openoffice.org-2-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 "$@"
|
||||
|
|
|
@ -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" "$@"
|
||||
|
|
@ -499,10 +499,10 @@ do-build:
|
|||
|
||||
pre-install:
|
||||
@${CP} ${FILESDIR}/oo_setup.resp \
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/
|
||||
@${SED} -i orig -e 's#%%PREFIX%%#${PREFIX}#g' \
|
||||
-e 's#%%PORTVERSION%%#${BUILD_NR}#g' \
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/oo_setup.resp
|
||||
-e 's#%%FRELEASE_NR%%#${FRELEASE_NR}#g' \
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/oo_setup.resp
|
||||
@${MKDIR} -p ${WRKSRC}/../solver/${BUILD_NR}/unxfbsd.pro/bin/${LANG_EXT}/osl/
|
||||
|
||||
do-install:
|
||||
|
@ -529,13 +529,19 @@ install-user:
|
|||
|
||||
post-install:
|
||||
@${ECHO_MSG} "===> Add wrapper scripts";
|
||||
@${CP} ${FILESDIR}/openoffice-wrapper ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%PREFIX%%#${PREFIX}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%LANG%%#${USE_LANG}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%BUILD_NR%%#${BUILD_NR}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%RELEASE_NR%%#${RELEASE_NR}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%FRELEASE_NR%%#${FRELEASE_NR}#g' ${WRKDIR}/openoffice
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/openoffice ${PREFIX}/bin/openoffice-${RELEASE_NR}
|
||||
@${CP} ${FILESDIR}/openoffice-wrapper ${WRKDIR}/
|
||||
@${CP} ${FILESDIR}/freebsd-local.sh ${WRKDIR}/
|
||||
@${SED} -i orig -e 's#%%PREFIX%%#${PREFIX}#g' \
|
||||
-e 's#%%LANG%%#${USE_LANG}#g' \
|
||||
-e 's#%%BUILD_NR%%#${BUILD_NR}#g' \
|
||||
-e 's#%%RELEASE_NR%%#${RELEASE_NR}#g' \
|
||||
-e 's#%%FRELEASE_NR%%#${FRELEASE_NR}#g' \
|
||||
${WRKDIR}/openoffice \
|
||||
${WRKDIR}/freebsd-local.sh
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/openoffice \
|
||||
${PREFIX}/bin/openoffice-${RELEASE_NR}
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/freebsd-local.sh \
|
||||
${PREFIX}/${INSTALLATION_BASEDIR}/freebsd-local.sh
|
||||
@${LN} -fs ${PREFIX}/bin/openoffice-${RELEASE_NR} ${PREFIX}/bin/openoffice-${RELEASE_NR}-sagenda
|
||||
@${LN} -fs ${PREFIX}/bin/openoffice-${RELEASE_NR} ${PREFIX}/bin/openoffice-${RELEASE_NR}-scalc
|
||||
@${LN} -fs ${PREFIX}/bin/openoffice-${RELEASE_NR} ${PREFIX}/bin/openoffice-${RELEASE_NR}-sdraw
|
||||
|
|
73
editors/openoffice.org-2.0-devel/files/freebsd-local.sh
Normal file
73
editors/openoffice.org-2.0-devel/files/freebsd-local.sh
Normal file
|
@ -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
|
|
@ -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
|
||||
|
|
|
@ -1,69 +1,10 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD: /tmp/pcvs/ports/editors/openoffice.org-2.0-devel/files/Attic/openoffice-wrapper,v 1.10 2003-09-16 06:50:17 mbr Exp $
|
||||
# $FreeBSD: /tmp/pcvs/ports/editors/openoffice.org-2.0-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 "$@"
|
||||
|
|
|
@ -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" "$@"
|
||||
|
|
@ -499,10 +499,10 @@ do-build:
|
|||
|
||||
pre-install:
|
||||
@${CP} ${FILESDIR}/oo_setup.resp \
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/
|
||||
@${SED} -i orig -e 's#%%PREFIX%%#${PREFIX}#g' \
|
||||
-e 's#%%PORTVERSION%%#${BUILD_NR}#g' \
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/oo_setup.resp
|
||||
-e 's#%%FRELEASE_NR%%#${FRELEASE_NR}#g' \
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/oo_setup.resp
|
||||
@${MKDIR} -p ${WRKSRC}/../solver/${BUILD_NR}/unxfbsd.pro/bin/${LANG_EXT}/osl/
|
||||
|
||||
do-install:
|
||||
|
@ -529,13 +529,19 @@ install-user:
|
|||
|
||||
post-install:
|
||||
@${ECHO_MSG} "===> Add wrapper scripts";
|
||||
@${CP} ${FILESDIR}/openoffice-wrapper ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%PREFIX%%#${PREFIX}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%LANG%%#${USE_LANG}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%BUILD_NR%%#${BUILD_NR}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%RELEASE_NR%%#${RELEASE_NR}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%FRELEASE_NR%%#${FRELEASE_NR}#g' ${WRKDIR}/openoffice
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/openoffice ${PREFIX}/bin/openoffice-${RELEASE_NR}
|
||||
@${CP} ${FILESDIR}/openoffice-wrapper ${WRKDIR}/
|
||||
@${CP} ${FILESDIR}/freebsd-local.sh ${WRKDIR}/
|
||||
@${SED} -i orig -e 's#%%PREFIX%%#${PREFIX}#g' \
|
||||
-e 's#%%LANG%%#${USE_LANG}#g' \
|
||||
-e 's#%%BUILD_NR%%#${BUILD_NR}#g' \
|
||||
-e 's#%%RELEASE_NR%%#${RELEASE_NR}#g' \
|
||||
-e 's#%%FRELEASE_NR%%#${FRELEASE_NR}#g' \
|
||||
${WRKDIR}/openoffice \
|
||||
${WRKDIR}/freebsd-local.sh
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/openoffice \
|
||||
${PREFIX}/bin/openoffice-${RELEASE_NR}
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/freebsd-local.sh \
|
||||
${PREFIX}/${INSTALLATION_BASEDIR}/freebsd-local.sh
|
||||
@${LN} -fs ${PREFIX}/bin/openoffice-${RELEASE_NR} ${PREFIX}/bin/openoffice-${RELEASE_NR}-sagenda
|
||||
@${LN} -fs ${PREFIX}/bin/openoffice-${RELEASE_NR} ${PREFIX}/bin/openoffice-${RELEASE_NR}-scalc
|
||||
@${LN} -fs ${PREFIX}/bin/openoffice-${RELEASE_NR} ${PREFIX}/bin/openoffice-${RELEASE_NR}-sdraw
|
||||
|
|
73
editors/openoffice.org-2.0/files/freebsd-local.sh
Normal file
73
editors/openoffice.org-2.0/files/freebsd-local.sh
Normal file
|
@ -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
|
|
@ -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
|
||||
|
|
|
@ -1,69 +1,10 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD: /tmp/pcvs/ports/editors/openoffice.org-2.0/files/Attic/openoffice-wrapper,v 1.10 2003-09-16 06:50:17 mbr Exp $
|
||||
# $FreeBSD: /tmp/pcvs/ports/editors/openoffice.org-2.0/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 "$@"
|
||||
|
|
|
@ -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" "$@"
|
||||
|
|
@ -499,10 +499,10 @@ do-build:
|
|||
|
||||
pre-install:
|
||||
@${CP} ${FILESDIR}/oo_setup.resp \
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/
|
||||
@${SED} -i orig -e 's#%%PREFIX%%#${PREFIX}#g' \
|
||||
-e 's#%%PORTVERSION%%#${BUILD_NR}#g' \
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/oo_setup.resp
|
||||
-e 's#%%FRELEASE_NR%%#${FRELEASE_NR}#g' \
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/oo_setup.resp
|
||||
@${MKDIR} -p ${WRKSRC}/../solver/${BUILD_NR}/unxfbsd.pro/bin/${LANG_EXT}/osl/
|
||||
|
||||
do-install:
|
||||
|
@ -529,13 +529,19 @@ install-user:
|
|||
|
||||
post-install:
|
||||
@${ECHO_MSG} "===> Add wrapper scripts";
|
||||
@${CP} ${FILESDIR}/openoffice-wrapper ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%PREFIX%%#${PREFIX}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%LANG%%#${USE_LANG}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%BUILD_NR%%#${BUILD_NR}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%RELEASE_NR%%#${RELEASE_NR}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%FRELEASE_NR%%#${FRELEASE_NR}#g' ${WRKDIR}/openoffice
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/openoffice ${PREFIX}/bin/openoffice-${RELEASE_NR}
|
||||
@${CP} ${FILESDIR}/openoffice-wrapper ${WRKDIR}/
|
||||
@${CP} ${FILESDIR}/freebsd-local.sh ${WRKDIR}/
|
||||
@${SED} -i orig -e 's#%%PREFIX%%#${PREFIX}#g' \
|
||||
-e 's#%%LANG%%#${USE_LANG}#g' \
|
||||
-e 's#%%BUILD_NR%%#${BUILD_NR}#g' \
|
||||
-e 's#%%RELEASE_NR%%#${RELEASE_NR}#g' \
|
||||
-e 's#%%FRELEASE_NR%%#${FRELEASE_NR}#g' \
|
||||
${WRKDIR}/openoffice \
|
||||
${WRKDIR}/freebsd-local.sh
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/openoffice \
|
||||
${PREFIX}/bin/openoffice-${RELEASE_NR}
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/freebsd-local.sh \
|
||||
${PREFIX}/${INSTALLATION_BASEDIR}/freebsd-local.sh
|
||||
@${LN} -fs ${PREFIX}/bin/openoffice-${RELEASE_NR} ${PREFIX}/bin/openoffice-${RELEASE_NR}-sagenda
|
||||
@${LN} -fs ${PREFIX}/bin/openoffice-${RELEASE_NR} ${PREFIX}/bin/openoffice-${RELEASE_NR}-scalc
|
||||
@${LN} -fs ${PREFIX}/bin/openoffice-${RELEASE_NR} ${PREFIX}/bin/openoffice-${RELEASE_NR}-sdraw
|
||||
|
|
73
editors/openoffice.org-2/files/freebsd-local.sh
Normal file
73
editors/openoffice.org-2/files/freebsd-local.sh
Normal file
|
@ -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
|
|
@ -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
|
||||
|
|
|
@ -1,69 +1,10 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD: /tmp/pcvs/ports/editors/openoffice.org-2/files/Attic/openoffice-wrapper,v 1.10 2003-09-16 06:50:17 mbr Exp $
|
||||
# $FreeBSD: /tmp/pcvs/ports/editors/openoffice.org-2/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 "$@"
|
||||
|
|
|
@ -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" "$@"
|
||||
|
|
@ -499,10 +499,10 @@ do-build:
|
|||
|
||||
pre-install:
|
||||
@${CP} ${FILESDIR}/oo_setup.resp \
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/
|
||||
@${SED} -i orig -e 's#%%PREFIX%%#${PREFIX}#g' \
|
||||
-e 's#%%PORTVERSION%%#${BUILD_NR}#g' \
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/oo_setup.resp
|
||||
-e 's#%%FRELEASE_NR%%#${FRELEASE_NR}#g' \
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/oo_setup.resp
|
||||
@${MKDIR} -p ${WRKSRC}/../solver/${BUILD_NR}/unxfbsd.pro/bin/${LANG_EXT}/osl/
|
||||
|
||||
do-install:
|
||||
|
@ -529,13 +529,19 @@ install-user:
|
|||
|
||||
post-install:
|
||||
@${ECHO_MSG} "===> Add wrapper scripts";
|
||||
@${CP} ${FILESDIR}/openoffice-wrapper ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%PREFIX%%#${PREFIX}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%LANG%%#${USE_LANG}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%BUILD_NR%%#${BUILD_NR}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%RELEASE_NR%%#${RELEASE_NR}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%FRELEASE_NR%%#${FRELEASE_NR}#g' ${WRKDIR}/openoffice
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/openoffice ${PREFIX}/bin/openoffice-${RELEASE_NR}
|
||||
@${CP} ${FILESDIR}/openoffice-wrapper ${WRKDIR}/
|
||||
@${CP} ${FILESDIR}/freebsd-local.sh ${WRKDIR}/
|
||||
@${SED} -i orig -e 's#%%PREFIX%%#${PREFIX}#g' \
|
||||
-e 's#%%LANG%%#${USE_LANG}#g' \
|
||||
-e 's#%%BUILD_NR%%#${BUILD_NR}#g' \
|
||||
-e 's#%%RELEASE_NR%%#${RELEASE_NR}#g' \
|
||||
-e 's#%%FRELEASE_NR%%#${FRELEASE_NR}#g' \
|
||||
${WRKDIR}/openoffice \
|
||||
${WRKDIR}/freebsd-local.sh
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/openoffice \
|
||||
${PREFIX}/bin/openoffice-${RELEASE_NR}
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/freebsd-local.sh \
|
||||
${PREFIX}/${INSTALLATION_BASEDIR}/freebsd-local.sh
|
||||
@${LN} -fs ${PREFIX}/bin/openoffice-${RELEASE_NR} ${PREFIX}/bin/openoffice-${RELEASE_NR}-sagenda
|
||||
@${LN} -fs ${PREFIX}/bin/openoffice-${RELEASE_NR} ${PREFIX}/bin/openoffice-${RELEASE_NR}-scalc
|
||||
@${LN} -fs ${PREFIX}/bin/openoffice-${RELEASE_NR} ${PREFIX}/bin/openoffice-${RELEASE_NR}-sdraw
|
||||
|
|
73
editors/openoffice.org-3-RC/files/freebsd-local.sh
Normal file
73
editors/openoffice.org-3-RC/files/freebsd-local.sh
Normal file
|
@ -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
|
|
@ -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
|
||||
|
|
|
@ -1,69 +1,10 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD: /tmp/pcvs/ports/editors/openoffice.org-3-RC/files/Attic/openoffice-wrapper,v 1.10 2003-09-16 06:50:17 mbr Exp $
|
||||
# $FreeBSD: /tmp/pcvs/ports/editors/openoffice.org-3-RC/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 "$@"
|
||||
|
|
|
@ -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" "$@"
|
||||
|
|
@ -499,10 +499,10 @@ do-build:
|
|||
|
||||
pre-install:
|
||||
@${CP} ${FILESDIR}/oo_setup.resp \
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/
|
||||
@${SED} -i orig -e 's#%%PREFIX%%#${PREFIX}#g' \
|
||||
-e 's#%%PORTVERSION%%#${BUILD_NR}#g' \
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/oo_setup.resp
|
||||
-e 's#%%FRELEASE_NR%%#${FRELEASE_NR}#g' \
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/oo_setup.resp
|
||||
@${MKDIR} -p ${WRKSRC}/../solver/${BUILD_NR}/unxfbsd.pro/bin/${LANG_EXT}/osl/
|
||||
|
||||
do-install:
|
||||
|
@ -529,13 +529,19 @@ install-user:
|
|||
|
||||
post-install:
|
||||
@${ECHO_MSG} "===> Add wrapper scripts";
|
||||
@${CP} ${FILESDIR}/openoffice-wrapper ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%PREFIX%%#${PREFIX}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%LANG%%#${USE_LANG}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%BUILD_NR%%#${BUILD_NR}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%RELEASE_NR%%#${RELEASE_NR}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%FRELEASE_NR%%#${FRELEASE_NR}#g' ${WRKDIR}/openoffice
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/openoffice ${PREFIX}/bin/openoffice-${RELEASE_NR}
|
||||
@${CP} ${FILESDIR}/openoffice-wrapper ${WRKDIR}/
|
||||
@${CP} ${FILESDIR}/freebsd-local.sh ${WRKDIR}/
|
||||
@${SED} -i orig -e 's#%%PREFIX%%#${PREFIX}#g' \
|
||||
-e 's#%%LANG%%#${USE_LANG}#g' \
|
||||
-e 's#%%BUILD_NR%%#${BUILD_NR}#g' \
|
||||
-e 's#%%RELEASE_NR%%#${RELEASE_NR}#g' \
|
||||
-e 's#%%FRELEASE_NR%%#${FRELEASE_NR}#g' \
|
||||
${WRKDIR}/openoffice \
|
||||
${WRKDIR}/freebsd-local.sh
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/openoffice \
|
||||
${PREFIX}/bin/openoffice-${RELEASE_NR}
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/freebsd-local.sh \
|
||||
${PREFIX}/${INSTALLATION_BASEDIR}/freebsd-local.sh
|
||||
@${LN} -fs ${PREFIX}/bin/openoffice-${RELEASE_NR} ${PREFIX}/bin/openoffice-${RELEASE_NR}-sagenda
|
||||
@${LN} -fs ${PREFIX}/bin/openoffice-${RELEASE_NR} ${PREFIX}/bin/openoffice-${RELEASE_NR}-scalc
|
||||
@${LN} -fs ${PREFIX}/bin/openoffice-${RELEASE_NR} ${PREFIX}/bin/openoffice-${RELEASE_NR}-sdraw
|
||||
|
|
73
editors/openoffice.org-3-devel/files/freebsd-local.sh
Normal file
73
editors/openoffice.org-3-devel/files/freebsd-local.sh
Normal file
|
@ -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
|
|
@ -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
|
||||
|
|
|
@ -1,69 +1,10 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD: /tmp/pcvs/ports/editors/openoffice.org-3-devel/files/Attic/openoffice-wrapper,v 1.10 2003-09-16 06:50:17 mbr Exp $
|
||||
# $FreeBSD: /tmp/pcvs/ports/editors/openoffice.org-3-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 "$@"
|
||||
|
|
|
@ -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" "$@"
|
||||
|
|
@ -499,10 +499,10 @@ do-build:
|
|||
|
||||
pre-install:
|
||||
@${CP} ${FILESDIR}/oo_setup.resp \
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/
|
||||
@${SED} -i orig -e 's#%%PREFIX%%#${PREFIX}#g' \
|
||||
-e 's#%%PORTVERSION%%#${BUILD_NR}#g' \
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/oo_setup.resp
|
||||
-e 's#%%FRELEASE_NR%%#${FRELEASE_NR}#g' \
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/oo_setup.resp
|
||||
@${MKDIR} -p ${WRKSRC}/../solver/${BUILD_NR}/unxfbsd.pro/bin/${LANG_EXT}/osl/
|
||||
|
||||
do-install:
|
||||
|
@ -529,13 +529,19 @@ install-user:
|
|||
|
||||
post-install:
|
||||
@${ECHO_MSG} "===> Add wrapper scripts";
|
||||
@${CP} ${FILESDIR}/openoffice-wrapper ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%PREFIX%%#${PREFIX}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%LANG%%#${USE_LANG}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%BUILD_NR%%#${BUILD_NR}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%RELEASE_NR%%#${RELEASE_NR}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%FRELEASE_NR%%#${FRELEASE_NR}#g' ${WRKDIR}/openoffice
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/openoffice ${PREFIX}/bin/openoffice-${RELEASE_NR}
|
||||
@${CP} ${FILESDIR}/openoffice-wrapper ${WRKDIR}/
|
||||
@${CP} ${FILESDIR}/freebsd-local.sh ${WRKDIR}/
|
||||
@${SED} -i orig -e 's#%%PREFIX%%#${PREFIX}#g' \
|
||||
-e 's#%%LANG%%#${USE_LANG}#g' \
|
||||
-e 's#%%BUILD_NR%%#${BUILD_NR}#g' \
|
||||
-e 's#%%RELEASE_NR%%#${RELEASE_NR}#g' \
|
||||
-e 's#%%FRELEASE_NR%%#${FRELEASE_NR}#g' \
|
||||
${WRKDIR}/openoffice \
|
||||
${WRKDIR}/freebsd-local.sh
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/openoffice \
|
||||
${PREFIX}/bin/openoffice-${RELEASE_NR}
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/freebsd-local.sh \
|
||||
${PREFIX}/${INSTALLATION_BASEDIR}/freebsd-local.sh
|
||||
@${LN} -fs ${PREFIX}/bin/openoffice-${RELEASE_NR} ${PREFIX}/bin/openoffice-${RELEASE_NR}-sagenda
|
||||
@${LN} -fs ${PREFIX}/bin/openoffice-${RELEASE_NR} ${PREFIX}/bin/openoffice-${RELEASE_NR}-scalc
|
||||
@${LN} -fs ${PREFIX}/bin/openoffice-${RELEASE_NR} ${PREFIX}/bin/openoffice-${RELEASE_NR}-sdraw
|
||||
|
|
73
editors/openoffice.org-3/files/freebsd-local.sh
Normal file
73
editors/openoffice.org-3/files/freebsd-local.sh
Normal file
|
@ -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
|
|
@ -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
|
||||
|
|
|
@ -1,69 +1,10 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD: /tmp/pcvs/ports/editors/openoffice.org-3/files/Attic/openoffice-wrapper,v 1.10 2003-09-16 06:50:17 mbr Exp $
|
||||
# $FreeBSD: /tmp/pcvs/ports/editors/openoffice.org-3/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 "$@"
|
||||
|
|
|
@ -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" "$@"
|
||||
|
|
@ -499,10 +499,10 @@ do-build:
|
|||
|
||||
pre-install:
|
||||
@${CP} ${FILESDIR}/oo_setup.resp \
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/
|
||||
@${SED} -i orig -e 's#%%PREFIX%%#${PREFIX}#g' \
|
||||
-e 's#%%PORTVERSION%%#${BUILD_NR}#g' \
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/oo_setup.resp
|
||||
-e 's#%%FRELEASE_NR%%#${FRELEASE_NR}#g' \
|
||||
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/oo_setup.resp
|
||||
@${MKDIR} -p ${WRKSRC}/../solver/${BUILD_NR}/unxfbsd.pro/bin/${LANG_EXT}/osl/
|
||||
|
||||
do-install:
|
||||
|
@ -529,13 +529,19 @@ install-user:
|
|||
|
||||
post-install:
|
||||
@${ECHO_MSG} "===> Add wrapper scripts";
|
||||
@${CP} ${FILESDIR}/openoffice-wrapper ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%PREFIX%%#${PREFIX}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%LANG%%#${USE_LANG}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%BUILD_NR%%#${BUILD_NR}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%RELEASE_NR%%#${RELEASE_NR}#g' ${WRKDIR}/openoffice
|
||||
@${SED} -i orig -e 's#%%FRELEASE_NR%%#${FRELEASE_NR}#g' ${WRKDIR}/openoffice
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/openoffice ${PREFIX}/bin/openoffice-${RELEASE_NR}
|
||||
@${CP} ${FILESDIR}/openoffice-wrapper ${WRKDIR}/
|
||||
@${CP} ${FILESDIR}/freebsd-local.sh ${WRKDIR}/
|
||||
@${SED} -i orig -e 's#%%PREFIX%%#${PREFIX}#g' \
|
||||
-e 's#%%LANG%%#${USE_LANG}#g' \
|
||||
-e 's#%%BUILD_NR%%#${BUILD_NR}#g' \
|
||||
-e 's#%%RELEASE_NR%%#${RELEASE_NR}#g' \
|
||||
-e 's#%%FRELEASE_NR%%#${FRELEASE_NR}#g' \
|
||||
${WRKDIR}/openoffice \
|
||||
${WRKDIR}/freebsd-local.sh
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/openoffice \
|
||||
${PREFIX}/bin/openoffice-${RELEASE_NR}
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/freebsd-local.sh \
|
||||
${PREFIX}/${INSTALLATION_BASEDIR}/freebsd-local.sh
|
||||
@${LN} -fs ${PREFIX}/bin/openoffice-${RELEASE_NR} ${PREFIX}/bin/openoffice-${RELEASE_NR}-sagenda
|
||||
@${LN} -fs ${PREFIX}/bin/openoffice-${RELEASE_NR} ${PREFIX}/bin/openoffice-${RELEASE_NR}-scalc
|
||||
@${LN} -fs ${PREFIX}/bin/openoffice-${RELEASE_NR} ${PREFIX}/bin/openoffice-${RELEASE_NR}-sdraw
|
||||
|
|
73
editors/openoffice.org-vcltesttool/files/freebsd-local.sh
Normal file
73
editors/openoffice.org-vcltesttool/files/freebsd-local.sh
Normal file
|
@ -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
|
|
@ -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
|
||||
|
|
|
@ -1,69 +1,10 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD: /tmp/pcvs/ports/editors/openoffice.org-vcltesttool/files/Attic/openoffice-wrapper,v 1.10 2003-09-16 06:50:17 mbr Exp $
|
||||
# $FreeBSD: /tmp/pcvs/ports/editors/openoffice.org-vcltesttool/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 "$@"
|
||||
|
|
|
@ -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" "$@"
|
||||
|
Loading…
Reference in a new issue