Print this page
3788 /etc/bootrc is defunct and should be removed
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/initpkg/Makefile
+++ new/usr/src/cmd/initpkg/Makefile
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
13 13 # When distributing Covered Code, include this CDDL HEADER in each
14 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 # If applicable, add the following below this CDDL HEADER, with the
16 16 # fields enclosed by brackets "[]" replaced with your own identifying
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21 #
22 22 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 23 # Use is subject to license terms.
24 24 #
25 25
26 26 SHFILES= dfstab vfstab
27 27 CPFILES= rcS rc0 rc1 rc2 rc3 mountall shutdown swapadd umountall
28 28 ALL= $(SHFILES) $(CPFILES)
29 29 TXTS= rc2.d/mk.rc2.d.sh
30 30 CLOBBERFILES= $(ALL)
↓ open down ↓ |
30 lines elided |
↑ open up ↑ |
31 31 RCDIRS= rc2.d
32 32
33 33 include ../Makefile.cmd
34 34
35 35 ETCDFSD= $(ROOTETC)/dfs
36 36
37 37 SBINF= rcS mountall rc0 rc1 rc2 rc3 swapadd umountall
38 38 SBINL= rc5 rc6
39 39 USRSBINF= mountall shutdown umountall
40 40
41 -sparc_ETCTABS=
42 -i386_ETCTABS= bootrc
43 -ETCTABS= vfstab inittab nscd.conf security/crypt.conf $($(MACH)_ETCTABS)
41 +ETCTABS= vfstab inittab nscd.conf security/crypt.conf
44 42
45 43 DFSTAB= dfstab
46 44 SBINETC= rcS mountall rc0 rc1 rc2 rc3 rc5 rc6 swapadd umountall
47 45 USRSBINETC= shutdown
48 46
49 47 FILEMODE= 0744
50 48
51 49 ROOTSBINF= $(SBINF:%=$(ROOTSBIN)/%)
52 50 ROOTSBINL= $(SBINL:%=$(ROOTSBIN)/%)
53 51 ROOTUSRSBINF= $(USRSBINF:%=$(ROOTUSRSBIN)/%)
54 52 ROOTETCTABS= $(ETCTABS:%=$(ROOTETC)/%)
55 53 ROOTDFSTAB= $(DFSTAB:%=$(ETCDFSD)/%)
56 54 SYMSBINF= $(SBINETC:%=$(ROOTETC)/%)
57 55 SYMUSRSBINF= $(USRSBINETC:%=$(ROOTETC)/%)
58 56
59 57 $(ROOTETC)/inittab := FILEMODE = 0644
60 58 $(ROOTETC)/vfstab := FILEMODE = 0644
61 59 $(ROOTETC)/nscd.conf := FILEMODE = 0644
62 60 $(ROOTETC)/security/crypt.conf := FILEMODE = 0644
63 -$(ROOTETC)/bootrc := FILEMODE = 0755
64 61 $(ROOTDFSTAB) := FILEMODE = 0644
65 62 $(ROOTSBIN)/mountall := FILEMODE = 0555
66 63 $(ROOTUSRSBIN)/mountall := FILEMODE = 0555
67 64 $(ROOTSBIN)/umountall := FILEMODE = 0555
68 65 $(ROOTUSRSBIN)/umountall := FILEMODE = 0555
69 66 $(ROOTUSRSBIN)/shutdown := FILEMODE = 0755
70 67
71 68 $(ETCDFSD)/% : %
72 69 $(INS.file)
73 70
74 71 .KEEP_STATE:
75 72
76 73 all: $(ALL) all_init.d $(TXTS)
77 74
78 75 $(SYMSBINF):
79 76 $(RM) $@; $(SYMLINK) ../sbin/$(@F) $@
80 77
81 78 $(SYMUSRSBINF):
82 79 $(RM) $@; $(SYMLINK) ../usr/sbin/$(@F) $@
83 80
84 81 $(ROOTSBINL): $(ROOTSBIN)/rc0
85 82 $(RM) $@; $(LN) $(ROOTSBIN)/rc0 $@
86 83
87 84 all_init.d: FRC
88 85 @cd init.d; pwd; $(MAKE) $(MFLAGS) all
89 86
90 87 ins_init.d: FRC
91 88 @cd init.d; pwd; $(MAKE) $(MFLAGS) install
92 89
93 90 $(SHFILES):
94 91 sh $@.sh $(ROOT)
95 92
96 93 install: $(ALL) ins_all ins_init.d $(RCDIRS)
97 94
98 95 ins_all : $(ROOTSBINF) $(ROOTSBINL) $(ROOTUSRSBINF) $(ROOTETCTABS) \
99 96 $(ROOTDFSTAB) $(SYMSBINF) $(SYMUSRSBINF)
100 97
101 98 # Don't re-install directories already installed by Targetdirs
102 99 #$(DIRS):
103 100 # $(INS.dir)
104 101
105 102 $(RCDIRS): FRC
106 103 @cd $@; pwd; ROOT=$(ROOT) sh mk.$@.sh
107 104
108 105 FRC:
109 106
110 107 clean lint:
111 108
112 109 include ../Makefile.targ
↓ open down ↓ |
39 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX