mirror of
https://github.com/opnsense/plugins.git
synced 2026-06-09 08:56:23 -04:00
Mk: add PLUGIN_REVISION, net to categories, tweaks
This commit is contained in:
parent
0003b54736
commit
0489e3bcd0
4 changed files with 12 additions and 4 deletions
2
Makefile
2
Makefile
|
|
@ -3,7 +3,7 @@ PAGER?= less
|
|||
all:
|
||||
@cat ${.CURDIR}/README.md | ${PAGER}
|
||||
|
||||
CATEGORIES= devel sysutils
|
||||
CATEGORIES= devel net sysutils
|
||||
|
||||
.for CATEGORY in ${CATEGORIES}
|
||||
_${CATEGORY}!= ls -1d ${CATEGORY}/*
|
||||
|
|
|
|||
|
|
@ -42,6 +42,7 @@ PLUGIN_PREFIX= ospriv-
|
|||
.endif
|
||||
|
||||
PLUGIN_WWW?= https://opnsense.org/
|
||||
PLUGIN_REVISION?= 0
|
||||
|
||||
PLUGIN_REQUIRES= PLUGIN_NAME PLUGIN_VERSION PLUGIN_COMMENT \
|
||||
PLUGIN_MAINTAINER
|
||||
|
|
@ -53,6 +54,12 @@ check:
|
|||
. endif
|
||||
.endfor
|
||||
|
||||
.if "${PLUGIN_REVISION}" != "" && "${PLUGIN_REVISION}" != "0"
|
||||
PLUGIN_PKGVERSION= ${PLUGIN_VERSION}_${PLUGIN_REVISION}
|
||||
.else
|
||||
PLUGIN_PKGVERSION= ${PLUGIN_VERSION}
|
||||
.endif
|
||||
|
||||
name: check
|
||||
@echo ${PLUGIN_PREFIX}${PLUGIN_NAME}
|
||||
|
||||
|
|
@ -61,7 +68,7 @@ depends: check
|
|||
|
||||
manifest: check
|
||||
@echo "name: ${PLUGIN_PREFIX}${PLUGIN_NAME}"
|
||||
@echo "version: \"${PLUGIN_VERSION}\""
|
||||
@echo "version: \"${PLUGIN_PKGVERSION}\""
|
||||
@echo "origin: opnsense/${PLUGIN_PREFIX}${PLUGIN_NAME}"
|
||||
@echo "comment: \"${PLUGIN_COMMENT}\""
|
||||
@echo "desc: \"${PLUGIN_DESC}\""
|
||||
|
|
@ -71,6 +78,7 @@ manifest: check
|
|||
@echo "prefix: \"${LOCALBASE}\""
|
||||
@echo "licenselogic: \"single\""
|
||||
@echo "licenses: [ \"BSD2CLAUSE\" ]"
|
||||
.if defined(PLUGIN_DEPENDS)
|
||||
@echo "deps: {"
|
||||
@for PLUGIN_DEPEND in ${PLUGIN_DEPENDS}; do \
|
||||
if ! ${PKG} query ' %n: { version: "%v", origin: "%o" }' \
|
||||
|
|
@ -80,6 +88,7 @@ manifest: check
|
|||
fi; \
|
||||
done
|
||||
@echo "}"
|
||||
.endif
|
||||
|
||||
scripts: check
|
||||
@mkdir -p ${DESTDIR}
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ The make targets for the root directory:
|
|||
|
||||
The make targets for any plugin directory:
|
||||
|
||||
* manifest: generate +MANIFEST file
|
||||
* package: creates a package from directory
|
||||
* install: install to target directory
|
||||
* remove: remove from target directory
|
||||
* collect: gather updates from target directory
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
PLUGIN_NAME= helloworld
|
||||
PLUGIN_VERSION= 1.1
|
||||
PLUGIN_COMMENT= A sample framework application
|
||||
#PLUGIN_DEPENDS=
|
||||
PLUGIN_MAINTAINER= ad@opnsense.org
|
||||
|
||||
.include "../../Mk/plugins.mk"
|
||||
|
|
|
|||
Loading…
Reference in a new issue