48 lines
1.1 KiB
Bash
48 lines
1.1 KiB
Bash
|
|
EAPI=7
|
|
MY_PV="v${PV}"
|
|
|
|
#inherit
|
|
|
|
SLOT="0"
|
|
DESCRIPTION="Identity and access management"
|
|
HOMEPAGE="https://zitadel.com/"
|
|
SRC_URI="https://github.com/zitadel/zitadel/releases/download/${MY_PV}/zitadel-linux-amd64.tar.gz -> ${P}-linux-amd64.tar.gz
|
|
https://raw.githubusercontent.com/zitadel/zitadel/${MY_PV}/cmd/defaults.yaml -> ${P}-defaults.yaml
|
|
https://raw.githubusercontent.com/zitadel/zitadel/${MY_PV}/cmd/setup/steps.yaml -> ${P}-steps.yaml"
|
|
KEYWORDS="~amd64"
|
|
LICENSE="Apache-2.0"
|
|
|
|
DOCS=( "LICENSE" "README.md" )
|
|
|
|
QA_PRESTRIPPED="/usr/bin/zitadel"
|
|
|
|
S="${WORKDIR}/zitadel-linux-amd64"
|
|
|
|
DEPEND="
|
|
acct-group/zitadel
|
|
acct-user/zitadel
|
|
"
|
|
|
|
RDEPEND="${DEPEND}"
|
|
|
|
src_install() {
|
|
default_src_install
|
|
dobin zitadel
|
|
|
|
keepdir "/var/lib/zitadel"
|
|
fowners zitadel:zitadel "/var/lib/zitadel"
|
|
fperms 0700 "/var/lib/zitadel"
|
|
|
|
keepdir "/var/log/zitadel"
|
|
fowners zitadel:zitadel "/var/log/zitadel"
|
|
fperms 0750 "/var/log/zitadel"
|
|
|
|
insinto "/etc/zitadel"
|
|
newins "${DISTDIR}/${P}-defaults.yaml" "defaults.yaml.dist"
|
|
newins "${DISTDIR}/${P}-steps.yaml" "steps.yaml.dist"
|
|
|
|
fowners zitadel:zitadel "/etc/zitadel"
|
|
fperms 0700 "/etc/zitadel"
|
|
}
|