usr/src/lib/libxml2/install-libxml2-64
author Cyril Plisko <cyril.plisko@grigale.com>
Sat, 23 Apr 2011 12:08:45 -0700
changeset 74 fd34810c2c84
parent 3 ad3552f8e1ef
permissions -rw-r--r--
Import sfw build 163 Bugs Fixed ---------- 6818324 zebra should be able to be launched with --retain option 6829723 quagga build waits for user input 6850303 webmin no longer needs to deliver its own private copy of Net::SSLeay 6996979 SFW needs to finish migration to Python 2.6 7013569 quagga: bgpd: missing privilege "proc_fork" 7014295 quagga make targets in the wrong places. 7020999 CVE-2011-0719 Samba is vulnerable to DoS by memory corruption 7022250 Typo in quagga start method. 7022259 ripngd rejects short form for --retain option 7022721 quagga tries to install common/rbac/exec_attr 7027870 need to fix rbac entries in sfw for PSARC/2010/357 7027911 remove yet more things from sfw

#!/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) 2001, 2011, Oracle and/or its affiliates. All rights reserved.
#
# ident	"@(#)install-libxml2-64	1.17	11/03/22 SMI"
#

set -o errexit

VERS=${1}

PREFIX=${ROOT}/usr
LIBDIR=${PREFIX}/lib/${MACH64}	# MACH64 passed in by makefile
ROOTLIBDIR=${ROOT}/lib/${MACH64}
BASE_PYTHON26DIR=${PREFIX}/lib/python2.6
PYTHON26DIR=${BASE_PYTHON26DIR}/vendor-packages/64
PKGDIR=${LIBDIR}/pkgconfig

source ${SRC}/tools/install.subr

cd ${VERS}

rm -f ${PKGDIR}/libxml-2.0.pc
rm -f /tmp/mysed$$
echo "s/^libdir.*/&\/${MACH64}/" >/tmp/mysed$$
sed -f /tmp/mysed$$ < libxml-2.0.pc > ${PKGDIR}/libxml-2.0.pc
rm -f /tmp/mysed$$
chmod 444 ${PKGDIR}/libxml-2.0.pc

_install D .libs/libxml2.so ${ROOTLIBDIR}/libxml2.so.2 555
_install L ../../../lib/${MACH64}/libxml2.so.2 ${LIBDIR}/libxml2.so.2
_install L libxml2.so.2 ${ROOTLIBDIR}/libxml2.so
_install L libxml2.so.2 ${LIBDIR}/libxml2.so
_install N llib-lxml2.ln ${ROOTLIBDIR}/llib-lxml2.ln 444
_install L ../../../lib/${MACH64}/llib-lxml2.ln ${LIBDIR}/llib-lxml2.ln
_install D python/.libs/libxml2mod.so ${PYTHON26DIR}/libxml2mod.so 555

exit 0