# CDDL HEADER START # # The contents of this file are subject to the terms of the # Common Development and Distribution License (the "License"). # You may not use this file except in compliance with the License. # # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE # or http://www.opensolaris.org/os/licensing. # See the License for the specific language governing permissions # and limitations under the License. # # When distributing Covered Code, include this CDDL HEADER in each # file and include the License file at usr/src/OPENSOLARIS.LICENSE. # If applicable, add the following below this CDDL HEADER, with the # fields enclosed by brackets "[]" replaced with your own identifying # information: Portions Copyright [yyyy] [name of copyright owner] # # CDDL HEADER END # # # Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved. # Copyright 2011 Nexenta Systems, Inc. All rights reserved. # # # It is easier to think in terms of directory names without the ROOT macro # prefix. ROOTDIRS is TARGETDIRS with ROOT prefixes. It is necessary # to work with ROOT prefixes when controlling conditional assignments. # TARGETDIRS= $(DIRS) $(BUILD64) TARGETDIRS += $(DIRS64) i386_DIRS= sparc_DIRS= sparc_64ONLY= $(POUND_SIGN) 64ONLY= $($(MACH)_64ONLY) DIRS= \ $($(MACH)_DIRS) \ /dev \ /dev/dsk \ /dev/fd \ /dev/ipnet \ /dev/net \ /dev/rdsk \ /dev/rmt \ /dev/pts \ /dev/sad \ /dev/swap \ /dev/term \ /dev/vt \ /dev/zcons \ /devices \ /devices/pseudo \ /etc \ /etc/brand \ /etc/certs \ /etc/certs/CA \ /etc/openssl/certs/ \ /etc/cron.d \ /etc/crypto \ /etc/crypto/certs \ /etc/crypto/crls \ /etc/dbus-1 \ /etc/dbus-1/system.d \ /etc/default \ /etc/devices \ /etc/dev \ /etc/dfs \ /etc/dladm \ /etc/fs \ /etc/fs/nfs \ /etc/fs/zfs \ /etc/ftpd \ /etc/hal \ /etc/ipadm \ /etc/iscsi \ /etc/rpcsec \ /etc/security \ /etc/security/auth_attr.d \ /etc/security/exec_attr.d \ /etc/security/prof_attr.d \ /etc/security/tsol \ /etc/gss \ /etc/init.d \ /etc/dhcp \ /etc/lib \ /etc/mail \ /etc/opt \ /etc/rc0.d \ /etc/rc1.d \ /etc/rc2.d \ /etc/rc3.d \ /etc/rcS.d \ /etc/saf \ /etc/sasl \ /etc/sfw \ /etc/svc \ /etc/svc/profile \ /etc/svc/profile/site \ /etc/svc/volatile \ /etc/tm \ /etc/usb \ /etc/user_attr.d \ /etc/zfs \ /etc/zones \ /export \ /home \ /lib \ /lib/crypto \ /lib/inet \ /lib/fm \ /lib/secure \ /lib/svc \ /lib/svc/bin \ /lib/svc/capture \ /lib/svc/manifest \ /lib/svc/manifest/milestone \ /lib/svc/manifest/device \ /lib/svc/manifest/system \ /lib/svc/manifest/system/device \ /lib/svc/manifest/system/filesystem \ /lib/svc/manifest/system/security \ /lib/svc/manifest/system/svc \ /lib/svc/manifest/network \ /lib/svc/manifest/network/dns \ /lib/svc/manifest/network/ipsec \ /lib/svc/manifest/network/ldap \ /lib/svc/manifest/network/nfs \ /lib/svc/manifest/network/nis \ /lib/svc/manifest/network/rpc \ /lib/svc/manifest/network/security \ /lib/svc/manifest/network/shares \ /lib/svc/manifest/network/ssl \ /lib/svc/manifest/application \ /lib/svc/manifest/application/management \ /lib/svc/manifest/application/security \ /lib/svc/manifest/application/print \ /lib/svc/manifest/platform \ /lib/svc/manifest/platform/sun4u \ /lib/svc/manifest/platform/sun4v \ /lib/svc/manifest/site \ /lib/svc/method \ /lib/svc/monitor \ /lib/svc/seed \ /lib/svc/share \ /licenses \ /kernel \ /mnt \ /opt \ /platform \ /proc \ /root \ /sbin \ /system \ /system/contract \ /system/object \ /tmp \ /usr \ /usr/4lib \ /usr/ast \ /usr/ast/bin \ /usr/bin \ /usr/bin/$(MACH32) \ /usr/ccs \ /usr/ccs/bin \ /usr/ccs/lib \ /usr/demo \ /usr/demo/SOUND \ /usr/games \ /usr/has \ /usr/has/bin \ /usr/has/lib \ /usr/include \ /usr/include/ast \ /usr/include/fm \ /usr/include/gssapi \ /usr/include/hal \ /usr/include/kerberosv5 \ /usr/include/libmilter \ /usr/include/libpolkit \ /usr/include/sasl \ /usr/include/scsi \ /usr/include/security \ /usr/include/sys/crypto \ /usr/include/tsol \ /usr/kernel \ /usr/kvm \ /usr/lib \ /usr/lib/abi \ /usr/lib/crypto \ /usr/lib/drv \ /usr/lib/elfedit \ /usr/lib/fm \ /usr/lib/font \ /usr/lib/fs \ /usr/lib/fs/nfs \ /usr/lib/fs/proc \ /usr/lib/fs/smb \ /usr/lib/fs/zfs \ /usr/lib/gss \ /usr/lib/hal \ /usr/lib/inet \ /usr/lib/krb5 \ /usr/lib/link_audit \ /usr/lib/libp \ /usr/lib/lwp \ /usr/lib/mdb \ /usr/lib/mdb/kvm \ /usr/lib/mdb/proc \ /usr/lib/nfs \ /usr/lib/pkgconfig \ /usr/lib/xorg \ /usr/net \ /usr/net/servers \ /usr/lib/pool \ /usr/lib/sa \ /usr/lib/saf \ /usr/lib/sasl \ /usr/lib/scsi \ /usr/lib/secure \ /usr/lib/security \ /usr/lib/smbsrv \ /usr/lib/vscan \ /usr/lib/zfs \ /usr/lib/zones \ /usr/old \ /usr/platform \ /usr/proc \ /usr/proc/bin \ /usr/sadm \ /usr/sadm/install \ /usr/sadm/install/bin \ /usr/sadm/install/scripts \ /usr/sadm/sysadm \ /usr/sadm/sysadm/add-ons \ /usr/sbin \ /usr/sbin/$(MACH32) \ /usr/share \ /usr/share/applications \ /usr/share/audio \ /usr/share/audio/samples \ /usr/share/audio/samples/au \ /usr/share/gnome \ /usr/share/gnome/autostart \ /usr/share/hwdata \ /usr/share/lib \ /usr/share/lib/ccs \ /usr/share/lib/tmac \ /usr/share/lib/ldif \ /usr/share/lib/xml \ /usr/share/lib/xml/dtd \ /usr/share/man \ /usr/share/man/man1 \ /usr/share/man/man3x \ /usr/share/man/man7 \ /usr/share/man/man7d \ /usr/share/man/man7i \ /usr/share/src \ /usr/snadm \ /usr/snadm/lib \ /usr/ucb \ $(MACH32_DIRS) \ /usr/ucblib \ /usr/xpg4 \ /usr/xpg4/bin \ /usr/xpg4/include \ /usr/xpg4/lib \ /usr/xpg6 \ /usr/xpg6/bin \ /var \ /var/adm \ /var/adm/exacct \ /var/adm/log \ /var/adm/pool \ /var/adm/sa \ /var/adm/sm.bin \ /var/adm/streams \ /var/cores \ /var/cron \ /var/db \ /var/db/ipf \ /var/games \ /var/idmap \ /var/krb5 \ /var/ld \ /var/log \ /var/logadm \ /var/mail \ /var/news \ /var/opt \ /var/preserve \ /var/run \ /var/saf \ /var/sadm \ /var/sadm/install \ /var/sadm/pkg \ /var/sadm/security \ /var/smb \ /var/smb/cvol \ /var/spool \ /var/spool/cron \ /var/spool/cron/atjobs \ /var/spool/cron/crontabs \ /var/spool/lp \ /var/spool/pkg \ /var/spool/uucp \ /var/spool/uucppublic \ /var/svc \ /var/svc/log \ /var/svc/manifest \ /var/svc/profile \ /var/uucp \ /var/tmp \ /var/tsol \ /var/tsol/doors sparcv9_DIRS64= amd64_DIRS64= DIRS64= \ $($(MACH64)_DIRS64) \ /lib/$(MACH64) \ /lib/crypto/$(MACH64) \ /lib/fm/$(MACH64) \ /lib/secure/$(MACH64) \ /usr/bin/$(MACH64) \ /usr/ccs/bin/$(MACH64) \ /usr/ccs/lib/$(MACH64) \ /usr/lib/$(MACH64) \ /usr/lib/$(MACH64)/gss \ /usr/lib/$(MACH64)/pkgconfig \ /usr/lib/abi/$(MACH64) \ /usr/lib/brand/sn1/$(MACH64) \ /usr/lib/brand/solaris10/$(MACH64) \ /usr/lib/elfedit/$(MACH64) \ /usr/lib/fm/$(MACH64) \ /usr/lib/fs/nfs/$(MACH64) \ /usr/lib/fs/smb/$(MACH64) \ /usr/lib/inet/$(MACH64) \ /usr/lib/krb5/$(MACH64) \ /usr/lib/libp/$(MACH64) \ /usr/lib/link_audit/$(MACH64) \ /usr/lib/lwp/$(MACH64) \ /usr/lib/mdb/kvm/$(MACH64) \ /usr/lib/mdb/proc/$(MACH64) \ /usr/lib/rcap/$(MACH64) \ /usr/lib/sasl/$(MACH64) \ /usr/lib/scsi/$(MACH64) \ /usr/lib/secure/$(MACH64) \ /usr/lib/security/$(MACH64) \ /usr/lib/smbsrv/$(MACH64) \ /usr/lib/xorg/$(MACH64) \ /usr/sbin/$(MACH64) \ /usr/ucb/$(MACH64) \ /usr/ucblib/$(MACH64) \ /usr/xpg4/lib/$(MACH64) \ /var/ld/$(MACH64) # /var/mail/:saved is built directly by the rootdirs target in # /usr/src/Makefile because of the colon in its name. # prepend the ROOT prefix ROOTDIRS= $(TARGETDIRS:%=$(ROOT)%) # conditional assignments # # Target directories with non-default values for owner and group must # be referenced here, using their fully-prefixed names, and the non- # default values assigned. If a directory is mentioned above and not # mentioned below, it has default values for attributes. # # The default value for DIRMODE is specified in usr/src/Makefile.master. # $(ROOT)/var/adm \ $(ROOT)/var/adm/sa := DIRMODE= 775 $(ROOT)/var/spool/lp:= DIRMODE= 775 # file mode # $(ROOT)/tmp \ $(ROOT)/var/preserve \ $(ROOT)/var/spool/pkg \ $(ROOT)/var/spool/uucppublic \ $(ROOT)/var/tmp:= DIRMODE= 1777 $(ROOT)/root:= DIRMODE= 700 # # These permissions must match those set # in the package manifests. # $(ROOT)/var/sadm/pkg \ $(ROOT)/var/sadm/security \ $(ROOT)/var/sadm/install/logs := DIRMODE= 555 # # These permissions must match the ones set # internally by fdfs and autofs. # $(ROOT)/dev/fd \ $(ROOT)/home:= DIRMODE= 555 $(ROOT)/var/mail:= DIRMODE=1777 $(ROOT)/proc:= DIRMODE= 555 $(ROOT)/system/contract:= DIRMODE= 555 $(ROOT)/system/object:= DIRMODE= 555 # Special symlinks to direct libraries that have been moved # from /usr/lib to /lib in order to live in the root filesystem.