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 2015 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:/SUNWcsd@0.5.11,5.11-0.155.53 120set name=pkg.description value="core entries for /dev and /devices needed for the initial boot of Solaris" 121set name=pkg.summary value="Core Solaris Devices" 122set name=info.classification value=org.opensolaris.category.2008:System/Core 123set name=variant.arch value=i386 124dir group=sys mode=0755 owner=root path=dev variant.opensolaris.zone=global 125dir group=sys mode=0755 owner=root path=dev/dsk variant.opensolaris.zone=global 126dir group=root mode=0555 owner=root path=dev/fd variant.opensolaris.zone=global 127dir group=sys mode=0755 owner=root path=dev/ipnet variant.opensolaris.zone=global 128dir group=sys mode=0755 owner=root path=dev/net variant.opensolaris.zone=global 129dir group=sys mode=0755 owner=root path=dev/pts variant.opensolaris.zone=global 130dir group=sys mode=0755 owner=root path=dev/rdsk variant.opensolaris.zone=global 131dir group=sys mode=0755 owner=root path=dev/rmt variant.opensolaris.zone=global 132dir group=sys mode=0755 owner=root path=dev/sad variant.opensolaris.zone=global 133dir group=sys mode=0755 owner=root path=dev/swap variant.opensolaris.zone=global 134dir group=root mode=0755 owner=root path=dev/term variant.opensolaris.zone=global 135dir group=sys mode=0755 owner=root path=dev/vt variant.opensolaris.zone=global 136dir group=sys mode=0755 owner=root path=dev/zcons variant.opensolaris.zone=global 137dir group=sys mode=0755 owner=root path=devices variant.opensolaris.zone=global 138dir group=sys mode=0755 owner=root path=devices/pseudo variant.opensolaris.zone=global 139dir group=sys mode=0755 owner=root path=etc variant.opensolaris.zone=global 140dir group=sys mode=0755 owner=root path=etc/rcm variant.opensolaris.zone=global 141dir group=sys mode=0755 owner=root path=etc/rcm/scripts variant.opensolaris.zone=global 142dir group=sys mode=0755 owner=root path=etc/security variant.opensolaris.zone=global 143dir group=bin mode=0755 owner=root path=lib variant.opensolaris.zone=global 144dir group=bin mode=0755 owner=root path=lib/svc variant.opensolaris.zone=global 145dir group=sys mode=0755 owner=root path=lib/svc/manifest variant.opensolaris.zone=global 146dir group=sys mode=0755 owner=root path=lib/svc/manifest/system variant.opensolaris.zone=global 147dir group=bin mode=0755 owner=root path=lib/svc/method variant.opensolaris.zone=global 148dir group=bin mode=0755 owner=root path=usr/share/man 149dir facet.doc.man=true group=bin mode=0755 owner=root path=usr/share/man/man4 150file NOHASH group=sys mode=0644 owner=root path=etc/dacf.conf variant.opensolaris.zone=global 151file NOHASH group=sys mode=0644 owner=root path=etc/devlink.tab preserve=true variant.opensolaris.zone=global 152file NOHASH group=sys mode=0644 owner=root path=etc/driver_aliases preserve=true variant.opensolaris.zone=global 153file NOHASH group=sys mode=0644 owner=root path=etc/driver_classes preserve=true variant.opensolaris.zone=global 154file NOHASH group=sys mode=0644 owner=root path=etc/iu.ap preserve=true variant.opensolaris.zone=global 155file NOHASH group=sys mode=0644 owner=root path=etc/minor_perm preserve=true variant.opensolaris.zone=global 156file NOHASH group=sys mode=0644 owner=root path=etc/name_to_major preserve=true variant.opensolaris.zone=global 157file NOHASH group=root mode=0444 owner=root path=etc/path_to_inst preserve=true variant.opensolaris.zone=global 158file NOHASH group=sys mode=0644 owner=root path=etc/security/device_policy preserve=true variant.opensolaris.zone=global 159file NOHASH group=sys mode=0644 owner=root path=etc/security/extra_privs preserve=true variant.opensolaris.zone=global 160file NOHASH group=sys mode=0444 owner=root path=lib/svc/manifest/system/sysevent.xml restart_fmri=svc:/system/manifest-import:default variant.opensolaris.zone=global 161file NOHASH group=bin mode=0555 owner=root path=lib/svc/method/svc-syseventd variant.opensolaris.zone=global 162file NOHASH facet.doc.man=true group=bin mode=0444 owner=root path=usr/share/man/man4/path_to_inst.4 163legacy arch=i386 category=system desc="core entries for /dev and /devices needed for the initial boot of Solaris" hotline="Please contact your local service provider" name="Core Solaris Devices" pkg=SUNWcsd vendor=Illumos version=11.11,REV=2009.11.11 164license cr_Sun license=cr_Sun 165license lic_CDDL license=lic_CDDL 166link path=dev/stderr target=./fd/2 variant.opensolaris.zone=global 167link path=dev/stdin target=./fd/0 variant.opensolaris.zone=global 168link path=dev/stdout target=./fd/1 variant.opensolaris.zone=global 169# 170# CDDL HEADER START 171# 172# The contents of this file are subject to the terms of the 173# Common Development and Distribution License (the "License"). 174# You may not use this file except in compliance with the License. 175# 176# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 177# or http://www.opensolaris.org/os/licensing. 178# See the License for the specific language governing permissions 179# and limitations under the License. 180# 181# When distributing Covered Code, include this CDDL HEADER in each 182# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 183# If applicable, add the following below this CDDL HEADER, with the 184# fields enclosed by brackets "[]" replaced with your own identifying 185# information: Portions Copyright [yyyy] [name of copyright owner] 186# 187# CDDL HEADER END 188# 189 190# 191# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. 192# 193 194# 195# These actions represent settings which should appear in every package. 196# 197 198# 199# Name the consolidation this package came from. 200# 201set name=org.opensolaris.consolidation value=osnet 202 203# 204# Indicate that the package was published in a zones aware 205# fashion. 206# 207set name=variant.opensolaris.zone value=global value=nonglobal 208# 209# CDDL HEADER START 210# 211# The contents of this file are subject to the terms of the 212# Common Development and Distribution License (the "License"). 213# You may not use this file except in compliance with the License. 214# 215# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 216# or http://www.opensolaris.org/os/licensing. 217# See the License for the specific language governing permissions 218# and limitations under the License. 219# 220# When distributing Covered Code, include this CDDL HEADER in each 221# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 222# If applicable, add the following below this CDDL HEADER, with the 223# fields enclosed by brackets "[]" replaced with your own identifying 224# information: Portions Copyright [yyyy] [name of copyright owner] 225# 226# CDDL HEADER END 227# 228 229# 230# Copyright 2010 Sun Microsystems, Inc. All rights reserved. 231# Use is subject to license terms. 232# 233 234# 235# Only publish packages for the currently specified architecture 236# 237# This is somewhat nonintuitive. In English: 238# 239# For any action of type "set", 240# if the "name" property matches the regex "variant.arch", 241# and *every* occurrence of the "value" property does not match 242# $ARCH, then don't publish it. 243# 244# ...in other words, if *any* occurrence of "value" matches i386, 245# then the negative lookahead assertion in the regex will fail, and we 246# won't abort based on the action. 247# 248 249# 250# Catch don't-publish settings from manifest-embedded transforms 251# 252# 253# CDDL HEADER START 254# 255# The contents of this file are subject to the terms of the 256# Common Development and Distribution License (the "License"). 257# You may not use this file except in compliance with the License. 258# 259# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 260# or http://www.opensolaris.org/os/licensing. 261# See the License for the specific language governing permissions 262# and limitations under the License. 263# 264# When distributing Covered Code, include this CDDL HEADER in each 265# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 266# If applicable, add the following below this CDDL HEADER, with the 267# fields enclosed by brackets "[]" replaced with your own identifying 268# information: Portions Copyright [yyyy] [name of copyright owner] 269# 270# CDDL HEADER END 271# 272 273# 274# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. 275# 276 277# 278# This file and its contents are supplied under the terms of the 279# Common Development and Distribution License ("CDDL"), version 1.0. 280# You may only use this file in accordance with the terms of version 281# 1.0 of the CDDL. 282# 283# A full copy of the text of the CDDL should have accompanied this 284# source. A copy of the CDDL is also available via the Internet 285# at http://www.illumos.org/license/CDDL. 286# 287 288# Copyright 2011, Richard Lowe 289 290# Manual pages are documentation, and more specifically 'man' documentation 291# 292# CDDL HEADER START 293# 294# The contents of this file are subject to the terms of the 295# Common Development and Distribution License (the "License"). 296# You may not use this file except in compliance with the License. 297# 298# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 299# or http://www.opensolaris.org/os/licensing. 300# See the License for the specific language governing permissions 301# and limitations under the License. 302# 303# When distributing Covered Code, include this CDDL HEADER in each 304# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 305# If applicable, add the following below this CDDL HEADER, with the 306# fields enclosed by brackets "[]" replaced with your own identifying 307# information: Portions Copyright [yyyy] [name of copyright owner] 308# 309# CDDL HEADER END 310# 311 312# 313# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. 314# Copyright 2011, Richard Lowe 315# 316 317# 318# For kernel/drv, set .conf files to mode 0644. Assume all other 319# files there are drivers, and give them mode 0755 and reboot-needed. 320# 321# The (?<!r) construct in the reboot-needed transform is a negative 322# lookbehind assertion: it says "only match this regex if the 323# previously matched text does NOT match regex r." So it will match 324# all files in the various kernel trees, except for .conf files. 325# 326 327 328# 329# Non-global zones should not have content in kernel, usr/kernel (and 330# other kernel dirs) or in boot/. 331# 332 333 334# 335# shared objects should generally have mode 0755 336# 337 338# 339# Catch some of the collections of largely read-only files 340# 341 342 343# 344# For what's left, go with root:bin 0644, +x for directories 345# 346 347# 348# Default values for legacy actions 349# 350# 351# CDDL HEADER START 352# 353# The contents of this file are subject to the terms of the 354# Common Development and Distribution License (the "License"). 355# You may not use this file except in compliance with the License. 356# 357# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 358# or http://www.opensolaris.org/os/licensing. 359# See the License for the specific language governing permissions 360# and limitations under the License. 361# 362# When distributing Covered Code, include this CDDL HEADER in each 363# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 364# If applicable, add the following below this CDDL HEADER, with the 365# fields enclosed by brackets "[]" replaced with your own identifying 366# information: Portions Copyright [yyyy] [name of copyright owner] 367# 368# CDDL HEADER END 369# 370 371# 372# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. 373# 374 375# 376# Pull out the license paths for staging in the proto area. Ignore 377# those with no path separators, as that indicates a file kept in 378# $SRC/pkg/license_files, rather than alongside the associated source. 379# 380 381# 382# Ordering is important here, and the last line wins. 383# 384# The default of "current" is provided by the calling environment, 385# rather than a print operation. 386# 387depend fmri=consolidation/osnet/osnet-incorporation type=require 388