Tom Georgoulias wrote:
Hi, I'm new to the list and to opensolaris ips pkg creation and have a
couple of questions about setting filesystem permissions using the IPS
manifest. I'm trying to create an IPS package of tripwire on
opensolaris 2009.06 using this procedure:
http://opensolaris.org/os/community/sw-porters/contributing/indiana-ips/
Everything in that process worked for me, I've been able to compile the
software, create a working manifest, send it to my pkg.depotd service,
and even install the pkg on a different opensolaris client on my
network. That said, I still have a question about the dir section in
the manifest. Do I need to specify all parent directories when creating
a manifest, or just the ones that the software will need to use?
For example, since I have /etc/tripwire, do I need
dir mode=0755 owner=root group=sys path=/etc
dir mode=0750 owner=root group=sys path=/etc/tripwire
or will a single line like this be fine?
dir mode=0750 owner=root group=sys path=/etc/tripwire
Here's the manifest that I created for this pkg, as you can see there
are other places like /var/lib/tripwire/report that would be affected by
this.
Well, the package will install w/o any directories at all, but if you
want to control the mode, owner, etc, include the directories you create.
Before the next release, we plan on better support (in terms of setting
modes, etc) of implicitly created (unspecified) directories; they are
already properly reference-counted between packages.
In your case about, any system that installs tripwire will already have
an /etc, so it's fine to omit it.
- Bart
Bart Smaalders Solaris Kernel Performance
[email protected] http://blogs.sun.com/barts
"You will contribute more with mercurial than with thunderbird."
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss