]> git.saurik.com Git - apple/security.git/blob - keychains/Makefile
87d493996b045f27fc6d158c88ee9bf0f6324aed
[apple/security.git] / keychains / Makefile
1 #
2 # Makefile to install built-in roots and certificates
3 #
4 KEYCHAINS_SRC=$(SRCROOT)/keychains
5
6 SYSTEM_LIBRARY_DIR=$(DSTROOT)/System/Library
7 KEYCHAINS_DIR=$(SYSTEM_LIBRARY_DIR)/Keychains
8 X509KEYCHAINS=X509Anchors X509Certificates
9
10 #
11 # world-writable directory we need to create for CRL cache
12 #
13 CRL_CACHE_DIR=$(DSTROOT)/private/var/db/crls
14
15 #
16 # The other phases do nothing
17 #
18 build:
19 @echo null build.
20
21 debug:
22 @echo null debug.
23
24 profile:
25 @echo null profile.
26
27 installhdrs:
28 @echo null installhdrs.
29
30 installsrc:
31 @echo null installsrc.
32
33 clean:
34 @echo null clean.
35
36
37 #
38 # Install
39 #
40 install:
41 if [ ! -d $(KEYCHAINS_DIR) ]; then \
42 mkdir -p $(KEYCHAINS_DIR); \
43 chown root.admin $(KEYCHAINS_DIR); \
44 chmod 755 $(KEYCHAINS_DIR); \
45 fi
46 cd $(KEYCHAINS_SRC); cp $(X509KEYCHAINS) $(KEYCHAINS_DIR)
47 cd $(KEYCHAINS_DIR); \
48 chown root.admin $(X509KEYCHAINS); \
49 chmod 664 $(X509KEYCHAINS); \
50 ls -l $(X509KEYCHAINS)
51 if [ ! -d $(CRL_CACHE_DIR) ]; then \
52 mkdir -p $(CRL_CACHE_DIR); \
53 chown root.wheel $(CRL_CACHE_DIR); \
54 chmod 777 $(CRL_CACHE_DIR); \
55 fi