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

#!/bin/sh
#
# 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) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
#
#pragma ident	"@(#)install.sfw	1.3	10/10/06 SMI"
#

VERS=$1

PREFIX=${ROOT}/usr
BINDIR=${PREFIX}/bin
SHAREDIR=${PREFIX}/share
MAN1mDIR=${SHAREDIR}/man/man1m
MAN4DIR=${SHAREDIR}/man/man4

. ${SRC}/tools/install.subr

# manpages is converted by sunman-auditing sed-script to
# append warning about sudo and auditing, the stability and availability. 

MANSCRIPT=sunman-sedscript
for page in sudo.1m visudo.1m
do
    _install M ${ROOTDIR}/${MAN1mDIR}/${page} ${ROOTDIR}/${MAN1mDIR}/${page}.temporary 444
    mv -f ${ROOTDIR}/${MAN1mDIR}/${page}.temporary ${ROOTDIR}/${MAN1mDIR}/${page}
done

# relink sudoedit.1m
rm -f ${ROOTDIR}/${MAN1mDIR}/sudoedit.1m
ln ${ROOTDIR}/${MAN1mDIR}/sudo.1m ${ROOTDIR}/${MAN1mDIR}/sudoedit.1m 

for page in sudoers.4 
do
    _install M ${ROOTDIR}/${MAN4DIR}/${page} ${ROOTDIR}/${MAN4DIR}/${page}.temporary 444
    mv -f ${ROOTDIR}/${MAN4DIR}/${page}.temporary ${ROOTDIR}/${MAN4DIR}/${page}
done

exit 0