Aditya Vishwanath wrote:
> Well short of doing that I was wondering if there is a way to build
> intelligence into the packaging script that would conditionally install
> the man pages into /opt only for sparse root zones. Any ideas on how to
> go about this 

Creating two separate packages would be the simpler way to do it.  Don't
forget that packaging uses the manifest/map information at times other
than initial installation (including 'pkgchk' and 'pkgrm'), so having
conditionals there would likely be hard to manage even if it could be
made to work.

It's not how I'd expect anyone would want to do it, though.  If the
package is something that should be the same in all zones, then
installing in /usr or /opt via the global zone and then just letting the
non-global zones use that copy is probably the simplest answer of all.

Reply via email to