xref: /titanic_41/usr/src/cmd/cmd-inet/etc/secret/Makefile (revision 55f5292c612446ce6f93ddd248c0019b5974618b)
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# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
22# Use is subject to license terms.
23#
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
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:
62