1833792 Members
2348 Online
110063 Solutions
New Discussion

packaging

 
Satish Y
Trusted Contributor

packaging

Hi,

I wanted to create one package named app_java_hpux_11, should include below:

All files and sub-directories in /opt/java1.4
All files and sub-directories in /opt/app/conf
All files in /opt/app/scripts

Once package is created, should be able to install using swinstall.

I am not sure about psf file structure and created by looking at some thread.

I was trying to swpackage using following psf file /tmp/app.psf:

tag app_java_hpux_11
title APP bundle includes Java 1.4.x
os_name HP-UX
revision B.11.00
architecture S700/S800_HP-UX_11
contents
directory /opt/java1.4
file .??*
file *
directory /opt/app/conf
file .??*
file *
directory /opt/app/scripts
file .??*
file *
end

command:
swpackage -p -v -s /tmp/app.psf -d /var/adm/crash/app/Rel_B.11.X

following error:

WARNING: No value defined for the keyword "contents", at line 7.
ERROR: Incomplete definition for the bundle "app_java_hpux_11", beginning
at line 1. The following attributes are not defined:
contents the software contained in the bundle
The attribute(s) must be defined before the parsing can
continue.
ERROR: Invalid definition for the bundle "app_java_hpux_11", beginning at
line 1. Details described above. The error(s) must be
corrected before the parsing can continue.

Cheers...
Satish
Difference between good and the best is only a little effort
3 REPLIES 3
Ralf Seefeldt
Valued Contributor

Re: packaging

Hello Satish,

I am not sure,whether you may use ? and * in the content section.

Try it again without those variable-letters.

you may first test it with only a few files. I think it should work if you avoud the * and ?

You may get a list of jour required files by typing:
cd /
ls -R1 /opt/java1.4
...

I hope tthis helps.

bye
Ralf
Dennis Handly
Acclaimed Contributor

Re: packaging

To see how a SD depot is packaged, you should use "swlist -v -l depot" on an existing depot. Then repeat with -l product, then -l fileset then -l file.

An SD depot is composed of optional bundles that can contain multiple SD products. SD products can contain multiple SD filesets.

It is the SD filesets that contain files.

See sd(4):
http://docs.hp.com/en/B2355-60130/sd.4.html
Managing HP-UX Software With SD-UX: HP 9000 Computers
http://www.docs.hp.com/en/B2355-90107/index.html
Olivier Masse
Honored Contributor

Re: packaging

If you wish, instead of building a .psf manually or using software package builder, you can try a script I've been using for years that simplifies this process.

Download this:
http://www.mayoxide.com/goldendepot/make_package.sh

The script has a built-in usage but in your case you would run:
make_package.sh -p app_java_hpux_11 -t "APP bundle includes Java 1.4.x" -v B.11.00 -f /opt/java1.4 /opt/app/conf /opt/app/scripts