[csw-maintainers] relatocatable packages and package scripts

Ben Walton bwalton at opencsw.org
Thu Dec 4 19:28:12 CET 2008


Hi All,

For the openjade project, I need to write a postinstall/preremove
script pair to register/unregister the installed catalogs, using
scripts provided by the sgmlcommon package.  The install-catalog
script creates an new file in /opt/csw/etc/sgml based on parameters
passed in and then adds an entry to /opt/csw/etc/sgml/catalog to
reference this new file.

How would one handle PKG_INSTALL_ROOT in the face of something like
this where the dependent script is unaware of the altered root
environment?  Do you simply do a case check against PKG_INSTALL_ROOT
and alert the user to run the commands manually when the new
environment is booted if the root isn't / or ''?

Thanks
-Ben
-- 
Ben Walton
Systems Programmer - CHASS
University of Toronto
C:416.407.5610 | W:416.978.4302

GPG Key Id: 8E89F6D2; Key Server: pgp.mit.edu
Contact me to arrange for a CAcert assurance meeting.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.opencsw.org/pipermail/maintainers/attachments/20081204/22f972a2/attachment-0001.asc>


More information about the maintainers mailing list