Hi,
I think you want to make a depot with all
files on your .tar file. I know to solutions
to do that :
- untar your file in a directory, for example in /tmp/prepare_depot, write a PSF
file to describe your package and use swpackage
- write a PSF file with a postinstall file
which untar your .tar file.
I prefer the first solution for two resons :
1) you have not to write any postinstall,
postremove,... files
2) You can really simply change the content
of you package.
To create a depot (in a file named
test.depot for example) you need :
1) a PSF file to describe your product
2) the datas you want to put in your depot
3) use swpackage -s
-d
After you can copy your depot on a depot
server. See swpackage manpage to see how to
create your depot directly on a depot server,
it's almost the same command line.
Now an example for your PSF file (PSF is
Product Specifications File if I well remember)
Here is a small example with some values you
can change :
Product
tag NameOfYourProduct
title Complete name of your new product
revision
architecture HP_UX_B.11.00_700/800
machine_type 9000/[78]??
os_name HPUX
os_release ?.11.*
fileset
tag Files1
title First part of all my files
revision 1.0
directory =
file_permissions -o -g -m
end
end
You can put several filesets in a product. You can put several directory tags in a fileset.
For example if you tar file content's is :
/config
/binaries/...
you can make a product with two filesets :
fileset
tag Config
...
...
directory /tmp/prepare_depot/etc=/etc
...
end
fileset
tag Binaries
...
...
directory /tmp/prepare_depot/bin=/usr/bin
...
end
For more information on how to make a depot,
to know all options of PSF, swXXX you can read
this documentation :
http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90154/B2355-90154_top.html&con=/hpux/onlinedocs/B2355-90154/00/00/1-con.html&toc=/hpux/onlinedocs/B2355-90154/00/00/1-toc.html&searchterms=HP%7csoftware%7cwith%7cSD%7cmanaging&queryid=20010423-031648
Bye,
Herve