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