]> git.saurik.com Git - apple/security.git/blob - SecurityServer/Makefile.startup
Security-29.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
12 DST=$(SYSTEM_LIBRARY_DIR)/StartupItems/SecurityServer
13 SRC=$(SRCROOT)/SecurityServer
14
15
16 #
17 # The other phases do nothing
18 #
19 build:
20 @echo null build.
21
22 debug:
23 @echo null debug.
24
25 profile:
26 @echo null profile.
27
28 #
29 # Install
30 #
31 install:
32 mkdir -p $(DST)/Resources/English.lproj
33 cp $(SRC)/StartupItems/StartupParameters.plist $(DST)
34 sed -e "s:@@@:$(SYSTEM_CORE_SERVICES_DIR):g" $(SRC)/StartupItems/SecurityServer >$(DST)/SecurityServer
35 cp $(SRC)/StartupItems/Localizable.strings $(DST)/Resources/English.lproj/Localizable.strings
36 chown -R root.wheel $(DST)
37 chmod 755 $(DST)/SecurityServer
38 chmod 644 $(DST)/StartupParameters.plist
39 chmod 644 $(DST)/Resources/English.lproj/Localizable.strings
40 chmod 4711 $(DSTROOT)/$(SYSTEM_CORE_SERVICES_DIR)/AuthorizationTrampoline
41 mkdir -p $(AUTHORIZATION_LOCATION)
42 cp $(SRC)/Authorization/authorization.plist $(AUTHORIZATION_PLIST)
43 chown root.admin $(AUTHORIZATION_PLIST)
44 chmod 640 $(AUTHORIZATION_PLIST)
45
46 installhdrs:
47 @echo null installhdrs.
48
49 installsrc:
50 @echo null installsrc.
51
52 clean:
53 @echo null clean.