Home | History | Annotate | Download | only in init.d
      1      0  stevel #
      2      0  stevel # CDDL HEADER START
      3      0  stevel #
      4      0  stevel # The contents of this file are subject to the terms of the
      5   4823     seb # Common Development and Distribution License (the "License").
      6   4823     seb # You may not use this file except in compliance with the License.
      7      0  stevel #
      8      0  stevel # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
      9      0  stevel # or http://www.opensolaris.org/os/licensing.
     10      0  stevel # See the License for the specific language governing permissions
     11      0  stevel # and limitations under the License.
     12      0  stevel #
     13      0  stevel # When distributing Covered Code, include this CDDL HEADER in each
     14      0  stevel # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
     15      0  stevel # If applicable, add the following below this CDDL HEADER, with the
     16      0  stevel # fields enclosed by brackets "[]" replaced with your own identifying
     17      0  stevel # information: Portions Copyright [yyyy] [name of copyright owner]
     18      0  stevel #
     19      0  stevel # CDDL HEADER END
     20      0  stevel #
     21  10207   James # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
     22      0  stevel # Use is subject to license terms.
     23      0  stevel #
     24      0  stevel # cmd/cmd-inet/etc/init.d/Makefile
     25      0  stevel 
     26      0  stevel PROG4=	ncalogd
     27      0  stevel PROG5=	ncakmod
     28      0  stevel PPPD=	pppd
     29   4823     seb PROG=	$(PROG4) $(PROG5) $(PPPD)
     30      0  stevel 
     31      0  stevel include ../../../Makefile.cmd
     32      0  stevel 
     33      0  stevel STARTINET3= $(ROOTETC)/rc2.d/S94ncalogd
     34      0  stevel STARTINET4= $(ROOTETC)/rc2.d/S42ncakmod
     35      0  stevel 
     36      0  stevel PPPDK=	K50pppd
     37      0  stevel PPPDS=	S47pppd
     38      0  stevel 
     39      0  stevel INITD= $(ROOTETC)/init.d
     40      0  stevel DIRS= $(INITD) $(ROOTETC)/rc0.d $(ROOTETC)/rcS.d $(ROOTETC)/rc1.d \
     41      0  stevel 	$(ROOTETC)/rc2.d $(ROOTETC)/rc3.d
     42      0  stevel FILEMODE= 0744
     43      0  stevel 
     44      0  stevel ETCINITPROG=	$(PROG:%=$(INITD)/%)
     45      0  stevel 
     46      0  stevel .KEEP_STATE:
     47      0  stevel 
     48      0  stevel all: $(PROG)
     49      0  stevel 
     50      0  stevel install: all $(DIRS) $(ETCINITPROG) $(ETCDFLTPROG) ln_PROG
     51      0  stevel 
     52      0  stevel $(INITD)/% : % $(INITD)
     53      0  stevel 	$(INS.file)
     54      0  stevel 
     55      0  stevel ln_PROG : $(ETCINITPROG)
     56      0  stevel 	@for dir in rc0.d rcS.d rc1.d; do \
     57      0  stevel 		echo $(LN) $(INITD)/$(PROG4) $(ROOTETC)/$$dir/K34ncalogd; \
     58      0  stevel 		$(RM) $(ROOTETC)/$$dir/K34ncalogd; \
     59      0  stevel 		$(LN) $(INITD)/$(PROG4) $(ROOTETC)/$$dir/K34ncalogd; \
     60      0  stevel 		echo $(LN) $(INITD)/$(PPPD) $(ROOTETC)/$$dir/$(PPPDK); \
     61      0  stevel 		$(RM) $(ROOTETC)/$$dir/$(PPPDK); \
     62      0  stevel 		$(LN) $(INITD)/$(PPPD) $(ROOTETC)/$$dir/$(PPPDK); \
     63      0  stevel 	done
     64      0  stevel 	-$(RM) $(STARTINET3)
     65      0  stevel 	$(LN) $(INITD)/$(PROG4) $(STARTINET3)
     66      0  stevel 	-$(RM) $(STARTINET4)
     67      0  stevel 	$(LN) $(INITD)/$(PROG5) $(STARTINET4)
     68      0  stevel 	-$(RM) $(ROOTETC)/rc2.d/$(PPPDS)
     69      0  stevel 	$(LN) $(INITD)/$(PPPD) $(ROOTETC)/rc2.d/$(PPPDS)
     70      0  stevel 
     71      0  stevel $(DIRS):
     72      0  stevel 	$(INS.dir)
     73      0  stevel 
     74      0  stevel clean:
     75      0  stevel 
     76      0  stevel lint:
     77      0  stevel 
     78      0  stevel include ../../../Makefile.targ
     79      0  stevel 
     80      0  stevel .PARALLEL:
     81