Operating System - HP-UX
1753587 Members
7167 Online
108796 Solutions
New Discussion юеВ

Re: How to modify existing SDUX Package

 
SOLVED
Go to solution
Dennis Handly
Acclaimed Contributor

Re: How to modify existing SDUX Package

>Armin: Each depot is a tar-file actually. So un-tar it and check catalog/INDEX.

Why would I do this if I know the GUI will do it for me?
Armin Kunaschik
Esteemed Contributor

Re: How to modify existing SDUX Package

@Dennis: Because you were asking!?!?

>Do you know how to do this besides using the GUI?

Puzzled,
Armin
And now for something completely different...
Dennis Handly
Acclaimed Contributor

Re: How to modify existing SDUX Package

>Armin: Because you were asking!?

I was asking for a SPB command line option equivalent for a feature that is available in the GUI.
Armin Kunaschik
Esteemed Contributor

Re: How to modify existing SDUX Package

Ah... Ok.
Then what about tar -xvf .depot catalog/INDEX ? :-)
And now for something completely different...
Dennis Handly
Acclaimed Contributor

Re: How to modify existing SDUX Package

>Armin: Then what about tar -xvf .depot catalog/INDEX? :-)

Why would I want the INDEX file if I need a PSF? And I know there is a GUI tool that will provide one?
Bob E Campbell
Honored Contributor

Re: How to modify existing SDUX Package

I am not sure I want to encourage depot brain surgery. I do it rather often myself but only in cases of extreme need.

I might point out that:

1. There is an order to serial depots. I recommend using swcopy/swpackage rather than tar.

2. catalog/INDEX is only the master index. It gets rebuilt from the fileset level indicies.

3. I have been working with SD attributes for years and can still make some big mistakes. Working with a PSF and/or SPB very recommended.

4. Use swmodify. For simple changes of basic attributes you can tweak content in a supported way. Never tweak an INDEX when the attributes are swmodify-able.
Armin Kunaschik
Esteemed Contributor

Re: How to modify existing SDUX Package

@Bob: The question was only how to get a PSF out of a depot easily (as I understood). In this special case (and only this) it's OK to un-tar the INDEX file. Otherwise I completely agree with you.

My 2 cents,
Armin
And now for something completely different...
Dennis Handly
Acclaimed Contributor

Re: How to modify existing SDUX Package

>Armin: The question was only how to get a PSF out of a depot easily. In this special case (and only this) it's OK to un-tar the INDEX file.

Yes and SPB does that for you, so no need to look at the INDEX file.
(Thanks for mention of this handy tool.)
Ganesh Balraman
Regular Advisor

Re: How to modify existing SDUX Package

Hi All,

I have modified the existing psf and ran the package .

It is workign fine .

We need one more additional requirement as one directory needs to be created as part of this product.

How to include string in psf file for creating directory.

Apreciate the best repsone.

Thanks,
Ganesh
Bob E Campbell
Honored Contributor

Re: How to modify existing SDUX Package

There are two ways to create a directory. One is to create a configure script that can run any commands you would like (do not prompt for user input!).

The other way is exactly the same as your other files. The swpackage command will take an explicitly named directory or match "*" to directories being packaged. For example, for SWA my PSF might have:

product
tag SWAMin
[snip]
fileset
tag SWA-RUN
[snip]
configure CTRL_D/SWA/SWA-RUN/configure
directory ./opt/swa/lbin=/opt/swa/lbin
file swainv
file -m 0555 -o bin -g bin /tmp /opt/swa
file -m 0555 -o bin -g bin /tmp /opt/swa/lbin

This will add a fileset-level configure script as well as the file swainv to the package while controlling the directory ownership.

See the swpackage(4) man page for more information (use "man 4 swpackage" to