xref: /titanic_44/usr/src/cmd/cmd-inet/etc/secret/Makefile (revision c28749e97052f09388969427adf7df641cdcdc22)
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.
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#
22#
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
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:
68