mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
testing/dex-idp: new aport
https://dexidp.io/ OpenID Connect (OIDC) identity and OAuth 2.0 provider with pluggable connectors
This commit is contained in:
parent
5b35eb82bf
commit
123536c69e
49
testing/dex-idp/APKBUILD
Normal file
49
testing/dex-idp/APKBUILD
Normal file
@ -0,0 +1,49 @@
|
||||
# Contributor: fossdd <fossdd@pwned.life>
|
||||
# Maintainer: fossdd <fossdd@pwned.life>
|
||||
pkgname=dex-idp
|
||||
pkgver=2.40.0
|
||||
pkgrel=0
|
||||
pkgdesc="OpenID Connect (OIDC) identity and OAuth 2.0 provider with pluggable connectors"
|
||||
url="https://dexidp.io/"
|
||||
arch="all"
|
||||
license="Apache-2.0"
|
||||
makedepends="go"
|
||||
checkdepends="tzdata"
|
||||
install="$pkgname.pre-install"
|
||||
subpackages="$pkgname-bash-completion $pkgname-fish-completion $pkgname-openrc $pkgname-zsh-completion"
|
||||
source="$pkgname-$pkgver.tar.gz::https://github.com/dexidp/dex/archive/refs/tags/v$pkgver.tar.gz
|
||||
dex-idp.initd
|
||||
"
|
||||
builddir="$srcdir/dex-$pkgver"
|
||||
options="net"
|
||||
|
||||
build() {
|
||||
make
|
||||
|
||||
./bin/dex completion bash > $pkgname.bash
|
||||
./bin/dex completion fish > $pkgname.fish
|
||||
./bin/dex completion zsh > $pkgname.zsh
|
||||
}
|
||||
|
||||
check() {
|
||||
make test
|
||||
}
|
||||
|
||||
package() {
|
||||
install -Dvm755 bin/dex "$pkgdir"/usr/bin/dex-idp
|
||||
install -Dvm644 config.yaml.dist "$pkgdir"/etc/dex.yaml
|
||||
|
||||
install -Dvm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
|
||||
|
||||
install -Dvm644 $pkgname.bash \
|
||||
"$pkgdir"/usr/share/bash-completion/completions/$pkgname
|
||||
install -Dvm644 $pkgname.fish \
|
||||
"$pkgdir"/usr/share/fish/vendor_completions.d/$pkgname.fish
|
||||
install -Dvm644 $pkgname.zsh \
|
||||
"$pkgdir"/usr/share/zsh/site-functions/_$pkgname
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
65b23c7d1a85431083e3ae68312a89273cc658d88cb0e93a10897e8521984bea6af6fab3a6e9b1507293d894ba3eed27a8790464deaf67af34d98436183266e1 dex-idp-2.40.0.tar.gz
|
||||
a2ebd82788e09c2f6b7efff1d2115b692bcc7a68753a4ea1dd87ee93221f68f9c9ebf8caa81282f810b177479852353fb03274c0c97d7646197050568b642df3 dex-idp.initd
|
||||
"
|
13
testing/dex-idp/dex-idp.initd
Normal file
13
testing/dex-idp/dex-idp.initd
Normal file
@ -0,0 +1,13 @@
|
||||
#!/sbin/openrc-run
|
||||
|
||||
name=$RC_SVCNAME
|
||||
description="OpenID Connect (OIDC) identity and OAuth 2.0 provider with pluggable connectors"
|
||||
supervisor="supervise-daemon"
|
||||
command="/usr/bin/dex-idp"
|
||||
supervise_daemon_args=" serve /etc/dex.yaml"
|
||||
command_user="dex-idp:dex-idp"
|
||||
|
||||
depend() {
|
||||
need net
|
||||
after firewall
|
||||
}
|
6
testing/dex-idp/dex-idp.pre-install
Normal file
6
testing/dex-idp/dex-idp.pre-install
Normal file
@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
addgroup -S dex-idp 2>/dev/null
|
||||
adduser -S -D -h /var/empty -s /sbin/nologin -G dex-idp -g dex-idp dex-idp 2>/dev/null
|
||||
|
||||
exit 0
|
Loading…
Reference in New Issue
Block a user