xref: /illumos-gate/usr/src/pkg/transforms/extract_metadata (revision 5084e753b79a753c8b532c06eb3ad1d025e8e472)
1ead1f93eSLiane Praza#
2ead1f93eSLiane Praza# CDDL HEADER START
3ead1f93eSLiane Praza#
4ead1f93eSLiane Praza# The contents of this file are subject to the terms of the
5ead1f93eSLiane Praza# Common Development and Distribution License (the "License").
6ead1f93eSLiane Praza# You may not use this file except in compliance with the License.
7ead1f93eSLiane Praza#
8ead1f93eSLiane Praza# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9ead1f93eSLiane Praza# or http://www.opensolaris.org/os/licensing.
10ead1f93eSLiane Praza# See the License for the specific language governing permissions
11ead1f93eSLiane Praza# and limitations under the License.
12ead1f93eSLiane Praza#
13ead1f93eSLiane Praza# When distributing Covered Code, include this CDDL HEADER in each
14ead1f93eSLiane Praza# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15ead1f93eSLiane Praza# If applicable, add the following below this CDDL HEADER, with the
16ead1f93eSLiane Praza# fields enclosed by brackets "[]" replaced with your own identifying
17ead1f93eSLiane Praza# information: Portions Copyright [yyyy] [name of copyright owner]
18ead1f93eSLiane Praza#
19ead1f93eSLiane Praza# CDDL HEADER END
20ead1f93eSLiane Praza#
21ead1f93eSLiane Praza
22ead1f93eSLiane Praza#
23*5084e753SMark J. Nelson# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
24ead1f93eSLiane Praza#
25ead1f93eSLiane Praza
26ead1f93eSLiane Praza#
27ead1f93eSLiane Praza# All nonredistributable packages go to extra, for the purposes of the
28ead1f93eSLiane Praza# osnet build.
29ead1f93eSLiane Praza#
30ead1f93eSLiane Praza<transform set name=org.opensolaris.redist value=nonredist|internal -> print REPO=extra>
31ead1f93eSLiane Praza
32ead1f93eSLiane Praza#
33*5084e753SMark J. Nelson# Pull out the license paths for staging in the proto area.  Ignore
34*5084e753SMark J. Nelson# those with no path separators, as that indicates a file kept in
35*5084e753SMark J. Nelson# $SRC/pkg/license_files, rather than alongside the associated source.
36*5084e753SMark J. Nelson#
37*5084e753SMark J. Nelson<transform license license=.*/.+ -> print LICS="${LICS} %(license)">
38*5084e753SMark J. Nelson
39*5084e753SMark J. Nelson#
40ead1f93eSLiane Praza# Ordering is important here, and the last line wins.
41ead1f93eSLiane Praza#
42ead1f93eSLiane Praza# The default of "current" is provided by the calling environment,
43ead1f93eSLiane Praza# rather than a print operation.
44ead1f93eSLiane Praza#
45ead1f93eSLiane Praza<transform set name=pkg.renamed value=true -> print PKGSTAT=renamed>
46ead1f93eSLiane Praza<transform set name=pkg.obsolete value=true -> print PKGSTAT=obsolete>
47ead1f93eSLiane Praza<transform set name=org.opensolaris.nodepend value=true -> print NODEPEND=true>
48ead1f93eSLiane Praza<transform set name=org.opensolaris.nodepend -> drop>
49fe57a5b1SMark J. Nelson<transform set name=org.opensolaris.noincorp value=true -> print PKGSTAT=noincorp>
50fe57a5b1SMark J. Nelson<transform set name=org.opensolaris.noincorp -> drop>
51