void-packages/srcpkgs/gitea/template

52 lines
1.8 KiB
Bash
Raw Normal View History

2017-10-17 09:19:03 +02:00
# Template file for 'gitea'
pkgname=gitea
2018-07-05 03:32:21 +02:00
version=1.4.3
2018-06-17 02:29:09 +02:00
revision=1
2017-10-17 09:19:03 +02:00
build_style=go
go_import_path="code.gitea.io/gitea"
# This could be done with build options, but these are built in with the
# following justification.
# * bindata: running with things not all in the binary is not a
# supported distribution format by the gitea upstream developers.
# That mode is only supported for development of gitea within the
# source tree
# * sqlite: this is likely the database that everyone will use. Only
# particularly large installations will want to go through the
# effort of setting up a real database server.
# * pam: PAM allows for authentication to varied external sources.
# Internal authentication supports the local database, OpenID, and
# LDAP, but basic other auth sources such as Kerberos and more
# exotic authenticators require PAM support to be useable.
# * tidb: This is an alternate database engine for users who would
# rather not use SQLite3 for some reason. It is also potentially
# more resiliant to corrupted writes.
go_build_tags="bindata sqlite pam tidb"
hostmakedepends="go-bindata"
makedepends="sqlite-devel pam-devel"
2018-05-07 14:17:01 +02:00
depends="git"
2017-10-17 09:19:03 +02:00
short_desc="Git with a cup of Tea"
maintainer="Michael Aldridge <maldridge@VoidLinux.eu>"
license="MIT"
2018-05-07 09:38:21 +02:00
homepage="https://gitea.io"
changelog="https://github.com/go-gitea/gitea/blob/master/CHANGELOG.md"
2017-10-17 09:19:03 +02:00
distfiles="https://github.com/go-gitea/gitea/archive/v${version}.tar.gz"
2018-07-05 03:32:21 +02:00
checksum=803732b1bd51798cf8e970fdeee43f57da0640815dce9f4b33b26f24a6978180
2017-10-17 09:19:03 +02:00
system_accounts="_gitea"
_gitea_homedir="/var/lib/gitea"
make_dirs="/var/lib/gitea 0755 _gitea _gitea
/var/log/gitea 0755 _gitea root"
conf_files="/etc/gitea.conf"
pre_build() {
2017-11-25 05:49:06 +01:00
cd $GOSRCPATH
2017-10-17 09:19:03 +02:00
make generate
cd $wrksrc
}
post_install() {
vlicense LICENSE
vsv gitea
2018-03-29 22:32:22 +02:00
vinstall custom/conf/app.ini.sample 0640 /etc gitea.conf
2017-10-17 09:19:03 +02:00
}