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