Making a depot compatible with Apache 2.0 and 2.2

  • Follow


Dear,

HP-UX 11iv3 of September 2010 contains Apache 2.2, an upgrade from 2.0 that 
was inside HP-UX for a long time. With this change, the directory for Apache 
moved from /opt/hpws/apache to /opt/hpws22/apache. I amusing since long a 
depot file for installation a software package using swinstall. The 
installer files of the depot (embedded inside the depot) contain the 
directory /opt/hpws/apache in a hard-wired way. Installing the depot file on 
an Apache 2.2 installation fails. What I want is to modify the files such 
that the software package can install on HP-UX releases with Apache 2.0 and 
2.2. To this end I added a test in the shell scripts of the installer to 
find out which version of Apache is present in HP-UX to drop the files on 
the right path. The problem is in the INFO files, several of them are part 
of the depot file. This file is not a script but the long list of all files 
to be installed with their size, checksum, protection, ownership and more. 
Here is a part of this file :

file
path /opt/meter/newconfig/opt/hpws22/apache/cgi-bin/smartmeter.cgi
type f
size 554
cksum 606913370
mode 0444
uid 2
gid 2
owner bin
group bin
mtime 1275608399

The "path" statement contains the path to a file. I need to be able to vary 
the path between the 2 Apache versions. How can I do that ? If this file is 
called in the installer from a real HP-UX script, I could create an INFO 
file for Apache 2.0 and one for Apache 2.2 and vary between them 
appropriately. I browsed the web on creating depot files but did not find a 
solution. I assume many other apps for HP-UX (e.g. HP SIM) must suffer from 
this. How did they solve this ?

Best regards,

Marc. 


0
Reply Marc 9/29/2010 12:40:07 PM


0 Replies
445 Views

(page loaded in 0.024 seconds)

Similiar Articles:













7/23/2012 9:43:02 PM


Reply: