git: 5689c9ca02d3 - 2026Q2 - www/forgejo-lts: Fix non-BINDATA case
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 25 Apr 2026 18:19:09 UTC
The branch 2026Q2 has been updated by des:
URL: https://cgit.FreeBSD.org/ports/commit/?id=5689c9ca02d3d860fd9c063d75098a14272e9ee2
commit 5689c9ca02d3d860fd9c063d75098a14272e9ee2
Author: Dag-Erling Smørgrav <des@FreeBSD.org>
AuthorDate: 2026-04-25 18:17:59 +0000
Commit: Dag-Erling Smørgrav <des@FreeBSD.org>
CommitDate: 2026-04-25 18:19:04 +0000
www/forgejo-lts: Fix non-BINDATA case
DATADIR is still needed for static assets in the non-BINDATA case.
Point StaticRootPath at it. In the BINDATA case (which is the default),
the assets are linked into the binary and StaticRootPath is not used.
PR: 294619
Fixes: 7c546a3a09e0 ("www/forgejo-lts: Correct AppWorkPAth")
MFH: 2026Q2
(cherry picked from commit 6d5d169cad9968a142e928d69e95438aafd95774)
---
www/forgejo-lts/Makefile | 5 ++++-
www/forgejo-lts/pkg-plist | 1 +
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/www/forgejo-lts/Makefile b/www/forgejo-lts/Makefile
index c693df0c8e49..2656f6af4976 100644
--- a/www/forgejo-lts/Makefile
+++ b/www/forgejo-lts/Makefile
@@ -1,7 +1,7 @@
PORTNAME= forgejo
DISTVERSIONPREFIX= v
DISTVERSION= 11.0.12
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= www
MASTER_SITES= https://codeberg.org/forgejo/forgejo/releases/download/${DISTVERSIONFULL}/
PKGNAMESUFFIX= -lts
@@ -55,6 +55,7 @@ SQLITE_VARS= GO_TAGS+="sqlite sqlite_unlock_notify"
SSP_UNSAFE= true
LDFLAGS= "'-X "forgejo.org/modules/setting.CustomPath=${PREFIX}/etc/forgejo"'" \
+ "'-X "forgejo.org/modules/setting.StaticRootPath=${DATADIR}"'" \
"'-X "forgejo.org/modules/setting.AppWorkPath=${DBDIR}"'"
MAKE_ARGS= GOFLAGS="-buildvcs=false" \
GOPATH=${WRKDIR} \
@@ -83,7 +84,9 @@ do-install:
${STAGEDIR}${ETCDIR}/conf/app.ini.sample
${INSTALL_DATA} ${WRKSRC}/custom/conf/app.example.ini \
${STAGEDIR}${ETCDIR}/conf/app.ini.defaults
+.if ! ${PORT_OPTIONS:MBINDATA}
${MKDIR} ${STAGEDIR}${DATADIR}
+.endif
${MKDIR} ${STAGEDIR}${DBDIR}/data
${MKDIR} ${STAGEDIR}${DBDIR}/forgejo-repositories
${MKDIR} ${STAGEDIR}${LOGDIR}
diff --git a/www/forgejo-lts/pkg-plist b/www/forgejo-lts/pkg-plist
index 1c3cf47e64ce..a6868351c92f 100644
--- a/www/forgejo-lts/pkg-plist
+++ b/www/forgejo-lts/pkg-plist
@@ -1,6 +1,7 @@
@sample %%ETCDIR%%/conf/app.ini.sample
%%ETCDIR%%/conf/app.ini.defaults
sbin/forgejo
+%%NO_BINDATA%%@dir %%DATADIR%%
@dir(git,git,755) %%DBDIR%%
@dir(git,git,755) %%DBDIR%%/data
@dir(git,git,755) %%DBDIR%%/forgejo-repositories