17c478bd9Sstevel@tonic-gate# 27c478bd9Sstevel@tonic-gate# CDDL HEADER START 37c478bd9Sstevel@tonic-gate# 47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the 544961713Sgirish# Common Development and Distribution License (the "License"). 644961713Sgirish# You may not use this file except in compliance with the License. 77c478bd9Sstevel@tonic-gate# 87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions 117c478bd9Sstevel@tonic-gate# and limitations under the License. 127c478bd9Sstevel@tonic-gate# 137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 187c478bd9Sstevel@tonic-gate# 197c478bd9Sstevel@tonic-gate# CDDL HEADER END 207c478bd9Sstevel@tonic-gate# 217c478bd9Sstevel@tonic-gate# 22316944b9Sjohnz# Copyright 2007 Sun Microsystems, Inc. All rights reserved. 237c478bd9Sstevel@tonic-gate# Use is subject to license terms. 247c478bd9Sstevel@tonic-gate# 257c478bd9Sstevel@tonic-gate# ident "%Z%%M% %I% %E% SMI" 267c478bd9Sstevel@tonic-gate# 277c478bd9Sstevel@tonic-gate 287c478bd9Sstevel@tonic-gateRELEASECERTS = SUNW_SunOS_5.10 2944961713SgirishRELEASECRYPTO = SUNW_SunOS_5.10 \ 3044961713Sgirish SUNW_SunOS_5.11_Limited 317c478bd9Sstevel@tonic-gate 327c478bd9Sstevel@tonic-gateETCCRYPTOFILES = \ 337c478bd9Sstevel@tonic-gate kcf.conf \ 347c478bd9Sstevel@tonic-gate pkcs11.conf \ 3544961713Sgirish $(RELEASECRYPTO:%=certs/%) \ 36316944b9Sjohnz certs/CA \ 37316944b9Sjohnz certs/SUNWObjectCA 387c478bd9Sstevel@tonic-gate 397c478bd9Sstevel@tonic-gateETCCERTSFILES = \ 407c478bd9Sstevel@tonic-gate $(RELEASECERTS) \ 41316944b9Sjohnz SUNWSolarisCA \ 42316944b9Sjohnz SUNWObjectCA 437c478bd9Sstevel@tonic-gate 44*af42e7a1SjohnzANNOTATEDFILES = \ 45*af42e7a1Sjohnz certs/SUNWObjectCA.annot 46*af42e7a1Sjohnz 477c478bd9Sstevel@tonic-gateinclude ../../Makefile.cmd 487c478bd9Sstevel@tonic-gate 497c478bd9Sstevel@tonic-gate.KEEP_STATE: 507c478bd9Sstevel@tonic-gate 517c478bd9Sstevel@tonic-gateROOTCRYPTODIR= $(ROOT)/etc/crypto 527c478bd9Sstevel@tonic-gateROOTCRYPTOCERTSDIR= $(ROOTCRYPTODIR)/certs 537c478bd9Sstevel@tonic-gate 547c478bd9Sstevel@tonic-gateROOTETCCERTSDIR= $(ROOT)/etc/certs 557c478bd9Sstevel@tonic-gate 567c478bd9Sstevel@tonic-gate$(ROOTCRYPTODIR):= OWNER= root 577c478bd9Sstevel@tonic-gate$(ROOTCRYPTODIR):= GROUP= sys 587c478bd9Sstevel@tonic-gate$(ROOTETCCERTSDIR):= OWNER= root 597c478bd9Sstevel@tonic-gate$(ROOTETCCERTSDIR):= GROUP= sys 607c478bd9Sstevel@tonic-gate 617c478bd9Sstevel@tonic-gateIETCCRYPTOFILES= $(ETCCRYPTOFILES:%=$(ROOTCRYPTODIR)/%) 627c478bd9Sstevel@tonic-gateIETCCERTSFILES= $(ETCCERTSFILES:%=$(ROOTETCCERTSDIR)/%) 637c478bd9Sstevel@tonic-gate 64316944b9Sjohnz$(ROOTCRYPTOCERTSDIR)/SUNWObjectCA: \ 65316944b9Sjohnz $(ROOTETCCERTSDIR)/SUNWObjectCA 66316944b9Sjohnz $(RM) $@ 67316944b9Sjohnz $(LN) $(ROOTETCCERTSDIR)/SUNWObjectCA $@ 687c478bd9Sstevel@tonic-gate$(ROOTCRYPTODIR)/%: % 697c478bd9Sstevel@tonic-gate $(INS.file) 7044961713Sgirish$(RELEASECRYPTO:%=$(ROOTCRYPTODIR)/certs/%): \ 717c478bd9Sstevel@tonic-gate certs/$(@F:SUNW_SunOS_5.%=SUNWCryptographic%) 727c478bd9Sstevel@tonic-gate $(RM) $@ 737c478bd9Sstevel@tonic-gate $(INS) -s -m $(FILEMODE) -f $(@D) \ 747c478bd9Sstevel@tonic-gate certs/$(@F:SUNW_SunOS_5.%=SUNWCryptographic%) 757c478bd9Sstevel@tonic-gate $(MV) $(@D)/$(@F:SUNW_SunOS_5.%=SUNWCryptographic%) $@ 767c478bd9Sstevel@tonic-gate 77316944b9Sjohnz$(ROOTETCCERTSDIR)/SUNWObjectCA: \ 78*af42e7a1Sjohnz certs/$$(@F) 79316944b9Sjohnz $(RM) $@ 80316944b9Sjohnz $(INS) -s -m $(FILEMODE) -f $(@D) certs/$(@F) 817c478bd9Sstevel@tonic-gate$(ROOTETCCERTSDIR)/%: certs/% 827c478bd9Sstevel@tonic-gate $(INS.file) 837c478bd9Sstevel@tonic-gate$(RELEASECERTS:%=$(ROOTETCCERTSDIR)/%): \ 847c478bd9Sstevel@tonic-gate certs/$(@F:SUNW_SunOS_5.%=SUNWSolaris%) 857c478bd9Sstevel@tonic-gate $(RM) $@ 867c478bd9Sstevel@tonic-gate $(INS) -s -m $(FILEMODE) -f $(@D) \ 877c478bd9Sstevel@tonic-gate certs/$(@F:SUNW_SunOS_5.%=SUNWSolaris%) 887c478bd9Sstevel@tonic-gate $(MV) $(@D)/$(@F:SUNW_SunOS_5.%=SUNWSolaris%) $@ 897c478bd9Sstevel@tonic-gate 90*af42e7a1SjohnzANNOT_DEL = SOURCE ANNOTATION DELETE 91*af42e7a1Sjohnz$(ANNOTATEDFILES:%.annot=%): \ 92*af42e7a1Sjohnz $$(@:%=%.annot) 93*af42e7a1Sjohnz $(RM) $@ 94*af42e7a1Sjohnz $(SED) -e '/${ANNOT_DEL} START/,/${ANNOT_DEL} END/d' \ 95*af42e7a1Sjohnz $(@:%=%.annot) > $@ 96*af42e7a1Sjohnz 977c478bd9Sstevel@tonic-gate$(IETCCRYPTOFILES):= FILEMODE= 644 987c478bd9Sstevel@tonic-gate$(IETCCRYPTOFILES):= OWNER= root 997c478bd9Sstevel@tonic-gate$(IETCCRYPTOFILES):= GROUP= sys 1007c478bd9Sstevel@tonic-gate$(IETCCERTSFILES):= FILEMODE= 644 1017c478bd9Sstevel@tonic-gate$(IETCCERTSFILES):= OWNER= root 1027c478bd9Sstevel@tonic-gate$(IETCCERTSFILES):= GROUP= sys 1037c478bd9Sstevel@tonic-gate 1047c478bd9Sstevel@tonic-gateinstall: $(IETCCRYPTOFILES) $(IETCCERTSFILES) 105*af42e7a1Sjohnz 106*af42e7a1Sjohnzclean clobber: 107*af42e7a1Sjohnz $(RM) $(ANNOTATEDFILES:%.annot=%) 108