21 #
22 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
24 #
25
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
30 CLOBBERFILES= $(ALL)
31 RCDIRS= rc2.d
32
33 include ../Makefile.cmd
34
35 ETCDFSD= $(ROOTETC)/dfs
36
37 SBINF= rcS mountall rc0 rc1 rc2 rc3 swapadd umountall
38 SBINL= rc5 rc6
39 USRSBINF= mountall shutdown umountall
40
41 sparc_ETCTABS=
42 i386_ETCTABS= bootrc
43 ETCTABS= vfstab inittab nscd.conf security/crypt.conf $($(MACH)_ETCTABS)
44
45 DFSTAB= dfstab
46 SBINETC= rcS mountall rc0 rc1 rc2 rc3 rc5 rc6 swapadd umountall
47 USRSBINETC= shutdown
48
49 FILEMODE= 0744
50
51 ROOTSBINF= $(SBINF:%=$(ROOTSBIN)/%)
52 ROOTSBINL= $(SBINL:%=$(ROOTSBIN)/%)
53 ROOTUSRSBINF= $(USRSBINF:%=$(ROOTUSRSBIN)/%)
54 ROOTETCTABS= $(ETCTABS:%=$(ROOTETC)/%)
55 ROOTDFSTAB= $(DFSTAB:%=$(ETCDFSD)/%)
56 SYMSBINF= $(SBINETC:%=$(ROOTETC)/%)
57 SYMUSRSBINF= $(USRSBINETC:%=$(ROOTETC)/%)
58
59 $(ROOTETC)/inittab := FILEMODE = 0644
60 $(ROOTETC)/vfstab := FILEMODE = 0644
61 $(ROOTETC)/nscd.conf := FILEMODE = 0644
62 $(ROOTETC)/security/crypt.conf := FILEMODE = 0644
63 $(ROOTETC)/bootrc := FILEMODE = 0755
64 $(ROOTDFSTAB) := FILEMODE = 0644
65 $(ROOTSBIN)/mountall := FILEMODE = 0555
66 $(ROOTUSRSBIN)/mountall := FILEMODE = 0555
67 $(ROOTSBIN)/umountall := FILEMODE = 0555
68 $(ROOTUSRSBIN)/umountall := FILEMODE = 0555
69 $(ROOTUSRSBIN)/shutdown := FILEMODE = 0755
70
71 $(ETCDFSD)/% : %
72 $(INS.file)
73
74 .KEEP_STATE:
75
76 all: $(ALL) all_init.d $(TXTS)
77
78 $(SYMSBINF):
79 $(RM) $@; $(SYMLINK) ../sbin/$(@F) $@
80
81 $(SYMUSRSBINF):
82 $(RM) $@; $(SYMLINK) ../usr/sbin/$(@F) $@
83
|
21 #
22 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
24 #
25
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
30 CLOBBERFILES= $(ALL)
31 RCDIRS= rc2.d
32
33 include ../Makefile.cmd
34
35 ETCDFSD= $(ROOTETC)/dfs
36
37 SBINF= rcS mountall rc0 rc1 rc2 rc3 swapadd umountall
38 SBINL= rc5 rc6
39 USRSBINF= mountall shutdown umountall
40
41 ETCTABS= vfstab inittab nscd.conf security/crypt.conf
42
43 DFSTAB= dfstab
44 SBINETC= rcS mountall rc0 rc1 rc2 rc3 rc5 rc6 swapadd umountall
45 USRSBINETC= shutdown
46
47 FILEMODE= 0744
48
49 ROOTSBINF= $(SBINF:%=$(ROOTSBIN)/%)
50 ROOTSBINL= $(SBINL:%=$(ROOTSBIN)/%)
51 ROOTUSRSBINF= $(USRSBINF:%=$(ROOTUSRSBIN)/%)
52 ROOTETCTABS= $(ETCTABS:%=$(ROOTETC)/%)
53 ROOTDFSTAB= $(DFSTAB:%=$(ETCDFSD)/%)
54 SYMSBINF= $(SBINETC:%=$(ROOTETC)/%)
55 SYMUSRSBINF= $(USRSBINETC:%=$(ROOTETC)/%)
56
57 $(ROOTETC)/inittab := FILEMODE = 0644
58 $(ROOTETC)/vfstab := FILEMODE = 0644
59 $(ROOTETC)/nscd.conf := FILEMODE = 0644
60 $(ROOTETC)/security/crypt.conf := FILEMODE = 0644
61 $(ROOTDFSTAB) := FILEMODE = 0644
62 $(ROOTSBIN)/mountall := FILEMODE = 0555
63 $(ROOTUSRSBIN)/mountall := FILEMODE = 0555
64 $(ROOTSBIN)/umountall := FILEMODE = 0555
65 $(ROOTUSRSBIN)/umountall := FILEMODE = 0555
66 $(ROOTUSRSBIN)/shutdown := FILEMODE = 0755
67
68 $(ETCDFSD)/% : %
69 $(INS.file)
70
71 .KEEP_STATE:
72
73 all: $(ALL) all_init.d $(TXTS)
74
75 $(SYMSBINF):
76 $(RM) $@; $(SYMLINK) ../sbin/$(@F) $@
77
78 $(SYMUSRSBINF):
79 $(RM) $@; $(SYMLINK) ../usr/sbin/$(@F) $@
80
|