Import sfw build 137
Bugs Fixed
----------
6926835 Wireshark cannot open files typed into the location bar
6930214 CVE-2010-0624: Heap-based buffer overflow in GNU Tar
6933424 Various sfw manual pages need to be adjusted to use the new OpenSolaris package names.
6937764 upgrade OpenSSL to 0.9.8n (and fix CVE-2010-0740)
#!/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-grails 1.3 10/01/08 SMI"
# exit on first error
set -o errexit
umask 0022
GRAILS_VER=$1
BUILD_DIR=grails-${GRAILS_VER}
source ${SRC}/tools/install.subr
# unpack binaries
GRAILS_BIN=${BUILD_DIR}/binaries
mkdir -p ${GRAILS_BIN}
unzip -o ${BUILD_DIR}/dist/grails-bin-${GRAILS_VER}.zip -d ${GRAILS_BIN}
# install Grails
USR_GRAILS=${ROOT}/usr/grails/${GRAILS_VER}
rm -rf ${USR_GRAILS}
mkdir -p ${USR_GRAILS}
cp -r ${GRAILS_BIN}/grails-${GRAILS_VER}/* ${USR_GRAILS}
# remove unwanted files
rm ${USR_GRAILS}/bin/*.bat
rm ${USR_GRAILS}/bin/cygrails
rm ${USR_GRAILS}/ant/bin/*.bat
rm ${USR_GRAILS}/ant/bin/*.cmd
# fix shell scripts
cp src/grails ${USR_GRAILS}/bin
cp src/grails-debug ${USR_GRAILS}/bin
for i in antRun.pl complete-ant-cmd.pl runant.pl
do
_fixup_perl ${USR_GRAILS}/ant/bin/$i
done
_install P ${GRAILS_BIN}/grails-${GRAILS_VER}/ant/bin/runant.py ${USR_GRAILS}/ant/bin/runant.py 0555
# create sym links
cd ${ROOT}/usr/bin
rm -f grails
ln -s ../grails/${GRAILS_VER}/bin/grails grails
rm -f grails-debug
ln -s ../grails/${GRAILS_VER}/bin/grails-debug grails-debug
cd -
# fix rights
chmod 555 ${USR_GRAILS}/bin/grails
chmod 555 ${USR_GRAILS}/bin/grails-debug
chmod 555 ${USR_GRAILS}/ant/bin/*
# install man pages
MANSCRIPT=$(pwd)/sunman-stability
MAN_PAGES_SRC=$(pwd)/src
MAN_PAGES_DEST=${ROOT}/usr/share/man/man1
_install M ${MAN_PAGES_SRC}/grails.1 ${MAN_PAGES_DEST}/grails.1 444
_install M ${MAN_PAGES_SRC}/grails-debug.1 ${MAN_PAGES_DEST}/grails-debug.1 444
# fix names with spaces
# workaround for bug 6734267 (pkgmk does not allow spaces in file names)
# the following files are not used directly by Grails framework...
cd ${USR_GRAILS}/media/icons
mv 'grails - 16x16 icon.png' grails-16x16icon.png
mv 'grails - 32x32 icon.png' grails-32x32icon.png
mv 'grails - 48x48 icon.png' grails-48x48icon.png
mv 'grails - 64x64 icon.png' grails-64x64icon.png
mv 'grails - 128x128 icon.png' grails-128x128icon.png
exit 0