Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Aug 2002 10:20:27 +0200 (CEST)
From:      Martin Blapp <mb@imp.ch>
To:        <openoffice@freebsd.org>
Subject:   Proposal: OO.org startup wrappers
Message-ID:  <20020801101726.N55033-100000@levais.imp.ch>

next in thread | raw e-mail | index | archive | help

Hi all,

I've made a little wrapper script for oo.org, and I'd
like to have feedback about it.

If you have ideas how we can improve this even further
please tell me !

Thank you
Martin

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/editors/openoffice/Makefile,v
retrieving revision 1.99
diff -u -r1.99 Makefile
--- Makefile	1 Aug 2002 07:27:41 -0000	1.99
+++ Makefile	1 Aug 2002 08:12:49 -0000
@@ -330,6 +330,8 @@
 pre-install:
 	@${SED} -e 's#%%PREFIX%%#${PREFIX}#g' < ${FILESDIR}/oo_setup.resp \
 	   > ${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/oo_setup.resp
+	@${SED} -e 's#%%PREFIX%%#${PREFIX}#g' < ${FILESDIR}/openoffice-wrapper \
+	   > ${WRKSRC}/openoffice

 do-install:
 .if !defined(DISPLAY)
@@ -369,7 +371,19 @@
 		${ECHO_CMD} "DICT $$COUNTRY $$LANGUAGE $$ABRV" >> \
 			${DICT_DIR}/dictionary.lst ; \
 	done
+	@${ECHO_MSG} "===>  Add wrapper scripts";
+	@${INSTALL_SCRIPT} ${WRKSRC}/openoffice ${PREFIX}/bin/
+	@${LN} -s ${PREFIX}/bin/openoffice ${PREFIX}/bin/openoffice-sagenda
+	@${LN} -s ${PREFIX}/bin/openoffice ${PREFIX}/bin/openoffice-scalc
+	@${LN} -s ${PREFIX}/bin/openoffice ${PREFIX}/bin/openoffice-sdraw
+	@${LN} -s ${PREFIX}/bin/openoffice ${PREFIX}/bin/openoffice-setup
+	@${LN} -s ${PREFIX}/bin/openoffice ${PREFIX}/bin/openoffice-sfax
+	@${LN} -s ${PREFIX}/bin/openoffice ${PREFIX}/bin/openoffice-simpress
+	@${LN} -s ${PREFIX}/bin/openoffice ${PREFIX}/bin/openoffice-spadmin
+	@${LN} -s ${PREFIX}/bin/openoffice ${PREFIX}/bin/openoffice-sweb
+	@${LN} -s ${PREFIX}/bin/openoffice ${PREFIX}/bin/openoffice-swriter
 	@cd ${PREFIX} && ${FIND} -s ${INSTALLATION_BASEDIR} -type f > ${TMPPLIST}
+	@cd ${PREFIX} && ${FIND} -s bin -type f | ${GREP} openoffice >> ${TMPPLIST}
 	@cd ${PREFIX} && ${FIND} -s ${INSTALLATION_BASEDIR} -type l >> ${TMPPLIST}
 	@cd ${PREFIX} && ${FIND} -s ${INSTALLATION_BASEDIR} -type d > ${WRKDIR}/dir.tmp
 	@${SORT} -r ${WRKDIR}/dir.tmp | ${XARGS} -n 1 ${ECHO_CMD} @dirrm >> ${TMPPLIST}
Index: pkg-message
===================================================================
RCS file: /home/ncvs/ports/editors/openoffice/pkg-message,v
retrieving revision 1.10
diff -u -r1.10 pkg-message
--- pkg-message	16 Jul 2002 12:55:31 -0000	1.10
+++ pkg-message	1 Aug 2002 08:12:49 -0000
@@ -1,17 +1,60 @@
-OpenOffice.org Build 641 Personal Install How-To
+OpenOffice.org Build 1.0.1 Personal Install How-To

-Written by:	Matthias Rauch <mrauch@netbsd.org>
-		Martin Blapp <mbr@freebsd.org>
+Written by:	Martin Blapp <mbr@freebsd.org>

 OpenOffice.org will soon been installed in
 ${PREFIX}/OpenOffice.org1.0/

+1 User installation
+-------------------
+
+1.1 OO.org installed from the ports collection
+
 Once this is done run "make install-user" as the user you like to
 use OpenOffice.org and choose a standard workstation installation.
-Thereafter, OpenOffice.org can be started with
-${PREFIX}/OpenOffice.org1.0/program/soffice.

-If OpenOffice.org asks you to choose the Java JDK during
+1.2 OO.org installed as package
+
+If you have just installed the OO.org package, there is no
+"make install-user" available. Instead, you have to run as
+the user you like to use OO.org:
+
+"${PREFIX}/bin/openoffice-setup" and choose a standard workstation
+installation.
+
+
+2 JDK-Installation
+------------------
+
+If OO.org asks you to choose the Java JDK during
 "make install-user", you must choose the linux jdk1.3.1.
 Native FreeBSD jdk1.3.1 does not work yet with FreeBSD
-openoffice and OO does ignore it.
+OO.org does ignore it.
+
+
+3 Start OO.org
+--------------
+
+There are some wrappers installed for fast startup.
+Add "${PREFIX}/bin/" to your PATH and you will be able
+to use them.
+
+${PREFIX}/bin/openoffice
+${PREFIX}/bin/openoffice-sagenda
+${PREFIX}/bin/openoffice-scalc
+${PREFIX}/bin/openoffice-sdraw
+${PREFIX}/bin/openoffice-setup
+${PREFIX}/bin/openoffice-sfax
+${PREFIX}/bin/openoffice-simpress
+${PREFIX}/bin/openoffice-spadmin
+${PREFIX}/bin/openoffice-sweb
+${PREFIX}/bin/openoffice-swriter
+
+4 Setup problems
+----------------
+
+If the setup complains about missing files, eg.
+setup.ins missing, it's time to upgrade your
+FreeBSD system to the lastest version. You will
+encounter this bug only if your OS is older than
+FreeBSD 4.6 STABLE. 4.6 RELEASE is still affected.
Index: files/openoffice-wrapper
===================================================================
RCS file: files/openoffice-wrapper
diff -N files/openoffice-wrapper
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/openoffice-wrapper	1 Aug 2002 08:12:49 -0000
@@ -0,0 +1,15 @@
+#!/bin/sh
+#
+# $FreeBSD:$
+
+cd %%PREFIX%%/OpenOffice.org1.0/program/
+program=`echo $0 | sed -e 's|.*-||'`
+
+case $program in
+$0)
+	exec ./soffice "$@"
+	;;
+	*)
+	exec ./$program "$@"
+	;;
+esac

Martin Blapp, <mb@imp.ch> <mbr@FreeBSD.org>
------------------------------------------------------------------
ImproWare AG, UNIXSP & ISP, Zurlindenstrasse 29, 4133 Pratteln, CH
Phone: +41 061 826 93 00: +41 61 826 93 01
PGP: <finger -l mbr@freebsd.org>
PGP Fingerprint: B434 53FC C87C FE7B 0A18 B84C 8686 EF22 D300 551E
------------------------------------------------------------------


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-openoffice" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020801101726.N55033-100000>