1 #! /bin/sh -e 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 # ident "@(#)install-sfw 1.12 08/11/21 SMI" 24 # 25 # Copyright 2008 Sun Microsystems, Inc. All rights reserved. 26 # Use is subject to license terms. 27 # 28 29 VERS=ipmitool-1.8.10 30 31 MANDIR=${ROOT}/usr/share/man # proto man directory 32 SFWDIR=${ROOT}/usr/sfw/bin # old proto dir for ipmitool 33 SBINDIR=${ROOT}/usr/sbin # proto dir for ipmitool binary 34 LIBDIR=${ROOT}/usr/lib # proto dir for ipmievd binary 35 XMLDIR=${ROOT}/var/svc/manifest/network # proto dir for ipmievd XML manifest 36 METHODDIR=${ROOT}/lib/svc/method # proto dir for ipmievd method 37 IPMITOOLMAN=${MANDIR}/man1m/ipmitool.1m # proto location of ipmitool manpage 38 IPMIEVDMAN=${MANDIR}/man8/ipmievd.8 # proto location of ipmievd manpage 39 IPMITOOL=${SBINDIR}/ipmitool # proto location of ipmitool binary 40 IPMIEVD=${LIBDIR}/ipmievd # proto location of ipmievd binary 41 METHOD=svc-ipmievd # SMF ipmievd method filename 42 XMLFILE=ipmievd.xml # SMF ipmievd XML filename 43 44 # manpages are special "sun" versions with corrected section 45 # references, etc. These are the ones we actually install. 46 # Note to maintainers - if the package revs, you need to re-create 47 # new sun versions of the manpages. 48 49 . ${SRC}/tools/install.subr 50 51 for i in ${IPMITOOLMAN} ${IPMIEVDMAN} 52 do 53 manpage=`basename ${i}` # ipmitool.1m/ipmievd.8 54 55 _install N ${manpage}.sunman ${i} 444 56 done 57 58 for i in ${IPMITOOL} ${IPMIEVD} 59 do 60 tool=`basename ${i}` # ipmitool/ipmievd 61 62 _install E ${VERS}/src/${tool} ${i} 555 63 64 if [ "${tool}" = "ipmitool" ] ; then 65 # create a symbolic link PSARC/2006/412 from old location 66 _install L ../../sbin/${tool} ${SFWDIR}/${tool} 67 else 68 # Install ipmievd SMF files 69 _install N ${XMLFILE} ${XMLDIR}/${XMLFILE} 444 70 71 _install S ${METHOD} ${METHODDIR}/${METHOD} 555 72 fi 73 done 74 75 exit 0 76