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