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.
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.
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]
21 # Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
23 SYMPROG
= hosts inetd.conf networks protocols services netmasks
25 # New /etc/inet files shouldn't have /etc entries.
26 EDITPROG
= ipaddrsel.conf ipsecalgs
27 PROG
= datemsk.ndpd ipsecinit.sample ipqosconf
.1.sample ipqosconf
.2.sample \
28 ipqosconf
.3.sample wanboot.conf.sample
29 ETCPROG
= $(SYMPROG
) $(EDITPROG
) $(PROG
)
30 SUBDIRS
= default dhcp init.d ike nca ppp secret sock2path.d
32 include ..
/..
/Makefile.cmd
35 install:= TARGET
= install
38 INETETCDIR
= $(ROOTETC
)/inet
39 INETVARDIR
= $(ROOTVAR
)/inet
40 DIRS
= $(INETETCDIR
) $(INETVARDIR
)
42 ETCINETPROG
= $(ETCPROG
:%=$(INETETCDIR
)/%)
43 EDITFILES
= $(SYMPROG
:%=$(INETETCDIR
)/%) $(EDITPROG
:%=$(INETETCDIR
)/%)
44 # Only old /etc/inet files get symlinks in /etc.
45 SYMETCPROG
= $(SYMPROG
:%=sym_
%)
46 SYMIPNODES
= $(INETETCDIR
)/ipnodes
52 $(EDITFILES
) := FILEMODE
= 0644
54 all: $(ETCPROG
) $(SUBDIRS
)
56 install: all $(DIRS
) $(ETCINETPROG
) $(SYMETCPROG
) $(SYMIPNODES
) $(SUBDIRS
)
67 $(SYMLINK
) $(SYMDIR
)/$< $(ROOTETC
)/$<
72 $(SUBDIRS
): FRC
$(DIRS
)
73 @cd
$@
; pwd
; $(MAKE
) $(TARGET
)
77 # datemsk.ndpd is generated from datemsk.template because of a side-effect of
78 # SCCS. Some of the datemsk.ndpd format strings include "%<letter>%", which
79 # SCCS confuses for ID keywords. datemsk.template should quote the "%"
80 # with "\" and code below will filter out the "\". Only datemsk.ndpd format
81 # strings next to each other need to be quoted.
83 datemsk.ndpd
: datemsk.template
84 @while read i
; do echo
$$i; done
< datemsk.template
> $@