SUMMARY (2): jumpstart installation of sunfreeware packages
2007-12-25
> I use jumpstart to install sunfreeware, home made and Sun (multifile
> packages such as updated JDK). Attached is the script that I have the
> master jumpstart script call and the noask_pkgadd file.
>
> source of packageinst (in case the attached doc is trimmed):
#!/bin/sh
#
# Installation of multiple solaris packages
#
ROOT=/a
#ADMINFILE=${ROOT}/tmp/admin-noask
ADMINFILE=/tmp/install_config/Packages/noask_pkgadd
WORKINGDIR=/tmp/install_config/Packages
LOGFILE=${ROOT}/var/sadm/system/logs/packageinst.log
echo "Starting package installation"
# clear log if it exsist
rm -f ${LOGFILE}
# set mask
umask 002
# make /usr/local
mkdir -p ${ROOT}/usr/local
# change to working dir
cd ${WORKINGDIR}
# install single file packages
for NAME in *-local; do
PRETTYNAME=`echo $NAME | sed 's/-.*$//g'`
echo "Installing -> $PRETTYNAME"
pkgadd -n -a ${ADMINFILE} -d ${NAME} -R ${ROOT} all >> ${LOGFILE}
2>&1
RETVAL=$?
if [ $RETVAL != "0" ]; then
echo "Failed to install package $PRETTYNAME... Check
${LOGFILE}"
fi
done
# install directory style packages
for NAME in `find . -type d -print |grep '\.\/[a-zA-Z0-9]*$'`; do
INSTNAME=`echo $NAME | sed 's#./##'`
echo "Installing -> $INSTNAME"
pkgadd -n -a ${ADMINFILE} -d . -R ${ROOT} ${INSTNAME} >> ${LOGFILE}
2>&1
RETVAL=$?
if [ $RETVAL != "0" ]; then
echo "Pkgadd Error in $INSTNAME... Check ${LOGFILE}"
fi
done
# done
echo "Package installation finished."
> <<packageinst>>
> The second file is the noask_pkgadd which is supplied by Sun JASS tooklit:
#
# Copyright (c) 2000, 2001 by Sun Microsystems, Inc.
# All rights reserved.
#
#ident "@(#)noask_pkgadd 2.1 00/11/05 SMI"
#
mail=
instance=overwrite
partial=nocheck
runlevel=nocheck
idepend=nocheck
rdepend=nocheck
space=ask
setuid=nocheck
conflict=nocheck
action=nocheck
basedir=default
<<noask_pkgadd>>
>
>
> -----Original Message-----
> From: Cawley,Stephen F.
> Sent: Monday, November 11, 2002 1:36 PM
> To: 'codeprof at codeprof.com'
> Subject: jumpstart installation of sunfreeware packages
>
> I am attempting to automate the installation of some sunfreeware.com
> packages using jumpstart under Solaris8. I have tried to get pkgask to
> create a proper response file but it does not seem to understand this type
> of package format. Has anyone automated the installation of this type of
> package?
>
> Any ideas would be appreciated.
>
> Steve
[demime 0.99c.7 removed an attachment of type application/octet-stream which had a name of packageinst]
[demime 0.99c.7 removed an attachment of type application/octet-stream which had a name of noask_pkgadd]
Comments
Got something to say?
You must be logged in to post a comment.

