xref: /illumos-gate/usr/src/Targetdirs (revision 70143b9f)
17c478bd9Sstevel@tonic-gate# CDDL HEADER START
27c478bd9Sstevel@tonic-gate#
37c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the
4749f21d3Swesolows# Common Development and Distribution License (the "License").
5749f21d3Swesolows# You may not use this file except in compliance with the License.
67c478bd9Sstevel@tonic-gate#
77c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
87c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
97c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions
107c478bd9Sstevel@tonic-gate# and limitations under the License.
117c478bd9Sstevel@tonic-gate#
127c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
137c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
147c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
157c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
167c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
177c478bd9Sstevel@tonic-gate#
187c478bd9Sstevel@tonic-gate# CDDL HEADER END
197c478bd9Sstevel@tonic-gate#
201ce19511Sth199096
21749f21d3Swesolows#
22adfc3118STruong Nguyen# Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
23c10c16deSRichard Lowe# Copyright 2011, Richard Lowe
244445fffbSMatthew Ahrens# Copyright (c) 2012 by Delphix. All rights reserved.
2525c28e83SPiotr Jasiukajtis# Copyright (c) 2012, Igor Kozhukhov <ikozhukhov@gmail.com>
26f5c2e7eaSTheo Schlossnagle# Copyright 2012 OmniTI Computer Consulting, Inc.  All rights reserved.
277d10cd4dSGarrett D'Amore# Copyright 2022 Garrett D'Amore <garrett@damore.org>
28f73e0305SHans Rosenfeld# Copyright 2016 Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>
292b987d42SAlexander Eremin# Copyright 2017 Nexenta Systems, Inc.
30f06dce2cSAndrew Stormont# Copyright 2017 RackTop Systems.
31d7b72f7bSAndy Fiddaman# Copyright 2022 OmniOS Community Edition (OmniOSce) Association.
32d8ab6e12SDon Brady# Copyright 2020 Joyent, Inc.
33749f21d3Swesolows#
341ce19511Sth199096
351ce19511Sth199096#
367c478bd9Sstevel@tonic-gate# It is easier to think in terms of directory names without the ROOT macro
377c478bd9Sstevel@tonic-gate# prefix.  ROOTDIRS is TARGETDIRS with ROOT prefixes.  It is necessary
387c478bd9Sstevel@tonic-gate# to work with ROOT prefixes when controlling conditional assignments.
397c478bd9Sstevel@tonic-gate#
407c478bd9Sstevel@tonic-gate
4148bc00d6SjmcpDIRLINKS=	$(SYM.DIRS)
4248bc00d6Sjmcp$(BUILD64)	DIRLINKS += $(SYM.DIRS64)
437c478bd9Sstevel@tonic-gate
4448bc00d6SjmcpTARGETDIRS=	$(DIRS)
4548bc00d6Sjmcp$(BUILD64)	TARGETDIRS += $(DIRS64)
467c478bd9Sstevel@tonic-gate
4748bc00d6SjmcpTARGETDIRS	+= $(FILELINKS) $(DIRLINKS)
487c478bd9Sstevel@tonic-gate
4948bc00d6Sjmcpi386_DIRS=			\
507c478bd9Sstevel@tonic-gate	/boot/acpi		\
517c478bd9Sstevel@tonic-gate	/boot/acpi/tables	\
527c478bd9Sstevel@tonic-gate	/boot/grub		\
537c478bd9Sstevel@tonic-gate	/boot/grub/bin		\
5448bc00d6Sjmcp	/platform/i86pc		\
5525c28e83SPiotr Jasiukajtis	/lib/libmvec		\
5648bc00d6Sjmcp	/usr/lib/xen		\
57d7b72f7bSAndy Fiddaman	/usr/lib/xen/bin	\
58d7b72f7bSAndy Fiddaman	/usr/share/bhyve
597c478bd9Sstevel@tonic-gate
6048bc00d6Sjmcpsparc_DIRS=			\
6148bc00d6Sjmcp	/usr/lib/ldoms
627c478bd9Sstevel@tonic-gate
6348bc00d6Sjmcpsparc_64ONLY= $(POUND_SIGN)
6448bc00d6Sjmcp64ONLY=  $($(MACH)_64ONLY)
6548bc00d6Sjmcp
6648bc00d6Sjmcp$(64ONLY) MACH32_DIRS=/usr/ucb/$(MACH32)
6748bc00d6Sjmcp
68*70143b9fSRichard LowePYTHON3_DIRS = \
69e8921a52SAndy Fiddaman	/usr/lib/python$(PYTHON3_VERSION) \
70e8921a52SAndy Fiddaman	/usr/lib/python$(PYTHON3_VERSION)/vendor-packages \
71e8921a52SAndy Fiddaman	/usr/lib/python$(PYTHON3_VERSION)/vendor-packages/solaris \
72e8921a52SAndy Fiddaman	/usr/lib/python$(PYTHON3_VERSION)/vendor-packages/solaris/__pycache__ \
73e8921a52SAndy Fiddaman	/usr/lib/python$(PYTHON3_VERSION)/vendor-packages/zfs \
74e8921a52SAndy Fiddaman	/usr/lib/python$(PYTHON3_VERSION)/vendor-packages/zfs/__pycache__
75e8921a52SAndy Fiddaman
7645ede40bSAndy Fiddaman$(BUILDPY3b)PYTHON3_DIRS += \
7745ede40bSAndy Fiddaman	/usr/lib/python$(PYTHON3b_VERSION) \
7845ede40bSAndy Fiddaman	/usr/lib/python$(PYTHON3b_VERSION)/vendor-packages \
7945ede40bSAndy Fiddaman	/usr/lib/python$(PYTHON3b_VERSION)/vendor-packages/solaris \
8045ede40bSAndy Fiddaman	/usr/lib/python$(PYTHON3b_VERSION)/vendor-packages/solaris/__pycache__ \
8145ede40bSAndy Fiddaman	/usr/lib/python$(PYTHON3b_VERSION)/vendor-packages/zfs \
8245ede40bSAndy Fiddaman	/usr/lib/python$(PYTHON3b_VERSION)/vendor-packages/zfs/__pycache__
8345ede40bSAndy Fiddaman
8448bc00d6SjmcpDIRS= \
85986fd29aSsetje	/boot \
86986fd29aSsetje	/boot/solaris \
87986fd29aSsetje	/boot/solaris/bin \
8848bc00d6Sjmcp	$($(MACH)_DIRS) \
897c478bd9Sstevel@tonic-gate	/dev \
907c478bd9Sstevel@tonic-gate	/dev/dsk \
917c478bd9Sstevel@tonic-gate	/dev/fd \
92b127ac41SPhilip Kirk	/dev/ipnet \
93d62bc4baSyz147064	/dev/net \
947c478bd9Sstevel@tonic-gate	/dev/rdsk \
957c478bd9Sstevel@tonic-gate	/dev/rmt \
967c478bd9Sstevel@tonic-gate	/dev/pts \
977c478bd9Sstevel@tonic-gate	/dev/sad \
987c478bd9Sstevel@tonic-gate	/dev/swap \
9948bc00d6Sjmcp	/dev/term \
100aecfc01dSrui zang - Sun Microsystems - Beijing China	/dev/vt \
101c54df98aSjg	/dev/zcons \
1027c478bd9Sstevel@tonic-gate	/devices \
1037c478bd9Sstevel@tonic-gate	/devices/pseudo \
1047c478bd9Sstevel@tonic-gate	/etc \
105edfa49ffS	/etc/brand  \
106e71ca95cSGerald Jelinek	/etc/brand/solaris10  \
1077c478bd9Sstevel@tonic-gate	/etc/cron.d \
1087c478bd9Sstevel@tonic-gate	/etc/crypto \
1097c478bd9Sstevel@tonic-gate	/etc/crypto/certs \
1107c478bd9Sstevel@tonic-gate	/etc/crypto/crls \
11148bc00d6Sjmcp	/etc/dbus-1 \
11248bc00d6Sjmcp	/etc/dbus-1/system.d \
1137c478bd9Sstevel@tonic-gate	/etc/default \
1147c478bd9Sstevel@tonic-gate	/etc/devices  \
1158d483882Smlf	/etc/dev  \
1167c478bd9Sstevel@tonic-gate	/etc/dfs  \
11748bc00d6Sjmcp	/etc/dladm \
1187c478bd9Sstevel@tonic-gate	/etc/fs  \
1197c478bd9Sstevel@tonic-gate	/etc/fs/nfs  \
120fa9e4066Sahrens	/etc/fs/zfs \
1217c478bd9Sstevel@tonic-gate	/etc/ftpd  \
12218c2aff7Sartem	/etc/hal \
12318c2aff7Sartem	/etc/hal/fdi \
12418c2aff7Sartem	/etc/hal/fdi/information \
12518c2aff7Sartem	/etc/hal/fdi/information/10freedesktop \
12618c2aff7Sartem	/etc/hal/fdi/information/20thirdparty \
12718c2aff7Sartem	/etc/hal/fdi/information/30user \
12818c2aff7Sartem	/etc/hal/fdi/policy \
12918c2aff7Sartem	/etc/hal/fdi/policy/10osvendor \
13018c2aff7Sartem	/etc/hal/fdi/policy/20thirdparty \
13118c2aff7Sartem	/etc/hal/fdi/policy/30user \
13218c2aff7Sartem	/etc/hal/fdi/preprobe \
13318c2aff7Sartem	/etc/hal/fdi/preprobe/10osvendor \
13418c2aff7Sartem	/etc/hal/fdi/preprobe/20thirdparty \
13518c2aff7Sartem	/etc/hal/fdi/preprobe/30user \
1366e91bba0SGirish Moodalbail	/etc/ipadm \
13736c5fee3Smcneal	/etc/iscsi \
1387c478bd9Sstevel@tonic-gate	/etc/rpcsec	\
1397c478bd9Sstevel@tonic-gate	/etc/security	\
140ead1f93eSLiane Praza	/etc/security/auth_attr.d \
141ead1f93eSLiane Praza	/etc/security/exec_attr.d \
142ead1f93eSLiane Praza	/etc/security/prof_attr.d \
143f875b4ebSrica	/etc/security/tsol	\
1447c478bd9Sstevel@tonic-gate	/etc/gss	\
1457c478bd9Sstevel@tonic-gate	/etc/init.d  \
146d04ccbb3Scarlsonj	/etc/dhcp	\
1477c478bd9Sstevel@tonic-gate	/etc/lib  \
14848bc00d6Sjmcp	/etc/mail  \
14948bc00d6Sjmcp	/etc/mail/cf  \
15048bc00d6Sjmcp	/etc/mail/cf/cf  \
15148bc00d6Sjmcp	/etc/mail/cf/domain  \
15248bc00d6Sjmcp	/etc/mail/cf/feature  \
15348bc00d6Sjmcp	/etc/mail/cf/m4  \
15448bc00d6Sjmcp	/etc/mail/cf/mailer  \
15548bc00d6Sjmcp	/etc/mail/cf/ostype  \
15648bc00d6Sjmcp	/etc/mail/cf/sh  \
15748bc00d6Sjmcp	/etc/net-snmp \
15848bc00d6Sjmcp	/etc/net-snmp/snmp \
1597c478bd9Sstevel@tonic-gate	/etc/opt  \
1607c478bd9Sstevel@tonic-gate	/etc/rc0.d  \
1617c478bd9Sstevel@tonic-gate	/etc/rc1.d  \
1627c478bd9Sstevel@tonic-gate	/etc/rc2.d  \
1637c478bd9Sstevel@tonic-gate	/etc/rc3.d  \
1647c478bd9Sstevel@tonic-gate	/etc/rcS.d  \
16548bc00d6Sjmcp	/etc/saf \
1667c478bd9Sstevel@tonic-gate	/etc/sasl	\
1677c478bd9Sstevel@tonic-gate	/etc/sfw \
168a7fe1d5bSAndy Stormont	/etc/skel	\
1697c478bd9Sstevel@tonic-gate	/etc/svc \
1709444c26fSTom Whitten	/etc/svc/profile \
171adfc3118STruong Nguyen	/etc/svc/profile/site \
1727c478bd9Sstevel@tonic-gate	/etc/svc/volatile \
1732b987d42SAlexander Eremin	/etc/system.d \
1747c478bd9Sstevel@tonic-gate	/etc/tm  \
1757c478bd9Sstevel@tonic-gate	/etc/usb   \
176ead1f93eSLiane Praza	/etc/user_attr.d \
177088e9d47Seschrock	/etc/zfs  \
1787c478bd9Sstevel@tonic-gate	/etc/zones  \
1797c478bd9Sstevel@tonic-gate	/export  \
1807c478bd9Sstevel@tonic-gate	/home  \
18148bc00d6Sjmcp	/lib \
18248bc00d6Sjmcp	/lib/crypto \
18348bc00d6Sjmcp	/lib/inet \
184fc5ba5b7SAntonello Cruz	/lib/fm \
18548bc00d6Sjmcp	/lib/secure \
18648bc00d6Sjmcp	/lib/svc \
18748bc00d6Sjmcp	/lib/svc/bin \
18848bc00d6Sjmcp	/lib/svc/capture \
1899444c26fSTom Whitten	/lib/svc/manifest \
1909444c26fSTom Whitten	/lib/svc/manifest/milestone \
1919444c26fSTom Whitten	/lib/svc/manifest/device \
1929444c26fSTom Whitten	/lib/svc/manifest/system \
1939444c26fSTom Whitten	/lib/svc/manifest/system/device \
1949444c26fSTom Whitten	/lib/svc/manifest/system/filesystem \
1959444c26fSTom Whitten	/lib/svc/manifest/system/security \
1969444c26fSTom Whitten	/lib/svc/manifest/system/svc \
1979444c26fSTom Whitten	/lib/svc/manifest/network \
1989444c26fSTom Whitten	/lib/svc/manifest/network/dns \
1999444c26fSTom Whitten	/lib/svc/manifest/network/ipsec \
2009444c26fSTom Whitten	/lib/svc/manifest/network/ldap \
2019444c26fSTom Whitten	/lib/svc/manifest/network/nfs \
2029444c26fSTom Whitten	/lib/svc/manifest/network/nis \
2039444c26fSTom Whitten	/lib/svc/manifest/network/rpc \
2049444c26fSTom Whitten	/lib/svc/manifest/network/security \
2059444c26fSTom Whitten	/lib/svc/manifest/network/shares \
2069444c26fSTom Whitten	/lib/svc/manifest/application \
2079444c26fSTom Whitten	/lib/svc/manifest/application/management \
2089444c26fSTom Whitten	/lib/svc/manifest/application/security \
2099444c26fSTom Whitten	/lib/svc/manifest/application/print \
2109444c26fSTom Whitten	/lib/svc/manifest/platform \
2119444c26fSTom Whitten	/lib/svc/manifest/platform/sun4u \
2129444c26fSTom Whitten	/lib/svc/manifest/platform/sun4v \
2139444c26fSTom Whitten	/lib/svc/manifest/site \
21448bc00d6Sjmcp	/lib/svc/method \
21548bc00d6Sjmcp	/lib/svc/monitor \
21648bc00d6Sjmcp	/lib/svc/seed \
21748bc00d6Sjmcp	/lib/svc/share \
2187c478bd9Sstevel@tonic-gate	/kernel  \
219f73e0305SHans Rosenfeld	/kernel/firmware \
2207c478bd9Sstevel@tonic-gate	/mnt  \
2217c478bd9Sstevel@tonic-gate	/opt  \
2227c478bd9Sstevel@tonic-gate	/platform  \
2237c478bd9Sstevel@tonic-gate	/proc  \
2245f6d439cSgww	/root  \
2257c478bd9Sstevel@tonic-gate	/sbin  \
2267c478bd9Sstevel@tonic-gate	/system \
22776ca3cb0SRobert Mustacchi	/system/boot \
2287c478bd9Sstevel@tonic-gate	/system/contract \
2297c478bd9Sstevel@tonic-gate	/system/object \
23048bc00d6Sjmcp	/tmp \
2317c478bd9Sstevel@tonic-gate	/usr  \
23248bc00d6Sjmcp	/usr/ast \
23348bc00d6Sjmcp	/usr/ast/bin \
23448bc00d6Sjmcp	/usr/bin \
23548bc00d6Sjmcp	/usr/bin/$(MACH32) \
23648bc00d6Sjmcp	/usr/ccs \
23748bc00d6Sjmcp	/usr/ccs/bin \
23848bc00d6Sjmcp	/usr/ccs/lib \
23948bc00d6Sjmcp	/usr/demo \
24048bc00d6Sjmcp	/usr/demo/SOUND \
24148bc00d6Sjmcp	/usr/games \
242ead1f93eSLiane Praza	/usr/has \
243ead1f93eSLiane Praza	/usr/has/bin \
244ead1f93eSLiane Praza	/usr/has/lib \
245c10c16deSRichard Lowe        /usr/has/man \
24648bc00d6Sjmcp	/usr/include \
247b3700b07SGordon Ross	/usr/include/ads \
24848bc00d6Sjmcp	/usr/include/ast \
24948bc00d6Sjmcp	/usr/include/fm \
25048bc00d6Sjmcp	/usr/include/gssapi \
25148bc00d6Sjmcp	/usr/include/hal \
25248bc00d6Sjmcp	/usr/include/kerberosv5 \
25348bc00d6Sjmcp	/usr/include/libmilter \
25448bc00d6Sjmcp	/usr/include/libpolkit \
25548bc00d6Sjmcp	/usr/include/sasl \
25648bc00d6Sjmcp	/usr/include/scsi \
25748bc00d6Sjmcp	/usr/include/security \
25848bc00d6Sjmcp	/usr/include/sys/crypto \
25948bc00d6Sjmcp	/usr/include/tsol \
2607c478bd9Sstevel@tonic-gate	/usr/kernel  \
26148bc00d6Sjmcp	/usr/kvm \
26248bc00d6Sjmcp	/usr/lib \
26348bc00d6Sjmcp	/usr/lib/abi \
26448bc00d6Sjmcp	/usr/lib/brand \
265ead1f93eSLiane Praza	/usr/lib/brand/ipkg \
266ead1f93eSLiane Praza	/usr/lib/brand/labeled \
26748bc00d6Sjmcp	/usr/lib/brand/shared \
26848bc00d6Sjmcp	/usr/lib/brand/sn1 \
269e71ca95cSGerald Jelinek	/usr/lib/brand/solaris10 \
27048bc00d6Sjmcp	/usr/lib/class \
27148bc00d6Sjmcp	/usr/lib/class/FSS \
27248bc00d6Sjmcp	/usr/lib/class/FX \
27348bc00d6Sjmcp	/usr/lib/class/IA \
27448bc00d6Sjmcp	/usr/lib/class/RT \
27535a5a358SJonathan Adams	/usr/lib/class/SDC \
27648bc00d6Sjmcp	/usr/lib/class/TS \
27748bc00d6Sjmcp	/usr/lib/crypto \
27848bc00d6Sjmcp	/usr/lib/elfedit \
27948bc00d6Sjmcp	/usr/lib/fm \
28048bc00d6Sjmcp	/usr/lib/font \
28148bc00d6Sjmcp	/usr/lib/fs \
28248bc00d6Sjmcp	/usr/lib/fs/nfs \
28348bc00d6Sjmcp	/usr/lib/fs/proc \
28448bc00d6Sjmcp	/usr/lib/fs/smb \
28548bc00d6Sjmcp	/usr/lib/fs/zfs \
28648bc00d6Sjmcp	/usr/lib/gss \
28748bc00d6Sjmcp	/usr/lib/hal \
28848bc00d6Sjmcp	/usr/lib/inet \
289dbed73cbSSangeeta Misra	/usr/lib/inet/ilb \
29048bc00d6Sjmcp	/usr/lib/krb5 \
29148bc00d6Sjmcp	/usr/lib/link_audit \
29248bc00d6Sjmcp	/usr/lib/lwp \
29348bc00d6Sjmcp	/usr/lib/mdb \
29448bc00d6Sjmcp	/usr/lib/mdb/kvm \
29548bc00d6Sjmcp	/usr/lib/mdb/proc \
29648bc00d6Sjmcp	/usr/lib/nfs \
29736589d6bSRobert Mustacchi	/usr/lib/varpd \
29848bc00d6Sjmcp	/usr/net \
29948bc00d6Sjmcp	/usr/net/servers \
30048bc00d6Sjmcp	/usr/lib/pool \
30148bc00d6Sjmcp	/usr/lib/rcap \
30248bc00d6Sjmcp	/usr/lib/rcap/$(MACH32) \
30348bc00d6Sjmcp	/usr/lib/sa  \
30448bc00d6Sjmcp	/usr/lib/saf \
30548bc00d6Sjmcp	/usr/lib/sasl \
30648bc00d6Sjmcp	/usr/lib/scsi \
30748bc00d6Sjmcp	/usr/lib/secure \
30848bc00d6Sjmcp	/usr/lib/security \
30948bc00d6Sjmcp	/usr/lib/smbsrv \
31048bc00d6Sjmcp	/usr/lib/vscan \
31148bc00d6Sjmcp	/usr/lib/zfs \
31248bc00d6Sjmcp	/usr/lib/zones \
31348bc00d6Sjmcp	/usr/old \
3147c478bd9Sstevel@tonic-gate	/usr/platform  \
31548bc00d6Sjmcp	/usr/proc \
31648bc00d6Sjmcp	/usr/proc/bin \
31748bc00d6Sjmcp	/usr/sadm \
31848bc00d6Sjmcp	/usr/sadm/install \
31948bc00d6Sjmcp	/usr/sadm/install/bin \
32048bc00d6Sjmcp	/usr/sadm/install/scripts \
32148bc00d6Sjmcp	/usr/sbin \
32248bc00d6Sjmcp	/usr/sbin/$(MACH32) \
3237c478bd9Sstevel@tonic-gate	/usr/share  \
32448bc00d6Sjmcp	/usr/share/applications \
32548bc00d6Sjmcp	/usr/share/audio \
32648bc00d6Sjmcp	/usr/share/audio/samples \
32748bc00d6Sjmcp	/usr/share/audio/samples/au \
32848bc00d6Sjmcp	/usr/share/gnome \
32948bc00d6Sjmcp	/usr/share/gnome/autostart \
33048bc00d6Sjmcp	/usr/share/hwdata \
33148bc00d6Sjmcp	/usr/share/lib \
33248bc00d6Sjmcp	/usr/share/lib/ccs \
33348bc00d6Sjmcp	/usr/share/lib/tmac  \
33448bc00d6Sjmcp	/usr/share/lib/ldif  \
33548bc00d6Sjmcp	/usr/share/lib/xml \
33648bc00d6Sjmcp	/usr/share/lib/xml/dtd \
33748bc00d6Sjmcp	/usr/share/man \
33848bc00d6Sjmcp	/usr/share/src \
33948bc00d6Sjmcp	/usr/ucb \
34048bc00d6Sjmcp	$(MACH32_DIRS) \
34148bc00d6Sjmcp	/usr/ucblib \
34248bc00d6Sjmcp	/usr/xpg4 \
34348bc00d6Sjmcp	/usr/xpg4/bin \
34448bc00d6Sjmcp	/usr/xpg4/include \
34548bc00d6Sjmcp	/usr/xpg4/lib \
34648bc00d6Sjmcp	/usr/xpg6 \
34748bc00d6Sjmcp	/usr/xpg6/bin \
3487c478bd9Sstevel@tonic-gate	/var  \
3497c478bd9Sstevel@tonic-gate	/var/adm  \
35048bc00d6Sjmcp	/var/adm/exacct \
35148bc00d6Sjmcp	/var/adm/log \
3527c478bd9Sstevel@tonic-gate	/var/adm/pool \
35348bc00d6Sjmcp	/var/adm/sa \
3547c478bd9Sstevel@tonic-gate	/var/adm/sm.bin \
3557c478bd9Sstevel@tonic-gate	/var/adm/streams \
356dfac3eb2SDavid Powell	/var/cores \
3577c478bd9Sstevel@tonic-gate	/var/cron \
358660ed88aSdr146992	/var/db \
359660ed88aSdr146992	/var/db/ipf \
36048bc00d6Sjmcp	/var/games \
36148bc00d6Sjmcp	/var/idmap \
3627c478bd9Sstevel@tonic-gate	/var/krb5 \
3637c478bd9Sstevel@tonic-gate	/var/krb5/rcache  \
3647c478bd9Sstevel@tonic-gate	/var/krb5/rcache/root  \
36548bc00d6Sjmcp	/var/ld \
3667c478bd9Sstevel@tonic-gate	/var/log \
3677c478bd9Sstevel@tonic-gate	/var/log/pool \
368e9a193fcSJohn.Zolnowsky@Sun.COM	/var/logadm \
36948bc00d6Sjmcp	/var/mail \
37048bc00d6Sjmcp	/var/news \
37148bc00d6Sjmcp	/var/opt \
37248bc00d6Sjmcp	/var/preserve \
37348bc00d6Sjmcp	/var/run \
37448bc00d6Sjmcp	/var/saf \
3757c478bd9Sstevel@tonic-gate	/var/sadm \
37648bc00d6Sjmcp	/var/sadm/install \
37748bc00d6Sjmcp	/var/sadm/install/admin \
37848bc00d6Sjmcp	/var/sadm/install/logs \
3795c51f124SMoriah Waterland	/var/sadm/pkg \
3805c51f124SMoriah Waterland	/var/sadm/security \
381da6c28aaSamw	/var/smb \
3829fb67ea3Safshin salek ardakani - Sun Microsystems - Irvine United States	/var/smb/cvol \
3839fb67ea3Safshin salek ardakani - Sun Microsystems - Irvine United States	/var/smb/cvol/windows \
3849fb67ea3Safshin salek ardakani - Sun Microsystems - Irvine United States	/var/smb/cvol/windows/system32 \
3859fb67ea3Safshin salek ardakani - Sun Microsystems - Irvine United States	/var/smb/cvol/windows/system32/vss \
38648bc00d6Sjmcp	/var/spool \
38748bc00d6Sjmcp	/var/spool/cron \
38848bc00d6Sjmcp	/var/spool/cron/atjobs \
38948bc00d6Sjmcp	/var/spool/cron/crontabs \
39048bc00d6Sjmcp	/var/spool/lp \
39148bc00d6Sjmcp	/var/spool/pkg \
39248bc00d6Sjmcp	/var/spool/uucp \
39348bc00d6Sjmcp	/var/spool/uucppublic \
3947c478bd9Sstevel@tonic-gate	/var/svc \
3957c478bd9Sstevel@tonic-gate	/var/svc/log \
3967c478bd9Sstevel@tonic-gate	/var/svc/manifest \
3977c478bd9Sstevel@tonic-gate	/var/svc/manifest/milestone \
3987c478bd9Sstevel@tonic-gate	/var/svc/manifest/device \
3997c478bd9Sstevel@tonic-gate	/var/svc/manifest/system \
4007c478bd9Sstevel@tonic-gate	/var/svc/manifest/system/device \
4017c478bd9Sstevel@tonic-gate	/var/svc/manifest/system/filesystem \
4027c478bd9Sstevel@tonic-gate	/var/svc/manifest/system/security \
4037c478bd9Sstevel@tonic-gate	/var/svc/manifest/system/svc \
4047c478bd9Sstevel@tonic-gate	/var/svc/manifest/network \
4057c478bd9Sstevel@tonic-gate	/var/svc/manifest/network/dns \
406e3320f40Smarkfen	/var/svc/manifest/network/ipsec \
4077c478bd9Sstevel@tonic-gate	/var/svc/manifest/network/ldap \
4087c478bd9Sstevel@tonic-gate	/var/svc/manifest/network/nfs \
4097c478bd9Sstevel@tonic-gate	/var/svc/manifest/network/nis \
4107c478bd9Sstevel@tonic-gate	/var/svc/manifest/network/rpc \
4119444c26fSTom Whitten	/var/svc/manifest/network/routing \
4127c478bd9Sstevel@tonic-gate	/var/svc/manifest/network/security \
4136185db85Sdougm	/var/svc/manifest/network/shares \
4147c478bd9Sstevel@tonic-gate	/var/svc/manifest/application \
4157c478bd9Sstevel@tonic-gate	/var/svc/manifest/application/management \
4167c478bd9Sstevel@tonic-gate	/var/svc/manifest/application/print \
4179444c26fSTom Whitten	/var/svc/manifest/application/security \
4187c478bd9Sstevel@tonic-gate	/var/svc/manifest/platform \
4197c478bd9Sstevel@tonic-gate	/var/svc/manifest/platform/sun4u \
4201ae08745Sheppo	/var/svc/manifest/platform/sun4v \
4217c478bd9Sstevel@tonic-gate	/var/svc/manifest/site \
422f875b4ebSrica	/var/svc/profile \
42348bc00d6Sjmcp	/var/uucp \
42448bc00d6Sjmcp	/var/tmp \
425f875b4ebSrica	/var/tsol \
426f875b4ebSrica	/var/tsol/doors
4277c478bd9Sstevel@tonic-gate
42848bc00d6Sjmcpsparcv9_DIRS64= \
42948bc00d6Sjmcp	/platform/sun4u \
4307c478bd9Sstevel@tonic-gate	/platform/sun4u/lib \
4317c478bd9Sstevel@tonic-gate	/platform/sun4u/lib/$(MACH64) \
43248bc00d6Sjmcp	/usr/platform/sun4u \
4337c478bd9Sstevel@tonic-gate	/usr/platform/sun4u/sbin \
4347c478bd9Sstevel@tonic-gate	/usr/platform/sun4u/lib \
4357c478bd9Sstevel@tonic-gate	/platform/sun4v/lib \
4367c478bd9Sstevel@tonic-gate	/platform/sun4v/lib/$(MACH64) \
4377c478bd9Sstevel@tonic-gate	/usr/platform/sun4v/sbin \
4387c478bd9Sstevel@tonic-gate	/usr/platform/sun4v/lib \
439fe6f6fb8Shyw	/usr/platform/sun4u-us3/lib \
440fe6f6fb8Shyw	/usr/platform/sun4u-opl/lib
4417c478bd9Sstevel@tonic-gate
44248bc00d6Sjmcpamd64_DIRS64= \
443ae115bc7Smrj	/platform/i86pc/amd64
4447c478bd9Sstevel@tonic-gate
44548bc00d6SjmcpDIRS64= \
44648bc00d6Sjmcp	$($(MACH64)_DIRS64) \
4477c478bd9Sstevel@tonic-gate	/lib/$(MACH64) \
448257873cfSJohn.Zolnowsky@Sun.COM	/lib/crypto/$(MACH64) \
449fc5ba5b7SAntonello Cruz	/lib/fm/$(MACH64) \
4507c478bd9Sstevel@tonic-gate	/lib/secure/$(MACH64) \
4517c478bd9Sstevel@tonic-gate	/usr/bin/$(MACH64) \
4527c478bd9Sstevel@tonic-gate	/usr/ccs/bin/$(MACH64)  \
4537c478bd9Sstevel@tonic-gate	/usr/ccs/lib/$(MACH64) \
4547c478bd9Sstevel@tonic-gate	/usr/lib/$(MACH64) \
4557c478bd9Sstevel@tonic-gate	/usr/lib/$(MACH64)/gss \
456628e3cbeSEdward Pilatowicz	/usr/lib/brand/sn1/$(MACH64) \
457e71ca95cSGerald Jelinek	/usr/lib/brand/solaris10/$(MACH64) \
458d29b2c44Sab196087	/usr/lib/elfedit/$(MACH64) \
4597c478bd9Sstevel@tonic-gate	/usr/lib/fm/$(MACH64) \
46048bc00d6Sjmcp	/usr/lib/fs/nfs/$(MACH64) \
46148bc00d6Sjmcp	/usr/lib/fs/smb/$(MACH64) \
462dc739cedSDan McDonald	/usr/lib/inet/$(MACH64) \
4637c478bd9Sstevel@tonic-gate	/usr/lib/krb5/$(MACH64) \
4647c478bd9Sstevel@tonic-gate	/usr/lib/link_audit/$(MACH64) \
4657c478bd9Sstevel@tonic-gate	/usr/lib/lwp/$(MACH64) \
46648bc00d6Sjmcp	/usr/lib/mdb/kvm/$(MACH64) \
46748bc00d6Sjmcp	/usr/lib/mdb/proc/$(MACH64) \
468e8921a52SAndy Fiddaman	$(PYTHON3_DIRS) \
4697c478bd9Sstevel@tonic-gate	/usr/lib/rcap/$(MACH64) \
4707c478bd9Sstevel@tonic-gate	/usr/lib/sasl/$(MACH64) \
471940d71d2Seschrock	/usr/lib/scsi/$(MACH64) \
4727c478bd9Sstevel@tonic-gate	/usr/lib/secure/$(MACH64) \
4737c478bd9Sstevel@tonic-gate	/usr/lib/security/$(MACH64) \
47455bf511dSas200622	/usr/lib/smbsrv/$(MACH64) \
4757c478bd9Sstevel@tonic-gate	/usr/lib/abi/$(MACH64) \
47636589d6bSRobert Mustacchi	/usr/lib/varpd/$(MACH64) \
4777c478bd9Sstevel@tonic-gate	/usr/sbin/$(MACH64) \
4787c478bd9Sstevel@tonic-gate	/usr/ucb/$(MACH64) \
4797c478bd9Sstevel@tonic-gate	/usr/ucblib/$(MACH64) \
4807c478bd9Sstevel@tonic-gate	/usr/xpg4/lib/$(MACH64) \
4817c478bd9Sstevel@tonic-gate	/var/ld/$(MACH64)
4827c478bd9Sstevel@tonic-gate
4837c478bd9Sstevel@tonic-gate# /var/mail/:saved is built directly by the rootdirs target in
4847c478bd9Sstevel@tonic-gate# /usr/src/Makefile because of the colon in its name.
4857c478bd9Sstevel@tonic-gate
4867c478bd9Sstevel@tonic-gate# macros for symbolic links
48748bc00d6SjmcpSYM.DIRS= \
48848bc00d6Sjmcp	/bin \
4897c478bd9Sstevel@tonic-gate	/dev/stdin \
4907c478bd9Sstevel@tonic-gate	/dev/stdout \
4917c478bd9Sstevel@tonic-gate	/dev/stderr \
49248bc00d6Sjmcp	/etc/log \
49348bc00d6Sjmcp	/lib/32 \
49448bc00d6Sjmcp	/lib/crypto/32 \
49548bc00d6Sjmcp	/lib/secure/32 \
49648bc00d6Sjmcp	/usr/adm \
4977c478bd9Sstevel@tonic-gate	/usr/spool \
4987c478bd9Sstevel@tonic-gate	/usr/lib/tmac \
4997c478bd9Sstevel@tonic-gate	/usr/ccs/lib/link_audit \
5007c478bd9Sstevel@tonic-gate	/usr/news \
5017c478bd9Sstevel@tonic-gate	/usr/preserve \
5027c478bd9Sstevel@tonic-gate	/usr/lib/32 \
50348bc00d6Sjmcp	/usr/lib/cron \
504d29b2c44Sab196087	/usr/lib/elfedit/32 \
5057c478bd9Sstevel@tonic-gate	/usr/lib/lwp/32 \
5067c478bd9Sstevel@tonic-gate	/usr/lib/link_audit/32 \
5077c478bd9Sstevel@tonic-gate	/usr/lib/secure/32 \
50848bc00d6Sjmcp	/usr/mail \
50948bc00d6Sjmcp	/usr/man \
51048bc00d6Sjmcp	/usr/pub \
51148bc00d6Sjmcp	/usr/src \
51248bc00d6Sjmcp	/usr/tmp \
51348bc00d6Sjmcp	/usr/ucblib/32 \
51448bc00d6Sjmcp	/var/ld/32
5157c478bd9Sstevel@tonic-gate
51648bc00d6Sjmcpsparc_SYM.DIRS64=
5175f8e1617Snn35248
51848bc00d6SjmcpSYM.DIRS64= \
51948bc00d6Sjmcp	$($(MACH)_SYM.DIRS64) \
5207c478bd9Sstevel@tonic-gate	/lib/64 \
521257873cfSJohn.Zolnowsky@Sun.COM	/lib/crypto/64 \
5227c478bd9Sstevel@tonic-gate	/lib/secure/64 \
5237c478bd9Sstevel@tonic-gate	/usr/lib/64 \
524628e3cbeSEdward Pilatowicz	/usr/lib/brand/sn1/64 \
525e71ca95cSGerald Jelinek	/usr/lib/brand/solaris10/64 \
526d29b2c44Sab196087	/usr/lib/elfedit/64 \
5277c478bd9Sstevel@tonic-gate	/usr/lib/link_audit/64 \
5287c478bd9Sstevel@tonic-gate	/usr/lib/lwp/64 \
5297c478bd9Sstevel@tonic-gate	/usr/lib/secure/64 \
5307c478bd9Sstevel@tonic-gate	/usr/lib/security/64 \
53136589d6bSRobert Mustacchi	/usr/lib/varpd/64 \
5327c478bd9Sstevel@tonic-gate	/usr/xpg4/lib/64 \
53364e3e6f9Scraigm	/var/ld/64 \
53464e3e6f9Scraigm	/usr/ucblib/64
5357c478bd9Sstevel@tonic-gate
5367c478bd9Sstevel@tonic-gate# prepend the ROOT prefix
5377c478bd9Sstevel@tonic-gate
5387c478bd9Sstevel@tonic-gateROOTDIRS=	$(TARGETDIRS:%=$(ROOT)%)
5397c478bd9Sstevel@tonic-gate
5407c478bd9Sstevel@tonic-gate# conditional assignments
5417c478bd9Sstevel@tonic-gate#
5427c478bd9Sstevel@tonic-gate# Target directories with non-default values for owner and group must
5437c478bd9Sstevel@tonic-gate# be referenced here, using their fully-prefixed names, and the non-
5447c478bd9Sstevel@tonic-gate# default values assigned.  If a directory is mentioned above and not
5457c478bd9Sstevel@tonic-gate# mentioned below, it has default values for attributes.
5467c478bd9Sstevel@tonic-gate#
54748bc00d6Sjmcp# The default value for DIRMODE is specified in usr/src/Makefile.master.
5487c478bd9Sstevel@tonic-gate#
5497c478bd9Sstevel@tonic-gate
5507c478bd9Sstevel@tonic-gate$(ROOT)/var/adm \
5517c478bd9Sstevel@tonic-gate$(ROOT)/var/adm/sa :=		DIRMODE= 775
5527c478bd9Sstevel@tonic-gate
5537c478bd9Sstevel@tonic-gate$(ROOT)/var/spool/lp:=		DIRMODE= 775
5547c478bd9Sstevel@tonic-gate
5557c478bd9Sstevel@tonic-gate# file mode
5567c478bd9Sstevel@tonic-gate#
5577c478bd9Sstevel@tonic-gate$(ROOT)/tmp \
5587c478bd9Sstevel@tonic-gate$(ROOT)/var/krb5/rcache \
5597c478bd9Sstevel@tonic-gate$(ROOT)/var/preserve \
5607c478bd9Sstevel@tonic-gate$(ROOT)/var/spool/pkg \
5617c478bd9Sstevel@tonic-gate$(ROOT)/var/spool/uucppublic \
5627c478bd9Sstevel@tonic-gate$(ROOT)/var/tmp:=	DIRMODE= 1777
5637c478bd9Sstevel@tonic-gate
5645f6d439cSgww$(ROOT)/root:=		DIRMODE= 700
5655f6d439cSgww
5667c478bd9Sstevel@tonic-gate$(ROOT)/var/krb5/rcache/root:=	DIRMODE= 700
5677c478bd9Sstevel@tonic-gate
5687c478bd9Sstevel@tonic-gate
5697c478bd9Sstevel@tonic-gate#
5705c51f124SMoriah Waterland# These permissions must match those set
571ead1f93eSLiane Praza# in the package manifests.
5725c51f124SMoriah Waterland#
5735c51f124SMoriah Waterland$(ROOT)/var/sadm/pkg \
5745c51f124SMoriah Waterland$(ROOT)/var/sadm/security \
5755c51f124SMoriah Waterland$(ROOT)/var/sadm/install/logs :=	DIRMODE= 555
5765c51f124SMoriah Waterland
5775c51f124SMoriah Waterland
5785c51f124SMoriah Waterland#
5797c478bd9Sstevel@tonic-gate# These permissions must match the ones set
5807c478bd9Sstevel@tonic-gate# internally by fdfs and autofs.
5817c478bd9Sstevel@tonic-gate#
5827c478bd9Sstevel@tonic-gate$(ROOT)/dev/fd \
5837c478bd9Sstevel@tonic-gate$(ROOT)/home:=		DIRMODE= 555
5847c478bd9Sstevel@tonic-gate
5857c478bd9Sstevel@tonic-gate$(ROOT)/var/mail:=	DIRMODE=1777
5867c478bd9Sstevel@tonic-gate
5877c478bd9Sstevel@tonic-gate$(ROOT)/proc:=		DIRMODE= 555
5887c478bd9Sstevel@tonic-gate
58976ca3cb0SRobert Mustacchi$(ROOT)/system/boot:=		DIRMODE= 555
5907c478bd9Sstevel@tonic-gate$(ROOT)/system/contract:=	DIRMODE= 555
5917c478bd9Sstevel@tonic-gate$(ROOT)/system/object:=		DIRMODE= 555
5927c478bd9Sstevel@tonic-gate
5937c478bd9Sstevel@tonic-gate# symlink assignments, LINKDEST is the value of the symlink
5947c478bd9Sstevel@tonic-gate#
5957c478bd9Sstevel@tonic-gate$(ROOT)/usr/lib/cron:=			LINKDEST=../../etc/cron.d
5967c478bd9Sstevel@tonic-gate$(ROOT)/bin:=				LINKDEST=usr/bin
5977c478bd9Sstevel@tonic-gate$(ROOT)/lib/32:=			LINKDEST=.
598257873cfSJohn.Zolnowsky@Sun.COM$(ROOT)/lib/crypto/32:=			LINKDEST=.
5997c478bd9Sstevel@tonic-gate$(ROOT)/lib/secure/32:=			LINKDEST=.
6007c478bd9Sstevel@tonic-gate$(ROOT)/dev/stdin:=			LINKDEST=fd/0
6017c478bd9Sstevel@tonic-gate$(ROOT)/dev/stdout:=			LINKDEST=fd/1
6027c478bd9Sstevel@tonic-gate$(ROOT)/dev/stderr:=			LINKDEST=fd/2
6037c478bd9Sstevel@tonic-gate$(ROOT)/usr/pub:=			LINKDEST=share/lib/pub
6047c478bd9Sstevel@tonic-gate$(ROOT)/usr/man:=			LINKDEST=share/man
6057c478bd9Sstevel@tonic-gate$(ROOT)/usr/src:=			LINKDEST=share/src
6067c478bd9Sstevel@tonic-gate$(ROOT)/usr/adm:=			LINKDEST=../var/adm
6077c478bd9Sstevel@tonic-gate$(ROOT)/etc/log:=			LINKDEST=../var/adm/log
6087c478bd9Sstevel@tonic-gate$(ROOT)/usr/mail:=			LINKDEST=../var/mail
6097c478bd9Sstevel@tonic-gate$(ROOT)/usr/news:=			LINKDEST=../var/news
6107c478bd9Sstevel@tonic-gate$(ROOT)/usr/preserve:=			LINKDEST=../var/preserve
6117c478bd9Sstevel@tonic-gate$(ROOT)/usr/spool:=			LINKDEST=../var/spool
6127c478bd9Sstevel@tonic-gate$(ROOT)/usr/tmp:=			LINKDEST=../var/tmp
6137c478bd9Sstevel@tonic-gate$(ROOT)/usr/lib/tmac:=			LINKDEST=../share/lib/tmac
6147c478bd9Sstevel@tonic-gate$(ROOT)/usr/lib/32:=			LINKDEST=.
615d29b2c44Sab196087$(ROOT)/usr/lib/elfedit/32:=		LINKDEST=.
6167c478bd9Sstevel@tonic-gate$(ROOT)/usr/lib/lwp/32:=		LINKDEST=.
6177c478bd9Sstevel@tonic-gate$(ROOT)/usr/lib/link_audit/32:=		LINKDEST=.
6187c478bd9Sstevel@tonic-gate$(ROOT)/usr/lib/secure/32:=		LINKDEST=.
6197c478bd9Sstevel@tonic-gate$(ROOT)/usr/ccs/lib/link_audit:=	LINKDEST=../../lib/link_audit
6207c478bd9Sstevel@tonic-gate$(ROOT)/var/ld/32:=			LINKDEST=.
62164e3e6f9Scraigm$(ROOT)/usr/ucblib/32:=			LINKDEST=.
6227c478bd9Sstevel@tonic-gate
6237c478bd9Sstevel@tonic-gate
6247c478bd9Sstevel@tonic-gate$(BUILD64) $(ROOT)/lib/64:=		LINKDEST=$(MACH64)
625257873cfSJohn.Zolnowsky@Sun.COM$(BUILD64) $(ROOT)/lib/crypto/64:=	LINKDEST=$(MACH64)
6267c478bd9Sstevel@tonic-gate$(BUILD64) $(ROOT)/lib/secure/64:=	LINKDEST=$(MACH64)
6277c478bd9Sstevel@tonic-gate$(BUILD64) $(ROOT)/usr/lib/64:=		LINKDEST=$(MACH64)
628d29b2c44Sab196087$(BUILD64) $(ROOT)/usr/lib/elfedit/64:=	LINKDEST=$(MACH64)
629628e3cbeSEdward Pilatowicz$(BUILD64) $(ROOT)/usr/lib/brand/sn1/64:=	LINKDEST=$(MACH64)
630e71ca95cSGerald Jelinek$(BUILD64) $(ROOT)/usr/lib/brand/solaris10/64:=	LINKDEST=$(MACH64)
6317c478bd9Sstevel@tonic-gate$(BUILD64) $(ROOT)/usr/lib/lwp/64:=	LINKDEST=$(MACH64)
6327c478bd9Sstevel@tonic-gate$(BUILD64) $(ROOT)/usr/lib/link_audit/64:=	LINKDEST=$(MACH64)
6337c478bd9Sstevel@tonic-gate$(BUILD64) $(ROOT)/usr/lib/secure/64:=	LINKDEST=$(MACH64)
6347c478bd9Sstevel@tonic-gate$(BUILD64) $(ROOT)/usr/lib/security/64:=	LINKDEST=$(MACH64)
63536589d6bSRobert Mustacchi$(BUILD64) $(ROOT)/usr/lib/varpd/64:=	LINKDEST=$(MACH64)
6367c478bd9Sstevel@tonic-gate$(BUILD64) $(ROOT)/usr/xpg4/lib/64:=	LINKDEST=$(MACH64)
6377c478bd9Sstevel@tonic-gate$(BUILD64) $(ROOT)/var/ld/64:=		LINKDEST=$(MACH64)
63864e3e6f9Scraigm$(BUILD64) $(ROOT)/usr/ucblib/64:=	LINKDEST=$(MACH64)
6397c478bd9Sstevel@tonic-gate
64048bc00d6Sjmcp#
6417c478bd9Sstevel@tonic-gate# Installing a directory symlink calls for overriding INS.dir to install
6427c478bd9Sstevel@tonic-gate# a symlink.
6437c478bd9Sstevel@tonic-gate#
64448bc00d6Sjmcp$(DIRLINKS:%=$(ROOT)%):= \
64524fe0b3bSjmcp   INS.dir= -$(RM) -r $@; $(SYMLINK) $(LINKDEST) $@
646