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