On 02/15/11 03:03 PM, Peter Schow wrote:
Having trouble following Example 1 on the pkgmogrify(1) man page.

Example 1 is:

      Example 1:  Add tags to SMF manifests so they get imported when the
      package is installed on a live system.

          <transform file path=(var|lib)/svc/manifest/.*\.xml ->  \
              add restart_fmri svc:/system/manifest-import:default>

According the to man page, transforms look like this:

      <transform matching-criteria ->  operation>

where matching-criteria is:

      [action-type ... ] [attribute=<value-regexp>  ...]

So it looks like "action-type" is "file" and the resulting "operation"
is "set" for the example above.

Before pkgmogrify:

file path=lib/svc/manifest/application/pkg-server.xml

After pkgmogrify:

file path=lib/svc/manifest/application/pkg-server.xml
   restart_fmri=svc:/system/manifest-import:default

Where are these "action-types" like "file" defined?

See pkg(5).

-Shawn
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to