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 2016 Nexenta Systems, Inc. 14# 15 16# 17# The default for payload-bearing actions in this package is to appear in the 18# global zone only. See the include file for greater detail, as well as 19# information about overriding the defaults. 20# 21# 22# CDDL HEADER START 23# 24# The contents of this file are subject to the terms of the 25# Common Development and Distribution License (the "License"). 26# You may not use this file except in compliance with the License. 27# 28# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 29# or http://www.opensolaris.org/os/licensing. 30# See the License for the specific language governing permissions 31# and limitations under the License. 32# 33# When distributing Covered Code, include this CDDL HEADER in each 34# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 35# If applicable, add the following below this CDDL HEADER, with the 36# fields enclosed by brackets "[]" replaced with your own identifying 37# information: Portions Copyright [yyyy] [name of copyright owner] 38# 39# CDDL HEADER END 40# 41 42# 43# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. 44# 45 46# 47# For packagers: 48# 49# This ruleset is useful for "system" components-- ones which are expected 50# to appear primarily in the global zone, but which may have some small 51# pieces (man pages, header files) which may need to appear in all zones. 52# 53# The current rules specify that all payload-bearing actions (file, 54# dir, hardlink, link) should appear *only* in the global zone, with 55# the following exceptions: 56# 57# - man pages appear in all zones 58# - header files appear in all zones 59# - mdb(1) modules appear in all zones 60# 61# You may well have other actions which you wish to appear in all zones. 62# An example would be an administrative utility for a driver which has 63# been virtualized to work within zones. For those actions you wish to 64# appear in all zones, add the following attribute to your action. 65# 66# variant.opensolaris.zone=__NODEFAULT 67# 68# You DO NOT need to specify __NODEFAULT for man pages, headers, or 69# mdb modules, as those are covered by the automatic rules below. 70# 71# Note: When you specify variant.opensolaris.zone=__NODEFAULT, the 72# net effect is that *no* variant.opensolaris.zone attribute will 73# appear in the post-processed manifest. 74# 75 76# 77# For packaging nerds: 78# 79# We have a problem to solve here: To make an action appear in all zones, 80# it should have *no* variant.opensolaris.zone attribute. So it's a bit 81# more complicated to use "default". 82# 83# Here's what we do: we use "default" to set all payload bearing actions 84# which have no variant.opensolaris.zone attribute to be 85# variant.opensolaris.zone=global. For those actions which need to appear 86# in all zones, the packager must specify 87# variant.opensolaris.zone=__NODEFAULT. Additionally we have some rules 88# which set __NODEFAULT for a few classes of well known things, like man 89# pages and headers. 90# 91# We then go through and clean up all of the __NODEFAULTed attributes by 92# simply deleting them. 93# 94 95# Man pages should appear in all zones. 96 97# Headers should appear in all zones. 98 99# MDB modules should appear in all zones, as one might debug a crash dump 100# in a zone. 101 102# Everything else is global zone only unless the user overrides 103# action-by-action with __NODEFAULT. 104 105# 106# Buff out the __NODEFAULT attributes. 107# 108set name=pkg.fmri value=pkg:/driver/storage/pvscsi@0.5.11,5.11-0.155.53 109set name=pkg.description value="VMware PVSCSI SCSI Controller driver" 110set name=pkg.summary value="VMware PVSCSI SCSI Controller driver" 111set name=info.classification value=org.opensolaris.category.2008:Drivers/Storage 112set name=variant.arch value=i386 113dir group=sys mode=0755 owner=root path=kernel variant.opensolaris.zone=global 114dir group=sys mode=0755 owner=root path=kernel/drv variant.opensolaris.zone=global 115dir group=sys mode=0755 owner=root path=kernel/drv/amd64 variant.opensolaris.zone=global 116driver alias=pci15ad,7c0 class=scsi-self-identifying name=pvscsi 117file NOHASH group=sys mode=0755 owner=root path=kernel/drv/amd64/pvscsi reboot-needed=true variant.opensolaris.zone=global 118license lic_CDDL license=lic_CDDL 119license usr/src/uts/intel/io/scsi/adapters/pvscsi/THIRDPARTYLICENSE license=usr/src/uts/intel/io/scsi/adapters/pvscsi/THIRDPARTYLICENSE 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=pkg:/system/kernel@0.5.11-0.155.53 type=require variant.opensolaris.zone=global 340# 341# This file and its contents are supplied under the terms of the 342# Common Development and Distribution License ("CDDL"). You may 343# only use this file in accordance with the terms of the CDDL. 344# 345# A full copy of the text of the CDDL should have accompanied this 346# source. A copy of the CDDL is also available via the Internet at 347# http://www.illumos.org/license/CDDL. 348# 349 350# 351# Copyright 2019 Alexander Pyhalov 352# Copyright 2020 OmniOS Community Edition (OmniOSce) Association. 353# 354 355# 356# These transforms drop the information that we don't want to appear 357# in final package versions. 358# 359 360# Drop pkg.depend.bypass-generate attributes 361 362# Drop pkg.depend.runpath attributes 363 364# Remove pkg debug information 365 366