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)
8SYSTEM_LIBRARY_DIR=$(DSTROOT)/System/Library
9SYSTEM_CORE_SERVICES_DIR=/System/Library/CoreServices
10ETC_DIR=$(DSTROOT)/private/etc
11LAUNCH_DIR=$(DSTROOT)/System/Library/LaunchDaemons
12#AUTHORIZATION_LOCATION=$(ETC_DIR)
13#AUTHORIZATION_PLIST=$(AUTHORIZATION_LOCATION)/authorization
14VARDB=$(DSTROOT)/private/var/db
15CANDIDATES=$(VARDB)/CodeEquivalenceCandidates
16
17SRC=$(SRCROOT)/etc
18
19
20#
21# The other phases do nothing
22#
23build:	
24	@echo null build.
25
26debug:
27	@echo null debug.
28
29profile:
30	@echo null profile.
31
32#
33# Install
34#
35install:
36	mkdir -p $(LAUNCH_DIR)
37	cp $(SRC)/com.apple.securityd.plist $(LAUNCH_DIR)
38	#mkdir -p $(AUTHORIZATION_LOCATION)
39	#plutil -lint $(SRC)/authorization.plist
40	#cp $(SRC)/authorization.plist $(AUTHORIZATION_PLIST)
41	#chown root:wheel $(AUTHORIZATION_PLIST)
42	#chmod 644 $(AUTHORIZATION_PLIST)
43	mkdir -p $(VARDB)
44	cp $(SRC)/CodeEquivalenceCandidates $(CANDIDATES)
45	chown root:admin $(CANDIDATES)
46	chmod 644 $(CANDIDATES)
47
48installhdrs:
49	@echo null installhdrs.
50
51installsrc:
52	@echo null installsrc.
53
54clean:
55	@echo null clean.
56