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