-
-
Notifications
You must be signed in to change notification settings - Fork 27
/
.goreleaser.yaml
128 lines (119 loc) · 3.29 KB
/
.goreleaser.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
version: 2
before:
hooks:
- rm -rf 3rdpartylicenses
- go run github.com/google/go-licenses@latest save . --save_path=3rdpartylicenses
builds:
- id: "openvpn-auth-oauth2"
binary: openvpn-auth-oauth2
goos:
- linux
- freebsd
- openbsd
goarch:
- amd64
- arm64
mod_timestamp: '{{ .CommitTimestamp }}'
env:
- CGO_ENABLED=0
flags:
- -trimpath
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.builtBy=goreleaser
- id: "openvpn-auth-oauth2.so"
binary: openvpn-auth-oauth2
main: ./pkg/plugin/
buildmode: c-shared
goos:
- linux
goarch:
- amd64
- arm64
mod_timestamp: '{{ .CommitTimestamp }}'
env:
- CGO_ENABLED=1
- >-
{{- if eq .Arch "amd64"}}CC=x86_64-linux-gnu-gcc{{- end }}
{{- if eq .Arch "arm64"}}CC=aarch64-linux-gnu-gcc{{- end }}
- >-
{{- if eq .Arch "amd64"}}CXX=x86_64-linux-gnu-g++{{- end }}
{{- if eq .Arch "arm64"}}CXX=aarch64-linux-gnu-g++{{- end }}
archives:
- id: openvpn-auth-oauth2
builds:
- openvpn-auth-oauth2
format: tar.xz
files:
- LICENSE.txt
- 3rdpartylicenses/**/*
nfpms:
- id: openvpn-auth-oauth2
builds:
- openvpn-auth-oauth2
homepage: https://github.com/jkroepke/openvpn-auth-oauth2
maintainer: Jan-Otto Kröpke <github@jkroepke.de>
section: net
description: |
openvpn-auth-oauth2 is a management client for OpenVPN that handles the authentication of connecting users against OIDC providers like Azure AD or Keycloak.
license: MIT License
formats:
- deb
- rpm
provides:
- openvpn-auth-oauth2
recommends:
- openvpn
contents:
- src: packaging/usr/lib/sysusers.d/
dst: /usr/lib/sysusers.d/
- src: packaging/usr/lib/systemd/system/
dst: /usr/lib/systemd/system/
- src: packaging/etc/apparmor.d/
dst: /etc/apparmor.d/
- src: packaging/etc/sysconfig/openvpn-auth-oauth2
file_info:
mode: 0640
dst: /etc/sysconfig/openvpn-auth-oauth2
type: "config|noreplace"
- dst: /etc/openvpn-auth-oauth2/
type: dir
file_info:
owner: root
group: openvpn-auth-oauth2
mode: 0750
- src: packaging/etc/openvpn-auth-oauth2/config.yaml
dst: /etc/openvpn-auth-oauth2/config.yaml
type: "config|noreplace"
file_info:
owner: root
group: openvpn-auth-oauth2
mode: 0640
- src: 3rdpartylicenses/
dst: /usr/share/doc/openvpn-auth-oauth2/3rdpartylicenses/
type: tree
file_info:
owner: root
group: root
mode: 0644
scripts:
preinstall: "packaging/scripts/preinst.sh"
postinstall: "packaging/scripts/postinst.sh"
preremove: "packaging/scripts/preremove.sh"
postremove: "packaging/scripts/postremove.sh"
rpm:
compression: xz
signature:
key_file: "{{ .Env.GPG_KEY_PATH }}"
deb:
#compression: xz
signature:
key_file: "{{ .Env.GPG_KEY_PATH }}"
report_sizes: true
metadata:
mod_timestamp: "{{ .CommitTimestamp }}"
gomod:
proxy: true
release:
prerelease: auto
changelog:
use: github-native