1cdf0e10cSrcweir================================================================================
2cdf0e10cSrcweirInstallation information
3cdf0e10cSrcweir================================================================================
4cdf0e10cSrcweir
5cdf0e10cSrcweirIn order to properly install the bundled extensions, such as dictionaries, it is
6cdf0e10cSrcweirnecessary that the files
7cdf0e10cSrcweir
8cdf0e10cSrcweirinstalled
9cdf0e10cSrcweirooo_bundled_extensions.xml
10cdf0e10cSrcweirsvc-ooo_bundled_extensions
11cdf0e10cSrcweir
12ff3f4ebcSOliver-Rainer Wittmannare part of the Apache OpenOffice IPS package. They must be added to the package
13cdf0e10cSrcweirafter all other files have been added. Those other files are the SVR4 packages
14cdf0e10cSrcweirof OOo which can be imported by pkg (pkg import).
15cdf0e10cSrcweirThe files have to be uploaded this way:
16cdf0e10cSrcweir
17cdf0e10cSrcweirpkgsend -s url_to_pkg_server add file installed   mode=644 owner=root group=bin path=${EXTENSIONPATH}/installed restart_fmri=svc:/application/ooo_bundled_extensions:default
18cdf0e10cSrcweirpkgsend -s url_to_pkg_server add file svc-ooo_bundled_extensions mode=744 owner=root group=bin path=/lib/svc/method/svc-ooo_bundled_extensions
19cdf0e10cSrcweirpkgsend -s url_to_pkg_server add file ooo_bundled_extensions.xml mode=644 owner=root group=bin path=/var/svc/manifest/application/ooo_bundled_extensions.xml restart_fmri=svc:/system/manifest-import:default
20cdf0e10cSrcweir
21cdf0e10cSrcweir
22cdf0e10cSrcweir---
23cdf0e10cSrcweir
24cdf0e10cSrcweir${EXTENSIONPATH} must be replaced by the path to the folder containing the
25cdf0e10cSrcweirbundled extensions. This path changes with every major release of OOo because of
26cdf0e10cSrcweirthe version number which is part of a folder name. The
27cdf0e10cSrcweircurrent value is:
28cdf0e10cSrcweir
29599cc5b4SOliver-Rainer WittmannEXTENSIONPATH=/opt/openoffice3/share/extension/install
30cdf0e10cSrcweir
31cdf0e10cSrcweirThe service was tested with OpenSolaris release 2009.6 and may not work with a
32cdf0e10cSrcweirprevious release.
33cdf0e10cSrcweir
34cdf0e10cSrcweir
35cdf0e10cSrcweir================================================================================
36cdf0e10cSrcweirWhat do these files do
37cdf0e10cSrcweir================================================================================
38cdf0e10cSrcweir
39cdf0e10cSrcweirThe three files constitute a SMF service. When this service is started, then it
40cdf0e10cSrcweirinstalles the bundled extensions which are contained in
41599cc5b4SOliver-Rainer Wittmann/opt/openoffice3/share/extension/install. To install them, the service calls
42cdf0e10cSrcweir"unopkg add --shared ..." with the appropriate arguments.
43cdf0e10cSrcweir
44cdf0e10cSrcweirThe service is started initially after the installation of
45cdf0e10cSrcweirooo_bundled_extensions.xml. At this time, all files of OOo, including the
46cdf0e10cSrcweirextensions, have been copied to their destination. The service calls unopkg on
47cdf0e10cSrcweirbehalf of every extension and adds the path to that extension to the file
48cdf0e10cSrcweir'installed'. The file 'installed' is used to remember what extensions have
49cdf0e10cSrcweiralready been installed with unopkg. This will prevent to reinstall those
50cdf0e10cSrcweirextensions whenever the service is restarted.
51cdf0e10cSrcweir
52cdf0e10cSrcweirWhen a new version of OOo becomes available, then the respective OOo package
53*86e1cf34SPedro Giffunicontains a new version of 'installed'. That is, it contains a version string,
54cdf0e10cSrcweirsuch as 3.2.0. The sole reason for that string is, to change the content of this
55cdf0e10cSrcweirfile in every release. Otherwise IPS would not replace the installed version of
56cdf0e10cSrcweir'installed' with the one contained in the package.
57cdf0e10cSrcweir
58cdf0e10cSrcweirThe update procedure of OOo will replace 'installed'. 'installed' is associated
59cdf0e10cSrcweirwith a restart_fmri of the service ooo_bundled_extensions. That is after
60cdf0e10cSrcweircopying 'installed' the service will be restarted. It then installes all
61599cc5b4SOliver-Rainer Wittmannextensions contained in /opt/openoffice3/share/extension/install, because
62cdf0e10cSrcweirthe newly installed 'installed' file does not contain any entries yet, except
63cdf0e10cSrcweirfor the version string.
64cdf0e10cSrcweir
65cdf0e10cSrcweir
66cdf0e10cSrcweir================================================================================
67cdf0e10cSrcweirKnown issues
68cdf0e10cSrcweir================================================================================
69cdf0e10cSrcweir
70cdf0e10cSrcweirIf OOo, which contains this service, is uninstalled and later it is installed
71cdf0e10cSrcweiragain, then the bundled extensions are not installed. That is, unopkg is not
72cdf0e10cSrcweircalled to install them with OOo's Extensions Manager. The reasons is a bug in
73cdf0e10cSrcweirOpenSolaris:
74cdf0e10cSrcweir
75cdf0e10cSrcweirhttp://defect.opensolaris.org/bz/show_bug.cgi?id=5742
76cdf0e10cSrcweir
77cdf0e10cSrcweirTo work around this, one can call after uninstalling OOo
78cdf0e10cSrcweir
79cdf0e10cSrcweirsvccfg delete -f ooo_bundled_extensions
80cdf0e10cSrcweirsvccfg delete smf/manifest
81