Bug 167330 - some users may require /opt directory layout
Summary: some users may require /opt directory layout
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: tog-pegasus
Version: 4.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Jason Vas Dias
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-09-01 17:09 UTC by Jason Vas Dias
Modified: 2007-11-30 22:07 UTC (History)
0 users

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-08-02 20:07:24 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jason Vas Dias 2005-09-01 17:09:17 UTC
Description of problem:

With tog-pegasus-2.4.1-2.rhel4+ we moved away from the upstream practice 
of installing all tog-pegasus components under /opt, as this contravenes
our packaging guidelines, and could present serious problems to users who
have only a small / partition and /opt by default on /.

The following mappings were made, which it was attempted to make as
"conventional" as possible while retaining the tog-pegasus functionality:

/etc/opt/tog-pegasus   ->   /etc/Pegasus   : configuration files
/opt/tog-pegasus/sbin  ->   /usr/sbin      : superuser programs
/opt/tog-pegasus/bin   ->   /usr/bin       : user programs
/opt/tog-pegasus/lib   ->   /usr/lib       : libraries
/opt/tog-pegasus/mof   ->   /usr/share/Pegasus/mof : managed object files
/opt/tog-pegasus/samples   -> /usr/share/Pegasus/samples : "SDK" samples
/opt/tog-pegasus/test      -> /usr/share/Pegasus/test    : test rpm files
/opt/tog-pegasus/html      -> /usr/share/Pegasus/html    : html repository
/opt/tog-pegasus/share/man -> /usr/share/man             : man-pages
/opt/tog-pegasus/share/doc -> /usr/share/doc/tog-pegasus-${VERSION} : docs
/opt/tog-pegasus/providers/lib -> /usr/lib/Pegasus/providers: provider DSOs
/var/opt/tog-pegasus           ->  /var/lib/Pegasus : cache and repository
/var/run/tog-pegasus/socket    ->  /var/run/tog-pegasus  : pid and socket files

The tog-pegasus internal hard-coded paths were changed to conform to this new
layout.

But some users with third-party scripts or applications may not be able to
use this layout.

So a script was provided, in 
/usr/share/Pegasus/scripts/opt-tog-pegasus ,
that will create the required symobolic links to make every path 
that was valid in the upstream tog-pegasus release layout still 
valid in the Red Hat tog-pegasus release layout.
  
To use this script, simply type, as root :

# /usr/share/Pegasus/scripts/opt-tog-pegasus


This will create links to the tog-pegasus files in /bin, /usr/sbin, /usr/lib
(or /usr/lib64 on 64-bit architectures) and /usr/share/man, and links to the
corresponding directories from /opt and /var/opt, to make all /opt based 
upstream paths still valid with a minimal disk usage.

You can then do

# ls -R /opt/tog-pegasus

and see the same files as you would with the upstream release.

Using this script is entirely optional and only for those who 
require the /opt/tog-pegasus locations.

It can also be optionally invoked during the package postinstall script
by installing / upgrading the tog-pegasus package with
# rpm -[Ui] --define 'OPT_TOG_PEGASUS 1' tog-pegasus*.rpm

Version-Release number of selected component (if applicable):
tog-pegasus-2.4.1-4+

How reproducible:
100%

Steps to Reproduce:
Install package
  
Actual results:
# ls -R /opt/tog-pegasus
produces no output

Expected results:
# ls -R /opt/tog-pegasus
should show the same files as would be shown if the upstream release
was installed .

Additional Info:

Not running this script has no effect on tog-pegasus operation.

Comment 1 Jason Vas Dias 2005-09-01 17:10:13 UTC
Fixed with version tog-pegasus-2.4.1-4 .


Comment 2 Bill Nottingham 2005-09-01 18:13:21 UTC
Devel NAK. This is not something we want to support.


Note You need to log in before you can comment on or make changes to this bug.