From 7fee1916ffe022af8d9010fe3a3c8cdb35e3a91e Mon Sep 17 00:00:00 2001 From: sineemore Date: Mon, 24 Feb 2020 18:18:54 +0300 Subject: [PATCH] gitea: fix INSTALL script With current INSTALL sed process reveals generated secret key; it can be viewed by monitoring /proc or by using extrace. Also sed pattern fails, since there no such substring in provided sample configuration. gitea will change all secrets in configuration file right after web based installation process. --- srcpkgs/gitea/INSTALL | 16 ++++------------ srcpkgs/gitea/template | 8 ++++---- 2 files changed, 8 insertions(+), 16 deletions(-) diff --git a/srcpkgs/gitea/INSTALL b/srcpkgs/gitea/INSTALL index 92e2f390e76..660e7deabaa 100644 --- a/srcpkgs/gitea/INSTALL +++ b/srcpkgs/gitea/INSTALL @@ -1,13 +1,5 @@ -case "$ACTION" in - post) - if [ "$UPDATE" = "yes" ] ; then - : - else - # This sets the secret key which would otherwise be - # distributed as a static packaged value - secret="$(tr -dc '[:alnum:]' < /dev/urandom | head -c32)" - sed -i "s!!$secret!" etc/gitea.conf - fi - chown _gitea:_gitea etc/gitea.conf - ;; +case "${ACTION}" in +post) + chown _gitea:_gitea etc/gitea.conf + ;; esac diff --git a/srcpkgs/gitea/template b/srcpkgs/gitea/template index 212d6172ebf..2b16b3909bc 100644 --- a/srcpkgs/gitea/template +++ b/srcpkgs/gitea/template @@ -1,7 +1,7 @@ # Template file for 'gitea' pkgname=gitea -version=1.10.3 -revision=1 +version=1.10.6 +revision=2 build_style=go go_import_path=code.gitea.io/gitea # This could be done with build options, but these are built in with the @@ -24,14 +24,14 @@ go_build_tags="bindata sqlite pam tidb" go_ldflags=" -X main.Version=${version}" hostmakedepends="go-bindata git" makedepends="sqlite-devel pam-devel" -depends="git" +depends="git bash" short_desc="Git with a cup of Tea" maintainer="Michael Aldridge " license="MIT" homepage="https://gitea.io" changelog="https://github.com/go-gitea/gitea/blob/master/CHANGELOG.md" distfiles="https://github.com/go-gitea/gitea/archive/v${version}.tar.gz" -checksum=564b676163077dfc2c1d0175c9766cf118b8fc917f49e7e7e2e5b2b33d8b6539 +checksum=d7fad3b0257c13037e0770d722e07da9bf2d356997c060a75d149e605a421f22 nocross="https://api.travis-ci.org/v3/job/616733825/log.txt" system_accounts="_gitea"