Operating System - HP-UX
1753797 Members
7398 Online
108805 Solutions
New Discussion юеВ

sd-ux (HP-UX 11) default directory

 
Vicente Moreno
New Member

sd-ux (HP-UX 11) default directory

Hi all,
I've been working with SD-UX on HP-UX 10.20 without problems, but now I am packaging depots in HP-UX 11.11 and the fields directory and is_locatable are working differently, the new products are always installed at the root directory instead of in the directory specified by the directory field.

What can I do in order to install the files in the directory specified by the directory field?

On HP-UX 10.20 I used the location field, not the directory field.

 

 

P.S. This thread has been moved  from HP-UX > General to HP-UX > patches - HP Forums Moderator

2 REPLIES 2
Robert-Jan Goossens
Honored Contributor

Re: sd-ux (HP-UX 11) default directory

Hi Vicento,

http://docs.hp.com/en/B2355-90979/ch10s04.html

directory

The default, absolute pathname to the directory in which the product's files will be installed (the root directory of the product). If not specified, swpackage assigns a value of /.

is_locatable

Defines whether a product or bundle can be installed to any product directory, or whether it must be installed into a specific directory. The attribute can be set to true or false. If not defined, swpackage sets the default attribute to "false."

example

product
tag SD
architecture HP-UX_B.11.00_32/64
category_tag systems_management
contents prod.fsl,r=1.0,a=,v=
copyright description directory /usr <------
is_locatable false <------
is_patch false
machine_type *
number J2326AA
os_name HP-UX
os_release ?.11.00.*
os_version B.11.**
postkernel /usr/lbin/kernel_build
+ readme revision 2.0
title Software Distributor
vendor_tag HP

# Optional vendor specification
# Optional subproduct specification
# REQUIRED FILESET SPECIFICATION

Best regards,
Robert-Jan
Vicente Moreno
New Member

Re: sd-ux (HP-UX 11) default directory

Hi Robert-Jan,

I'll try to explain a test case.

If I package on HP-UX 11 using this psf:

distribution
layout_version 1.0

product
tag TEST
is_locatable true
directory /tmp/test

fileset
tag fTEST
directory /usr/bin=/testbin
file sh
end
end

a then I install the product TEST with the command:

# swinstall -s \*

The file sh will be copied to /testbin/

If I package on HP-UX 10.20 using this psf:

distribution
layout_version 1.0

product
tag TEST
is_locatable true
### directory /tmp/test <--
location /tmp/test

fileset
tag fTEST
directory /usr/bin=/testbin
file sh
end
end

a then I install the product TEST with the command:

# swinstall -s \*

The file sh will be copied to /tmp/test/testbin/

that is what I want.

Best Regards,
Vicente