Framework: mark plugins private so they don't install from GUI; closes #7

This commit is contained in:
Franco Fichtner 2016-04-18 01:33:29 +02:00
parent a605860a97
commit 642898d8c8

View file

@ -1,4 +1,4 @@
# Copyright (c) 2015 Franco Fichtner <franco@opnsense.org>
# Copyright (c) 2015-2016 Franco Fichtner <franco@opnsense.org>
#
# 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