]> git.saurik.com Git - apple/security.git/blob - SecurityServer/Makefile.startup
Security-179.tar.gz
[apple/security.git] / SecurityServer / Makefile.startup
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 # Note: CORE_SERVICES_DIR should be absolute path in target environment (don't prefix with DSTROOT)
7 SYSTEM_LIBRARY_DIR=$(DSTROOT)/System/Library
8 SYSTEM_CORE_SERVICES_DIR=/System/Library/CoreServices
9 AUTHORIZATION_LOCATION=$(DSTROOT)/private/etc
10 AUTHORIZATION_PLIST=$(AUTHORIZATION_LOCATION)/authorization
11 VARDB=$(DSTROOT)/private/var/db
12 CANDIDATES=$(VARDB)/CodeEquivalenceCandidates
13
14 DST=$(SYSTEM_LIBRARY_DIR)/StartupItems/SecurityServer
15 SRC=$(SRCROOT)/SecurityServer
16
17
18 #
19 # The other phases do nothing
20 #
21 build:
22 @echo null build.
23
24 debug:
25 @echo null debug.
26
27 profile:
28 @echo null profile.
29
30 #
31 # Install
32 #
33 install:
34 mkdir -p $(DST)/Resources/English.lproj
35 cp $(SRC)/StartupItems/StartupParameters.plist $(DST)
36 sed -e "s:@@@:$(SYSTEM_CORE_SERVICES_DIR):g" $(SRC)/StartupItems/SecurityServer >$(DST)/SecurityServer
37 cp $(SRC)/StartupItems/Localizable.strings $(DST)/Resources/English.lproj/Localizable.plist
38 chown -R root.wheel $(DST)
39 chmod 755 $(DST)/SecurityServer
40 chmod 644 $(DST)/StartupParameters.plist
41 chmod 644 $(DST)/Resources/English.lproj/Localizable.plist
42 chmod 4711 $(DSTROOT)/$(SYSTEM_CORE_SERVICES_DIR)/AuthorizationTrampoline
43 chmod 4711 $(DSTROOT)/$(SYSTEM_CORE_SERVICES_DIR)/privportserver
44 mkdir -p $(AUTHORIZATION_LOCATION)
45 cp $(SRC)/Authorization/authorization.plist $(AUTHORIZATION_PLIST)
46 chown root.admin $(AUTHORIZATION_PLIST)
47 chmod 644 $(AUTHORIZATION_PLIST)
48 mkdir -p $(VARDB)
49 cp $(SRC)/StartupItems/CodeEquivalenceCandidates $(CANDIDATES)
50 chown root.admin $(CANDIDATES)
51 chmod 644 $(CANDIDATES)
52
53 installhdrs:
54 @echo null installhdrs.
55
56 installsrc:
57 @echo null installsrc.
58
59 clean:
60 @echo null clean.