From 642898d8c8b72dbf1956809e567fee8070fe5f70 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Mon, 18 Apr 2016 01:33:29 +0200 Subject: [PATCH] Framework: mark plugins private so they don't install from GUI; closes #7 --- Mk/plugins.mk | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Mk/plugins.mk b/Mk/plugins.mk index 365857b0f..a23b2f8cd 100644 --- a/Mk/plugins.mk +++ b/Mk/plugins.mk @@ -1,4 +1,4 @@ -# Copyright (c) 2015 Franco Fichtner +# Copyright (c) 2015-2016 Franco Fichtner # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions @@ -28,7 +28,15 @@ all: check PLUGIN_DESC!= git rev-list HEAD --max-count=1 | cut -c1-9 PLUGIN_SCRIPTS= +PRE_INSTALL +POST_INSTALL \ +PRE_DEINSTALL +POST_DEINSTALL + +# Setting private mode allows plugins not +# to show up in the firmware GUI, and must +# thus be installed during build or console. +.if "${PLUGIN_PRIVATE}" == "" PLUGIN_PREFIX= os- +.else +PLUGIN_PREFIX= ospriv- +.endif LOCALBASE?= /usr/local PKG!= which pkg || echo true