2 # Makefile to install the system-startup code for SecurityServer
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
12 DST=$(SYSTEM_LIBRARY_DIR)/StartupItems/SecurityServer
13 SRC=$(SRCROOT)/SecurityServer
17 # The other phases do nothing
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)
47 @echo null installhdrs.
50 @echo null installsrc.