]> git.saurik.com Git - apple/securityd.git/blob - etc/startup.mk
securityd-32596.tar.gz
[apple/securityd.git] / etc / startup.mk
1 #
2 # Makefile to install the system-startup code for SecurityServer
3 #
4
5 # wouldn't it be nice if PBX actually $#@?@! defined those?
6 # (for future ref: CoreOS Makefiles define many standard path vars)
7 # Note: CORE_SERVICES_DIR should be absolute path in target environment (don't prefix with DSTROOT)
8 SYSTEM_LIBRARY_DIR=$(DSTROOT)/System/Library
9 SYSTEM_CORE_SERVICES_DIR=/System/Library/CoreServices
10 ETC_DIR=$(DSTROOT)/private/etc
11 AUTHORIZATION_LOCATION=$(ETC_DIR)
12 AUTHORIZATION_PLIST=$(AUTHORIZATION_LOCATION)/authorization
13 VARDB=$(DSTROOT)/private/var/db
14 CANDIDATES=$(VARDB)/CodeEquivalenceCandidates
15
16 DST=$(ETC_DIR)/mach_init.d
17 SRC=$(SRCROOT)/etc
18
19
20 #
21 # The other phases do nothing
22 #
23 build:
24 @echo null build.
25
26 debug:
27 @echo null debug.
28
29 profile:
30 @echo null profile.
31
32 #
33 # Install
34 #
35 install:
36 mkdir -p $(DST)
37 cp $(SRC)/securityd.plist $(SRC)/securityd-installCD.plist $(DST)
38 mkdir -p $(AUTHORIZATION_LOCATION)
39 cp $(SRC)/authorization.plist $(AUTHORIZATION_PLIST)
40 chown root:wheel $(AUTHORIZATION_PLIST)
41 chmod 644 $(AUTHORIZATION_PLIST)
42 mkdir -p $(VARDB)
43 cp $(SRC)/CodeEquivalenceCandidates $(CANDIDATES)
44 chown root:admin $(CANDIDATES)
45 chmod 644 $(CANDIDATES)
46
47 installhdrs:
48 @echo null installhdrs.
49
50 installsrc:
51 @echo null installsrc.
52
53 clean:
54 @echo null clean.