xref: /onnv-gate/usr/src/pkg/transforms/extract_metadata (revision 12998:c0270875939a)
111838SLiane.Praza@Sun.COM#
211838SLiane.Praza@Sun.COM# CDDL HEADER START
311838SLiane.Praza@Sun.COM#
411838SLiane.Praza@Sun.COM# The contents of this file are subject to the terms of the
511838SLiane.Praza@Sun.COM# Common Development and Distribution License (the "License").
611838SLiane.Praza@Sun.COM# You may not use this file except in compliance with the License.
711838SLiane.Praza@Sun.COM#
811838SLiane.Praza@Sun.COM# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
911838SLiane.Praza@Sun.COM# or http://www.opensolaris.org/os/licensing.
1011838SLiane.Praza@Sun.COM# See the License for the specific language governing permissions
1111838SLiane.Praza@Sun.COM# and limitations under the License.
1211838SLiane.Praza@Sun.COM#
1311838SLiane.Praza@Sun.COM# When distributing Covered Code, include this CDDL HEADER in each
1411838SLiane.Praza@Sun.COM# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1511838SLiane.Praza@Sun.COM# If applicable, add the following below this CDDL HEADER, with the
1611838SLiane.Praza@Sun.COM# fields enclosed by brackets "[]" replaced with your own identifying
1711838SLiane.Praza@Sun.COM# information: Portions Copyright [yyyy] [name of copyright owner]
1811838SLiane.Praza@Sun.COM#
1911838SLiane.Praza@Sun.COM# CDDL HEADER END
2011838SLiane.Praza@Sun.COM#
2111838SLiane.Praza@Sun.COM
2211838SLiane.Praza@Sun.COM#
23*12998SMark.J.Nelson@Oracle.COM# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
2411838SLiane.Praza@Sun.COM#
2511838SLiane.Praza@Sun.COM
2611838SLiane.Praza@Sun.COM#
2711838SLiane.Praza@Sun.COM# All nonredistributable packages go to extra, for the purposes of the
2811838SLiane.Praza@Sun.COM# osnet build.
2911838SLiane.Praza@Sun.COM#
3011838SLiane.Praza@Sun.COM<transform set name=org.opensolaris.redist value=nonredist|internal -> print REPO=extra>
3111838SLiane.Praza@Sun.COM
3211838SLiane.Praza@Sun.COM#
33*12998SMark.J.Nelson@Oracle.COM# Pull out the license paths for staging in the proto area.  Ignore
34*12998SMark.J.Nelson@Oracle.COM# those with no path separators, as that indicates a file kept in
35*12998SMark.J.Nelson@Oracle.COM# $SRC/pkg/license_files, rather than alongside the associated source.
36*12998SMark.J.Nelson@Oracle.COM#
37*12998SMark.J.Nelson@Oracle.COM<transform license license=.*/.+ -> print LICS="${LICS} %(license)">
38*12998SMark.J.Nelson@Oracle.COM
39*12998SMark.J.Nelson@Oracle.COM#
4011838SLiane.Praza@Sun.COM# Ordering is important here, and the last line wins.
4111838SLiane.Praza@Sun.COM#
4211838SLiane.Praza@Sun.COM# The default of "current" is provided by the calling environment,
4311838SLiane.Praza@Sun.COM# rather than a print operation.
4411838SLiane.Praza@Sun.COM#
4511838SLiane.Praza@Sun.COM<transform set name=pkg.renamed value=true -> print PKGSTAT=renamed>
4611838SLiane.Praza@Sun.COM<transform set name=pkg.obsolete value=true -> print PKGSTAT=obsolete>
4711839SMark.J.Nelson@Sun.COM<transform set name=org.opensolaris.nodepend value=true -> print NODEPEND=true>
4811839SMark.J.Nelson@Sun.COM<transform set name=org.opensolaris.nodepend -> drop>
4911838SLiane.Praza@Sun.COM<transform set name=org.opensolaris.noincorp value=true -> print PKGSTAT=noincorp>
5011838SLiane.Praza@Sun.COM<transform set name=org.opensolaris.noincorp -> drop>
51