A line like this in the spec file:
%class(manifest) /%{manidir}/dhcp-server.xml
results in this line in the pkgmap file of the SVR4 package:
1 f manifest var/svc/manifest/network/dhcp/dhcp-server.xml 0444 root sys 2295 62501 1295834135
When the package is installed, the SMF manifest is automatically imported. The same thing should
happen automatically for an IPS packge. Currently, it requres the addition of:
%ips_tag(restart_fmri=svc:/system/manifest-import:default)
to make this work for IPS. It would be nicer to have it done automatically, based on the class.
I think it already does this in current releases, via autotag.
e.g. in one of my spec files I have this:
%class(manifest) %{installinfomanifest}
which produces this in the (IPS) manifest:
file <HASH> chash=<HASH> group=bin mode=0644 owner=root path=var/svc/manifest/site/install-info.xml pkg.csize=740 pkg.size=1744 restart_fmri=svc:/system/manifest-import:default
See section 9.3 of spec-files.txt, which is part of the distro