0
|
1 |
#!/bin/ksh93
|
|
2 |
#
|
|
3 |
# CDDL HEADER START
|
|
4 |
#
|
|
5 |
# The contents of this file are subject to the terms of the
|
|
6 |
# Common Development and Distribution License (the "License").
|
|
7 |
# You may not use this file except in compliance with the License.
|
|
8 |
#
|
|
9 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
|
|
10 |
# or http://www.opensolaris.org/os/licensing.
|
|
11 |
# See the License for the specific language governing permissions
|
|
12 |
# and limitations under the License.
|
|
13 |
#
|
|
14 |
# When distributing Covered Code, include this CDDL HEADER in each
|
|
15 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
|
|
16 |
# If applicable, add the following below this CDDL HEADER, with the
|
|
17 |
# fields enclosed by brackets "[]" replaced with your own identifying
|
|
18 |
# information: Portions Copyright [yyyy] [name of copyright owner]
|
|
19 |
#
|
|
20 |
# CDDL HEADER END
|
|
21 |
#
|
|
22 |
|
|
23 |
#
|
14
|
24 |
# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
|
0
|
25 |
#
|
14
|
26 |
#ident "@(#)install-sfw 1.3 10/04/22 SMI"
|
0
|
27 |
|
|
28 |
# Stop at first error
|
|
29 |
set -o errexit
|
|
30 |
|
|
31 |
PREFIX=${ROOT}/usr
|
|
32 |
ETCDIR=${ROOT}/etc
|
|
33 |
SBINDIR=${PREFIX}/sbin
|
|
34 |
LIBDIR=${PREFIX}/lib
|
|
35 |
PKGCONFIG_DIR=${LIBDIR}/pkgconfig
|
|
36 |
INCLUDE_DIR=${PREFIX}/include
|
|
37 |
SHAREDIR=${PREFIX}/share
|
|
38 |
MANDIR=${SHAREDIR}/man/man8
|
|
39 |
|
|
40 |
PLUGIN_DIR=${LIBDIR}/openwsman/plugins
|
|
41 |
AUTH_LIB_DIR=${LIBDIR}/openwsman/authenticators
|
|
42 |
OPENWSMAN_INCLUDE_DIR=${PREFIX}/include/openwsman
|
|
43 |
OPENWSMAN_ETCDIR=${ETCDIR}/openwsman
|
|
44 |
|
|
45 |
source ${SRC}/tools/install.subr
|
|
46 |
|
|
47 |
# BLDDIR is passed in from Makefile.sfw as environment variable
|
|
48 |
|
|
49 |
# install the daemon
|
|
50 |
_install E ${BLDDIR}/src/server/.libs/openwsmand ${SBINDIR}/openwsmand 555
|
|
51 |
|
|
52 |
|
|
53 |
# install libraries
|
|
54 |
|
|
55 |
OPENWSMAN_LIB_LIST="\
|
|
56 |
libwsman.so \
|
|
57 |
libwsman_curl_client_transport.so \
|
|
58 |
libwsman_client.so \
|
|
59 |
libwsman_server.so"
|
|
60 |
|
|
61 |
for i in ${OPENWSMAN_LIB_LIST}
|
|
62 |
do
|
|
63 |
_install D ${BLDDIR}/src/lib/.libs/${i}.1.0.0 ${LIBDIR}/${i}.1.0.0 555
|
|
64 |
_install L ${i}.1.0.0 ${LIBDIR}/${i}
|
|
65 |
_install L ${i}.1.0.0 ${LIBDIR}/${i}.1
|
|
66 |
done
|
|
67 |
|
|
68 |
_install D ${BLDDIR}/src/cpp/.libs/libwsman_clientpp.so.0.0.0 ${LIBDIR}/libwsman_clientpp.so.0.0.0 555
|
|
69 |
_install L libwsman_clientpp.so.0.0.0 ${LIBDIR}/libwsman_clientpp.so
|
|
70 |
_install L libwsman_clientpp.so.0.0.0 ${LIBDIR}/libwsman_clientpp.so.0
|
|
71 |
|
|
72 |
# install plugin libraries
|
|
73 |
_install D ${BLDDIR}/src/plugins/identify/.libs/libwsman_identify_plugin.so.1.0.0 ${PLUGIN_DIR}/libwsman_identify_plugin.so.1.0.0 555
|
|
74 |
_install L libwsman_identify_plugin.so.1.0.0 ${PLUGIN_DIR}/libwsman_identify_plugin.so
|
|
75 |
_install L libwsman_identify_plugin.so.1.0.0 ${PLUGIN_DIR}/libwsman_identify_plugin.so.1
|
|
76 |
_install D ${BLDDIR}/src/plugins/wsman/test/.libs/libwsman_test.so.1.0.0 ${PLUGIN_DIR}/libwsman_test.so.1.0.0 555
|
|
77 |
_install L libwsman_test.so.1.0.0 ${PLUGIN_DIR}/libwsman_test.so
|
|
78 |
_install L libwsman_test.so.1.0.0 ${PLUGIN_DIR}/libwsman_test.so.1
|
|
79 |
|
|
80 |
|
|
81 |
# install authenticator libraries
|
|
82 |
_install D ${BLDDIR}/src/authenticators/file/.libs/libwsman_file_auth.so.1.0.0 ${AUTH_LIB_DIR}/libwsman_file_auth.so.1.0.0 555
|
|
83 |
_install L libwsman_file_auth.so.1.0.0 ${AUTH_LIB_DIR}/libwsman_file_auth.so
|
|
84 |
_install L libwsman_file_auth.so.1.0.0 ${AUTH_LIB_DIR}/libwsman_file_auth.so.1
|
|
85 |
_install D ${BLDDIR}/src/authenticators/pam/.libs/libwsman_pam_auth.so.1.0.0 ${AUTH_LIB_DIR}/libwsman_pam_auth.so.1.0.0 555
|
|
86 |
_install L libwsman_pam_auth.so.1.0.0 ${AUTH_LIB_DIR}/libwsman_pam_auth.so
|
|
87 |
_install L libwsman_pam_auth.so.1.0.0 ${AUTH_LIB_DIR}/libwsman_pam_auth.so.1
|
|
88 |
|
|
89 |
# install pkgconfig files
|
|
90 |
PKGCONFIG_FILE_LIST="\
|
|
91 |
openwsman-server.pc \
|
|
92 |
openwsman++.pc \
|
|
93 |
openwsman.pc"
|
|
94 |
|
|
95 |
for i in ${PKGCONFIG_FILE_LIST}
|
|
96 |
do
|
|
97 |
_install N ${BLDDIR}/${i} ${PKGCONFIG_DIR}/${i} 0444
|
|
98 |
done
|
|
99 |
|
|
100 |
|
|
101 |
# install Header files
|
|
102 |
|
|
103 |
OPENWSMAN_U_HEADERS=" \
|
|
104 |
buf.h \
|
|
105 |
carpal.h \
|
|
106 |
libu.h \
|
|
107 |
log.h \
|
|
108 |
logprv.h \
|
|
109 |
memory.h \
|
|
110 |
misc.h \
|
|
111 |
os.h \
|
|
112 |
uri.h \
|
|
113 |
uuid.h \
|
|
114 |
lock.h \
|
|
115 |
strings.h \
|
|
116 |
md5.h \
|
|
117 |
list.h \
|
|
118 |
hash.h \
|
|
119 |
base64.h \
|
|
120 |
iniparser.h \
|
|
121 |
debug.h \
|
|
122 |
uerr.h \
|
|
123 |
uoption.h \
|
|
124 |
gettimeofday.h \
|
|
125 |
syslog.h \
|
|
126 |
pthreadx.h"
|
|
127 |
|
|
128 |
for i in ${OPENWSMAN_U_HEADERS}
|
|
129 |
do
|
|
130 |
_install N ${BLDDIR}/include/u/${i} ${OPENWSMAN_INCLUDE_DIR}/u/${i} 444
|
|
131 |
done
|
|
132 |
|
|
133 |
# install cim header
|
|
134 |
_install N ${BLDDIR}/include/cim/cim-interface.h ${OPENWSMAN_INCLUDE_DIR}/cim/cim-interface.h 444
|
|
135 |
|
|
136 |
# install cpp headers
|
|
137 |
CPP_HEADERS="\
|
|
138 |
OpenWsmanClient.h \
|
|
139 |
Exception.h \
|
|
140 |
WsmanClient.h \
|
|
141 |
WsmanEPR.h \
|
|
142 |
WsmanFilter.h"
|
|
143 |
|
|
144 |
for i in ${CPP_HEADERS}
|
|
145 |
do
|
|
146 |
_install N ${BLDDIR}/src/cpp/${i} ${OPENWSMAN_INCLUDE_DIR}/cpp/${i} 444
|
|
147 |
done
|
|
148 |
|
|
149 |
WSMAN_HEADER_LIST="\
|
|
150 |
wsman-types.h \
|
|
151 |
wsman-names.h \
|
|
152 |
wsman-debug.h \
|
|
153 |
wsman-client.h \
|
|
154 |
wsman-client-api.h \
|
|
155 |
wsman-xml-api.h \
|
|
156 |
wsman-client-transport.h \
|
|
157 |
wsman-xml-serializer.h \
|
|
158 |
wsman-xml-serialize.h \
|
|
159 |
wsman-server-api.h \
|
|
160 |
wsman-faults.h \
|
|
161 |
wsman-soap-message.h \
|
|
162 |
wsman-api.h \
|
|
163 |
wsman-declarations.h \
|
|
164 |
wsman-soap.h \
|
|
165 |
wsman-epr.h \
|
|
166 |
wsman-filter.h \
|
|
167 |
wsman-soap-envelope.h \
|
|
168 |
wsman-subscription-repository.h \
|
|
169 |
wsman-event-pool.h \
|
|
170 |
wsman-cimindication-processor.h"
|
|
171 |
|
|
172 |
for i in ${WSMAN_HEADER_LIST}
|
|
173 |
do
|
|
174 |
_install N ${BLDDIR}/include/${i} ${OPENWSMAN_INCLUDE_DIR}/${i} 444
|
|
175 |
done
|
|
176 |
|
|
177 |
|
|
178 |
# install etc files
|
|
179 |
perl -pi -e 's#export RANDFILE#\#export RANDFILE#g' ${BLDDIR}/etc/owsmangencert.sh
|
|
180 |
perl -pi -e 's#8889#5985#g' ${BLDDIR}/etc/openwsman.conf
|
|
181 |
perl -pi -e 's#8888#5986#g' ${BLDDIR}/etc/openwsman.conf
|
|
182 |
_install S ${BLDDIR}/etc/owsmangencert.sh ${OPENWSMAN_ETCDIR}/owsmangencert.sh 555
|
|
183 |
_install N ${BLDDIR}/etc/openwsman.conf ${OPENWSMAN_ETCDIR}/openwsman.conf 444
|
|
184 |
_install N ssleay.cnf ${OPENWSMAN_ETCDIR}/ssleay.cnf 444
|
|
185 |
|
|
186 |
|
|
187 |
# SMF files
|
|
188 |
|
|
189 |
_install S svc-openwsmand ${ROOT}/lib/svc/method/svc-openwsmand 555
|
14
|
190 |
_install N openwsmand.xml ${ROOT}/lib/svc/manifest/network/openwsmand.xml 444
|
0
|
191 |
|
|
192 |
|
|
193 |
# install Man pages
|
|
194 |
|
|
195 |
_install N openwsmand.8 ${MANDIR}/openwsmand.8 444
|
|
196 |
|
9
|
197 |
_install N auth_attr ${ROOT}/etc/security/auth_attr.d/openwsman 0444
|
|
198 |
_install N exec_attr ${ROOT}/etc/security/exec_attr.d/openwsman 0444
|
|
199 |
_install N prof_attr ${ROOT}/etc/security/prof_attr.d/openwsman 0444
|
|
200 |
|
0
|
201 |
exit 0
|