From 26b8498bdb232cdb990cec90c82e923e0763b1a7 Mon Sep 17 00:00:00 2001 From: Eynix Date: Wed, 20 Feb 2019 16:14:53 +0100 Subject: [PATCH 1/6] Create the .ssh dir in the gitea home bugfix: error 500 when trying adding an SSH key to Gitea (https://domain.dom/gitea/user/settings/keys) --- scripts/_common.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/_common.sh b/scripts/_common.sh index 62fac07..598dd1d 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -9,6 +9,7 @@ final_path="/opt/$app" DATADIR="/home/$app" REPO_PATH="$DATADIR/repositories" DATA_PATH="$DATADIR/data" +SSH_PATH="$DATADIR/.ssh" # Detect the system architecture to download the right tarball # NOTE: `uname -m` is more accurate and universal than `arch` @@ -31,6 +32,7 @@ fi create_dir() { mkdir -p "$final_path/data" mkdir -p "$final_path/custom/conf" + mkdir -p "$SSH_PATH" mkdir -p "$REPO_PATH" mkdir -p "$DATA_PATH/avatars" mkdir -p "$DATA_PATH/attachments" From cd6564d6c1eec572868901936b2c4c5b6d8f8edb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Thu, 18 Jun 2020 20:03:28 +0000 Subject: [PATCH 2/6] Upgrade gitea to 1.12.0 --- README.md | 2 +- conf/source/arm.src | 4 ++-- conf/source/arm_1.11.src | 5 +++++ conf/source/armv7.src | 4 ++-- conf/source/armv7_1.11.src | 8 ++++++++ conf/source/i386.src | 4 ++-- conf/source/i386_1.11.src | 5 +++++ conf/source/x86-64.src | 4 ++-- conf/source/x86-64_1.11.src | 5 +++++ manifest.json | 2 +- scripts/upgrade | 4 ++++ 11 files changed, 37 insertions(+), 10 deletions(-) create mode 100644 conf/source/arm_1.11.src create mode 100644 conf/source/armv7_1.11.src create mode 100644 conf/source/i386_1.11.src create mode 100644 conf/source/x86-64_1.11.src diff --git a/README.md b/README.md index 200ebd3..6b0ed92 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Overview Gitea is a fork of Gogs a self-hosted Git service written in Go. Alternative to Github. -**Shipped version:** 1.11.6 +**Shipped version:** 1.12.0 Screenshots ----------- diff --git a/conf/source/arm.src b/conf/source/arm.src index a67c00a..0bd3ee1 100644 --- a/conf/source/arm.src +++ b/conf/source/arm.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.11.6/gitea-1.11.6-linux-arm-6 -SOURCE_SUM=2599497b95efd6013fa08a00a027cc89c45680e2b348dfa830520cf99eee694a +SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.12.0/gitea-1.12.0-linux-arm-6 +SOURCE_SUM=1cce3839d6beccb540cfdb45f644502bee1cd4a629c4b5bf611383a379ddda4b SOURCE_SUM_PRG=sha256sum SOURCE_FILENAME=gitea SOURCE_EXTRACT=false diff --git a/conf/source/arm_1.11.src b/conf/source/arm_1.11.src new file mode 100644 index 0000000..1a7b02d --- /dev/null +++ b/conf/source/arm_1.11.src @@ -0,0 +1,5 @@ +SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.11.7/gitea-1.11.7-linux-arm-6 +SOURCE_SUM=f106d1a846da7abfd8a7dbf20a5d9c60502e1ed034a31f5503f460dea4d0c77d +SOURCE_SUM_PRG=sha256sum +SOURCE_FILENAME=gitea +SOURCE_EXTRACT=false diff --git a/conf/source/armv7.src b/conf/source/armv7.src index 54950d2..7fbb38c 100644 --- a/conf/source/armv7.src +++ b/conf/source/armv7.src @@ -1,8 +1,8 @@ # The armv7 build is brocken # See : https://github.com/go-gitea/gitea/issues/6700 # Use temporary the armv6 binary -SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.11.6/gitea-1.11.6-linux-arm-6 -SOURCE_SUM=2599497b95efd6013fa08a00a027cc89c45680e2b348dfa830520cf99eee694a +SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.12.0/gitea-1.12.0-linux-arm-6 +SOURCE_SUM=1cce3839d6beccb540cfdb45f644502bee1cd4a629c4b5bf611383a379ddda4b SOURCE_SUM_PRG=sha256sum SOURCE_FILENAME=gitea SOURCE_EXTRACT=false diff --git a/conf/source/armv7_1.11.src b/conf/source/armv7_1.11.src new file mode 100644 index 0000000..52fa6b7 --- /dev/null +++ b/conf/source/armv7_1.11.src @@ -0,0 +1,8 @@ +# The armv7 build is brocken +# See : https://github.com/go-gitea/gitea/issues/6700 +# Use temporary the armv6 binary +SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.11.7/gitea-1.11.7-linux-arm-6 +SOURCE_SUM=f106d1a846da7abfd8a7dbf20a5d9c60502e1ed034a31f5503f460dea4d0c77d +SOURCE_SUM_PRG=sha256sum +SOURCE_FILENAME=gitea +SOURCE_EXTRACT=false diff --git a/conf/source/i386.src b/conf/source/i386.src index 9f28920..d55fe7f 100644 --- a/conf/source/i386.src +++ b/conf/source/i386.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.11.6/gitea-1.11.6-linux-386 -SOURCE_SUM=93d6fc4796699b1673d838b1c2f52c19ab9523374d0b3cad17d7910c5e86e693 +SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.12.0/gitea-1.12.0-linux-386 +SOURCE_SUM=4c68f8f398747e43027483063a2b30db095119ffe139003cf8a8c50c84438170 SOURCE_SUM_PRG=sha256sum SOURCE_FILENAME=gitea SOURCE_EXTRACT=false diff --git a/conf/source/i386_1.11.src b/conf/source/i386_1.11.src new file mode 100644 index 0000000..5c466c2 --- /dev/null +++ b/conf/source/i386_1.11.src @@ -0,0 +1,5 @@ +SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.11.7/gitea-1.11.7-linux-386 +SOURCE_SUM=e176c650ab1dd9735014e5a2c29f15585b988ead9d800d02763e0f4adf283496 +SOURCE_SUM_PRG=sha256sum +SOURCE_FILENAME=gitea +SOURCE_EXTRACT=false diff --git a/conf/source/x86-64.src b/conf/source/x86-64.src index 7753c8a..ae7786e 100644 --- a/conf/source/x86-64.src +++ b/conf/source/x86-64.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.11.6/gitea-1.11.6-linux-amd64 -SOURCE_SUM=0f12e4d471871deb43d8f6ee6fb5dd819c3f5a1a11fb145b17df5c8e8cd2fa3e +SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.12.0/gitea-1.12.0-linux-amd64 +SOURCE_SUM=4077f35a87d4cb08e88fcc69fe8645ff9559928276886b7da33080dd24c36d1e SOURCE_SUM_PRG=sha256sum SOURCE_FILENAME=gitea SOURCE_EXTRACT=false diff --git a/conf/source/x86-64_1.11.src b/conf/source/x86-64_1.11.src new file mode 100644 index 0000000..6e5dee4 --- /dev/null +++ b/conf/source/x86-64_1.11.src @@ -0,0 +1,5 @@ +SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.11.7/gitea-1.11.7-linux-amd64 +SOURCE_SUM=9261c23b0063132eba61f995561d3a1e76eabfadd7370f8dea2989180c36e2ff +SOURCE_SUM_PRG=sha256sum +SOURCE_FILENAME=gitea +SOURCE_EXTRACT=false diff --git a/manifest.json b/manifest.json index 7eed422..7d15a4b 100644 --- a/manifest.json +++ b/manifest.json @@ -9,7 +9,7 @@ }, "url": "http://gitea.io", "license": "MIT", - "version": "1.11.6~ynh1", + "version": "1.12.0~ynh1", "maintainer": { "name": "rafi59", "email": "rafi59_dev@srvmaison.fr.nf" diff --git a/scripts/upgrade b/scripts/upgrade index fb7e3f3..3a83dbc 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -175,6 +175,10 @@ case $upstream_version in ynh_setup_source $final_path source/${architecture}_1.10 restart_gitea ;& +"1.10."* ) + ynh_setup_source $final_path source/${architecture}_1.11 + restart_gitea +;& esac # Install gitea source From 256b57f1cb7916d72c3da87b44d780eac0aceeb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Mon, 22 Jun 2020 20:03:18 +0000 Subject: [PATCH 3/6] Upgrade gitea to 1.12.1 --- README.md | 2 +- conf/source/arm.src | 4 ++-- conf/source/armv7.src | 4 ++-- conf/source/i386.src | 4 ++-- conf/source/x86-64.src | 4 ++-- manifest.json | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 6b0ed92..f833bf9 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Overview Gitea is a fork of Gogs a self-hosted Git service written in Go. Alternative to Github. -**Shipped version:** 1.12.0 +**Shipped version:** 1.12.1 Screenshots ----------- diff --git a/conf/source/arm.src b/conf/source/arm.src index 0bd3ee1..2b148c3 100644 --- a/conf/source/arm.src +++ b/conf/source/arm.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.12.0/gitea-1.12.0-linux-arm-6 -SOURCE_SUM=1cce3839d6beccb540cfdb45f644502bee1cd4a629c4b5bf611383a379ddda4b +SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.12.1/gitea-1.12.1-linux-arm-6 +SOURCE_SUM=99900576f24ed99167e634ef428c94c0bec161ed663822cd79215a96e80a4334 SOURCE_SUM_PRG=sha256sum SOURCE_FILENAME=gitea SOURCE_EXTRACT=false diff --git a/conf/source/armv7.src b/conf/source/armv7.src index 7fbb38c..e25d83f 100644 --- a/conf/source/armv7.src +++ b/conf/source/armv7.src @@ -1,8 +1,8 @@ # The armv7 build is brocken # See : https://github.com/go-gitea/gitea/issues/6700 # Use temporary the armv6 binary -SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.12.0/gitea-1.12.0-linux-arm-6 -SOURCE_SUM=1cce3839d6beccb540cfdb45f644502bee1cd4a629c4b5bf611383a379ddda4b +SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.12.1/gitea-1.12.1-linux-arm-6 +SOURCE_SUM=99900576f24ed99167e634ef428c94c0bec161ed663822cd79215a96e80a4334 SOURCE_SUM_PRG=sha256sum SOURCE_FILENAME=gitea SOURCE_EXTRACT=false diff --git a/conf/source/i386.src b/conf/source/i386.src index d55fe7f..c6e07b2 100644 --- a/conf/source/i386.src +++ b/conf/source/i386.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.12.0/gitea-1.12.0-linux-386 -SOURCE_SUM=4c68f8f398747e43027483063a2b30db095119ffe139003cf8a8c50c84438170 +SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.12.1/gitea-1.12.1-linux-386 +SOURCE_SUM=1186ed67bfb02e238da16e5a785e2ae60efa83893dc3e485736ef3f002bcd78e SOURCE_SUM_PRG=sha256sum SOURCE_FILENAME=gitea SOURCE_EXTRACT=false diff --git a/conf/source/x86-64.src b/conf/source/x86-64.src index ae7786e..4abbfe5 100644 --- a/conf/source/x86-64.src +++ b/conf/source/x86-64.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.12.0/gitea-1.12.0-linux-amd64 -SOURCE_SUM=4077f35a87d4cb08e88fcc69fe8645ff9559928276886b7da33080dd24c36d1e +SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.12.1/gitea-1.12.1-linux-amd64 +SOURCE_SUM=20264002c28117d3107d3b01efde2cecea2cd98db22e18edd108ed25ae0edc53 SOURCE_SUM_PRG=sha256sum SOURCE_FILENAME=gitea SOURCE_EXTRACT=false diff --git a/manifest.json b/manifest.json index 7d15a4b..ee2fd75 100644 --- a/manifest.json +++ b/manifest.json @@ -9,7 +9,7 @@ }, "url": "http://gitea.io", "license": "MIT", - "version": "1.12.0~ynh1", + "version": "1.12.1~ynh1", "maintainer": { "name": "rafi59", "email": "rafi59_dev@srvmaison.fr.nf" From 4fd016e379de84f12eccbf61035fd9190b34d2e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Mon, 20 Jul 2020 15:01:06 +0200 Subject: [PATCH 4/6] Update manifest.json - *Correct some typos* --- manifest.json | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/manifest.json b/manifest.json index 7eed422..5146c04 100644 --- a/manifest.json +++ b/manifest.json @@ -1,11 +1,10 @@ { - "package_format": 1, "name": "Gitea", "id": "gitea", "packaging_format": 1, "description": { - "en": "Lightweight git forge", - "fr": "Forge git légère" + "en": "Lightweight Git forge", + "fr": "Forge Git légère" }, "url": "http://gitea.io", "license": "MIT", @@ -56,12 +55,12 @@ "name": "is_public", "type": "boolean", "ask": { - "en": "Is it a public site ? ", + "en": "Is it a public site?", "fr": "Est-ce un site public ?" }, "help": { - "en": "A public server means that everybody is able to access to the pain page of the forge, on the public profile of the user and on the public repository. But you still can limit the access to each repository if you set it as private. Note that to be able to use the remote git command (clone, pull, push) with http and to use the API by (by example with a smartphone), you need to set this application as public.", - "fr": "Un serveur publique signifie que n'importe qui peut accéder à la page principale de la forge, au profil publique des utilisateur et au dépots publiques Mais vous pouvez définir les dépot en tant que privé. Notez que pour pouvoir utiliser les commandes git distante (clone, pull, push) avec http et pour pouvoir utiliser l'API (par exemple avec un smartphone), vous devez mettre cette application en tant que publique." + "en": "A public server means that everybody is able to access to the pain page of the forge, on the public profile of the user and on the public repository. But you still can limit the access to each repository if you set it as private. Note that to be able to use the remote Git command (clone, pull, push) with HTTP and to use the API by (by example with a smartphone), you need to set this application as public.", + "fr": "Un serveur public signifie que tout le monde peut accéder à la page principale de la forge, au profil public des utilisateurs et aux dépôts publics. Vous pouvez également définir les dépôts comme étant privés. Notez que pour pouvoir utiliser les commandes Git distantes (clone, pull, push) avec HTTP et pour pouvoir utiliser l'API (par exemple avec un smartphone), vous devez paramétrer cette application comme étant publique." }, "default": true } From 48ea06d8191052cf3cb622670f53bf9a2d44ecbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Sat, 11 Jul 2020 20:03:18 +0000 Subject: [PATCH 5/6] Upgrade gitea to 1.12.2 --- README.md | 2 +- conf/source/arm.src | 4 ++-- conf/source/armv7.src | 4 ++-- conf/source/i386.src | 4 ++-- conf/source/x86-64.src | 4 ++-- manifest.json | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index f833bf9..82e2b72 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Overview Gitea is a fork of Gogs a self-hosted Git service written in Go. Alternative to Github. -**Shipped version:** 1.12.1 +**Shipped version:** 1.12.2 Screenshots ----------- diff --git a/conf/source/arm.src b/conf/source/arm.src index 2b148c3..b0cc35b 100644 --- a/conf/source/arm.src +++ b/conf/source/arm.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.12.1/gitea-1.12.1-linux-arm-6 -SOURCE_SUM=99900576f24ed99167e634ef428c94c0bec161ed663822cd79215a96e80a4334 +SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.12.2/gitea-1.12.2-linux-arm-6 +SOURCE_SUM=f0d32e28d42ac26c71a6b21a84984b9d217d4eb405e9b843293f36fdb6a8bcfa SOURCE_SUM_PRG=sha256sum SOURCE_FILENAME=gitea SOURCE_EXTRACT=false diff --git a/conf/source/armv7.src b/conf/source/armv7.src index e25d83f..9c2c951 100644 --- a/conf/source/armv7.src +++ b/conf/source/armv7.src @@ -1,8 +1,8 @@ # The armv7 build is brocken # See : https://github.com/go-gitea/gitea/issues/6700 # Use temporary the armv6 binary -SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.12.1/gitea-1.12.1-linux-arm-6 -SOURCE_SUM=99900576f24ed99167e634ef428c94c0bec161ed663822cd79215a96e80a4334 +SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.12.2/gitea-1.12.2-linux-arm-6 +SOURCE_SUM=f0d32e28d42ac26c71a6b21a84984b9d217d4eb405e9b843293f36fdb6a8bcfa SOURCE_SUM_PRG=sha256sum SOURCE_FILENAME=gitea SOURCE_EXTRACT=false diff --git a/conf/source/i386.src b/conf/source/i386.src index c6e07b2..fc4d714 100644 --- a/conf/source/i386.src +++ b/conf/source/i386.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.12.1/gitea-1.12.1-linux-386 -SOURCE_SUM=1186ed67bfb02e238da16e5a785e2ae60efa83893dc3e485736ef3f002bcd78e +SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.12.2/gitea-1.12.2-linux-386 +SOURCE_SUM=b9bdfc3b75f3cc3f43e435f19adba754a3dccafd0dc5f5f1a43f89e6c6eddf86 SOURCE_SUM_PRG=sha256sum SOURCE_FILENAME=gitea SOURCE_EXTRACT=false diff --git a/conf/source/x86-64.src b/conf/source/x86-64.src index 4abbfe5..c201736 100644 --- a/conf/source/x86-64.src +++ b/conf/source/x86-64.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.12.1/gitea-1.12.1-linux-amd64 -SOURCE_SUM=20264002c28117d3107d3b01efde2cecea2cd98db22e18edd108ed25ae0edc53 +SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.12.2/gitea-1.12.2-linux-amd64 +SOURCE_SUM=3faa3e97a621c3b9ecba7917fd870c07c3c6c88c8cc7c29ecbf2c7b9802d91b0 SOURCE_SUM_PRG=sha256sum SOURCE_FILENAME=gitea SOURCE_EXTRACT=false diff --git a/manifest.json b/manifest.json index ee2fd75..e86670d 100644 --- a/manifest.json +++ b/manifest.json @@ -9,7 +9,7 @@ }, "url": "http://gitea.io", "license": "MIT", - "version": "1.12.1~ynh1", + "version": "1.12.2~ynh1", "maintainer": { "name": "rafi59", "email": "rafi59_dev@srvmaison.fr.nf" From e8b0cf143ab727248bd97bbb9f03f08fcc634487 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Thu, 23 Jul 2020 23:31:47 +0200 Subject: [PATCH 6/6] Fix Integration level infos --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 82e2b72..ec5c451 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,8 @@ Gitea package for YunoHost ========================== -[![Integration level](https://dash.yunohost.org/integration/gitea.svg)](https://ci-apps.yunohost.org/ci/apps/gitea%20%28Community%29/lastBuild/consoleFull) + +[![Integration level](https://dash.yunohost.org/integration/gitea.svg)](https://dash.yunohost.org/appci/app/gitea) ![](https://ci-apps.yunohost.org/ci/badges/gitea.status.svg) ![](https://ci-apps.yunohost.org/ci/badges/gitea.maintain.svg) [![Install gitea with YunoHost](https://install-app.yunohost.org/install-with-yunohost.png)](https://install-app.yunohost.org/?app=gitea) > *This package allow you to install gitea quickly and simply on a YunoHost server. @@ -34,8 +35,7 @@ LDAP and HTTP auth are supported. ### Supported architectures -* x86-64b - [![Build Status](https://ci-apps.yunohost.org/ci/logs/gitea%20%28Apps%29.svg)](https://ci-apps.yunohost.org/ci/apps/gitea/) - +* x86-64 - [![Build Status](https://ci-apps.yunohost.org/ci/logs/gitea%20%28Apps%29.svg)](https://ci-apps.yunohost.org/ci/apps/gitea/) * ARMv8-A - [![Build Status](https://ci-apps-arm.yunohost.org/ci/logs/gitea%20%28Apps%29.svg)](https://ci-apps-arm.yunohost.org/ci/apps/gitea/)