1 #!/bin/sh 2 # ************************************************************* 3 # 4 # Licensed to the Apache Software Foundation (ASF) under one 5 # or more contributor license agreements. See the NOTICE file 6 # distributed with this work for additional information 7 # regarding copyright ownership. The ASF licenses this file 8 # to you under the Apache License, Version 2.0 (the 9 # "License"); you may not use this file except in compliance 10 # with the License. You may obtain a copy of the License at 11 # 12 # http://www.apache.org/licenses/LICENSE-2.0 13 # 14 # Unless required by applicable law or agreed to in writing, 15 # software distributed under the License is distributed on an 16 # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17 # KIND, either express or implied. See the License for the 18 # specific language governing permissions and limitations 19 # under the License. 20 # 21 # ************************************************************* 22 23 24 if [ $# = 0 ] 25 then 26 echo "usage: send_ooo path_to_pkg_folder 27 28 The files 29 installed, 30 ooo_bundled_extension.xml, 31 svc-ooo_bundled_extension 32 must be in the current directory. The pkg.depotd or the service 33 application/pkg/server must listen to port 80" 34 35 exit 36 fi 37 38 39 EXTENSIONPATH=/opt/openoffice.org3/share/extension/install 40 41 eval `pkgsend -s http://localhost:80 open ooo_test@3.2-1` 42 pkgsend -s http://localhost:80 import $1/openofficeorg-ure 43 pkgsend -s http://localhost:80 import $1/ooobasis* 44 pkgsend -s http://localhost:80 import $1/openofficeorg3* 45 46 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 47 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 48 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 49 50 pkgsend -s http://localhost:80 add set name=description value="OOo 3.2 with dictionaries: en fr es da de" 51 pkgsend -s http://localhost:80 close 52 53