#!/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 2007 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# pragma ident "@(#)install-ifdh_usbccid 1.9 07/04/02 SMI"
#
#
# install the USB CCID IFD Handler's objects in the proto area
# These are: manpages, libraries
#
VERS=1.1
# BUILD_DIR - the root of the build directory
BUILD_DIR=`pwd`
BUILD_LIBDIR=${BUILD_DIR}/${MACH}
# LIBDIR - where we put the IFD handler, note that the handler
# is delivered to /usr/lib/smartcard, not somewhare in
# the /usr/sfw tree!
LIBDIR=${ROOT}/usr/lib/smartcard
# SHAREDIR - where we put the IFD handler's man page, note that
# the manpage is delivered to the 3smartcard directory,
# not somewhere in the /usr/sfw tree!
SHAREDIR=${ROOT}/usr/share
MANDIR=${SHAREDIR}/man/man3smartcard
MANSRCDIR=${BUILD_DIR}/docs
MANPAGE=usb_ccid_ifd.3smartcard
# LIBNAME - IFD handler .so file
LIBNAME=ifdh_usbccid.so
LIBVERS=1
. ${SRC}/tools/install.subr
#install man page
_install N ${MANSRCDIR}/${MANPAGE} ${MANDIR}/${MANPAGE} 444
#install libs
_install D ${BUILD_LIBDIR}/${LIBNAME}.${LIBVERS} \
${LIBDIR}/${LIBNAME}.${LIBVERS} \
755
_install L ${LIBNAME}.${LIBVERS} ${LIBDIR}/${LIBNAME}
exit 0