usr/src/cmd/pen/install-sfw
author Jon Tibble <meths@btinternet.com>
Fri, 10 Feb 2012 16:19:42 +0000
branchoi_151a
changeset 114 b6d40d0a7b17
parent 14 ebdd963f7d5e
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 (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
#
#ident	"@(#)install-sfw	1.2	10/04/22 SMI"

set -o errexit

#
# install objects in the proto area, since it would
# really like to install locally, but that doesn't scale.
#

PREFIX=${ROOT}/usr
BINDIR=${PREFIX}/bin
SHAREDIR=${PREFIX}/share
MAN1DIR=${SHAREDIR}/man/man1
DOCDIR=${SHAREDIR}/doc/pen

source ${SRC}/tools/install.subr

cd ${VERS}

#
# executables
#
for i in pen mergelogs penctl penlog penlogd; do
	_install E ${i} ${BINDIR}/${i} 555
done

#
# man pages
#
# The pen manpages are updated by Sun to include a comment, an
# ATTRIBUTES section with stability classification, and a NOTES 
# section containing a pointer to the source package. We do this 
# automatically at install time. If the package is revised, it is
# possible that additional changes may be required.  This can be
# generally be done by updating the sunman-stability file.
#
MANSCRIPT=../sunman-stability
_install M pen.1 ${MAN1DIR}/pen.1 444
MANSCRIPT=../sunman-stability2
for i in mergelogs.1 penctl.1 penlog.1 penlogd.1; do
	_install M ${i} ${MAN1DIR}/${i} 444
done

#
# documents
#
for i in penstats HOWTO AUTHORS README ChangeLog COPYING; do
	_install N ${i} ${DOCDIR}/${i} 444
done

#
# cd into pen directory
#
cd ..

#
# smf related xml, script and conf files
# 
# It will add a smf service for 'pen' deamon. As pen needs a large mount of
# options, many smf style properties are proposed.
#
MANIDIR=${ROOT}/lib/svc/manifest/network/loadbalancer
SMF2DIR=${ROOT}/lib/svc/method

_install N Solaris/pen.xml ${MANIDIR}/pen.xml 444
_install N Solaris/pen-wrapper ${SMF2DIR}/pen 555

exit 0