extract_metadata revision 1207
15760N/A#
11311N/A# Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
11311N/A#
11311N/A# Permission is hereby granted, free of charge, to any person obtaining a
11311N/A# copy of this software and associated documentation files (the "Software"),
11311N/A# to deal in the Software without restriction, including without limitation
11311N/A# the rights to use, copy, modify, merge, publish, distribute, sublicense,
11311N/A# and/or sell copies of the Software, and to permit persons to whom the
11311N/A# Software is furnished to do so, subject to the following conditions:
11311N/A#
11311N/A# The above copyright notice and this permission notice (including the next
11311N/A# paragraph) shall be included in all copies or substantial portions of the
11311N/A# Software.
11311N/A#
11311N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
11311N/A# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
11311N/A# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
11311N/A# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
11311N/A# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
11311N/A# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
11311N/A# DEALINGS IN THE SOFTWARE.
11311N/A#
11311N/A
11311N/A<transform pkg -> default pkg.obsolete false>
11311N/A<transform pkg -> default pkg.renamed false>
15760N/A
11311N/A#
11311N/A# Generate a short package name for use in facet.version-lock
11311N/A#
11311N/A<transform pkg pkg.fmri=(pkg:/)?([^@]*) -> default pkg.name %<2>>
11311N/A
11311N/A#
11311N/A# All packages should be included in the consolidation
15824N/A# incorporation, unless marked otherwise
15824N/A#
15824N/A<transform pkg -> default org.opensolaris.noincorp false>
11311N/A<transform pkg -> default org.opensolaris.incorporation \
11311N/A pkg:/consolidation/X/X-incorporation>
11311N/A
11311N/A#
11311N/A# Most packages should have a version-lock facet named after the package
11311N/A# in order to allow an escape hatch for systems which need a different
11311N/A# version of the package and are willing to accept the risk of using an
11311N/A# untested combination. Renamed packages do not need this facet.
11311N/A#
11311N/A
11311N/A<transform pkg pkg.renamed=true -> \
11311N/A default org.opensolaris.version-lock-facet false>
11311N/A<transform pkg -> \
11311N/A default org.opensolaris.version-lock-facet true>
11311N/A
15760N/A<transform pkg org.opensolaris.noincorp=false \
11311N/A org.opensolaris.version-lock-facet=true -> print \
15760N/A %(org.opensolaris.incorporation): depend type=incorporate fmri=%(pkg.fmri) \
15760N/A facet.version-lock.%(pkg.name)=%(org.opensolaris.version-lock-facet)>
15760N/A<transform pkg org.opensolaris.noincorp=false \
15824N/A org.opensolaris.version-lock-facet=false -> print \
15824N/A %(org.opensolaris.incorporation): depend type=incorporate fmri=%(pkg.fmri)>
20819N/A
20819N/A# Add dependency on the incorporation to each non-obsolete package in it
15760N/A<transform pkg pkg.obsolete=false org.opensolaris.noincorp=false -> emit \
15760N/A depend type=require fmri=%(org.opensolaris.incorporation)>
15760N/A
15760N/A<transform set name=org.opensolaris.noincorp -> drop>
15760N/A<transform set name=org.opensolaris.incorporation -> drop>
15760N/A<transform set name=org.opensolaris.version-lock-facet -> drop>
15767N/A
20819N/A#
15760N/A# Packages that are neither obsolete nor renamed should be included in
11311N/A# the X-all group package, unless marked otherwise
15760N/A#
12508N/A<transform pkg -> default org.opensolaris.nogroup false>
15824N/A<transform pkg pkg.renamed=false pkg.obsolete=false \
15824N/A org.opensolaris.nogroup=false pkg.fmri=^(.*)@.* -> print \
15824N/A pkg:/consolidation/X/X-all: depend type=group fmri=%<1> >
15824N/A<transform set name=org.opensolaris.nogroup -> drop>
15824N/A