17c478bd9Sstevel@tonic-gate# 27c478bd9Sstevel@tonic-gate# CDDL HEADER START 37c478bd9Sstevel@tonic-gate# 47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the 524fe0b3bSjmcp# Common Development and Distribution License (the "License"). 624fe0b3bSjmcp# You may not use this file except in compliance with the License. 77c478bd9Sstevel@tonic-gate# 87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions 117c478bd9Sstevel@tonic-gate# and limitations under the License. 127c478bd9Sstevel@tonic-gate# 137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 187c478bd9Sstevel@tonic-gate# 197c478bd9Sstevel@tonic-gate# CDDL HEADER END 207c478bd9Sstevel@tonic-gate# 217c478bd9Sstevel@tonic-gate# 2224fe0b3bSjmcp# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 237c478bd9Sstevel@tonic-gate# Use is subject to license terms. 247c478bd9Sstevel@tonic-gate# 257c478bd9Sstevel@tonic-gate 267c478bd9Sstevel@tonic-gateSHFILES= dfstab vfstab 277c478bd9Sstevel@tonic-gateCPFILES= rcS rc0 rc1 rc2 rc3 mountall shutdown swapadd umountall 287c478bd9Sstevel@tonic-gateALL= $(SHFILES) $(CPFILES) 292f349fb3STom WhittenTXTS= rc2.d/mk.rc2.d.sh 307c478bd9Sstevel@tonic-gateCLOBBERFILES= $(ALL) 312f349fb3STom WhittenRCDIRS= rc2.d 327c478bd9Sstevel@tonic-gate 337c478bd9Sstevel@tonic-gateinclude ../Makefile.cmd 347c478bd9Sstevel@tonic-gate 357c478bd9Sstevel@tonic-gateETCDFSD= $(ROOTETC)/dfs 367c478bd9Sstevel@tonic-gate 377c478bd9Sstevel@tonic-gateSBINF= rcS mountall rc0 rc1 rc2 rc3 swapadd umountall 387c478bd9Sstevel@tonic-gateSBINL= rc5 rc6 397c478bd9Sstevel@tonic-gateUSRSBINF= mountall shutdown umountall 407c478bd9Sstevel@tonic-gate 410f24ff92SPiotr JasiukajtisETCTABS= vfstab inittab nscd.conf security/crypt.conf 427c478bd9Sstevel@tonic-gate 437c478bd9Sstevel@tonic-gateDFSTAB= dfstab 447c478bd9Sstevel@tonic-gateSBINETC= rcS mountall rc0 rc1 rc2 rc3 rc5 rc6 swapadd umountall 457c478bd9Sstevel@tonic-gateUSRSBINETC= shutdown 467c478bd9Sstevel@tonic-gate 477c478bd9Sstevel@tonic-gateFILEMODE= 0744 487c478bd9Sstevel@tonic-gate 497c478bd9Sstevel@tonic-gateROOTSBINF= $(SBINF:%=$(ROOTSBIN)/%) 507c478bd9Sstevel@tonic-gateROOTSBINL= $(SBINL:%=$(ROOTSBIN)/%) 517c478bd9Sstevel@tonic-gateROOTUSRSBINF= $(USRSBINF:%=$(ROOTUSRSBIN)/%) 527c478bd9Sstevel@tonic-gateROOTETCTABS= $(ETCTABS:%=$(ROOTETC)/%) 537c478bd9Sstevel@tonic-gateROOTDFSTAB= $(DFSTAB:%=$(ETCDFSD)/%) 547c478bd9Sstevel@tonic-gateSYMSBINF= $(SBINETC:%=$(ROOTETC)/%) 557c478bd9Sstevel@tonic-gateSYMUSRSBINF= $(USRSBINETC:%=$(ROOTETC)/%) 567c478bd9Sstevel@tonic-gate 577c478bd9Sstevel@tonic-gate$(ROOTETC)/inittab := FILEMODE = 0644 587c478bd9Sstevel@tonic-gate$(ROOTETC)/vfstab := FILEMODE = 0644 597c478bd9Sstevel@tonic-gate$(ROOTETC)/nscd.conf := FILEMODE = 0644 607c478bd9Sstevel@tonic-gate$(ROOTETC)/security/crypt.conf := FILEMODE = 0644 617c478bd9Sstevel@tonic-gate$(ROOTDFSTAB) := FILEMODE = 0644 627c478bd9Sstevel@tonic-gate$(ROOTSBIN)/mountall := FILEMODE = 0555 637c478bd9Sstevel@tonic-gate$(ROOTUSRSBIN)/mountall := FILEMODE = 0555 647c478bd9Sstevel@tonic-gate$(ROOTSBIN)/umountall := FILEMODE = 0555 657c478bd9Sstevel@tonic-gate$(ROOTUSRSBIN)/umountall := FILEMODE = 0555 667c478bd9Sstevel@tonic-gate$(ROOTUSRSBIN)/shutdown := FILEMODE = 0755 677c478bd9Sstevel@tonic-gate 687c478bd9Sstevel@tonic-gate$(ETCDFSD)/% : % 697c478bd9Sstevel@tonic-gate $(INS.file) 707c478bd9Sstevel@tonic-gate 717c478bd9Sstevel@tonic-gate.KEEP_STATE: 727c478bd9Sstevel@tonic-gate 737c478bd9Sstevel@tonic-gateall: $(ALL) all_init.d $(TXTS) 747c478bd9Sstevel@tonic-gate 757c478bd9Sstevel@tonic-gate$(SYMSBINF): 767c478bd9Sstevel@tonic-gate $(RM) $@; $(SYMLINK) ../sbin/$(@F) $@ 777c478bd9Sstevel@tonic-gate 787c478bd9Sstevel@tonic-gate$(SYMUSRSBINF): 797c478bd9Sstevel@tonic-gate $(RM) $@; $(SYMLINK) ../usr/sbin/$(@F) $@ 807c478bd9Sstevel@tonic-gate 817c478bd9Sstevel@tonic-gate$(ROOTSBINL): $(ROOTSBIN)/rc0 827c478bd9Sstevel@tonic-gate $(RM) $@; $(LN) $(ROOTSBIN)/rc0 $@ 837c478bd9Sstevel@tonic-gate 847c478bd9Sstevel@tonic-gateall_init.d: FRC 85*f96a0cefSRichard Lowe @cd init.d; pwd; $(MAKE) all 867c478bd9Sstevel@tonic-gate 877c478bd9Sstevel@tonic-gateins_init.d: FRC 88*f96a0cefSRichard Lowe @cd init.d; pwd; $(MAKE) install 897c478bd9Sstevel@tonic-gate 907c478bd9Sstevel@tonic-gate$(SHFILES): 917c478bd9Sstevel@tonic-gate sh $@.sh $(ROOT) 927c478bd9Sstevel@tonic-gate 932f349fb3STom Whitteninstall: $(ALL) ins_all ins_init.d $(RCDIRS) 947c478bd9Sstevel@tonic-gate 957c478bd9Sstevel@tonic-gateins_all : $(ROOTSBINF) $(ROOTSBINL) $(ROOTUSRSBINF) $(ROOTETCTABS) \ 967c478bd9Sstevel@tonic-gate $(ROOTDFSTAB) $(SYMSBINF) $(SYMUSRSBINF) 977c478bd9Sstevel@tonic-gate 987c478bd9Sstevel@tonic-gate# Don't re-install directories already installed by Targetdirs 997c478bd9Sstevel@tonic-gate#$(DIRS): 1007c478bd9Sstevel@tonic-gate# $(INS.dir) 1017c478bd9Sstevel@tonic-gate 1022f349fb3STom Whitten$(RCDIRS): FRC 10324fe0b3bSjmcp @cd $@; pwd; ROOT=$(ROOT) sh mk.$@.sh 1047c478bd9Sstevel@tonic-gate 1057c478bd9Sstevel@tonic-gateFRC: 1067c478bd9Sstevel@tonic-gate 1077c478bd9Sstevel@tonic-gateclean lint: 1087c478bd9Sstevel@tonic-gate 1097c478bd9Sstevel@tonic-gateinclude ../Makefile.targ 110