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 |
#
|
|
24 |
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
|
|
25 |
# Use is subject to license terms.
|
|
26 |
#
|
|
27 |
# ident "@(#)install-sfw-64 1.1 09/03/11 SMI"
|
|
28 |
|
|
29 |
# Stop at first error
|
|
30 |
set -o errexit
|
|
31 |
|
|
32 |
PREFIX=${ROOT}/usr
|
|
33 |
SBINDIR=${PREFIX}/sbin/${MACH64}
|
|
34 |
LIBDIR=${PREFIX}/lib/${MACH64}
|
|
35 |
PKGCONFIG_DIR=${LIBDIR}/pkgconfig
|
|
36 |
|
|
37 |
PLUGIN_DIR=${LIBDIR}/openwsman/plugins
|
|
38 |
AUTH_LIB_DIR=${LIBDIR}/openwsman/authenticators
|
|
39 |
|
|
40 |
source ${SRC}/tools/install.subr
|
|
41 |
|
|
42 |
# BLDDIR is passed in from Makefile.sfw as environment variable
|
|
43 |
|
|
44 |
# install the daemon
|
|
45 |
_install E ${BLDDIR}/src/server/.libs/openwsmand ${SBINDIR}/openwsmand 555
|
|
46 |
|
|
47 |
|
|
48 |
# install libraries
|
|
49 |
|
|
50 |
OPENWSMAN_LIB_LIST="\
|
|
51 |
libwsman.so \
|
|
52 |
libwsman_curl_client_transport.so \
|
|
53 |
libwsman_client.so \
|
|
54 |
libwsman_server.so"
|
|
55 |
|
|
56 |
for i in ${OPENWSMAN_LIB_LIST}
|
|
57 |
do
|
|
58 |
_install D ${BLDDIR}/src/lib/.libs/${i}.1.0.0 ${LIBDIR}/${i}.1.0.0 555
|
|
59 |
_install L ${i}.1.0.0 ${LIBDIR}/${i}
|
|
60 |
_install L ${i}.1.0.0 ${LIBDIR}/${i}.1
|
|
61 |
done
|
|
62 |
|
|
63 |
_install D ${BLDDIR}/src/cpp/.libs/libwsman_clientpp.so.0.0.0 ${LIBDIR}/libwsman_clientpp.so.0.0.0 555
|
|
64 |
_install L libwsman_clientpp.so.0.0.0 ${LIBDIR}/libwsman_clientpp.so
|
|
65 |
_install L libwsman_clientpp.so.0.0.0 ${LIBDIR}/libwsman_clientpp.so.0
|
|
66 |
|
|
67 |
# install plugin libraries
|
|
68 |
_install D ${BLDDIR}/src/plugins/identify/.libs/libwsman_identify_plugin.so.1.0.0 ${PLUGIN_DIR}/libwsman_identify_plugin.so.1.0.0 555
|
|
69 |
_install L libwsman_identify_plugin.so.1.0.0 ${PLUGIN_DIR}/libwsman_identify_plugin.so
|
|
70 |
_install L libwsman_identify_plugin.so.1.0.0 ${PLUGIN_DIR}/libwsman_identify_plugin.so.1
|
|
71 |
_install D ${BLDDIR}/src/plugins/wsman/test/.libs/libwsman_test.so.1.0.0 ${PLUGIN_DIR}/libwsman_test.so.1.0.0 555
|
|
72 |
_install L libwsman_test.so.1.0.0 ${PLUGIN_DIR}/libwsman_test.so
|
|
73 |
_install L libwsman_test.so.1.0.0 ${PLUGIN_DIR}/libwsman_test.so.1
|
|
74 |
|
|
75 |
|
|
76 |
# install authenticator libraries
|
|
77 |
_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
|
|
78 |
_install L libwsman_file_auth.so.1.0.0 ${AUTH_LIB_DIR}/libwsman_file_auth.so
|
|
79 |
_install L libwsman_file_auth.so.1.0.0 ${AUTH_LIB_DIR}/libwsman_file_auth.so.1
|
|
80 |
_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
|
|
81 |
_install L libwsman_pam_auth.so.1.0.0 ${AUTH_LIB_DIR}/libwsman_pam_auth.so
|
|
82 |
_install L libwsman_pam_auth.so.1.0.0 ${AUTH_LIB_DIR}/libwsman_pam_auth.so.1
|
|
83 |
|
|
84 |
# install pkgconfig files
|
|
85 |
PKGCONFIG_FILE_LIST="\
|
|
86 |
openwsman-server.pc \
|
|
87 |
openwsman++.pc \
|
|
88 |
openwsman.pc"
|
|
89 |
|
|
90 |
for i in ${PKGCONFIG_FILE_LIST}
|
|
91 |
do
|
|
92 |
_install N ${BLDDIR}/${i} ${PKGCONFIG_DIR}/${i} 0444
|
|
93 |
done
|
|
94 |
|
|
95 |
|
|
96 |
exit 0
|