mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
gitea: update to 1.20.0.
This commit is contained in:
parent
f35603904d
commit
d433185948
3 changed files with 68 additions and 32 deletions
|
@ -1,15 +1,15 @@
|
||||||
--- a/custom/conf/app.example.ini
|
--- gitea-1.20.0/custom/conf/app.example.ini.orig 2023-07-16 21:24:12.000000000 +0200
|
||||||
+++ b/custom/conf/app.example.ini
|
+++ gitea-1.20.0/custom/conf/app.example.ini 2023-07-19 18:51:01.186945949 +0200
|
||||||
@@ -15,7 +15,7 @@
|
@@ -47,7 +47,7 @@
|
||||||
APP_NAME = ; Gitea: Git with a cup of tea
|
APP_NAME = ; Gitea: Git with a cup of tea
|
||||||
;;
|
;;
|
||||||
;; RUN_USER will automatically detect the current user - but you can set it here change it if you run locally
|
;; RUN_USER will automatically detect the current user - but you can set it here change it if you run locally
|
||||||
-RUN_USER = ; git
|
-RUN_USER = ; git
|
||||||
+RUN_USER = _gitea
|
+RUN_USER = _gitea
|
||||||
;;
|
;;
|
||||||
;; Application run mode, affects performance and debugging. Either "dev", "prod" or "test", default is "prod"
|
;; Application run mode, affects performance and debugging: "dev" or "prod", default is "prod"
|
||||||
RUN_MODE = ; prod
|
;; Mode "dev" makes Gitea easier to develop and debug, values other than "dev" are treated as "prod" which is for production use.
|
||||||
@@ -68,7 +68,7 @@ RUN_MODE = ; prod
|
@@ -117,7 +117,7 @@
|
||||||
;PER_WRITE_PER_KB_TIMEOUT = 30s
|
;PER_WRITE_PER_KB_TIMEOUT = 30s
|
||||||
;;
|
;;
|
||||||
;; Permission for unix socket
|
;; Permission for unix socket
|
||||||
|
@ -18,25 +18,25 @@
|
||||||
;;
|
;;
|
||||||
;; Local (DMZ) URL for Gitea workers (such as SSH update) accessing web service.
|
;; Local (DMZ) URL for Gitea workers (such as SSH update) accessing web service.
|
||||||
;; In most cases you do not need to change the default value.
|
;; In most cases you do not need to change the default value.
|
||||||
@@ -101,7 +101,7 @@ RUN_MODE = ; prod
|
@@ -156,7 +156,7 @@
|
||||||
;SSH_LISTEN_PORT = %(SSH_PORT)s
|
;SSH_LISTEN_PORT = %(SSH_PORT)s
|
||||||
;;
|
;;
|
||||||
;; Root path of SSH directory, default is '~/.ssh', but you have to use '/home/git/.ssh'.
|
;; Root path of SSH directory, default is '~/.ssh', but you have to use '/home/git/.ssh'.
|
||||||
-;SSH_ROOT_PATH =
|
-;SSH_ROOT_PATH =
|
||||||
+SSH_ROOT_PATH = /var/lib/gitea
|
+SSH_ROOT_PATH = /var/lib/gitea/.ssh
|
||||||
;;
|
;;
|
||||||
;; Gitea will create a authorized_keys file by default when it is not using the internal ssh server
|
;; Gitea will create a authorized_keys file by default when it is not using the internal ssh server
|
||||||
;; If you intend to use the AuthorizedKeysCommand functionality then you should turn this off.
|
;; If you intend to use the AuthorizedKeysCommand functionality then you should turn this off.
|
||||||
@@ -221,7 +221,7 @@ RUN_MODE = ; prod
|
@@ -275,7 +275,7 @@
|
||||||
;;
|
;;
|
||||||
;; Root directory containing templates and static files.
|
;; Root directory containing templates and static files.
|
||||||
;; default is the path where Gitea is executed
|
;; default is the path where Gitea is executed
|
||||||
-;STATIC_ROOT_PATH =
|
-;STATIC_ROOT_PATH = ; Will default to the built-in value _`StaticRootPath`_
|
||||||
+STATIC_ROOT_PATH = /var/lib/gitea
|
+STATIC_ROOT_PATH = /var/lib/gitea
|
||||||
;;
|
;;
|
||||||
;; Default path for App data
|
;; Default path for App data
|
||||||
;APP_DATA_PATH = data
|
;APP_DATA_PATH = data ; relative paths will be made absolute with _`AppWorkPath`_
|
||||||
@@ -284,10 +284,10 @@ LFS_JWT_SECRET =
|
@@ -338,10 +338,10 @@
|
||||||
;;
|
;;
|
||||||
;; MySQL Configuration
|
;; MySQL Configuration
|
||||||
;;
|
;;
|
||||||
|
@ -51,7 +51,7 @@
|
||||||
;PASSWD = ;Use PASSWD = `your password` for quoting if you use special characters in the password.
|
;PASSWD = ;Use PASSWD = `your password` for quoting if you use special characters in the password.
|
||||||
;SSL_MODE = false ; either "false" (default), "true", or "skip-verify"
|
;SSL_MODE = false ; either "false" (default), "true", or "skip-verify"
|
||||||
;CHARSET = utf8mb4 ;either "utf8" or "utf8mb4", default is "utf8mb4".
|
;CHARSET = utf8mb4 ;either "utf8" or "utf8mb4", default is "utf8mb4".
|
||||||
@@ -310,8 +310,8 @@ USER = root
|
@@ -364,8 +364,8 @@
|
||||||
;;
|
;;
|
||||||
;; SQLite Configuration
|
;; SQLite Configuration
|
||||||
;;
|
;;
|
||||||
|
@ -60,9 +60,9 @@
|
||||||
+DB_TYPE = sqlite3
|
+DB_TYPE = sqlite3
|
||||||
+PATH = /var/lib/gitea/data/gitea.db
|
+PATH = /var/lib/gitea/data/gitea.db
|
||||||
;SQLITE_TIMEOUT = ; Query timeout defaults to: 500
|
;SQLITE_TIMEOUT = ; Query timeout defaults to: 500
|
||||||
|
;SQLITE_JOURNAL_MODE = ; defaults to sqlite database default (often DELETE), can be used to enable WAL mode. https://www.sqlite.org/pragma.html#pragma_journal_mode
|
||||||
;;
|
;;
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
@@ -545,7 +545,7 @@
|
||||||
@@ -495,7 +495,7 @@ APP_ID = ; e.g. http://localhost:3000/
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
;; Root path for the log files - defaults to %(GITEA_WORK_DIR)/log
|
;; Root path for the log files - defaults to %(GITEA_WORK_DIR)/log
|
||||||
|
@ -71,17 +71,27 @@
|
||||||
;;
|
;;
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
;; Main Logger
|
;; Main Logger
|
||||||
@@ -818,7 +818,8 @@ ROUTER = console
|
@@ -873,11 +873,11 @@
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
;; Root path for storing all repository data. By default, it is set to %(APP_DATA_PATH)/gitea-repositories.
|
|
||||||
;; A relative path is interpreted as %(GITEA_WORK_DIR)/%(ROOT)
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
-;[repository]
|
||||||
|
+[repository]
|
||||||
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
;; Root path for storing all repository data. By default, it is set to %(APP_DATA_PATH)s/gitea-repositories.
|
||||||
|
;; A relative path is interpreted as _`AppWorkPath`_/%(ROOT)s
|
||||||
-;ROOT =
|
-;ROOT =
|
||||||
+ROOT = /var/lib/gitea/repositories
|
+ROOT = /var/lib/gitea/repositories
|
||||||
+
|
|
||||||
;;
|
;;
|
||||||
;; The script type this server supports. Usually this is `bash`, but some users report that only `sh` is available.
|
;; The script type this server supports. Usually this is `bash`, but some users report that only `sh` is available.
|
||||||
;SCRIPT_TYPE = bash
|
;SCRIPT_TYPE = bash
|
||||||
@@ -916,7 +917,7 @@ ROUTER = console
|
@@ -970,16 +970,16 @@
|
||||||
|
|
||||||
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
-;[repository.local]
|
||||||
|
+[repository.local]
|
||||||
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
;;
|
;;
|
||||||
;; Path for local repository copy. Defaults to `tmp/local-repo` (content gets deleted on gitea restart)
|
;; Path for local repository copy. Defaults to `tmp/local-repo` (content gets deleted on gitea restart)
|
||||||
|
@ -90,7 +100,12 @@
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
@@ -928,7 +929,7 @@ ROUTER = console
|
-;[repository.upload]
|
||||||
|
+[repository.upload]
|
||||||
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
;;
|
||||||
|
@@ -987,7 +987,7 @@
|
||||||
;ENABLED = true
|
;ENABLED = true
|
||||||
;;
|
;;
|
||||||
;; Path for uploads. Defaults to `data/tmp/uploads` (content gets deleted on gitea restart)
|
;; Path for uploads. Defaults to `data/tmp/uploads` (content gets deleted on gitea restart)
|
||||||
|
@ -99,16 +114,30 @@
|
||||||
;;
|
;;
|
||||||
;; Comma-separated list of allowed file extensions (`.zip`), mime types (`text/plain`) or wildcard type (`image/*`, `audio/*`, `video/*`). Empty value or `*/*` allows all types.
|
;; Comma-separated list of allowed file extensions (`.zip`), mime types (`text/plain`) or wildcard type (`image/*`, `audio/*`, `video/*`). Empty value or `*/*` allows all types.
|
||||||
;ALLOWED_TYPES =
|
;ALLOWED_TYPES =
|
||||||
@@ -1264,7 +1265,7 @@ ROUTER = console
|
@@ -1324,7 +1324,7 @@
|
||||||
|
|
||||||
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
-;[indexer]
|
||||||
|
+[indexer]
|
||||||
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
;;
|
||||||
|
@@ -1335,7 +1335,7 @@
|
||||||
;ISSUE_INDEXER_TYPE = bleve
|
;ISSUE_INDEXER_TYPE = bleve
|
||||||
;;
|
;;
|
||||||
;; Issue indexer storage path, available when ISSUE_INDEXER_TYPE is bleve
|
;; Issue indexer storage path, available when ISSUE_INDEXER_TYPE is bleve
|
||||||
-;ISSUE_INDEXER_PATH = indexers/issues.bleve
|
-;ISSUE_INDEXER_PATH = indexers/issues.bleve ; Relative paths will be made absolute against _`AppWorkPath`_.
|
||||||
+ISSUE_INDEXER_PATH = /var/lib/gitea/indexers/issues.bleve
|
+ISSUE_INDEXER_PATH = /var/lib/gitea/indexers/issues.bleve
|
||||||
;;
|
;;
|
||||||
;; Issue indexer connection string, available when ISSUE_INDEXER_TYPE is elasticsearch
|
;; Issue indexer connection string, available when ISSUE_INDEXER_TYPE is elasticsearch or meilisearch
|
||||||
;ISSUE_INDEXER_CONN_STR = http://elastic:changeme@localhost:9200
|
;ISSUE_INDEXER_CONN_STR = http://elastic:changeme@localhost:9200
|
||||||
@@ -1650,7 +1651,7 @@ ROUTER = console
|
@@ -1738,11 +1738,11 @@
|
||||||
|
|
||||||
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
-;[picture]
|
||||||
|
+[picture]
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
;;
|
;;
|
||||||
|
@ -117,12 +146,17 @@
|
||||||
;REPOSITORY_AVATAR_UPLOAD_PATH = data/repo-avatars
|
;REPOSITORY_AVATAR_UPLOAD_PATH = data/repo-avatars
|
||||||
;;
|
;;
|
||||||
;; How Gitea deals with missing repository avatars
|
;; How Gitea deals with missing repository avatars
|
||||||
@@ -2298,7 +2299,7 @@ ROUTER = console
|
@@ -2483,11 +2483,11 @@
|
||||||
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
;; lfs storage will override storage
|
||||||
|
;;
|
||||||
|
-;[lfs]
|
||||||
|
+[lfs]
|
||||||
;STORAGE_TYPE = local
|
;STORAGE_TYPE = local
|
||||||
;;
|
;;
|
||||||
;; Where your lfs files reside, default is data/lfs.
|
;; Where your lfs files reside, default is data/lfs.
|
||||||
-;PATH = data/lfs
|
-;PATH = data/lfs
|
||||||
+PATH = /var/lib/gitea/lfs
|
+PATH = /var/lib/gitea/lfs
|
||||||
|
;;
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;; override the minio base path if storage type is minio
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;MINIO_BASE_PATH = lfs/
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'gitea'
|
# Template file for 'gitea'
|
||||||
pkgname=gitea
|
pkgname=gitea
|
||||||
version=1.18.5
|
version=1.20.0
|
||||||
revision=2
|
revision=1
|
||||||
build_style=go
|
build_style=go
|
||||||
go_import_path=code.gitea.io/gitea
|
go_import_path=code.gitea.io/gitea
|
||||||
go_ldflags=" -X main.Version=${version}"
|
go_ldflags=" -X main.Version=${version}"
|
||||||
|
@ -31,7 +31,7 @@ license="MIT"
|
||||||
homepage="https://gitea.io"
|
homepage="https://gitea.io"
|
||||||
changelog="https://raw.githubusercontent.com/go-gitea/gitea/main/CHANGELOG.md"
|
changelog="https://raw.githubusercontent.com/go-gitea/gitea/main/CHANGELOG.md"
|
||||||
distfiles="https://dl.gitea.io/gitea/${version}/gitea-src-${version}.tar.gz"
|
distfiles="https://dl.gitea.io/gitea/${version}/gitea-src-${version}.tar.gz"
|
||||||
checksum=3863e7e1f92761fce6b808ba08bf26fc8878b9136b6950e6a419b6d2a4f794a9
|
checksum=304d9961279a1ebbbfef00450665cba5ff5d2a99745abb6b980aa6cf0dfbb6ae
|
||||||
|
|
||||||
system_accounts="_gitea"
|
system_accounts="_gitea"
|
||||||
_gitea_homedir="/var/lib/gitea"
|
_gitea_homedir="/var/lib/gitea"
|
||||||
|
|
2
srcpkgs/gitea/update
Normal file
2
srcpkgs/gitea/update
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
site=https://dl.gitea.com/gitea/
|
||||||
|
pattern="gitea/\K[\d.]+"
|
Loading…
Add table
Reference in a new issue