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