1#!/bin/sh 2 3 4if [ $# = 0 ] 5then 6echo "usage: send_ooo path_to_pkg_folder 7 8The files 9installed, 10ooo_bundled_extension.xml, 11svc-ooo_bundled_extension 12must be in the current directory. The pkg.depotd or the service 13application/pkg/server must listen to port 80" 14 15exit 16fi 17 18 19EXTENSIONPATH=/opt/openoffice.org3/share/extension/install 20 21eval `pkgsend -s http://localhost:80 open ooo_test@3.2-1` 22pkgsend -s http://localhost:80 import $1/openofficeorg-ure 23pkgsend -s http://localhost:80 import $1/ooobasis* 24pkgsend -s http://localhost:80 import $1/openofficeorg3* 25 26pkgsend -s http://localhost:80 add file installed mode=644 owner=root group=bin path=${EXTENSIONPATH}/installed restart_fmri=svc:/application/ooo_bundled_extensions:default 27pkgsend -s http://localhost:80 add file svc-ooo_bundled_extensions mode=744 owner=root group=bin path=/lib/svc/method/svc-ooo_bundled_extensions 28pkgsend -s http://localhost:80 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 29 30pkgsend -s http://localhost:80 add set name=description value="OOo 3.2 with dictionaries: en fr es da de" 31pkgsend -s http://localhost:80 close 32 33