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