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#
26
27#
28# The default for payload-bearing actions in this package is to appear in the
29# global zone only.  See the include file for greater detail, as well as
30# information about overriding the defaults.
31#
32#
33# CDDL HEADER START
34#
35# The contents of this file are subject to the terms of the
36# Common Development and Distribution License (the "License").
37# You may not use this file except in compliance with the License.
38#
39# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
40# or http://www.opensolaris.org/os/licensing.
41# See the License for the specific language governing permissions
42# and limitations under the License.
43#
44# When distributing Covered Code, include this CDDL HEADER in each
45# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
46# If applicable, add the following below this CDDL HEADER, with the
47# fields enclosed by brackets "[]" replaced with your own identifying
48# information: Portions Copyright [yyyy] [name of copyright owner]
49#
50# CDDL HEADER END
51#
52
53#
54# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
55#
56
57#
58# For packagers:
59#
60# This ruleset is useful for "system" components-- ones which are expected
61# to appear primarily in the global zone, but which may have some small
62# pieces (man pages, header files) which may need to appear in all zones.
63#
64# The current rules specify that all payload-bearing actions (file,
65# dir, hardlink, link) should appear *only* in the global zone, with
66# the following exceptions:
67#
68# 	- man pages appear in all zones
69# 	- header files appear in all zones
70# 	- mdb(1) modules appear in all zones
71#
72# You may well have other actions which you wish to appear in all zones.
73# An example would be an administrative utility for a driver which has
74# been virtualized to work within zones.  For those actions you wish to
75# appear in all zones, add the following attribute to your action.
76#
77#         variant.opensolaris.zone=__NODEFAULT
78#
79# You DO NOT need to specify __NODEFAULT for man pages, headers, or
80# mdb modules, as those are covered by the automatic rules below.
81#
82# Note: When you specify variant.opensolaris.zone=__NODEFAULT, the
83# net effect is that *no* variant.opensolaris.zone attribute will
84# appear in the post-processed manifest.
85#
86
87#
88# For packaging nerds:
89#
90# We have a problem to solve here: To make an action appear in all zones,
91# it should have *no* variant.opensolaris.zone attribute.  So it's a bit
92# more complicated to use "default".
93#
94# Here's what we do: we use "default" to set all payload bearing actions
95# which have no variant.opensolaris.zone attribute to be
96# variant.opensolaris.zone=global.  For those actions which need to appear
97# in all zones, the packager must specify
98# variant.opensolaris.zone=__NODEFAULT.  Additionally we have some rules
99# which set __NODEFAULT for a few classes of well known things, like man
100# pages and headers.
101#
102# We then go through and clean up all of the __NODEFAULTed attributes by
103# simply deleting them.
104#
105
106# Man pages should appear in all zones.
107
108# Headers should appear in all zones.
109
110# MDB modules should appear in all zones, as one might debug a crash dump
111# in a zone.
112
113# Everything else is global zone only unless the user overrides
114# action-by-action with __NODEFAULT.
115
116#
117# Buff out the __NODEFAULT attributes.
118#
119set name=pkg.fmri value=pkg:/system/storage/sasinfo@0.5.11,5.11-0.155.53
120set name=pkg.description value="T11 Storage Management HBA API Libraries and CLI"
121set name=pkg.summary value="SM-HBA Libraries and CLI"
122set name=info.classification value=org.opensolaris.category.2008:System/Libraries
123set name=variant.arch value=i386
124dir group=sys mode=0755 owner=root path=etc variant.opensolaris.zone=global
125dir group=sys mode=0755 owner=root path=usr variant.opensolaris.zone=global
126dir group=bin mode=0755 owner=root path=usr/include
127dir group=bin mode=0755 owner=root path=usr/lib variant.opensolaris.zone=global
128dir group=bin mode=0755 owner=root path=usr/lib/amd64 variant.opensolaris.zone=global
129dir group=bin mode=0755 owner=root path=usr/sbin variant.opensolaris.zone=global
130dir group=bin mode=0755 owner=root path=usr/share/man
131dir facet.doc.man=true group=bin mode=0755 owner=root path=usr/share/man/man1m
132dir facet.doc.man=true group=bin mode=0755 owner=root path=usr/share/man/man3lib
133dir facet.doc.man=true group=bin mode=0755 owner=root path=usr/share/man/man4
134file NOHASH group=sys mode=0644 original_name=SUNWsmhba:etc/smhba.conf owner=root path=etc/smhba.conf preserve=true variant.opensolaris.zone=global
135file NOHASH group=bin mode=0644 owner=root path=usr/include/smhbaapi.h
136file NOHASH group=bin mode=0755 owner=root path=usr/lib/amd64/libSMHBAAPI.so.1 variant.opensolaris.zone=global
137file NOHASH group=bin mode=0755 owner=root path=usr/lib/amd64/libsun_sas.so.1 variant.opensolaris.zone=global
138file NOHASH group=bin mode=0644 owner=root path=usr/lib/amd64/llib-lSMHBAAPI.ln variant.opensolaris.zone=global
139file NOHASH group=bin mode=0755 owner=root path=usr/lib/libSMHBAAPI.so.1 variant.opensolaris.zone=global
140file NOHASH group=bin mode=0755 owner=root path=usr/lib/libsun_sas.so.1 variant.opensolaris.zone=global
141file NOHASH group=bin mode=0644 owner=root path=usr/lib/llib-lSMHBAAPI variant.opensolaris.zone=global
142file NOHASH group=bin mode=0644 owner=root path=usr/lib/llib-lSMHBAAPI.ln variant.opensolaris.zone=global
143file NOHASH group=bin mode=0555 owner=root path=usr/sbin/sasinfo variant.opensolaris.zone=global
144file NOHASH facet.doc.man=true group=bin mode=0444 owner=root path=usr/share/man/man1m/sasinfo.1m
145file NOHASH facet.doc.man=true group=bin mode=0444 owner=root path=usr/share/man/man3lib/libSMHBAAPI.3lib
146file NOHASH facet.doc.man=true group=bin mode=0444 owner=root path=usr/share/man/man4/smhba.conf.4
147legacy arch=i386 category=system desc="T11 Storage Management HBA API Libraries and CLI" hotline="Please contact your local service provider" name="SM-HBA Libraries and CLI" pkg=SUNWsmhba vendor=Illumos version=11.11,REV=2009.11.11
148legacy arch=i386 category=system desc="T11 Storage Management HBA API Libraries and CLI (root)" hotline="Please contact your local service provider" name="SM-HBA Libraries and CLI (root)" pkg=SUNWsmhbar vendor=Illumos version=11.11,REV=2009.11.11
149license cr_Sun license=cr_Sun
150license lic_CDDL license=lic_CDDL
151license usr/src/lib/smhba/THIRDPARTYLICENSE license=usr/src/lib/smhba/THIRDPARTYLICENSE
152link path=usr/lib/amd64/libSMHBAAPI.so target=libSMHBAAPI.so.1 variant.opensolaris.zone=global
153link path=usr/lib/amd64/libsun_sas.so target=libsun_sas.so.1 variant.opensolaris.zone=global
154link path=usr/lib/libSMHBAAPI.so target=libSMHBAAPI.so.1 variant.opensolaris.zone=global
155link path=usr/lib/libsun_sas.so target=libsun_sas.so.1 variant.opensolaris.zone=global
156link facet.doc.man=true path=usr/share/man/man3lib/SMHBA_GetAdapterAttributes.3lib target=libSMHBAAPI.3lib
157link facet.doc.man=true path=usr/share/man/man3lib/SMHBA_GetAdapterPortAttributes.3lib target=libSMHBAAPI.3lib
158link facet.doc.man=true path=usr/share/man/man3lib/SMHBA_GetBindingCapability.3lib target=libSMHBAAPI.3lib
159link facet.doc.man=true path=usr/share/man/man3lib/SMHBA_GetBindingSupport.3lib target=libSMHBAAPI.3lib
160link facet.doc.man=true path=usr/share/man/man3lib/SMHBA_GetDiscoveredPortAttributes.3lib target=libSMHBAAPI.3lib
161link facet.doc.man=true path=usr/share/man/man3lib/SMHBA_GetFCPhyAttributes.3lib target=libSMHBAAPI.3lib
162link facet.doc.man=true path=usr/share/man/man3lib/SMHBA_GetLUNStatistics.3lib target=libSMHBAAPI.3lib
163link facet.doc.man=true path=usr/share/man/man3lib/SMHBA_GetNumberofPorts.3lib target=libSMHBAAPI.3lib
164link facet.doc.man=true path=usr/share/man/man3lib/SMHBA_GetPersistentBinding.3lib target=libSMHBAAPI.3lib
165link facet.doc.man=true path=usr/share/man/man3lib/SMHBA_GetPhyStatistics.3lib target=libSMHBAAPI.3lib
166link facet.doc.man=true path=usr/share/man/man3lib/SMHBA_GetPortAttributesByWWN.3lib target=libSMHBAAPI.3lib
167link facet.doc.man=true path=usr/share/man/man3lib/SMHBA_GetPortType.3lib target=libSMHBAAPI.3lib
168link facet.doc.man=true path=usr/share/man/man3lib/SMHBA_GetProtocolStatistics.3lib target=libSMHBAAPI.3lib
169link facet.doc.man=true path=usr/share/man/man3lib/SMHBA_GetSASPhyAttributes.3lib target=libSMHBAAPI.3lib
170link facet.doc.man=true path=usr/share/man/man3lib/SMHBA_GetTargetMapping.3lib target=libSMHBAAPI.3lib
171link facet.doc.man=true path=usr/share/man/man3lib/SMHBA_GetVendorLibraryAttributes.3lib target=libSMHBAAPI.3lib
172link facet.doc.man=true path=usr/share/man/man3lib/SMHBA_GetVersion.3lib target=libSMHBAAPI.3lib
173link facet.doc.man=true path=usr/share/man/man3lib/SMHBA_GetWrapperLibraryAttributes.3lib target=libSMHBAAPI.3lib
174link facet.doc.man=true path=usr/share/man/man3lib/SMHBA_RegisterForAdapterAddEvents.3lib target=libSMHBAAPI.3lib
175link facet.doc.man=true path=usr/share/man/man3lib/SMHBA_RegisterForAdapterEvents.3lib target=libSMHBAAPI.3lib
176link facet.doc.man=true path=usr/share/man/man3lib/SMHBA_RegisterForAdapterPhyStatEvents.3lib target=libSMHBAAPI.3lib
177link facet.doc.man=true path=usr/share/man/man3lib/SMHBA_RegisterForAdapterPortEvents.3lib target=libSMHBAAPI.3lib
178link facet.doc.man=true path=usr/share/man/man3lib/SMHBA_RegisterForAdapterPortStatEvents.3lib target=libSMHBAAPI.3lib
179link facet.doc.man=true path=usr/share/man/man3lib/SMHBA_RegisterForTargetEvents.3lib target=libSMHBAAPI.3lib
180link facet.doc.man=true path=usr/share/man/man3lib/SMHBA_RegisterLibrary.3lib target=libSMHBAAPI.3lib
181link facet.doc.man=true path=usr/share/man/man3lib/SMHBA_RemoveAllPersistentBindings.3lib target=libSMHBAAPI.3lib
182link facet.doc.man=true path=usr/share/man/man3lib/SMHBA_RemovePersistentBinding.3lib target=libSMHBAAPI.3lib
183link facet.doc.man=true path=usr/share/man/man3lib/SMHBA_ScsiInquiry.3lib target=libSMHBAAPI.3lib
184link facet.doc.man=true path=usr/share/man/man3lib/SMHBA_ScsiReadCapacity.3lib target=libSMHBAAPI.3lib
185link facet.doc.man=true path=usr/share/man/man3lib/SMHBA_ScsiReportLuns.3lib target=libSMHBAAPI.3lib
186link facet.doc.man=true path=usr/share/man/man3lib/SMHBA_SendECHO.3lib target=libSMHBAAPI.3lib
187link facet.doc.man=true path=usr/share/man/man3lib/SMHBA_SendSMPPassThru.3lib target=libSMHBAAPI.3lib
188link facet.doc.man=true path=usr/share/man/man3lib/SMHBA_SendTEST.3lib target=libSMHBAAPI.3lib
189link facet.doc.man=true path=usr/share/man/man3lib/SMHBA_SetBindingSupport.3lib target=libSMHBAAPI.3lib
190link facet.doc.man=true path=usr/share/man/man3lib/SMHBA_SetPersistentBinding.3lib target=libSMHBAAPI.3lib
191link facet.doc.man=true path=usr/share/man/man3lib/libsmhbaapi.3lib target=libSMHBAAPI.3lib
192#
193# CDDL HEADER START
194#
195# The contents of this file are subject to the terms of the
196# Common Development and Distribution License (the "License").
197# You may not use this file except in compliance with the License.
198#
199# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
200# or http://www.opensolaris.org/os/licensing.
201# See the License for the specific language governing permissions
202# and limitations under the License.
203#
204# When distributing Covered Code, include this CDDL HEADER in each
205# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
206# If applicable, add the following below this CDDL HEADER, with the
207# fields enclosed by brackets "[]" replaced with your own identifying
208# information: Portions Copyright [yyyy] [name of copyright owner]
209#
210# CDDL HEADER END
211#
212
213#
214# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
215#
216
217#
218# These actions represent settings which should appear in every package.
219#
220
221#
222# Name the consolidation this package came from.
223#
224set name=org.opensolaris.consolidation value=osnet
225
226#
227# Indicate that the package was published in a zones aware
228# fashion.
229#
230set name=variant.opensolaris.zone value=global value=nonglobal
231#
232# CDDL HEADER START
233#
234# The contents of this file are subject to the terms of the
235# Common Development and Distribution License (the "License").
236# You may not use this file except in compliance with the License.
237#
238# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
239# or http://www.opensolaris.org/os/licensing.
240# See the License for the specific language governing permissions
241# and limitations under the License.
242#
243# When distributing Covered Code, include this CDDL HEADER in each
244# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
245# If applicable, add the following below this CDDL HEADER, with the
246# fields enclosed by brackets "[]" replaced with your own identifying
247# information: Portions Copyright [yyyy] [name of copyright owner]
248#
249# CDDL HEADER END
250#
251
252#
253# Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
254# Use is subject to license terms.
255#
256
257#
258# Only publish packages for the currently specified architecture
259#
260# This is somewhat nonintuitive.  In English:
261#
262#	For any action of type "set",
263#	if the "name" property matches the regex "variant.arch",
264#	and *every* occurrence of the "value" property does not match
265#		$ARCH, then don't publish it.
266#
267# ...in other words, if *any* occurrence of "value" matches i386,
268# then the negative lookahead assertion in the regex will fail, and we
269# won't abort based on the action.
270#
271
272#
273# Catch don't-publish settings from manifest-embedded transforms
274#
275#
276# CDDL HEADER START
277#
278# The contents of this file are subject to the terms of the
279# Common Development and Distribution License (the "License").
280# You may not use this file except in compliance with the License.
281#
282# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
283# or http://www.opensolaris.org/os/licensing.
284# See the License for the specific language governing permissions
285# and limitations under the License.
286#
287# When distributing Covered Code, include this CDDL HEADER in each
288# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
289# If applicable, add the following below this CDDL HEADER, with the
290# fields enclosed by brackets "[]" replaced with your own identifying
291# information: Portions Copyright [yyyy] [name of copyright owner]
292#
293# CDDL HEADER END
294#
295
296#
297# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
298#
299
300#
301# This file and its contents are supplied under the terms of the
302# Common Development and Distribution License ("CDDL"), version 1.0.
303# You may only use this file in accordance with the terms of version
304# 1.0 of the CDDL.
305#
306# A full copy of the text of the CDDL should have accompanied this
307# source.  A copy of the CDDL is also available via the Internet
308# at http://www.illumos.org/license/CDDL.
309#
310
311# Copyright 2011, Richard Lowe
312
313# Manual pages are documentation, and more specifically 'man' documentation
314#
315# CDDL HEADER START
316#
317# The contents of this file are subject to the terms of the
318# Common Development and Distribution License (the "License").
319# You may not use this file except in compliance with the License.
320#
321# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
322# or http://www.opensolaris.org/os/licensing.
323# See the License for the specific language governing permissions
324# and limitations under the License.
325#
326# When distributing Covered Code, include this CDDL HEADER in each
327# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
328# If applicable, add the following below this CDDL HEADER, with the
329# fields enclosed by brackets "[]" replaced with your own identifying
330# information: Portions Copyright [yyyy] [name of copyright owner]
331#
332# CDDL HEADER END
333#
334
335#
336# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
337# Copyright 2011, Richard Lowe
338#
339
340#
341# For kernel/drv, set .conf files to mode 0644.  Assume all other
342# files there are drivers, and give them mode 0755 and reboot-needed.
343#
344# The (?<!r) construct in the reboot-needed transform is a negative
345# lookbehind assertion: it says "only match this regex if the
346# previously matched text does NOT match regex r."  So it will match
347# all files in the various kernel trees, except for .conf files.
348#
349
350
351#
352# Non-global zones should not have content in kernel, usr/kernel (and
353# other kernel dirs) or in boot/.
354#
355
356
357#
358# shared objects should generally have mode 0755
359#
360
361#
362# Catch some of the collections of largely read-only files
363#
364
365
366#
367# For what's left, go with root:bin 0644, +x for directories
368#
369
370#
371# Default values for legacy actions
372#
373#
374# CDDL HEADER START
375#
376# The contents of this file are subject to the terms of the
377# Common Development and Distribution License (the "License").
378# You may not use this file except in compliance with the License.
379#
380# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
381# or http://www.opensolaris.org/os/licensing.
382# See the License for the specific language governing permissions
383# and limitations under the License.
384#
385# When distributing Covered Code, include this CDDL HEADER in each
386# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
387# If applicable, add the following below this CDDL HEADER, with the
388# fields enclosed by brackets "[]" replaced with your own identifying
389# information: Portions Copyright [yyyy] [name of copyright owner]
390#
391# CDDL HEADER END
392#
393
394#
395# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
396#
397
398#
399# Pull out the license paths for staging in the proto area.  Ignore
400# those with no path separators, as that indicates a file kept in
401# $SRC/pkg/license_files, rather than alongside the associated source.
402#
403
404#
405# Ordering is important here, and the last line wins.
406#
407# The default of "current" is provided by the calling environment,
408# rather than a print operation.
409#
410depend fmri=consolidation/osnet/osnet-incorporation type=require
411