Makefile (7c478bd9) Makefile (24fe0b3b)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
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, Version 1.0 only
6# (the "License"). You may not use this file except in compliance
7# with the License.
5# Common Development and Distribution License (the "License").
6# You may not use this file except in compliance with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
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# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
22# Use is subject to license terms.
22#
23#
23#ident "%Z%%M% %I% %E% SMI"
24#
25# Copyright (c) 2001 by Sun Microsystems, Inc.
26# All rights reserved.
27#
28# cmd/cmd-inet/etc/secret/Makefile
29#
30
31SECRETDIR= secret
32PRIVATEKEYDIR= ike.privatekeys
33ETCPROG= ike.preshared ipseckeys.sample
34
35include ../../../Makefile.cmd
36
37ETCINETSECRETDIR= $(ROOTETC)/inet/$(SECRETDIR)
38ETCINETPRIVATEKEYDIR= $(ROOTETC)/inet/$(SECRETDIR)/$(PRIVATEKEYDIR)
39ETCINETSECRETPROG= $(ETCPROG:%=$(ETCINETSECRETDIR)/%)
40
41# Be extra paranoid about /etc/inet/secret
42$(ETCINETSECRETDIR):= DIRMODE= 700
43$(ETCINETPRIVATEKEYDIR):= DIRMODE= 700
44
45DIRMODE= 700
46FILEMODE= 600
24# cmd/cmd-inet/etc/secret/Makefile
25#
26
27SECRETDIR= secret
28PRIVATEKEYDIR= ike.privatekeys
29ETCPROG= ike.preshared ipseckeys.sample
30
31include ../../../Makefile.cmd
32
33ETCINETSECRETDIR= $(ROOTETC)/inet/$(SECRETDIR)
34ETCINETPRIVATEKEYDIR= $(ROOTETC)/inet/$(SECRETDIR)/$(PRIVATEKEYDIR)
35ETCINETSECRETPROG= $(ETCPROG:%=$(ETCINETSECRETDIR)/%)
36
37# Be extra paranoid about /etc/inet/secret
38$(ETCINETSECRETDIR):= DIRMODE= 700
39$(ETCINETPRIVATEKEYDIR):= DIRMODE= 700
40
41DIRMODE= 700
42FILEMODE= 600
47OWNER= root
48GROUP= sys
49
50.KEEP_STATE:
51
52all: $(ETCPROG)
53
54install: all $(ETCINETSECRETDIR) $(ETCINETPRIVATEKEYDIR) $(ETCINETSECRETPROG)
55
56$(ETCINETSECRETDIR)/% : %
57 $(INS.file)
58
59$(ETCINETSECRETDIR):
60 $(INS.dir)
61
62$(ETCINETPRIVATEKEYDIR):
63 $(INS.dir)
64
65FRC:
66
67clean clobber lint:
43
44.KEEP_STATE:
45
46all: $(ETCPROG)
47
48install: all $(ETCINETSECRETDIR) $(ETCINETPRIVATEKEYDIR) $(ETCINETSECRETPROG)
49
50$(ETCINETSECRETDIR)/% : %
51 $(INS.file)
52
53$(ETCINETSECRETDIR):
54 $(INS.dir)
55
56$(ETCINETPRIVATEKEYDIR):
57 $(INS.dir)
58
59FRC:
60
61clean clobber lint: