forked from SynoCommunity/spksrc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Gitea to v1.21.4 (SynoCommunity#5929)
* Try to use redesigned shared folder structure * Updates after code review * Update upgrade uifile * Improve appearance on upgrade * Bump to 1.20.6 * Add polish translations * Update Gitea to v1.21.4 * Bump other makefiles * Apply suggestions from code review Co-authored-by: Michael Reid <[email protected]> --------- Co-authored-by: Michael Reid <[email protected]>
- Loading branch information
Showing
9 changed files
with
108 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
gitea-1.17.3.tar.gz SHA1 1ddc9f464214a9ae6c08ece66a66da6d5129ab5c | ||
gitea-1.17.3.tar.gz SHA256 37c5357802395d7c0684b5a09cd2c2cbf426be20a7fa91178f4e8923584f7feb | ||
gitea-1.17.3.tar.gz MD5 3565b8d2f77687f95a3d95dd9680673c | ||
gitea-1.21.4.tar.gz SHA1 e51c2fcec35ccfe13597ae1726545459e4f3ad80 | ||
gitea-1.21.4.tar.gz SHA256 d6464552df69636bfe5883e54870fe31eec0e602954ab16b94d297f3913498a5 | ||
gitea-1.21.4.tar.gz MD5 b1e10d3c9b12d26003ba7827d8b74e4d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,32 @@ | ||
SPK_NAME = gitea | ||
SPK_VERS = 1.17.3 | ||
SPK_REV = 10 | ||
SPK_VERS = 1.21.4 | ||
SPK_REV = 11 | ||
SPK_ICON = src/$(SPK_NAME).png | ||
|
||
MAINTAINER = wkobiela | ||
DESCRIPTION = Gitea is a community managed lightweight code hosting solution written in Go. | ||
DISPLAY_NAME = Gitea | ||
CHANGELOG = "1. Update to v1.17.3." | ||
CHANGELOG = "1. Update to v1.21.4." | ||
|
||
LICENSE = MIT | ||
|
||
DEPENDS = cross/$(SPK_NAME) | ||
SPK_DEPENDS = "git>=2" | ||
|
||
SERVICE_USER = auto | ||
SERVICE_SETUP = src/service-setup.sh | ||
STARTABLE = yes | ||
WIZARDS_DIR = src/wizard | ||
SERVICE_WIZARD_SHARE = wizard_gitea_dir | ||
|
||
# Use shared folder provided by DSM for DSM 6 too (not only for DSM 7). | ||
USE_DATA_SHARE_WORKER = yes | ||
SERVICE_USER = auto | ||
SERVICE_SETUP = src/service-setup.sh | ||
STARTABLE = yes | ||
WIZARDS_DIR = src/wizard/ | ||
SERVICE_WIZARD_SHARENAME = wizard_shared_folder_name | ||
|
||
SERVICE_PORT = 8418 | ||
SERVICE_PORT_TITLE = Gitea (HTTP) | ||
SERVICE_PORT_TITLE = $(DISPLAY_NAME) (HTTP) | ||
ADMIN_PORT = $(SERVICE_PORT) | ||
|
||
include ../../mk/spksrc.spk.mk | ||
|
||
.PHONY: gitea_extra_install | ||
gitea_extra_install: | ||
@$(MSG) "Install config.ini file" | ||
@install -m 755 -d $(STAGING_DIR)/var | ||
@install -m 644 src/config.ini $(STAGING_DIR)/var/config.ini |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[repository] | ||
ROOT = @share_path@/gitea-repositories | ||
[server] | ||
SSH_DOMAIN = @ip_address@ | ||
DOMAIN = @ip_address@ | ||
ROOT_URL = http://@ip_address@:@service_port@/ | ||
[lfs] | ||
PATH = @share_path@/lfs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,31 @@ | ||
[ | ||
{ | ||
"step_title": "Basic configuration", | ||
"step_title": "Gitea configuration", | ||
"items": [ | ||
{ | ||
"type": "combobox", | ||
"desc": "Please select a volume to use for the gitea folder", | ||
"subitems": [ | ||
{ | ||
"key": "wizard_volume", | ||
"desc": "volume name", | ||
"displayField": "display_name", | ||
"valueField": "volume_path", | ||
"editable": false, | ||
"mode": "remote", | ||
"api_store": { | ||
"api": "SYNO.Core.Storage.Volume", | ||
"method": "list", | ||
"version": 1, | ||
"baseParams": { | ||
"limit": -1, | ||
"offset": 0, | ||
"location": "internal" | ||
}, | ||
"root": "volumes", | ||
"idProperty": "volume_path", | ||
"fields": [ | ||
"display_name", | ||
"volume_path" | ||
] | ||
}, | ||
"validator": { | ||
"fn": "{console.log(arguments);return true;}" | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "textfield", | ||
"desc": "Repository shared folder name (using the volume chosen above)", | ||
"desc": "Please specify a shared folder for this package. This share is created at installation when it does not already exist.", | ||
"subitems": [ | ||
{ | ||
"key": "wizard_gitea_dir", | ||
"desc": "Repository shared folder", | ||
"defaultValue": "git", | ||
"key": "wizard_shared_folder_name", | ||
"desc": "Shared Folder", | ||
"defaultValue": "gitea-share", | ||
"validator": { | ||
"allowBlank": false, | ||
"regex": { | ||
"expr": "/^[\\w _-]+$/", | ||
"errorText": "Subdirectories are not supported." | ||
"errorText": "Subdirectories are not supported." | ||
} | ||
} | ||
} | ||
] | ||
} | ||
}, { | ||
"desc": "If you let the installer create the shared folder, it is created under the same volume as the package is installed. If you want to use a different volume for the share, you must create the shared folder in DSM Control Panel before, and enter the name of the existing share in the field above." | ||
}, { | ||
"desc": "" | ||
}, { | ||
"desc": "This package runs as internal service user <b>'sc-gitea'</b> in DSM. The shared folder above is configured at installation time to be accessible by this user. Please read <a target=\"_blank\" href=\"https://github.com/SynoCommunity/spksrc/wiki/Permission-Management\">Permission Management</a> for details." | ||
} | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
[ | ||
{ | ||
"step_title": "Konfiguracja Gitea", | ||
"items": [ | ||
{ | ||
"type": "textfield", | ||
"desc": "Wybierz folder współdzielony. Jeśli jeszcze nie istnieje, zostanie stworzony podczas instalacji.", | ||
"subitems": [ | ||
{ | ||
"key": "wizard_shared_folder_name", | ||
"desc": "Folder wspóldzielony", | ||
"defaultValue": "gitea-share", | ||
"validator": { | ||
"allowBlank": false, | ||
"regex": { | ||
"expr": "/^[\\w _-]+$/", | ||
"errorText": "Podkatalogi nie są obsługiwane." | ||
} | ||
} | ||
} | ||
] | ||
}, { | ||
"desc": "Jeśli zezwolisz instalatorowi na utworzenie folderu współdzielonego, zostanie on utworzony na tym samym wolumenie, na którym instalowany jest pakiet. Jeśli chcesz użyć innego wolumenu, musisz wcześniej utworzyć folder współdzielony w Panelu Sterowania DSM i wpisać nazwę istniejącego folderu współdzielonego w powyższym polu." | ||
}, { | ||
"desc": "" | ||
}, { | ||
"desc": "Ten pakiet uruchamia się jako użytkownik usługi wewnętrznej <b>'sc-gitea'</b> w DSM. Powyższy folder współdzielony jest skonfigurowany podczas instalacji tak, aby był dostępny dla tego użytkownika. Przeczytaj <a target=\"_blank\" href=\"https://github.com/SynoCommunity/spksrc/wiki/Permission-Management\">Zarządzanie uprawnieniami</a>, aby uzyskać szczegółowe informacje." | ||
} | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[{ | ||
"step_title": "Updating Gitea", | ||
"items": [{ | ||
"desc": "Please, be aware that configuration file may require some manual adjustments." | ||
},{ | ||
"desc": "Check Gitea admin panel after upgrade and adjust <b>/var/packages/gitea/var/conf.ini</b> as needed." | ||
},{ | ||
"desc": "Remember to restart Gitea package afterwards." | ||
}] | ||
}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[{ | ||
"step_title": "Aktualizacja Gitea", | ||
"items": [{ | ||
"desc": "Uwaga: plik konfiguracyjny może wymagać manualnego dopasowania." | ||
},{ | ||
"desc": "Po aktualizacji sprawdź panel administracyjny Gitea i edytuj plik <b>/var/packages/gitea/var/conf.ini</b> według potrzeb." | ||
},{ | ||
"desc": "Pamiętaj, aby po zmianach ponownie uruchomić pakiet Gitea." | ||
}] | ||
}] |