1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21
22#
23# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
24# Copyright 2012 Nexenta Systems, Inc. All rights reserved.
25# Copyright 2014 Garrett D'Amore <garrett@damore.org>
26#
27
28#
29# The default for payload-bearing actions in this package is to appear in the
30# global zone only.  See the include file for greater detail, as well as
31# information about overriding the defaults.
32#
33#
34# CDDL HEADER START
35#
36# The contents of this file are subject to the terms of the
37# Common Development and Distribution License (the "License").
38# You may not use this file except in compliance with the License.
39#
40# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
41# or http://www.opensolaris.org/os/licensing.
42# See the License for the specific language governing permissions
43# and limitations under the License.
44#
45# When distributing Covered Code, include this CDDL HEADER in each
46# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
47# If applicable, add the following below this CDDL HEADER, with the
48# fields enclosed by brackets "[]" replaced with your own identifying
49# information: Portions Copyright [yyyy] [name of copyright owner]
50#
51# CDDL HEADER END
52#
53
54#
55# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
56#
57
58#
59# For packagers:
60#
61# This ruleset is useful for "system" components-- ones which are expected
62# to appear primarily in the global zone, but which may have some small
63# pieces (man pages, header files) which may need to appear in all zones.
64#
65# The current rules specify that all payload-bearing actions (file,
66# dir, hardlink, link) should appear *only* in the global zone, with
67# the following exceptions:
68#
69# 	- man pages appear in all zones
70# 	- header files appear in all zones
71# 	- mdb(1) modules appear in all zones
72#
73# You may well have other actions which you wish to appear in all zones.
74# An example would be an administrative utility for a driver which has
75# been virtualized to work within zones.  For those actions you wish to
76# appear in all zones, add the following attribute to your action.
77#
78#         variant.opensolaris.zone=__NODEFAULT
79#
80# You DO NOT need to specify __NODEFAULT for man pages, headers, or
81# mdb modules, as those are covered by the automatic rules below.
82#
83# Note: When you specify variant.opensolaris.zone=__NODEFAULT, the
84# net effect is that *no* variant.opensolaris.zone attribute will
85# appear in the post-processed manifest.
86#
87
88#
89# For packaging nerds:
90#
91# We have a problem to solve here: To make an action appear in all zones,
92# it should have *no* variant.opensolaris.zone attribute.  So it's a bit
93# more complicated to use "default".
94#
95# Here's what we do: we use "default" to set all payload bearing actions
96# which have no variant.opensolaris.zone attribute to be
97# variant.opensolaris.zone=global.  For those actions which need to appear
98# in all zones, the packager must specify
99# variant.opensolaris.zone=__NODEFAULT.  Additionally we have some rules
100# which set __NODEFAULT for a few classes of well known things, like man
101# pages and headers.
102#
103# We then go through and clean up all of the __NODEFAULTed attributes by
104# simply deleting them.
105#
106
107# Man pages should appear in all zones.
108
109# Headers should appear in all zones.
110
111# MDB modules should appear in all zones, as one might debug a crash dump
112# in a zone.
113
114# Everything else is global zone only unless the user overrides
115# action-by-action with __NODEFAULT.
116
117#
118# Buff out the __NODEFAULT attributes.
119#
120set name=pkg.fmri value=pkg:/system/kernel/ultra-wideband@0.5.11,5.11-0.155.53
121set name=pkg.obsolete value=true
122set name=variant.arch value=i386
123#
124# CDDL HEADER START
125#
126# The contents of this file are subject to the terms of the
127# Common Development and Distribution License (the "License").
128# You may not use this file except in compliance with the License.
129#
130# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
131# or http://www.opensolaris.org/os/licensing.
132# See the License for the specific language governing permissions
133# and limitations under the License.
134#
135# When distributing Covered Code, include this CDDL HEADER in each
136# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
137# If applicable, add the following below this CDDL HEADER, with the
138# fields enclosed by brackets "[]" replaced with your own identifying
139# information: Portions Copyright [yyyy] [name of copyright owner]
140#
141# CDDL HEADER END
142#
143
144#
145# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
146#
147
148#
149# These actions represent settings which should appear in every package.
150#
151
152#
153# Name the consolidation this package came from.
154#
155set name=org.opensolaris.consolidation value=osnet
156
157#
158# Indicate that the package was published in a zones aware
159# fashion.
160#
161set name=variant.opensolaris.zone value=global value=nonglobal
162#
163# CDDL HEADER START
164#
165# The contents of this file are subject to the terms of the
166# Common Development and Distribution License (the "License").
167# You may not use this file except in compliance with the License.
168#
169# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
170# or http://www.opensolaris.org/os/licensing.
171# See the License for the specific language governing permissions
172# and limitations under the License.
173#
174# When distributing Covered Code, include this CDDL HEADER in each
175# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
176# If applicable, add the following below this CDDL HEADER, with the
177# fields enclosed by brackets "[]" replaced with your own identifying
178# information: Portions Copyright [yyyy] [name of copyright owner]
179#
180# CDDL HEADER END
181#
182
183#
184# Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
185# Use is subject to license terms.
186#
187
188#
189# Only publish packages for the currently specified architecture
190#
191# This is somewhat nonintuitive.  In English:
192#
193#	For any action of type "set",
194#	if the "name" property matches the regex "variant.arch",
195#	and *every* occurrence of the "value" property does not match
196#		$ARCH, then don't publish it.
197#
198# ...in other words, if *any* occurrence of "value" matches i386,
199# then the negative lookahead assertion in the regex will fail, and we
200# won't abort based on the action.
201#
202
203#
204# Catch don't-publish settings from manifest-embedded transforms
205#
206#
207# CDDL HEADER START
208#
209# The contents of this file are subject to the terms of the
210# Common Development and Distribution License (the "License").
211# You may not use this file except in compliance with the License.
212#
213# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
214# or http://www.opensolaris.org/os/licensing.
215# See the License for the specific language governing permissions
216# and limitations under the License.
217#
218# When distributing Covered Code, include this CDDL HEADER in each
219# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
220# If applicable, add the following below this CDDL HEADER, with the
221# fields enclosed by brackets "[]" replaced with your own identifying
222# information: Portions Copyright [yyyy] [name of copyright owner]
223#
224# CDDL HEADER END
225#
226
227#
228# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
229#
230
231#
232# This file and its contents are supplied under the terms of the
233# Common Development and Distribution License ("CDDL"), version 1.0.
234# You may only use this file in accordance with the terms of version
235# 1.0 of the CDDL.
236#
237# A full copy of the text of the CDDL should have accompanied this
238# source.  A copy of the CDDL is also available via the Internet
239# at http://www.illumos.org/license/CDDL.
240#
241
242# Copyright 2011, Richard Lowe
243
244# Manual pages are documentation, and more specifically 'man' documentation
245#
246# CDDL HEADER START
247#
248# The contents of this file are subject to the terms of the
249# Common Development and Distribution License (the "License").
250# You may not use this file except in compliance with the License.
251#
252# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
253# or http://www.opensolaris.org/os/licensing.
254# See the License for the specific language governing permissions
255# and limitations under the License.
256#
257# When distributing Covered Code, include this CDDL HEADER in each
258# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
259# If applicable, add the following below this CDDL HEADER, with the
260# fields enclosed by brackets "[]" replaced with your own identifying
261# information: Portions Copyright [yyyy] [name of copyright owner]
262#
263# CDDL HEADER END
264#
265
266#
267# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
268# Copyright 2011, Richard Lowe
269#
270
271#
272# For kernel/drv, set .conf files to mode 0644.  Assume all other
273# files there are drivers, and give them mode 0755 and reboot-needed.
274#
275# The (?<!r) construct in the reboot-needed transform is a negative
276# lookbehind assertion: it says "only match this regex if the
277# previously matched text does NOT match regex r."  So it will match
278# all files in the various kernel trees, except for .conf files.
279#
280
281
282#
283# Non-global zones should not have content in kernel, usr/kernel (and
284# other kernel dirs) or in boot/.
285#
286
287
288#
289# shared objects should generally have mode 0755
290#
291
292#
293# Catch some of the collections of largely read-only files
294#
295
296
297#
298# For what's left, go with root:bin 0644, +x for directories
299#
300
301#
302# Default values for legacy actions
303#
304#
305# CDDL HEADER START
306#
307# The contents of this file are subject to the terms of the
308# Common Development and Distribution License (the "License").
309# You may not use this file except in compliance with the License.
310#
311# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
312# or http://www.opensolaris.org/os/licensing.
313# See the License for the specific language governing permissions
314# and limitations under the License.
315#
316# When distributing Covered Code, include this CDDL HEADER in each
317# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
318# If applicable, add the following below this CDDL HEADER, with the
319# fields enclosed by brackets "[]" replaced with your own identifying
320# information: Portions Copyright [yyyy] [name of copyright owner]
321#
322# CDDL HEADER END
323#
324
325#
326# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
327#
328
329#
330# Pull out the license paths for staging in the proto area.  Ignore
331# those with no path separators, as that indicates a file kept in
332# $SRC/pkg/license_files, rather than alongside the associated source.
333#
334
335#
336# Ordering is important here, and the last line wins.
337#
338# The default of "current" is provided by the calling environment,
339# rather than a print operation.
340#
341