diff options
Diffstat (limited to 'www/forgejo')
-rw-r--r-- | www/forgejo/Makefile | 17 | ||||
-rw-r--r-- | www/forgejo/distinfo | 6 | ||||
-rw-r--r-- | www/forgejo/files/app.ini.sample.in | 5 | ||||
-rw-r--r-- | www/forgejo/files/forgejo.in | 3 |
4 files changed, 17 insertions, 14 deletions
diff --git a/www/forgejo/Makefile b/www/forgejo/Makefile index ac06b47606cc..2c1a2f9a004c 100644 --- a/www/forgejo/Makefile +++ b/www/forgejo/Makefile @@ -1,7 +1,6 @@ PORTNAME= forgejo DISTVERSIONPREFIX= v -DISTVERSION= 10.0.3 -PORTREVISION= 1 +DISTVERSION= 11.0.3 CATEGORIES= www MASTER_SITES= https://codeberg.org/forgejo/forgejo/releases/download/${DISTVERSIONPREFIX}${DISTVERSION}/ DISTNAME= forgejo-src-${DISTVERSION} @@ -15,9 +14,11 @@ LICENSE_FILE= ${WRKSRC}/LICENSE RUN_DEPENDS= git:devel/git -USES= cpe gmake go:1.23,no_targets +USES= cpe gmake go:no_targets USE_RC_SUBR= forgejo +PIE_UNSAFE= yes + CONFLICTS_INSTALL= forgejo[0-79]* EXTRACT_AFTER_ARGS= --strip-components 1 @@ -56,11 +57,11 @@ DAEMONARGS= -f SUB_LIST+= DAEMONARGS="${DAEMONARGS}" SSP_UNSAFE= true -LDFLAGS+= "'-X "code.gitea.io/gitea/modules/setting.CustomPath=${PREFIX}/etc/forgejo"'" -LDFLAGS+= "'-X "code.gitea.io/gitea/modules/setting.AppWorkPath=${PREFIX}/share/forgejo"'" -MAKE_ARGS= GOPATH=${WRKDIR} \ - TAGS="${GO_TAGS}" \ - GOFLAGS="-buildvcs=false" +LDFLAGS+= "'-X "forgejo.org/modules/setting.CustomPath=${PREFIX}/etc/forgejo"'" \ + "'-X "forgejo.org/modules/setting.AppWorkPath=${PREFIX}/share/forgejo"'" +MAKE_ARGS= GOFLAGS="-buildvcs=false" \ + GOPATH=${WRKDIR} \ + TAGS="${GO_TAGS}" ALL_TARGET= backend MAKE_JOBS_UNSAFE= yes diff --git a/www/forgejo/distinfo b/www/forgejo/distinfo index efbe922d8464..6fd607442f50 100644 --- a/www/forgejo/distinfo +++ b/www/forgejo/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1742780434 -SHA256 (forgejo-src-10.0.3.tar.gz) = 3d1931908bd30774d5d9d9c90e44848a8f6ea57115cb386fc027efdc47271733 -SIZE (forgejo-src-10.0.3.tar.gz) = 57115818 +TIMESTAMP = 1754378926 +SHA256 (forgejo-src-11.0.3.tar.gz) = 13dc8d6c2a829899c9b4f89451438e70962a9366ff41ce6db10c7bc4a4cce520 +SIZE (forgejo-src-11.0.3.tar.gz) = 55567487 diff --git a/www/forgejo/files/app.ini.sample.in b/www/forgejo/files/app.ini.sample.in index d625a9ebabab..b54e756578be 100644 --- a/www/forgejo/files/app.ini.sample.in +++ b/www/forgejo/files/app.ini.sample.in @@ -11,8 +11,9 @@ # choosing, INTERNAL_TOKEN is a 64-byte random number in BASE64 encoding, # JWT_SECRET is a 32-byte random number in BASE64 encoding. # -# You can generate the token using for example: -# openssl rand -base64 64 +# You can generate appropriate values using: +# gitea generate secret [INTERNAL_TOKEN|JWT_SECRET|LFS_JWT_SECRET|SECRET_KEY] +# and then copy that output to the appropriate place in this file. # # You can let Forgejo add these to the config for you; you need to make # app.ini writeable by the git user. diff --git a/www/forgejo/files/forgejo.in b/www/forgejo/files/forgejo.in index 2879239c7d68..026fed82b0b2 100644 --- a/www/forgejo/files/forgejo.in +++ b/www/forgejo/files/forgejo.in @@ -52,7 +52,8 @@ forgejo_start() { forgejo_prestart() { if checkyesno forgejo_configcheck_enable; then - if su -m ${forgejo_user} -c "%%PREFIX%%/sbin/${name} doctor check >/dev/null"; then + if su -m ${forgejo_user} -c "FORGEJO_CUSTOM=${forgejo_custom} \ + %%PREFIX%%/sbin/${name} doctor check >/dev/null"; then else echo "cannot start ${name} because of configuration errors. Run" >&2 echo " su -m git -c '${name} doctor check'" >&2 |