~scarneiro/ubuntu/oneiric/opendrim-lmp-recordlog/fix-for-756108

« back to all changes in this revision

Viewing changes to registration/OpenDRIM_LogManagesRecord.sh

  • Committer: Bazaar Package Importer
  • Author(s): Guillaume BOTTEX
  • Date: 2009-08-19 17:08:36 UTC
  • Revision ID: james.westby@ubuntu.com-20090819170836-4pdxix40ulw5xqds
Tags: upstream-1.1.1
ImportĀ upstreamĀ versionĀ 1.1.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
 
 
3
################################################################################
 
4
# Linux Management Providers (LMP), OpenDRIM_RecordLogPackage provider package
 
5
# Copyright (C) 2007 Ilsoo Byun, ETRI <widepis@etri.re.kr, widepis@empal.com>
 
6
 
7
# This program is being developed under the "OpenDRIM" project.
 
8
# The "OpenDRIM" project web page: http://opendrim.sourceforge.net
 
9
# The "OpenDRIM" project mailing list: opendrim@googlegroups.com
 
10
 
11
# This program is free software; you can redistribute it and/or
 
12
# modify it under the terms of the GNU General Public License
 
13
# as published by the Free Software Foundation; version 2
 
14
# of the License.
 
15
 
16
# This program is distributed in the hope that it will be useful,
 
17
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
18
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
19
# GNU General Public License for more details.
 
20
 
21
# You should have received a copy of the GNU General Public License
 
22
# along with this program; if not, write to the Free Software
 
23
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
24
#################################################################################
 
25
 
 
26
#################################################################################
 
27
# To contributors, please leave your contact information in this section
 
28
# AND comment your changes in the source code.
 
29
 
30
# Modified by 2008 Guillaume BOTTEX, ETRI <guillaumebottex@etri.re.kr, guillaumebottex@gmail.com>
 
31
################################################################################
 
32
 
 
33
if test "$3" = pegasus
 
34
then
 
35
        
 
36
        cimmof -aE -n $1 $6/mof/OpenDRIM_LogManagesRecord.mof
 
37
 
 
38
        OUTFILE=./TEMP_REGISTRATION
 
39
        
 
40
cat >> $OUTFILE << EOFC
 
41
instance of PG_ProviderModule {
 
42
Caption = "OpenDRIM_LogManagesRecord provider module";
 
43
Name = "OpenDRIM_RecordLogPackage_OpenDRIM_LogManagesRecordModule";
 
44
Location = "cmpiOpenDRIM_RecordLogPackage_OpenDRIM_LogManagesRecordProvider";
 
45
Vendor = "$2";
 
46
Version = "$5";
 
47
InterfaceType = "CMPI";
 
48
InterfaceVersion = "2.0.0";
 
49
};
 
50
 
 
51
instance of PG_Provider {
 
52
Caption = "OpenDRIM_LogManagesRecord provider";
 
53
Name = "OpenDRIM_RecordLogPackage_OpenDRIM_LogManagesRecordProvider";
 
54
ProviderModuleName = "OpenDRIM_RecordLogPackage_OpenDRIM_LogManagesRecordModule";
 
55
};
 
56
 
 
57
instance of PG_ProviderCapabilities {
 
58
Caption = "OpenDRIM_LogManagesRecord provider capabilities";
 
59
ProviderModuleName = "OpenDRIM_RecordLogPackage_OpenDRIM_LogManagesRecordModule";
 
60
ProviderName = "OpenDRIM_RecordLogPackage_OpenDRIM_LogManagesRecordProvider";
 
61
ClassName = "OpenDRIM_LogManagesRecord";
 
62
ProviderType = {2, 3};
 
63
Namespaces = {"$1"};
 
64
SupportedProperties = {"Log", "Record"};
 
65
CapabilityID = "OpenDRIM_RecordLogPackage_OpenDRIM_LogManagesRecord";
 
66
};
 
67
 
 
68
EOFC
 
69
        
 
70
        cimmof -n root/PG_InterOp $OUTFILE
 
71
        
 
72
        rm -f $OUTFILE
 
73
        
 
74
fi
 
75
 
 
76
if test "$3" = sfcb
 
77
then
 
78
        
 
79
        OUTFILE=./OpenDRIM_LogManagesRecord.reg
 
80
        
 
81
cat >> $OUTFILE <<EOFC
 
82
[OpenDRIM_LogManagesRecord]   
 
83
   provider: OpenDRIM_RecordLogPackage_OpenDRIM_LogManagesRecordProvider
 
84
   location: cmpiOpenDRIM_RecordLogPackage_OpenDRIM_LogManagesRecordProvider
 
85
   type: instance association
 
86
   namespace: $1
 
87
#
 
88
EOFC
 
89
        
 
90
        sfcbstage -r $OUTFILE -n $1 $6/mof/OpenDRIM_LogManagesRecord.mof
 
91
        
 
92
        rm -f $OUTFILE
 
93
        
 
94
        sfcbrepos -f
 
95
        
 
96
fi
 
97
 
 
98
if test "$3" = openwbem
 
99
then
 
100
        
 
101
        OUTFILE=./OpenDRIM_LogManagesRecord-reg.mof
 
102
        rm -f $OUTFILE
 
103
        sed "s/Provider *( *\"cmpi:/Provider(\"cmpi::/g" < $6/mof/OpenDRIM_LogManagesRecord.mof >> $OUTFILE
 
104
        owmofc -u http://localhost/$1 $OUTFILE
 
105
        
 
106
        rm -f $OUTFILE
 
107
        
 
108
fi