1#
2# This file and its contents are supplied under the terms of the
3# Common Development and Distribution License ("CDDL"), version 1.0.
4# You may only use this file in accordance with the terms of version
5# 1.0 of the CDDL.
6#
7# A full copy of the text of the CDDL should have accompanied this
8# source.  A copy of the CDDL is also available via the Internet at
9# http://www.illumos.org/license/CDDL.
10#
11
12#
13# Copyright 2015 Joyent, Inc.
14# Copyright 2016 Nexenta Systems, Inc.  All rights reserved.
15#
16
17#
18# CDDL HEADER START
19#
20# The contents of this file are subject to the terms of the
21# Common Development and Distribution License (the "License").
22# You may not use this file except in compliance with the License.
23#
24# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
25# or http://www.opensolaris.org/os/licensing.
26# See the License for the specific language governing permissions
27# and limitations under the License.
28#
29# When distributing Covered Code, include this CDDL HEADER in each
30# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
31# If applicable, add the following below this CDDL HEADER, with the
32# fields enclosed by brackets "[]" replaced with your own identifying
33# information: Portions Copyright [yyyy] [name of copyright owner]
34#
35# CDDL HEADER END
36#
37
38#
39# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
40#
41
42#
43# For packagers:
44#
45# This ruleset is useful for "system" components-- ones which are expected
46# to appear primarily in the global zone, but which may have some small
47# pieces (man pages, header files) which may need to appear in all zones.
48#
49# The current rules specify that all payload-bearing actions (file,
50# dir, hardlink, link) should appear *only* in the global zone, with
51# the following exceptions:
52#
53# 	- man pages appear in all zones
54# 	- header files appear in all zones
55# 	- mdb(1) modules appear in all zones
56#
57# You may well have other actions which you wish to appear in all zones.
58# An example would be an administrative utility for a driver which has
59# been virtualized to work within zones.  For those actions you wish to
60# appear in all zones, add the following attribute to your action.
61#
62#         variant.opensolaris.zone=__NODEFAULT
63#
64# You DO NOT need to specify __NODEFAULT for man pages, headers, or
65# mdb modules, as those are covered by the automatic rules below.
66#
67# Note: When you specify variant.opensolaris.zone=__NODEFAULT, the
68# net effect is that *no* variant.opensolaris.zone attribute will
69# appear in the post-processed manifest.
70#
71
72#
73# For packaging nerds:
74#
75# We have a problem to solve here: To make an action appear in all zones,
76# it should have *no* variant.opensolaris.zone attribute.  So it's a bit
77# more complicated to use "default".
78#
79# Here's what we do: we use "default" to set all payload bearing actions
80# which have no variant.opensolaris.zone attribute to be
81# variant.opensolaris.zone=global.  For those actions which need to appear
82# in all zones, the packager must specify
83# variant.opensolaris.zone=__NODEFAULT.  Additionally we have some rules
84# which set __NODEFAULT for a few classes of well known things, like man
85# pages and headers.
86#
87# We then go through and clean up all of the __NODEFAULTed attributes by
88# simply deleting them.
89#
90
91# Man pages should appear in all zones.
92
93# Headers should appear in all zones.
94
95# MDB modules should appear in all zones, as one might debug a crash dump
96# in a zone.
97
98# Everything else is global zone only unless the user overrides
99# action-by-action with __NODEFAULT.
100
101#
102# Buff out the __NODEFAULT attributes.
103#
104set name=pkg.fmri value=pkg:/driver/storage/smrt@0.5.11,5.11-0.155.53
105set name=pkg.description value="HP Smart Array Controller Driver"
106set name=pkg.summary value="HP Smart Array Controller Driver"
107set name=info.classification value=org.opensolaris.category.2008:Drivers/Storage
108set name=variant.arch value=i386
109dir group=sys mode=0755 owner=root path=kernel variant.opensolaris.zone=global
110dir group=sys mode=0755 owner=root path=kernel/drv variant.opensolaris.zone=global
111dir group=sys mode=0755 owner=root path=kernel/drv/amd64 variant.opensolaris.zone=global
112driver alias=pci103c,1920 alias=pci103c,1921 alias=pci103c,1922 alias=pci103c,1923 alias=pci103c,1924 alias=pci103c,1926 alias=pci103c,1928 alias=pci103c,21bd alias=pci103c,21be alias=pci103c,21bf alias=pci103c,21c0 alias=pci103c,21c1 alias=pci103c,21c2 alias=pci103c,21c3 alias=pci103c,21c5 alias=pci103c,21c6 alias=pci103c,21c7 alias=pci103c,21c8 alias=pci103c,21ca alias=pci103c,21cb alias=pci103c,21cc alias=pci103c,21cd alias=pci103c,21ce alias=pci103c,3241 alias=pci103c,3243 alias=pci103c,3245 alias=pci103c,3247 alias=pci103c,3249 alias=pci103c,324a alias=pci103c,324b alias=pci103c,3350 alias=pci103c,3351 alias=pci103c,3352 alias=pci103c,3353 alias=pci103c,3354 alias=pci103c,3355 alias=pci103c,3356 class=scsi-self-identifying name=smrt
113file NOHASH group=sys mode=0755 owner=root path=kernel/drv/amd64/smrt reboot-needed=true variant.opensolaris.zone=global
114file NOHASH group=sys mode=0644 owner=root path=kernel/drv/smrt.conf variant.opensolaris.zone=global
115license lic_CDDL license=lic_CDDL
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#
334depend fmri=consolidation/osnet/osnet-incorporation type=require
335