|
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 1.1 09/08/14 SMI" |
|
28 # |
|
29 |
|
30 # stop at first error |
|
31 set -o errexit |
|
32 |
|
33 PREFIX=${ROOT}/usr |
|
34 MANDIR=${SRC}/cmd/freeipmi/prototmp/usr/share/man/tmp_freeipmi_man |
|
35 MAN1MDIR=${PREFIX}/share/man/man1m |
|
36 MAN3DIR=${PREFIX}/share/man/man3 |
|
37 MAN4DIR=${PREFIX}/share/man/man4 |
|
38 MAN5DIR=${PREFIX}/share/man/man5 |
|
39 |
|
40 source ${SRC}/tools/install.subr |
|
41 |
|
42 # install bmc watchdog for freeIPMI |
|
43 _install N ${SRC}/cmd/freeipmi/bmc-watchdog.xml ${ROOT}/var/svc/manifest/system/bmc-watchdog.xml 444 |
|
44 _install N ${SRC}/cmd/freeipmi/svc-bmc-watchdog ${ROOT}/lib/svc/method/svc-bmc-watchdog 444 |
|
45 _install N ${SRC}/cmd/freeipmi/ipmidetectd.xml ${ROOT}/var/svc/manifest/system/ipmidetectd.xml 444 |
|
46 _install N ${SRC}/cmd/freeipmi/svc-ipmidetectd ${ROOT}/lib/svc/method/svc-ipmidetectd 444 |
|
47 |
|
48 # manpages is converted by sunman-stability sed-script to |
|
49 # append the stability and availability. |
|
50 MANSCRIPT=sunman-stability |
|
51 for MANSUBDIR in ${MANDIR}/* |
|
52 do |
|
53 if [ x`echo ${MANSUBDIR} | grep man[3578]$` != x ] && [ -d ${MANSUBDIR} ]; then |
|
54 for MANPAGE in ${MANSUBDIR}/* |
|
55 do |
|
56 _install M ${MANPAGE} ${MANPAGE}.tmp 444 |
|
57 mv -f ${MANPAGE}.tmp ${MANPAGE} |
|
58 if [ x`echo ${MANPAGE} | grep 5$` != x ] && [ -f ${MANPAGE} ]; then |
|
59 NEWMANPAGE=`echo ${MANPAGE} | sed -e 's/\.5$/\.4/'` |
|
60 mv -f ${MANPAGE} ${NEWMANPAGE} |
|
61 mv -f ${NEWMANPAGE} ${MAN4DIR} |
|
62 fi |
|
63 if [ x`echo ${MANPAGE} | grep 7$` != x ] && [ -f ${MANPAGE} ]; then |
|
64 NEWMANPAGE=`echo ${MANPAGE} | sed -e 's/\.7$/\.5/'` |
|
65 mv -f ${MANPAGE} ${NEWMANPAGE} |
|
66 mv -f ${NEWMANPAGE} ${MAN5DIR} |
|
67 fi |
|
68 if [ x`echo ${MANPAGE} | grep 8$` != x ] && [ -f ${MANPAGE} ]; then |
|
69 NEWMANPAGE=`echo ${MANPAGE} | sed -e 's/\.8$/\.1m/'` |
|
70 mv -f ${MANPAGE} ${NEWMANPAGE} |
|
71 mv -f ${NEWMANPAGE} ${MAN1MDIR} |
|
72 fi |
|
73 if [ x`echo ${MANPAGE} | grep 3$` != x ] && [ -f ${MANPAGE} ]; then |
|
74 mv -f ${MANPAGE} ${MAN3DIR} |
|
75 fi |
|
76 done |
|
77 fi |
|
78 done |
|
79 rm -rf ${SRC}/cmd/freeipmi/prototmp |
|
80 |
|
81 rm -f ${ROOT}/usr/lib/libfreeipmi.la |
|
82 rm -f ${ROOT}/usr/lib/libipmidetect.la |
|
83 rm -f ${ROOT}/usr/lib/libipmiconsole.la |
|
84 rm -f ${ROOT}/usr/lib/libipmimonitoring.la |
|
85 rm -f ${ROOT}/usr/lib/${MACH64}/libfreeipmi.la |
|
86 rm -f ${ROOT}/usr/lib/${MACH64}/libipmidetect.la |
|
87 rm -f ${ROOT}/usr/lib/${MACH64}/libipmiconsole.la |
|
88 rm -f ${ROOT}/usr/lib/${MACH64}/libipmimonitoring.la |
|
89 |
|
90 exit 0 |