| Prab_kar@hotmail.com 2005-04-22, 6:00 pm |
| Hello all,
I dont know if this is an appropriate group to ask questions about
Solaris pkging, but I'm taking a shot.
I'm trying to creating a Solaris pkg which should install files
selectively based on the environment its being installed on. This
process will be a silent install, with no user interaction. I'm
interested in using the response file.
The pkg should determine which host its on and install files
accordingly. If host is "NY1234", it needs to install "NYFoo.txt" file
and if the host is "LON1234", it needs to install "LondonFoo.txt".
I believe I can achive this using the class action scripts and defining
the class in the pkginfo or prototype filles. Could anyone give me some
pointers on how to go about doing this, please?
Where do I put code like,
------------------------------=AD----------------------
if (`hostname` =3D=3D "NY1234" ) then
<install> NYFoo.txt
else if ( `hostname` =3D=3D "LON1234" ) then
<install> LONFoo.txt
endif
------------------------------=AD----------------------
What command should I use for "<install>"? Is there any Solaris command
to install just a file?=20
Thanks for your time,=20
Prabh
|