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/cpqary3@0.5.11,5.11-0.155.53
105set name=pkg.description value="HP Smart Array RAID Controller Driver (Legacy)"
106set name=pkg.summary value="HP Smart Array RAID Controller Driver (Legacy)"
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
112dir group=bin mode=0755 owner=root path=usr/share/man
113dir facet.doc.man=true group=bin mode=0755 owner=root path=usr/share/man/man7d
114driver alias=pci103c,3211 alias=pci103c,3212 alias=pci103c,3223 alias=pci103c,3225 alias=pci103c,3234 alias=pci103c,3235 alias=pci103c,3237 alias=pci103c,323d alias=pcie11,4070 alias=pcie11,4080 alias=pcie11,4082 alias=pcie11,4083 alias=pcie11,4091 alias=pcie11,409a alias=pcie11,409b alias=pcie11,409c alias=pcie11,409d alias=pcie11,409e class=scsi name=cpqary3
115file NOHASH group=sys mode=0755 owner=root path=kernel/drv/amd64/cpqary3 reboot-needed=true variant.opensolaris.zone=global
116file NOHASH group=sys mode=0644 owner=root path=kernel/drv/cpqary3.conf variant.opensolaris.zone=global
117file NOHASH facet.doc.man=true group=bin mode=0444 owner=root path=usr/share/man/man7d/cpqary3.7d
118legacy arch=i386 category=system desc="HP Smart Array HBA Driver" hotline="Please contact your local service provider" name="HP Smart Array HBA Driver" pkg=CPQary3 vendor=Illumos version=11.11,REV=2009.11.11
119license lic_CDDL license=lic_CDDL
120#
121# CDDL HEADER START
122#
123# The contents of this file are subject to the terms of the
124# Common Development and Distribution License (the "License").
125# You may not use this file except in compliance with the License.
126#
127# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
128# or http://www.opensolaris.org/os/licensing.
129# See the License for the specific language governing permissions
130# and limitations under the License.
131#
132# When distributing Covered Code, include this CDDL HEADER in each
133# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
134# If applicable, add the following below this CDDL HEADER, with the
135# fields enclosed by brackets "[]" replaced with your own identifying
136# information: Portions Copyright [yyyy] [name of copyright owner]
137#
138# CDDL HEADER END
139#
140
141#
142# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
143#
144
145#
146# These actions represent settings which should appear in every package.
147#
148
149#
150# Name the consolidation this package came from.
151#
152set name=org.opensolaris.consolidation value=osnet
153
154#
155# Indicate that the package was published in a zones aware
156# fashion.
157#
158set name=variant.opensolaris.zone value=global value=nonglobal
159#
160# CDDL HEADER START
161#
162# The contents of this file are subject to the terms of the
163# Common Development and Distribution License (the "License").
164# You may not use this file except in compliance with the License.
165#
166# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
167# or http://www.opensolaris.org/os/licensing.
168# See the License for the specific language governing permissions
169# and limitations under the License.
170#
171# When distributing Covered Code, include this CDDL HEADER in each
172# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
173# If applicable, add the following below this CDDL HEADER, with the
174# fields enclosed by brackets "[]" replaced with your own identifying
175# information: Portions Copyright [yyyy] [name of copyright owner]
176#
177# CDDL HEADER END
178#
179
180#
181# Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
182# Use is subject to license terms.
183#
184
185#
186# Only publish packages for the currently specified architecture
187#
188# This is somewhat nonintuitive.  In English:
189#
190#	For any action of type "set",
191#	if the "name" property matches the regex "variant.arch",
192#	and *every* occurrence of the "value" property does not match
193#		$ARCH, then don't publish it.
194#
195# ...in other words, if *any* occurrence of "value" matches i386,
196# then the negative lookahead assertion in the regex will fail, and we
197# won't abort based on the action.
198#
199
200#
201# Catch don't-publish settings from manifest-embedded transforms
202#
203#
204# CDDL HEADER START
205#
206# The contents of this file are subject to the terms of the
207# Common Development and Distribution License (the "License").
208# You may not use this file except in compliance with the License.
209#
210# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
211# or http://www.opensolaris.org/os/licensing.
212# See the License for the specific language governing permissions
213# and limitations under the License.
214#
215# When distributing Covered Code, include this CDDL HEADER in each
216# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
217# If applicable, add the following below this CDDL HEADER, with the
218# fields enclosed by brackets "[]" replaced with your own identifying
219# information: Portions Copyright [yyyy] [name of copyright owner]
220#
221# CDDL HEADER END
222#
223
224#
225# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
226#
227
228#
229# This file and its contents are supplied under the terms of the
230# Common Development and Distribution License ("CDDL"), version 1.0.
231# You may only use this file in accordance with the terms of version
232# 1.0 of the CDDL.
233#
234# A full copy of the text of the CDDL should have accompanied this
235# source.  A copy of the CDDL is also available via the Internet
236# at http://www.illumos.org/license/CDDL.
237#
238
239# Copyright 2011, Richard Lowe
240
241# Manual pages are documentation, and more specifically 'man' documentation
242#
243# CDDL HEADER START
244#
245# The contents of this file are subject to the terms of the
246# Common Development and Distribution License (the "License").
247# You may not use this file except in compliance with the License.
248#
249# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
250# or http://www.opensolaris.org/os/licensing.
251# See the License for the specific language governing permissions
252# and limitations under the License.
253#
254# When distributing Covered Code, include this CDDL HEADER in each
255# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
256# If applicable, add the following below this CDDL HEADER, with the
257# fields enclosed by brackets "[]" replaced with your own identifying
258# information: Portions Copyright [yyyy] [name of copyright owner]
259#
260# CDDL HEADER END
261#
262
263#
264# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
265# Copyright 2011, Richard Lowe
266#
267
268#
269# For kernel/drv, set .conf files to mode 0644.  Assume all other
270# files there are drivers, and give them mode 0755 and reboot-needed.
271#
272# The (?<!r) construct in the reboot-needed transform is a negative
273# lookbehind assertion: it says "only match this regex if the
274# previously matched text does NOT match regex r."  So it will match
275# all files in the various kernel trees, except for .conf files.
276#
277
278
279#
280# Non-global zones should not have content in kernel, usr/kernel (and
281# other kernel dirs) or in boot/.
282#
283
284
285#
286# shared objects should generally have mode 0755
287#
288
289#
290# Catch some of the collections of largely read-only files
291#
292
293
294#
295# For what's left, go with root:bin 0644, +x for directories
296#
297
298#
299# Default values for legacy actions
300#
301#
302# CDDL HEADER START
303#
304# The contents of this file are subject to the terms of the
305# Common Development and Distribution License (the "License").
306# You may not use this file except in compliance with the License.
307#
308# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
309# or http://www.opensolaris.org/os/licensing.
310# See the License for the specific language governing permissions
311# and limitations under the License.
312#
313# When distributing Covered Code, include this CDDL HEADER in each
314# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
315# If applicable, add the following below this CDDL HEADER, with the
316# fields enclosed by brackets "[]" replaced with your own identifying
317# information: Portions Copyright [yyyy] [name of copyright owner]
318#
319# CDDL HEADER END
320#
321
322#
323# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
324#
325
326#
327# Pull out the license paths for staging in the proto area.  Ignore
328# those with no path separators, as that indicates a file kept in
329# $SRC/pkg/license_files, rather than alongside the associated source.
330#
331
332#
333# Ordering is important here, and the last line wins.
334#
335# The default of "current" is provided by the calling environment,
336# rather than a print operation.
337#
338depend fmri=consolidation/osnet/osnet-incorporation type=require
339depend fmri=__TBD pkg.debug.depend.file=scsi pkg.debug.depend.path=kernel/misc/amd64 pkg.debug.depend.path=platform/i86hvm/kernel/misc/amd64 pkg.debug.depend.path=platform/i86pc/kernel/misc/amd64 pkg.debug.depend.path=platform/i86xpv/kernel/misc/amd64 pkg.debug.depend.path=usr/kernel/misc/amd64 pkg.debug.depend.reason=kernel/drv/amd64/cpqary3 pkg.debug.depend.type=elf type=require variant.opensolaris.zone=global
340