gitea: fix init

This commit is contained in:
teldra 2019-02-02 02:38:08 +01:00 committed by maxice8
parent f35aa4cc19
commit fe1c0b70ff
2 changed files with 5 additions and 2 deletions

View file

@ -1,5 +1,8 @@
#!/bin/sh #!/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 # The USER variable is needed here because gitea doesn't actually
# check what user its running as, it instead grabs the USER variable # check what user its running as, it instead grabs the USER variable
# from the environment. HOME is set for the same reasons. # from the environment. HOME is set for the same reasons.

View file

@ -1,7 +1,7 @@
# Template file for 'gitea' # Template file for 'gitea'
pkgname=gitea pkgname=gitea
version=1.7.1 version=1.7.1
revision=1 revision=2
build_style=go build_style=go
go_import_path=code.gitea.io/gitea go_import_path=code.gitea.io/gitea
# This could be done with build options, but these are built in with the # 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 # rather not use SQLite3 for some reason. It is also potentially
# more resiliant to corrupted writes. # more resiliant to corrupted writes.
go_build_tags="bindata sqlite pam tidb" go_build_tags="bindata sqlite pam tidb"
go_ldflags=" -X main.Version=$version"
hostmakedepends="go-bindata" hostmakedepends="go-bindata"
makedepends="sqlite-devel pam-devel" makedepends="sqlite-devel pam-devel"
depends="git" depends="git"
@ -31,7 +32,6 @@ homepage="https://gitea.io"
changelog="https://github.com/go-gitea/gitea/blob/master/CHANGELOG.md" changelog="https://github.com/go-gitea/gitea/blob/master/CHANGELOG.md"
distfiles="https://github.com/go-gitea/gitea/archive/v${version}.tar.gz" distfiles="https://github.com/go-gitea/gitea/archive/v${version}.tar.gz"
checksum=7a28bac36cf06e1a90c2df692256a79d29cc6e652aa89f4c77833b9a8481a541 checksum=7a28bac36cf06e1a90c2df692256a79d29cc6e652aa89f4c77833b9a8481a541
go_ldflags=" -X main.Version=$version"
system_accounts="_gitea" system_accounts="_gitea"
_gitea_homedir="/var/lib/gitea" _gitea_homedir="/var/lib/gitea"