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