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