git: 4e171dd99a5f - main - www/bareos-webui: Fix problem on authenticate time

From: Jose Alonso Cardenas Marquez <acm_at_FreeBSD.org>
Date: Sun, 06 Mar 2022 20:25:04 UTC
The branch main has been updated by acm:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4e171dd99a5f58849e8d61f7719ef8ecaba4b472

commit 4e171dd99a5f58849e8d61f7719ef8ecaba4b472
Author:     Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
AuthorDate: 2022-03-06 20:21:34 +0000
Commit:     Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
CommitDate: 2022-03-06 20:21:34 +0000

    www/bareos-webui: Fix problem on authenticate time
    
    - Fix issue where bareos version is not defined. It cause problems on
      authenticate time
    - Bump PORTREIVISION
    PR:             262153
    Reported by:    feldeci  _at_  gmail.com
---
 www/bareos-webui/Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/www/bareos-webui/Makefile b/www/bareos-webui/Makefile
index 7267518727d9..91edb78f9cc7 100644
--- a/www/bareos-webui/Makefile
+++ b/www/bareos-webui/Makefile
@@ -1,6 +1,7 @@
 PORTNAME=	bareos
 DISTVERSIONPREFIX=	Release/
 DISTVERSION=	21.0.0
+PORTREVISION=	1
 CATEGORIES?=	www sysutils
 PKGNAMESUFFIX=	-webui
 
@@ -22,7 +23,9 @@ CMAKE_INSTALL_PREFIX=	${STAGEDIR}
 CMAKE_ARGS+=	-DSHARE_INSTALL_PREFIX:PATH=${PREFIX}/www \
 		-DCMAKE_INSTALL_FULL_SYSCONFDIR:PATH=${PREFIX}/etc \
 		-Dsysconfdir=${PREFIX}/etc \
-		-Dwebuiconfdir=${PREFIX}/${ETCDIRWEBUI}
+		-Dwebuiconfdir=${PREFIX}/${ETCDIRWEBUI} \
+		-DVERSION_STRING=${DISTVERSION} \
+		-DBAREOS_FULL_VERSION:STRING=${DISTVERSION}
 
 SUB_FILES=	pkg-message
 SUB_LIST+=	ETCDIRWEBUI=${PREFIX}/${ETCDIRWEBUI}