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