git: 4f22a12e8de1 - main - www/angie-console-light: New port: Angie Web Monitoring Panel

From: Vladimir Druzenko <vvd_at_FreeBSD.org>
Date: Thu, 10 Jul 2025 01:27:53 UTC
The branch main has been updated by vvd:

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

commit 4f22a12e8de152e3071e3093929ebaae35f1fcbd
Author:     Sebastian Oswald <sko@rostwald.de>
AuthorDate: 2025-07-10 01:24:26 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2025-07-10 01:24:26 +0000

    www/angie-console-light: New port: Angie Web Monitoring Panel
    
    Angie Console Light is a lightweight, real-time monitoring interface
    for www/angie.
    The panel uses the native angie api and only consists of a handful of
    files which are put into ${WWWDIR}, so the port is just a more
    coventient way to put the contents of the tarball into
    "${PREFIX}/www/angie-console-light/".
    
    Documentation can be found at
    https://en.angie.software/angie/docs/configuration/monitoring/
    
    PR:     288098
---
 www/Makefile                                 |  1 +
 www/angie-console-light/Makefile             | 22 ++++++++++++++++++++++
 www/angie-console-light/distinfo             |  3 +++
 www/angie-console-light/files/pkg-message.in | 25 +++++++++++++++++++++++++
 www/angie-console-light/pkg-descr            |  2 ++
 www/angie-console-light/pkg-plist            | 19 +++++++++++++++++++
 6 files changed, 72 insertions(+)

diff --git a/www/Makefile b/www/Makefile
index f3e8109456cd..c1b5bec1f294 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -31,6 +31,7 @@
     SUBDIR += amphetadesk
     SUBDIR += analog
     SUBDIR += angie
+    SUBDIR += angie-console-light
     SUBDIR += angie-module-auth-jwt
     SUBDIR += angie-module-auth-spnego
     SUBDIR += angie-module-brotli
diff --git a/www/angie-console-light/Makefile b/www/angie-console-light/Makefile
new file mode 100644
index 000000000000..40250951b817
--- /dev/null
+++ b/www/angie-console-light/Makefile
@@ -0,0 +1,22 @@
+PORTNAME=	angie-console-light
+DISTVERSION=	1.8.0
+CATEGORIES=	www
+MASTER_SITES=	https://download.angie.software/files/angie-console-light/
+
+MAINTAINER=	sko@rostwald.de
+COMMENT=	Angie Web Monitoring Panel
+WWW=		https://en.angie.software/angie/docs/configuration/monitoring/
+
+LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+NO_ARCH=	yes
+NO_BUILD=	yes
+
+SUB_FILES=	pkg-message
+
+do-install:
+	${MKDIR} ${STAGEDIR}${WWWDIR}
+	(cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR})
+
+.include <bsd.port.mk>
diff --git a/www/angie-console-light/distinfo b/www/angie-console-light/distinfo
new file mode 100644
index 000000000000..56eeb2a91f0d
--- /dev/null
+++ b/www/angie-console-light/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1751971747
+SHA256 (angie-console-light-1.8.0.tar.gz) = f1bb4d12c87c31efcc4322d8d222096a5dd49d91f3a07aba429ab255826f3bce
+SIZE (angie-console-light-1.8.0.tar.gz) = 1074980
diff --git a/www/angie-console-light/files/pkg-message.in b/www/angie-console-light/files/pkg-message.in
new file mode 100644
index 000000000000..a8a03c74d166
--- /dev/null
+++ b/www/angie-console-light/files/pkg-message.in
@@ -0,0 +1,25 @@
+[
+{ type: install
+  message: <<EOM
+For configuration details follow the documentation at
+https://en.angie.software/angie/docs/configuration/monitoring/
+
+Minimal configuration:
+---
+location /console/ {
+	allow 127.0.0.1;
+	deny all;
+
+	auto_redirect on;
+
+	alias %%WWWDIR%%/html/;
+	index index.html;
+
+	location /console/api/ {
+		api /status/;
+	}
+}
+---
+EOM
+}
+]
diff --git a/www/angie-console-light/pkg-descr b/www/angie-console-light/pkg-descr
new file mode 100644
index 000000000000..8d1b42097b10
--- /dev/null
+++ b/www/angie-console-light/pkg-descr
@@ -0,0 +1,2 @@
+Console Light is a lightweight, real-time activity monitoring interface that
+displays key server load and performance metrics.
diff --git a/www/angie-console-light/pkg-plist b/www/angie-console-light/pkg-plist
new file mode 100644
index 000000000000..8a42972177a7
--- /dev/null
+++ b/www/angie-console-light/pkg-plist
@@ -0,0 +1,19 @@
+%%WWWDIR%%/LICENSE
+%%WWWDIR%%/html/assets/app.bundle.js
+%%WWWDIR%%/html/assets/app.bundle.js.LICENSE.txt
+%%WWWDIR%%/html/assets/editor.worker.bundle.js
+%%WWWDIR%%/html/assets/images/Fav16-danger.png
+%%WWWDIR%%/html/assets/images/Fav16-warn.png
+%%WWWDIR%%/html/assets/images/Fav16.png
+%%WWWDIR%%/html/assets/images/arrow.svg
+%%WWWDIR%%/html/assets/images/chart.svg
+%%WWWDIR%%/html/assets/images/copy.svg
+%%WWWDIR%%/html/assets/images/danger.svg
+%%WWWDIR%%/html/assets/images/gear.svg
+%%WWWDIR%%/html/assets/images/ok.svg
+%%WWWDIR%%/html/assets/images/pencil-red.svg
+%%WWWDIR%%/html/assets/images/pencil.svg
+%%WWWDIR%%/html/assets/images/snowflake.svg
+%%WWWDIR%%/html/assets/images/sun.svg
+%%WWWDIR%%/html/assets/images/warning.svg
+%%WWWDIR%%/html/index.html