1# 2# CDDL HEADER START 3# 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. 7# 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. 12# 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] 18# 19# CDDL HEADER END 20# 21# 22# Copyright 2007 Sun Microsystems, Inc. All rights reserved. 23# Use is subject to license terms. 24# 25#ident "%Z%%M% %I% %E% SMI" 26# 27# cmd/cmd-inet/etc/init.d/Makefile 28 29PROG4= ncalogd 30PROG5= ncakmod 31PPPD= pppd 32PROG= $(PROG4) $(PROG5) $(PPPD) 33 34include ../../../Makefile.cmd 35 36STARTINET3= $(ROOTETC)/rc2.d/S94ncalogd 37STARTINET4= $(ROOTETC)/rc2.d/S42ncakmod 38 39PPPDK= K50pppd 40PPPDS= S47pppd 41 42INITD= $(ROOTETC)/init.d 43DIRS= $(INITD) $(ROOTETC)/rc0.d $(ROOTETC)/rcS.d $(ROOTETC)/rc1.d \ 44 $(ROOTETC)/rc2.d $(ROOTETC)/rc3.d 45FILEMODE= 0744 46OWNER= root 47GROUP= sys 48 49ETCINITPROG= $(PROG:%=$(INITD)/%) 50 51.KEEP_STATE: 52 53all: $(PROG) 54 55install: all $(DIRS) $(ETCINITPROG) $(ETCDFLTPROG) ln_PROG 56 57$(INITD)/% : % $(INITD) 58 $(INS.file) 59 60ln_PROG : $(ETCINITPROG) 61 @for dir in rc0.d rcS.d rc1.d; do \ 62 echo $(LN) $(INITD)/$(PROG4) $(ROOTETC)/$$dir/K34ncalogd; \ 63 $(RM) $(ROOTETC)/$$dir/K34ncalogd; \ 64 $(LN) $(INITD)/$(PROG4) $(ROOTETC)/$$dir/K34ncalogd; \ 65 echo $(LN) $(INITD)/$(PPPD) $(ROOTETC)/$$dir/$(PPPDK); \ 66 $(RM) $(ROOTETC)/$$dir/$(PPPDK); \ 67 $(LN) $(INITD)/$(PPPD) $(ROOTETC)/$$dir/$(PPPDK); \ 68 done 69 -$(RM) $(STARTINET3) 70 $(LN) $(INITD)/$(PROG4) $(STARTINET3) 71 -$(RM) $(STARTINET4) 72 $(LN) $(INITD)/$(PROG5) $(STARTINET4) 73 -$(RM) $(ROOTETC)/rc2.d/$(PPPDS) 74 $(LN) $(INITD)/$(PPPD) $(ROOTETC)/rc2.d/$(PPPDS) 75 76$(DIRS): 77 $(INS.dir) 78 79clean: 80 81lint: 82 83include ../../../Makefile.targ 84 85.PARALLEL: 86