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