feat: first alpha version of openvpn-auth-oauth2
This commit is contained in:
parent
469b7c434c
commit
194586a59a
33
kubezero/openvpn-auth-oauth2/APKBUILD
Normal file
33
kubezero/openvpn-auth-oauth2/APKBUILD
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
# Contributor: Stefan Reimer <stefan@zero-downtime.net>
|
||||||
|
# Maintainer: Stefan Reimer <stefan@zero-downtime.net>
|
||||||
|
pkgname=openvpn-auth-oauth2
|
||||||
|
pkgver=1.22.0
|
||||||
|
pkgrel=0
|
||||||
|
pkgdesc="OpenVPN management client that handles the single sign-on (SSO) authentication against various OIDC providers"
|
||||||
|
url="https://github.com/jkroepke/openvpn-auth-oauth2"
|
||||||
|
arch="x86_64 aarch64"
|
||||||
|
license="MIT"
|
||||||
|
depends="openvpn"
|
||||||
|
makedepends="go bash make"
|
||||||
|
options="!check chmod-clean"
|
||||||
|
subpackages="$pkgname-openrc"
|
||||||
|
source="
|
||||||
|
$pkgname-$pkgver.tar.gz::https://github.com/jkroepke/openvpn-auth-oauth2/archive/refs/tags/v$pkgver.tar.gz
|
||||||
|
openvpn-auth-oauth2.initd
|
||||||
|
"
|
||||||
|
|
||||||
|
build() {
|
||||||
|
make build
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
install -Dm755 openvpn-auth-oauth2-$pkgver "$pkgdir"/usr/bin/openvpn-auth-oauth2
|
||||||
|
|
||||||
|
install -Dm644 packaging/etc/openvpn-auth-oauth2/config.yaml "$pkgdir"/etc/conf.d/openvpn-auth-oauth2.yaml
|
||||||
|
install -Dm755 "$srcdir"/"$pkgname".initd "$pkgdir"/etc/init.d/$pkgname
|
||||||
|
}
|
||||||
|
|
||||||
|
sha512sums="
|
||||||
|
872b8a637a07c689d4c1699993b5173732714e8070b0e4253d126ef0caf667dd936c0f66bd90cfdd227c717a0c9d346bb11f7d26dbc8a1d377148807a8d4a05e openvpn-auth-oauth2-1.22.0.tar.gz
|
||||||
|
6dcaa021d495c4e7ddb3501e9ce11a09d7c286a6eda579cff75a2c6b6e12794ec35069941d81ce411209212cab6d0707cc0a00e99327be13b10acb23b83c6f35 openvpn-auth-oauth2.initd
|
||||||
|
"
|
14
kubezero/openvpn-auth-oauth2/openvpn-auth-oauth2.initd
Normal file
14
kubezero/openvpn-auth-oauth2/openvpn-auth-oauth2.initd
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#!/sbin/openrc-run
|
||||||
|
supervisor=supervise-daemon
|
||||||
|
|
||||||
|
name=openvpn-auth-oauth2
|
||||||
|
command="/usr/bin/openvpn-auth-oauth2"
|
||||||
|
command_args="
|
||||||
|
--config /etc/conf.d/openvpn-auth-oauth2.yaml
|
||||||
|
$command_args"
|
||||||
|
|
||||||
|
|
||||||
|
depend() {
|
||||||
|
need net openvpn
|
||||||
|
use dns
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user