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.
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.
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]
22 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
26 SHFILES
= dfstab vfstab
27 CPFILES
= rcS rc0 rc1 rc2 rc3 mountall shutdown swapadd umountall
28 ALL
= $(SHFILES
) $(CPFILES
)
29 TXTS
= rc2.d
/mk.rc2.d.sh
33 include ..
/Makefile.cmd
35 ETCDFSD
= $(ROOTETC
)/dfs
37 SBINF
= rcS mountall rc0 rc1 rc2 rc3 swapadd umountall
39 USRSBINF
= mountall shutdown umountall
41 ETCTABS
= vfstab inittab nscd.conf security
/crypt.conf
44 SBINETC
= rcS rc0 rc1 rc2 rc3 rc5 rc6
48 ROOTSBINF
= $(SBINF
:%=$(ROOTSBIN
)/%)
49 ROOTSBINL
= $(SBINL
:%=$(ROOTSBIN
)/%)
50 ROOTUSRSBINF
= $(USRSBINF
:%=$(ROOTUSRSBIN
)/%)
51 ROOTETCTABS
= $(ETCTABS
:%=$(ROOTETC
)/%)
52 ROOTDFSTAB
= $(DFSTAB
:%=$(ETCDFSD
)/%)
53 SYMSBINF
= $(SBINETC
:%=$(ROOTETC
)/%)
55 $(ROOTETC
)/inittab
:= FILEMODE
= 0644
56 $(ROOTETC
)/vfstab
:= FILEMODE
= 0644
57 $(ROOTETC
)/nscd.conf
:= FILEMODE
= 0644
58 $(ROOTETC
)/security
/crypt.conf
:= FILEMODE
= 0644
59 $(ROOTDFSTAB
) := FILEMODE
= 0644
60 $(ROOTSBIN
)/mountall
:= FILEMODE
= 0555
61 $(ROOTUSRSBIN
)/mountall
:= FILEMODE
= 0555
62 $(ROOTSBIN
)/umountall
:= FILEMODE
= 0555
63 $(ROOTUSRSBIN
)/umountall
:= FILEMODE
= 0555
64 $(ROOTUSRSBIN
)/shutdown
:= FILEMODE
= 0755
71 all: $(ALL
) all_init.d
$(TXTS
)
74 $(RM
) $@
; $(SYMLINK
) ..
/sbin
/$(@F
) $@
76 $(ROOTSBINL
): $(ROOTSBIN
)/rc0
77 $(RM
) $@
; $(LN
) $(ROOTSBIN
)/rc0
$@
80 @cd init.d
; pwd
; $(MAKE
) $(MFLAGS
) all
83 @cd init.d
; pwd
; $(MAKE
) $(MFLAGS
) install
88 install: $(ALL
) ins_all ins_init.d
$(RCDIRS
)
90 ins_all
: $(ROOTSBINF
) $(ROOTSBINL
) $(ROOTUSRSBINF
) $(ROOTETCTABS
) \
91 $(ROOTDFSTAB
) $(SYMSBINF
)
93 # Don't re-install directories already installed by Targetdirs
98 @cd
$@
; pwd
; ROOT
=$(ROOT
) sh mk.
$@.sh
104 include ..
/Makefile.targ