diff --git a/srcpkgs/gitea/files/gitea/run b/srcpkgs/gitea/files/gitea/run index a487c1bbed1..b27946c5b90 100755 --- a/srcpkgs/gitea/files/gitea/run +++ b/srcpkgs/gitea/files/gitea/run @@ -1,5 +1,8 @@ #!/bin/sh +# Whe cd here, because builtin SSH won't run without. +cd /var/lib/gitea + # The USER variable is needed here because gitea doesn't actually # check what user its running as, it instead grabs the USER variable # from the environment. HOME is set for the same reasons. diff --git a/srcpkgs/gitea/template b/srcpkgs/gitea/template index 0fb0d53e308..268e525c769 100644 --- a/srcpkgs/gitea/template +++ b/srcpkgs/gitea/template @@ -1,7 +1,7 @@ # Template file for 'gitea' pkgname=gitea version=1.7.1 -revision=1 +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 @@ -21,6 +21,7 @@ go_import_path=code.gitea.io/gitea # rather not use SQLite3 for some reason. It is also potentially # more resiliant to corrupted writes. go_build_tags="bindata sqlite pam tidb" +go_ldflags=" -X main.Version=$version" hostmakedepends="go-bindata" makedepends="sqlite-devel pam-devel" depends="git" @@ -31,7 +32,6 @@ 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=7a28bac36cf06e1a90c2df692256a79d29cc6e652aa89f4c77833b9a8481a541 -go_ldflags=" -X main.Version=$version" system_accounts="_gitea" _gitea_homedir="/var/lib/gitea"