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