X-Git-Url: https://git.saurik.com/apple/system_cmds.git/blobdiff_plain/1815bff58803503e37009deeb85cfa8c22acf9d9..34d340d711a2b033f5da480ed7b5eb147679a588:/dynamic_pager.tproj/Makefile.postamble diff --git a/dynamic_pager.tproj/Makefile.postamble b/dynamic_pager.tproj/Makefile.postamble index 18e890b..f6c4e3b 100644 --- a/dynamic_pager.tproj/Makefile.postamble +++ b/dynamic_pager.tproj/Makefile.postamble @@ -103,8 +103,10 @@ SRC_ROOT = $(SRCROOT) # owned by the top-level Makefile API and no context has been set up for where # derived files should go. # -MIGFLAGS = -traditional-cpp -R -untyped -DNO_DIRECT_RPC +MIGFLAGS = -no-cpp-precomp -R -untyped -DNO_DIRECT_RPC MIG = $(NEXT_ROOT)/usr/bin/mig + +Embedded=$(shell tconf --test TARGET_OS_EMBEDDED) default_pager_alerts_server.c : backing_store_alerts.c \ backing_store_triggers_server.c \ @@ -124,3 +126,19 @@ backing_store_triggers_server.c: \ cp $(SRCROOT)/dynamic_pager.tproj/backing_store_triggers.defs $(SYM_DIR); cd $(SYM_DIR) && \ $(MIG) $(MIGFLAGS) -user /dev/null -server backing_store_triggers_server.c -sheader backing_store_triggers_server.h backing_store_triggers.defs + +install-man-page: + install -d $(DSTROOT)/usr/share/man/man8 + install -c -m 444 dynamic_pager.8 $(DSTROOT)/usr/share/man/man8/dynamic_pager.8 + +LAUNCHD_PLIST_DIR = $(DSTROOT)/System/Library/LaunchDaemons +LAUNCHD_PLIST = com.apple.dynamic_pager.plist + +install-launchd-plist: + install -d $(LAUNCHD_PLIST_DIR) + install -c -m 644 $(LAUNCHD_PLIST) $(LAUNCHD_PLIST_DIR)/$(LAUNCHD_PLIST) +ifeq "$(Embedded)" "YES" + /usr/libexec/PlistBuddy -x \ + -c "Add :Disabled bool true" \ + "$(LAUNCHD_PLIST_DIR)/$(LAUNCHD_PLIST)" +endif