pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
galene: Install static files and use them by default
Module Name: pkgsrc-wip
Committed By: Leonardo Taccari <iamleot%gmail.com@localhost>
Pushed By: leot
Date: Mon Oct 19 23:48:14 2026 +0200
Changeset: c484b5ed493f8bf0bfb26b0858259bbf9e8a972d
Modified Files:
galene/Makefile
galene/PLIST
galene/distinfo
Added Files:
galene/patches/patch-galene.go
Removed Files:
galene/TODO
Log Message:
galene: Install static files and use them by default
Galene server needs static files to run otherwise it will fail to
start.
Install them and also adjust the default for `-static' to automatically
pick them up.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=c484b5ed493f8bf0bfb26b0858259bbf9e8a972d
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
galene/Makefile | 12 +++++++++++
galene/PLIST | 48 ++++++++++++++++++++++++++++++++++++++++++
galene/TODO | 3 ---
galene/distinfo | 1 +
galene/patches/patch-galene.go | 15 +++++++++++++
5 files changed, 76 insertions(+), 3 deletions(-)
diffs:
diff --git a/galene/Makefile b/galene/Makefile
index 1294c0066d..82594976e3 100644
--- a/galene/Makefile
+++ b/galene/Makefile
@@ -12,6 +12,18 @@ LICENSE= mit
MAKE_ENV+= CGO_ENABLED=0
+SUBST_CLASSES+= paths
+SUBST_STAGE.paths= pre-configure
+SUBST_MESSAGE.paths= Adjust paths for pkgsrc
+SUBST_FILES.paths= galene.go
+SUBST_VARS.paths= PREFIX
+
+INSTALLATION_DIRS+= share/galene/static
+
+post-install:
+ cd ${WRKSRC}/static && \
+ ${PAX} -rw -pp . ${DESTDIR}${PREFIX}/share/galene/static
+
.include "go-modules.mk"
.include "../../lang/go/go-module.mk"
diff --git a/galene/PLIST b/galene/PLIST
index 576684b414..6c7e4a4f6b 100644
--- a/galene/PLIST
+++ b/galene/PLIST
@@ -1,3 +1,51 @@
@comment $NetBSD$
bin/galene
bin/galenectl
+share/galene/static/404.css
+share/galene/static/404.html
+share/galene/static/background-blur-worker.js
+share/galene/static/camera-test.js
+share/galene/static/change-password.css
+share/galene/static/change-password.html
+share/galene/static/change-password.js
+share/galene/static/common.css
+share/galene/static/example/example.html
+share/galene/static/example/example.js
+share/galene/static/filter.js
+share/galene/static/galene.css
+share/galene/static/galene.html
+share/galene/static/galene.js
+share/galene/static/index.html
+share/galene/static/mainpage.css
+share/galene/static/mainpage.js
+share/galene/static/management.js
+share/galene/static/protocol.js
+share/galene/static/settings.js
+share/galene/static/stats.html
+share/galene/static/stats.js
+share/galene/static/third-party/contextual/LICENSE
+share/galene/static/third-party/contextual/contextual.css
+share/galene/static/third-party/contextual/contextual.js
+share/galene/static/third-party/fontawesome/LICENSE.txt
+share/galene/static/third-party/fontawesome/css/all.min.css
+share/galene/static/third-party/fontawesome/css/brands.min.css
+share/galene/static/third-party/fontawesome/css/fontawesome.min.css
+share/galene/static/third-party/fontawesome/css/regular.min.css
+share/galene/static/third-party/fontawesome/css/solid.min.css
+share/galene/static/third-party/fontawesome/css/svg-with-js.min.css
+share/galene/static/third-party/fontawesome/css/v4-font-face.min.css
+share/galene/static/third-party/fontawesome/css/v4-shims.min.css
+share/galene/static/third-party/fontawesome/css/v5-font-face.min.css
+share/galene/static/third-party/fontawesome/webfonts/fa-brands-400.ttf
+share/galene/static/third-party/fontawesome/webfonts/fa-brands-400.woff2
+share/galene/static/third-party/fontawesome/webfonts/fa-regular-400.ttf
+share/galene/static/third-party/fontawesome/webfonts/fa-regular-400.woff2
+share/galene/static/third-party/fontawesome/webfonts/fa-solid-900.ttf
+share/galene/static/third-party/fontawesome/webfonts/fa-solid-900.woff2
+share/galene/static/third-party/fontawesome/webfonts/fa-v4compatibility.ttf
+share/galene/static/third-party/fontawesome/webfonts/fa-v4compatibility.woff2
+share/galene/static/third-party/toastify/LICENSE
+share/galene/static/third-party/toastify/toastify-es.js
+share/galene/static/third-party/toastify/toastify.css
+share/galene/static/third-party/toastify/toastify.js
+share/galene/static/tsconfig.json
diff --git a/galene/TODO b/galene/TODO
deleted file mode 100644
index 582dec00c3..0000000000
--- a/galene/TODO
+++ /dev/null
@@ -1,3 +0,0 @@
-- Install static files and possibly work out of the box if user does
- not pass `-static' option (that could be eventually done in an rc.d
- script too without patching)
diff --git a/galene/distinfo b/galene/distinfo
index fda274f4f6..ce16bf34a7 100644
--- a/galene/distinfo
+++ b/galene/distinfo
@@ -171,3 +171,4 @@ Size (golang.org_x_time_@v_v0.14.0.mod) = 36 bytes
BLAKE2s (golang.org_x_time_@v_v0.14.0.zip) = 7ca183e6c7074459f26742a0a638e368549a59adea537756f158fe0fab44452c
SHA512 (golang.org_x_time_@v_v0.14.0.zip) = 6728d1cceb599793003146f944f4610e3ef160aafedc377d076f07f34256d81b4f88956de9369aded2a4737051187217e9520b08ae786e2ce957e3b3efc87f8a
Size (golang.org_x_time_@v_v0.14.0.zip) = 15014 bytes
+SHA1 (patch-galene.go) = 4b745110c6fd51a17fa038fe51235462092f6ddb
diff --git a/galene/patches/patch-galene.go b/galene/patches/patch-galene.go
new file mode 100644
index 0000000000..cbe56481d9
--- /dev/null
+++ b/galene/patches/patch-galene.go
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Prefer pkgsrc's provided files instead of falling back to relative path.
+
+--- galene.go.orig 2026-10-19 21:22:16.070081678 +0000
++++ galene.go
+@@ -28,7 +28,7 @@ func main() {
+ var udpRange string
+
+ flag.StringVar(&httpAddr, "http", ":8443", "web server `address`")
+- flag.StringVar(&webserver.StaticRoot, "static", "./static/",
++ flag.StringVar(&webserver.StaticRoot, "static", "@PREFIX@/share/galene/static/",
+ "web server root `directory`")
+ flag.BoolVar(&webserver.Insecure, "insecure", false,
+ "act as an HTTP server rather than HTTPS")
Home |
Main Index |
Thread Index |
Old Index