#!/bin/sh # # # This script installs BOLTpget /usr/bin/pkg-get. This package allows for # connection to sunfreeware.com to install any packages from that site. # The BOLT package requires wget to run properly. If wget is not installed # then /usr/local/bin/pkg-get will install upon first running the script. # Harry Hoffman logMessage "Installing BOLTpget.\n" BOLTpget_NAME="BOLTpget" BOLTpget_PKG_SRC="${BOLTpget_NAME}.pkg" BOLTpget_PKG_DIR="${JASS_ROOT_DIR}/${JASS_PACKAGE_DIR}" PKGRM_FILE_JASS="/opt/SUNWjass/Packages/noask_pkgrm" # Install BOLTpget package onto the client logMessage "Installing ${BOLTpget_NAME} from ${BOLTpget_PKG_DIR}/${BOLTpget_PKG_SRC}.\n" if [ -f ${BOLTpget_PKG_DIR}/${BOLTpget_PKG_SRC} ]; then add_pkg -d ${BOLTpget_PKG_DIR}/${BOLTpget_PKG_SRC} ${BOLTpget_NAME} add_to_manifest X "pkgrm -n -a ${PKGRM_FILE_JASS} ${BOLTpget_NAME}" else logFileNotFound ${BOLTpget_NAME} logMessage " The BOLTpkget program can be downloaded from sunfreeware.com This package requires wget to run. However if wget is not installed then pkg-get will download and install wget on the initial run of the script. For more information please see http://www.bolthole.com/solaris/pkg-get.html. " fi