From d47c8de374c879158415eafbafacdf8621d58111 Mon Sep 17 00:00:00 2001 From: Bryan Drewery Date: Fri, 9 Jan 2015 21:12:53 +0000 Subject: [PATCH] Add 'post-plist' target which can be hooked into to modify the plist without needing to add more targets to STAGE_SEQ. This is especially useful for customizing the ports tree/framework without modifying bsd.port.mk. With hat: portmgr Discussed with: mat --- Mk/bsd.port.mk | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk index 4c9b70a9b4eb..0248fc5d8b50 100644 --- a/Mk/bsd.port.mk +++ b/Mk/bsd.port.mk @@ -5912,6 +5912,7 @@ _BUILD_SEQ= build-message pre-build pre-build-script do-build \ _STAGE_DEP= build _STAGE_SEQ= stage-message stage-dir run-depends lib-depends apply-slist pre-install generate-plist \ pre-su-install +# post-plist must be after anything that modifies TMPPLIST .if defined(NEED_ROOT) _STAGE_SUSEQ= create-users-groups do-install \ kmod-post-install fix-perl-things \ @@ -5920,7 +5921,7 @@ _STAGE_SUSEQ= create-users-groups do-install \ install-rc-script install-ldconfig-file install-license \ install-desktop-entries add-plist-info add-plist-docs \ add-plist-examples add-plist-data add-plist-post \ - move-uniquefiles-plist + move-uniquefiles-plist post-plist .if defined(DEVELOPER) _STAGE_SUSEQ+= stage-qa .endif @@ -5932,7 +5933,7 @@ _STAGE_SEQ+= create-users-groups do-install \ install-rc-script install-ldconfig-file install-license \ install-desktop-entries add-plist-info add-plist-docs \ add-plist-examples add-plist-data add-plist-post \ - move-uniquefiles-plist + move-uniquefiles-plist post-plist .if defined(DEVELOPER) _STAGE_SEQ+= stage-qa .endif