mirror of
https://github.com/opnsense/plugins.git
synced 2026-06-04 14:26:13 -04:00
Framework: add metadata to annotations
PR: https://github.com/opnsense/core/issues/6374
This commit is contained in:
parent
2460249baf
commit
22ed3972d2
2 changed files with 7 additions and 4 deletions
2
Makefile
2
Makefile
|
|
@ -1,4 +1,4 @@
|
|||
# Copyright (c) 2015-2020 Franco Fichtner <franco@opnsense.org>
|
||||
# Copyright (c) 2015-2023 Franco Fichtner <franco@opnsense.org>
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
|
|
|
|||
|
|
@ -132,6 +132,9 @@ manifest: check
|
|||
done
|
||||
@echo "}"
|
||||
.endif
|
||||
@if [ -f ${WRKSRC}/usr/local/opnsense/version/${PLUGIN_NAME} ]; then \
|
||||
echo "annotations $$(cat ${WRKSRC}/usr/local/opnsense/version/${PLUGIN_NAME})"; \
|
||||
fi
|
||||
|
||||
scripts: check scripts-pre scripts-auto scripts-manual scripts-post
|
||||
|
||||
|
|
@ -256,14 +259,14 @@ package: check
|
|||
.for DEP in ${PLUGIN_DEPENDS}
|
||||
@if ! ${PKG} info ${DEP} > /dev/null; then ${PKG} install -yA ${DEP}; fi
|
||||
.endfor
|
||||
@echo -n ">>> Generating metadata for ${PLUGIN_PKGNAME}-${PLUGIN_PKGVERSION}..."
|
||||
@${MAKE} DESTDIR=${WRKSRC} metadata
|
||||
@echo " done"
|
||||
@echo -n ">>> Staging files for ${PLUGIN_PKGNAME}-${PLUGIN_PKGVERSION}..."
|
||||
@${MAKE} DESTDIR=${WRKSRC} install
|
||||
@echo " done"
|
||||
@echo ">>> Generated version info for ${PLUGIN_PKGNAME}-${PLUGIN_PKGVERSION}:"
|
||||
@cat ${WRKSRC}/usr/local/opnsense/version/${PLUGIN_NAME}
|
||||
@echo -n ">>> Generating metadata for ${PLUGIN_PKGNAME}-${PLUGIN_PKGVERSION}..."
|
||||
@${MAKE} DESTDIR=${WRKSRC} metadata
|
||||
@echo " done"
|
||||
@echo ">>> Packaging files for ${PLUGIN_PKGNAME}-${PLUGIN_PKGVERSION}:"
|
||||
@${PKG} create -v -m ${WRKSRC} -r ${WRKSRC} \
|
||||
-p ${WRKSRC}/plist -o ${PKGDIR}
|
||||
|
|
|
|||
Loading…
Reference in a new issue