usr/src/cmd/sg3_utils/install-sfw
author Jon Tibble <meths@btinternet.com>
Fri, 10 Feb 2012 16:19:42 +0000
branchoi_151a
changeset 114 b6d40d0a7b17
parent 9 502b128296a2
permissions -rw-r--r--
Added tag oi_151a_prestable1 for changeset b1282e88c680

#! /usr/bin/ksh93
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#

#
# Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
# ident	"@(#)install-sfw	1.2	10/02/19 SMI"

PREFIX=${ROOT}/usr
BINDIR=${PREFIX}/sbin
MAN1MDIR=${PREFIX}/share/man/man1m
LIBDIR=${PREFIX}/lib

MANSCRIPT=sunman-stability

# stop at first error
set -o errexit

source ${SRC}/tools/install.subr

SG3_BIN_LIST="\
	sg_rmsn \
	sg_readcap \
	sg_write_long \
	sg_rtpg \
	sg_read_buffer \
	sg_logs \
	sg_inq \
	sg_verify \
	sg_modes \
	sg_stpg \
	sg_sat_set_features \
	sg_read_long \
	sg_wr_mode \
	sg_senddiag \
	sg_sat_identify \
	sg_sat_phy_event \
	sg_raw \
	sg_write_buffer \
	sg_reassign \
	sg_luns \
	sg_sync \
	sg_vpd \
	sg_prevent \
	sg_requests \
	sg_safte \
	sg_get_config \
	sg_persist \
	sg_ident \
	sg_start \
	sg_ses \
	sg_turs \
	sg_opcodes \
	sg_rdac"

for i in ${SG3_BIN_LIST}
do
	_install E ${VERS}/src/.libs/${i} ${BINDIR}/${i} 555
done

_install D ${VERS}/lib/.libs/libsgutils2.so.2.0.0 ${LIBDIR}/libsgutils2.so.2.0.0 555
_install L libsgutils2.so.2.0.0 ${LIBDIR}/libsgutils2.so
_install L libsgutils2.so.2.0.0 ${LIBDIR}/libsgutils2.so.2

for i in ${SG3_BIN_LIST}
do
	_install M ${VERS}/doc/${i}.8 ${MAN1MDIR}/${i}.1m 444
done
_install M ${VERS}/doc/sg3_utils.8 ${MAN1MDIR}/sg3_utils.1m 444

_install N exec_attr ${ROOT}/etc/security/exec_attr.d/sg3_utils 444
_install N prof_attr ${ROOT}/etc/security/prof_attr.d/sg3_utils 444

exit 0