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