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#
25
26#
27# The default for payload-bearing actions in this package is to appear in the
28# global zone only.  See the include file for greater detail, as well as
29# information about overriding the defaults.
30#
31#
32# CDDL HEADER START
33#
34# The contents of this file are subject to the terms of the
35# Common Development and Distribution License (the "License").
36# You may not use this file except in compliance with the License.
37#
38# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
39# or http://www.opensolaris.org/os/licensing.
40# See the License for the specific language governing permissions
41# and limitations under the License.
42#
43# When distributing Covered Code, include this CDDL HEADER in each
44# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
45# If applicable, add the following below this CDDL HEADER, with the
46# fields enclosed by brackets "[]" replaced with your own identifying
47# information: Portions Copyright [yyyy] [name of copyright owner]
48#
49# CDDL HEADER END
50#
51
52#
53# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
54#
55
56#
57# For packagers:
58#
59# This ruleset is useful for "system" components-- ones which are expected
60# to appear primarily in the global zone, but which may have some small
61# pieces (man pages, header files) which may need to appear in all zones.
62#
63# The current rules specify that all payload-bearing actions (file,
64# dir, hardlink, link) should appear *only* in the global zone, with
65# the following exceptions:
66#
67# 	- man pages appear in all zones
68# 	- header files appear in all zones
69# 	- mdb(1) modules appear in all zones
70#
71# You may well have other actions which you wish to appear in all zones.
72# An example would be an administrative utility for a driver which has
73# been virtualized to work within zones.  For those actions you wish to
74# appear in all zones, add the following attribute to your action.
75#
76#         variant.opensolaris.zone=__NODEFAULT
77#
78# You DO NOT need to specify __NODEFAULT for man pages, headers, or
79# mdb modules, as those are covered by the automatic rules below.
80#
81# Note: When you specify variant.opensolaris.zone=__NODEFAULT, the
82# net effect is that *no* variant.opensolaris.zone attribute will
83# appear in the post-processed manifest.
84#
85
86#
87# For packaging nerds:
88#
89# We have a problem to solve here: To make an action appear in all zones,
90# it should have *no* variant.opensolaris.zone attribute.  So it's a bit
91# more complicated to use "default".
92#
93# Here's what we do: we use "default" to set all payload bearing actions
94# which have no variant.opensolaris.zone attribute to be
95# variant.opensolaris.zone=global.  For those actions which need to appear
96# in all zones, the packager must specify
97# variant.opensolaris.zone=__NODEFAULT.  Additionally we have some rules
98# which set __NODEFAULT for a few classes of well known things, like man
99# pages and headers.
100#
101# We then go through and clean up all of the __NODEFAULTed attributes by
102# simply deleting them.
103#
104
105# Man pages should appear in all zones.
106
107# Headers should appear in all zones.
108
109# MDB modules should appear in all zones, as one might debug a crash dump
110# in a zone.
111
112# Everything else is global zone only unless the user overrides
113# action-by-action with __NODEFAULT.
114
115#
116# Buff out the __NODEFAULT attributes.
117#
118set name=pkg.fmri value=pkg:/storage/avs/remote-mirror@0.5.11,5.11-0.155.53
119set name=pkg.description value="Remote Mirror copy software provides replication across IP networks"
120set name=pkg.summary value="Sun StorageTek Availability Suite Remote Mirror"
121set name=info.classification value=org.opensolaris.category.2008:System/Hardware
122set name=variant.arch value=i386
123dir group=sys mode=0755 owner=root path=etc variant.opensolaris.zone=global
124dir group=sys mode=0755 owner=root path=etc/init.d variant.opensolaris.zone=global
125dir group=sys mode=0755 owner=root path=kernel variant.opensolaris.zone=global
126dir group=sys mode=0755 owner=root path=kernel/kmdb variant.opensolaris.zone=global
127dir group=sys mode=0755 owner=root path=kernel/kmdb/amd64 variant.opensolaris.zone=global
128dir group=bin mode=0755 owner=root path=lib variant.opensolaris.zone=global
129dir group=bin mode=0755 owner=root path=lib/svc variant.opensolaris.zone=global
130dir group=sys mode=0755 owner=root path=lib/svc/manifest variant.opensolaris.zone=global
131dir group=sys mode=0755 owner=root path=lib/svc/manifest/system variant.opensolaris.zone=global
132dir group=bin mode=0755 owner=root path=lib/svc/method variant.opensolaris.zone=global
133dir group=sys mode=0755 owner=root path=usr variant.opensolaris.zone=global
134dir group=bin mode=0755 owner=root path=usr/bin variant.opensolaris.zone=global
135dir group=sys mode=0755 owner=root path=usr/cluster variant.opensolaris.zone=global
136dir group=bin mode=0755 owner=root path=usr/cluster/lib variant.opensolaris.zone=global
137dir group=bin mode=0755 owner=root path=usr/cluster/lib/dscfg variant.opensolaris.zone=global
138dir group=bin mode=0755 owner=root path=usr/cluster/lib/dscfg/start variant.opensolaris.zone=global
139dir group=bin mode=0755 owner=root path=usr/cluster/lib/dscfg/stop variant.opensolaris.zone=global
140dir group=other mode=0755 owner=root path=usr/cluster/sbin variant.opensolaris.zone=global
141dir group=sys mode=0755 owner=root path=usr/kernel variant.opensolaris.zone=global
142dir group=sys mode=0755 owner=root path=usr/kernel/drv variant.opensolaris.zone=global
143dir group=sys mode=0755 owner=root path=usr/kernel/drv/amd64 variant.opensolaris.zone=global
144dir group=sys mode=0755 owner=root path=usr/kernel/misc variant.opensolaris.zone=global
145dir group=sys mode=0755 owner=root path=usr/kernel/misc/amd64 variant.opensolaris.zone=global
146dir group=bin mode=0755 owner=root path=usr/lib variant.opensolaris.zone=global
147dir group=sys mode=0755 owner=root path=usr/lib/mdb
148dir group=sys mode=0755 owner=root path=usr/lib/mdb/kvm
149dir group=sys mode=0755 owner=root path=usr/lib/mdb/kvm/amd64
150dir group=bin mode=0755 owner=root path=usr/sbin variant.opensolaris.zone=global
151dir group=bin mode=0755 owner=root path=usr/share/man
152dir facet.doc.man=true group=bin mode=0755 owner=root path=usr/share/man/man1m
153dir facet.doc.man=true group=bin mode=0755 owner=root path=usr/share/man/man4
154driver devlink=type=ddi_pseudo;name=rdc\t\D name=rdc perms="* 0666 root sys" privs=sys_config privs=sys_devices
155file NOHASH group=bin mode=0744 owner=root path=etc/init.d/rdc variant.opensolaris.zone=global
156file NOHASH group=bin mode=0744 owner=root path=etc/init.d/rdc.cluster variant.opensolaris.zone=global
157file NOHASH group=bin mode=0744 owner=root path=etc/init.d/rdcfinish variant.opensolaris.zone=global
158file NOHASH group=sys mode=0555 owner=root path=kernel/kmdb/amd64/rdc reboot-needed=true variant.opensolaris.zone=global
159file NOHASH group=sys mode=0444 owner=root path=lib/svc/manifest/system/nws_rdc.xml restart_fmri=svc:/system/manifest-import:default variant.opensolaris.zone=global
160file NOHASH group=sys mode=0444 owner=root path=lib/svc/manifest/system/nws_rdcsyncd.xml restart_fmri=svc:/system/manifest-import:default variant.opensolaris.zone=global
161file NOHASH group=bin mode=0555 owner=root path=usr/bin/sndradm variant.opensolaris.zone=global
162file NOHASH group=bin mode=0555 owner=root path=usr/bin/sndrboot variant.opensolaris.zone=global
163file NOHASH group=bin mode=0555 owner=root path=usr/bin/sndrd variant.opensolaris.zone=global
164file NOHASH group=bin mode=0555 owner=root path=usr/bin/sndrsyncd variant.opensolaris.zone=global
165file NOHASH group=bin mode=0744 owner=root path=usr/cluster/sbin/rdc variant.opensolaris.zone=global
166file NOHASH group=sys mode=0755 owner=root path=usr/kernel/drv/amd64/rdc reboot-needed=true variant.opensolaris.zone=global
167file NOHASH group=sys mode=0755 owner=root path=usr/kernel/drv/amd64/rdcsrv reboot-needed=true variant.opensolaris.zone=global
168file NOHASH group=sys mode=0755 owner=root path=usr/kernel/drv/amd64/rdcstub reboot-needed=true variant.opensolaris.zone=global
169file NOHASH group=sys mode=0644 original_name=SUNWrdc:usr/kernel/drv/rdc.conf owner=root path=usr/kernel/drv/rdc.conf preserve=true variant.opensolaris.zone=global
170file NOHASH group=bin mode=0755 owner=root path=usr/lib/librdc.so.1 variant.opensolaris.zone=global
171file NOHASH group=sys mode=0555 owner=root path=usr/lib/mdb/kvm/amd64/rdc.so
172file NOHASH facet.doc.man=true group=bin mode=0444 owner=root path=usr/share/man/man1m/sndradm.1m
173file NOHASH facet.doc.man=true group=bin mode=0444 owner=root path=usr/share/man/man1m/sndrd.1m
174file NOHASH facet.doc.man=true group=bin mode=0444 owner=root path=usr/share/man/man1m/sndrsyncd.1m
175file NOHASH facet.doc.man=true group=bin mode=0444 owner=root path=usr/share/man/man4/rdc.cf.4
176file NOHASH facet.doc.man=true group=bin mode=0444 owner=root path=usr/share/man/man4/sndr.4
177hardlink path=lib/svc/method/svc-rdc target=../../../etc/init.d/rdc variant.opensolaris.zone=global
178hardlink path=lib/svc/method/svc-rdcsyncd target=../../../etc/init.d/rdcfinish variant.opensolaris.zone=global
179hardlink path=usr/kernel/misc/amd64/rdcsrv target=../../drv/amd64/rdcsrv variant.opensolaris.zone=global
180hardlink path=usr/kernel/misc/amd64/rdcstub target=../../drv/amd64/rdcstub variant.opensolaris.zone=global
181hardlink path=usr/lib/sndrd target=../bin/sndrd variant.opensolaris.zone=global
182hardlink path=usr/lib/sndrsyncd target=../bin/sndrsyncd variant.opensolaris.zone=global
183hardlink path=usr/sbin/sndradm target=../bin/sndradm variant.opensolaris.zone=global
184hardlink path=usr/sbin/sndrboot target=../bin/sndrboot variant.opensolaris.zone=global
185legacy arch=i386 category=system desc="Remote Mirror copy software provides replication across IP networks" hotline="Please contact your local service provider" name="Sun StorageTek Availability Suite Remote Mirror (root)" pkg=SUNWrdcr vendor=Illumos version=11.11,REV=2009.11.11
186legacy arch=i386 category=system desc="Remote Mirror copy software provides replication across IP networks" hotline="Please contact your local service provider" name="Sun StorageTek Availability Suite Remote Mirror (usr)" pkg=SUNWrdcu vendor=Illumos version=11.11,REV=2009.11.11
187license cr_Sun license=cr_Sun
188license lic_CDDL license=lic_CDDL
189link path=usr/cluster/lib/dscfg/start/10rdc target=../../../sbin/rdc variant.opensolaris.zone=global
190link path=usr/cluster/lib/dscfg/stop/15rdc target=../../../sbin/rdc variant.opensolaris.zone=global
191#
192# CDDL HEADER START
193#
194# The contents of this file are subject to the terms of the
195# Common Development and Distribution License (the "License").
196# You may not use this file except in compliance with the License.
197#
198# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
199# or http://www.opensolaris.org/os/licensing.
200# See the License for the specific language governing permissions
201# and limitations under the License.
202#
203# When distributing Covered Code, include this CDDL HEADER in each
204# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
205# If applicable, add the following below this CDDL HEADER, with the
206# fields enclosed by brackets "[]" replaced with your own identifying
207# information: Portions Copyright [yyyy] [name of copyright owner]
208#
209# CDDL HEADER END
210#
211
212#
213# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
214#
215
216#
217# These actions represent settings which should appear in every package.
218#
219
220#
221# Name the consolidation this package came from.
222#
223set name=org.opensolaris.consolidation value=osnet
224
225#
226# Indicate that the package was published in a zones aware
227# fashion.
228#
229set name=variant.opensolaris.zone value=global value=nonglobal
230#
231# CDDL HEADER START
232#
233# The contents of this file are subject to the terms of the
234# Common Development and Distribution License (the "License").
235# You may not use this file except in compliance with the License.
236#
237# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
238# or http://www.opensolaris.org/os/licensing.
239# See the License for the specific language governing permissions
240# and limitations under the License.
241#
242# When distributing Covered Code, include this CDDL HEADER in each
243# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
244# If applicable, add the following below this CDDL HEADER, with the
245# fields enclosed by brackets "[]" replaced with your own identifying
246# information: Portions Copyright [yyyy] [name of copyright owner]
247#
248# CDDL HEADER END
249#
250
251#
252# Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
253# Use is subject to license terms.
254#
255
256#
257# Only publish packages for the currently specified architecture
258#
259# This is somewhat nonintuitive.  In English:
260#
261#	For any action of type "set",
262#	if the "name" property matches the regex "variant.arch",
263#	and *every* occurrence of the "value" property does not match
264#		$ARCH, then don't publish it.
265#
266# ...in other words, if *any* occurrence of "value" matches i386,
267# then the negative lookahead assertion in the regex will fail, and we
268# won't abort based on the action.
269#
270
271#
272# Catch don't-publish settings from manifest-embedded transforms
273#
274#
275# CDDL HEADER START
276#
277# The contents of this file are subject to the terms of the
278# Common Development and Distribution License (the "License").
279# You may not use this file except in compliance with the License.
280#
281# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
282# or http://www.opensolaris.org/os/licensing.
283# See the License for the specific language governing permissions
284# and limitations under the License.
285#
286# When distributing Covered Code, include this CDDL HEADER in each
287# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
288# If applicable, add the following below this CDDL HEADER, with the
289# fields enclosed by brackets "[]" replaced with your own identifying
290# information: Portions Copyright [yyyy] [name of copyright owner]
291#
292# CDDL HEADER END
293#
294
295#
296# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
297#
298
299#
300# This file and its contents are supplied under the terms of the
301# Common Development and Distribution License ("CDDL"), version 1.0.
302# You may only use this file in accordance with the terms of version
303# 1.0 of the CDDL.
304#
305# A full copy of the text of the CDDL should have accompanied this
306# source.  A copy of the CDDL is also available via the Internet
307# at http://www.illumos.org/license/CDDL.
308#
309
310# Copyright 2011, Richard Lowe
311
312# Manual pages are documentation, and more specifically 'man' documentation
313#
314# CDDL HEADER START
315#
316# The contents of this file are subject to the terms of the
317# Common Development and Distribution License (the "License").
318# You may not use this file except in compliance with the License.
319#
320# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
321# or http://www.opensolaris.org/os/licensing.
322# See the License for the specific language governing permissions
323# and limitations under the License.
324#
325# When distributing Covered Code, include this CDDL HEADER in each
326# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
327# If applicable, add the following below this CDDL HEADER, with the
328# fields enclosed by brackets "[]" replaced with your own identifying
329# information: Portions Copyright [yyyy] [name of copyright owner]
330#
331# CDDL HEADER END
332#
333
334#
335# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
336# Copyright 2011, Richard Lowe
337#
338
339#
340# For kernel/drv, set .conf files to mode 0644.  Assume all other
341# files there are drivers, and give them mode 0755 and reboot-needed.
342#
343# The (?<!r) construct in the reboot-needed transform is a negative
344# lookbehind assertion: it says "only match this regex if the
345# previously matched text does NOT match regex r."  So it will match
346# all files in the various kernel trees, except for .conf files.
347#
348
349
350#
351# Non-global zones should not have content in kernel, usr/kernel (and
352# other kernel dirs) or in boot/.
353#
354
355
356#
357# shared objects should generally have mode 0755
358#
359
360#
361# Catch some of the collections of largely read-only files
362#
363
364
365#
366# For what's left, go with root:bin 0644, +x for directories
367#
368
369#
370# Default values for legacy actions
371#
372#
373# CDDL HEADER START
374#
375# The contents of this file are subject to the terms of the
376# Common Development and Distribution License (the "License").
377# You may not use this file except in compliance with the License.
378#
379# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
380# or http://www.opensolaris.org/os/licensing.
381# See the License for the specific language governing permissions
382# and limitations under the License.
383#
384# When distributing Covered Code, include this CDDL HEADER in each
385# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
386# If applicable, add the following below this CDDL HEADER, with the
387# fields enclosed by brackets "[]" replaced with your own identifying
388# information: Portions Copyright [yyyy] [name of copyright owner]
389#
390# CDDL HEADER END
391#
392
393#
394# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
395#
396
397#
398# Pull out the license paths for staging in the proto area.  Ignore
399# those with no path separators, as that indicates a file kept in
400# $SRC/pkg/license_files, rather than alongside the associated source.
401#
402
403#
404# Ordering is important here, and the last line wins.
405#
406# The default of "current" is provided by the calling environment,
407# rather than a print operation.
408#
409set name=org.opensolaris.smf.fmri value=svc:/system/nws_rdc value=svc:/system/nws_rdc:default value=svc:/system/nws_rdcsyncd value=svc:/system/nws_rdcsyncd:default
410depend fmri=consolidation/osnet/osnet-incorporation type=require
411depend fmri=pkg:/SUNWcs@0.5.11-0.155.53 type=require variant.opensolaris.zone=global
412depend fmri=pkg:/driver/storage/sv@0.5.11-0.155.53 type=require variant.opensolaris.zone=global
413depend fmri=pkg:/service/storage/avs/cache-management@0.5.11-0.155.53 type=require variant.opensolaris.zone=global
414depend fmri=pkg:/system/kernel@0.5.11-0.155.53 type=require variant.opensolaris.zone=global
415depend fmri=pkg:/system/library@0.5.11-0.155.53 type=require variant.opensolaris.zone=global
416#
417# This file and its contents are supplied under the terms of the
418# Common Development and Distribution License ("CDDL"). You may
419# only use this file in accordance with the terms of the CDDL.
420#
421# A full copy of the text of the CDDL should have accompanied this
422# source. A copy of the CDDL is also available via the Internet at
423# http://www.illumos.org/license/CDDL.
424#
425
426#
427# Copyright 2019 Alexander Pyhalov
428# Copyright 2020 OmniOS Community Edition (OmniOSce) Association.
429#
430
431#
432# These transforms drop the information that we don't want to appear
433# in final package versions.
434#
435
436# Drop pkg.depend.bypass-generate attributes
437
438# Drop pkg.depend.runpath attributes
439
440# Remove pkg debug information
441
442