startup.mk   [plain text]


#
#	Makefile to install the system-startup code for SecurityServer
#

# wouldn't it be nice if PBX actually $#@?@! defined those?
# (for future ref: CoreOS Makefiles define many standard path vars)
# Note: CORE_SERVICES_DIR should be absolute path in target environment (don't prefix with DSTROOT)
SYSTEM_LIBRARY_DIR=$(DSTROOT)/System/Library
SYSTEM_CORE_SERVICES_DIR=/System/Library/CoreServices
ETC_DIR=$(DSTROOT)/private/etc
LAUNCH_DIR=$(DSTROOT)/System/Library/LaunchDaemons
#AUTHORIZATION_LOCATION=$(ETC_DIR)
#AUTHORIZATION_PLIST=$(AUTHORIZATION_LOCATION)/authorization
VARDB=$(DSTROOT)/private/var/db
CANDIDATES=$(VARDB)/CodeEquivalenceCandidates

SRC=$(SRCROOT)/etc


#
# The other phases do nothing
#
build:	
	@echo null build.

debug:
	@echo null debug.

profile:
	@echo null profile.

#
# Install
#
install:
	mkdir -p $(LAUNCH_DIR)
	cp $(SRC)/com.apple.securityd.plist $(LAUNCH_DIR)
	#mkdir -p $(AUTHORIZATION_LOCATION)
	#plutil -lint $(SRC)/authorization.plist
	#cp $(SRC)/authorization.plist $(AUTHORIZATION_PLIST)
	#chown root:wheel $(AUTHORIZATION_PLIST)
	#chmod 644 $(AUTHORIZATION_PLIST)
	mkdir -p $(VARDB)
	cp $(SRC)/CodeEquivalenceCandidates $(CANDIDATES)
	chown root:admin $(CANDIDATES)
	chmod 644 $(CANDIDATES)

installhdrs:
	@echo null installhdrs.

installsrc:
	@echo null installsrc.

clean:
	@echo null clean.