View | Details | Raw Unified | Return to bug 252832
Collapse All | Expand All

(-)www/oauth2-proxy/Makefile (+96 lines)
Line 0 Link Here
1
# $FreeBSD$
2
3
PORTNAME=	oauth2-proxy
4
PORTVERSION=	6.1.1
5
DISTVERSIONPREFIX=	v
6
CATEGORIES=	www
7
8
MAINTAINER=	freebsd@rheinwolf.de
9
COMMENT=	OAuth 2.0 proxy server
10
11
LICENSE=	MIT
12
LICENSE_FILE=	${WRKSRC}/LICENSE
13
14
USES=		go:modules
15
16
USE_RC_SUBR=	oauth2-proxy
17
18
USE_GITHUB=	yes
19
GH_TUPLE=	\
20
		Bose:minisentinel:917c5a9223bb:bose_minisentinel/vendor/github.com/Bose/minisentinel \
21
		alicebob:gopher-json:a9ecdc9d1d3a:alicebob_gopher_json/vendor/github.com/alicebob/gopher-json \
22
		alicebob:miniredis:v2.13.0:alicebob_miniredis_v2/vendor/github.com/alicebob/miniredis/v2 \
23
		bitly:go-simplejson:v0.5.0:bitly_go_simplejson/vendor/github.com/bitly/go-simplejson \
24
		bmizerany:assert:b7ed37b82869:bmizerany_assert/vendor/github.com/bmizerany/assert \
25
		census-instrumentation:opencensus-go:v0.21.0:census_instrumentation_opencensus_go/vendor/go.opencensus.io \
26
		coreos:go-oidc:v2.2.1:coreos_go_oidc/vendor/github.com/coreos/go-oidc \
27
		davecgh:go-spew:v1.1.1:davecgh_go_spew/vendor/github.com/davecgh/go-spew \
28
		dgrijalva:jwt-go:v3.2.0:dgrijalva_jwt_go/vendor/github.com/dgrijalva/jwt-go \
29
		frankban:quicktest:v1.10.0:frankban_quicktest/vendor/github.com/frankban/quicktest \
30
		fsnotify:fsnotify:v1.4.9:fsnotify_fsnotify/vendor/github.com/fsnotify/fsnotify \
31
		go-ini:ini:v1.51.0:go_ini_ini/vendor/gopkg.in/ini.v1 \
32
		go-redis:redis:v7.2.0:go_redis_redis_v7/vendor/github.com/go-redis/redis/v7 \
33
		go-tomb:tomb:dd632973f1e7:go_tomb_tomb/vendor/gopkg.in/tomb.v1 \
34
		go-yaml:yaml:v2.3.0:go_yaml_yaml/vendor/gopkg.in/yaml.v2 \
35
		golang:appengine:v1.6.5:golang_appengine/vendor/google.golang.org/appengine \
36
		golang:crypto:c2843e01d9a2:golang_crypto/vendor/golang.org/x/crypto \
37
		golang:net:59133d7f0dd7:golang_net/vendor/golang.org/x/net \
38
		golang:oauth2:bf48bf16ab8d:golang_oauth2/vendor/golang.org/x/oauth2 \
39
		golang:protobuf:v1.4.2:golang_protobuf/vendor/github.com/golang/protobuf \
40
		golang:sys:fe76b779f299:golang_sys/vendor/golang.org/x/sys \
41
		golang:text:v0.3.2:golang_text/vendor/golang.org/x/text \
42
		golang:xerrors:9bdfabe68543:golang_xerrors/vendor/golang.org/x/xerrors \
43
		google:go-genproto:24fa4b261c55:google_go_genproto/vendor/google.golang.org/genproto \
44
		google:uuid:v1.1.1:google_uuid/vendor/github.com/google/uuid \
45
		googleapis:gax-go:v2.0.5:googleapis_gax_go_v2/vendor/github.com/googleapis/gax-go \
46
		googleapis:google-api-go-client:v0.20.0:googleapis_google_api_go_client/vendor/google.golang.org/api \
47
		googleapis:google-cloud-go:v0.38.0:googleapis_google_cloud_go/vendor/cloud.google.com/go \
48
		grpc:grpc-go:v1.27.0:grpc_grpc_go/vendor/google.golang.org/grpc \
49
		hashicorp:golang-lru:v0.5.1:hashicorp_golang_lru/vendor/github.com/hashicorp/golang-lru \
50
		hashicorp:hcl:v1.0.0:hashicorp_hcl/vendor/github.com/hashicorp/hcl \
51
		justinas:alice:v1.2.0:justinas_alice/vendor/github.com/justinas/alice \
52
		magiconair:properties:v1.8.1:magiconair_properties/vendor/github.com/magiconair/properties \
53
		mbland:hmacauth:44256dfd4bfa:mbland_hmacauth/vendor/github.com/mbland/hmacauth \
54
		mitchellh:mapstructure:v1.1.2:mitchellh_mapstructure/vendor/github.com/mitchellh/mapstructure \
55
		natefinch:lumberjack:v2.0.0:natefinch_lumberjack/vendor/gopkg.in/natefinch/lumberjack.v2 \
56
		nxadm:tail:v1.4.4:nxadm_tail/vendor/github.com/nxadm/tail \
57
		onsi:ginkgo:v1.14.0:onsi_ginkgo/vendor/github.com/onsi/ginkgo \
58
		onsi:gomega:v1.10.1:onsi_gomega/vendor/github.com/onsi/gomega \
59
		pelletier:go-toml:v1.2.0:pelletier_go_toml/vendor/github.com/pelletier/go-toml \
60
		pierrec:lz4:v2.5.2:pierrec_lz4/vendor/github.com/pierrec/lz4 \
61
		pmezard:go-difflib:v1.0.0:pmezard_go_difflib/vendor/github.com/pmezard/go-difflib \
62
		pquerna:cachecontrol:1555304b9b35:pquerna_cachecontrol/vendor/github.com/pquerna/cachecontrol \
63
		protocolbuffers:protobuf-go:v1.23.0:protocolbuffers_protobuf_go/vendor/google.golang.org/protobuf \
64
		spf13:afero:v1.1.2:spf13_afero/vendor/github.com/spf13/afero \
65
		spf13:cast:v1.3.0:spf13_cast/vendor/github.com/spf13/cast \
66
		spf13:jwalterweatherman:v1.0.0:spf13_jwalterweatherman/vendor/github.com/spf13/jwalterweatherman \
67
		spf13:pflag:v1.0.3:spf13_pflag/vendor/github.com/spf13/pflag \
68
		spf13:viper:v1.6.3:spf13_viper/vendor/github.com/spf13/viper \
69
		square:go-jose:v2.4.1:square_go_jose/vendor/gopkg.in/square/go-jose.v2 \
70
		stretchr:testify:v1.5.1:stretchr_testify/vendor/github.com/stretchr/testify \
71
		subosito:gotenv:v1.2.0:subosito_gotenv/vendor/github.com/subosito/gotenv \
72
		vmihailenco:msgpack:v4.3.11:vmihailenco_msgpack_v4/vendor/github.com/vmihailenco/msgpack/v4 \
73
		vmihailenco:tagparser:v0.1.1:vmihailenco_tagparser/vendor/github.com/vmihailenco/tagparser \
74
		yhat:wsutil:1d66fa95c997:yhat_wsutil/vendor/github.com/yhat/wsutil \
75
		yuin:gopher-lua:ab39c6098bdb:yuin_gopher_lua/vendor/github.com/yuin/gopher-lua
76
77
USER=		www
78
GROUP=		www
79
80
VAR_DIR?=	/var
81
LOG_DIR?=	${VAR_DIR}/log/${PORTNAME}
82
RUN_DIR?=	${VAR_DIR}/run/${PORTNAME}
83
84
SUB_LIST+=	GROUP=${GROUP} \
85
		LOG_DIR=${LOG_DIR} \
86
		PORTNAME=${PORTNAME} \
87
		PREFIX=${PREFIX} \
88
		RUN_DIR=${RUN_DIR} \
89
		USER=${USER}
90
91
post-install:
92
	${MKDIR} ${STAGEDIR}${LOG_DIR}
93
	${MKDIR} ${STAGEDIR}${RUN_DIR}
94
	${INSTALL_DATA} ${WRKSRC}/contrib/${PORTNAME}.cfg.example ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.cfg.sample
95
96
.include <bsd.port.mk>
(-)www/oauth2-proxy/distinfo (+115 lines)
Line 0 Link Here
1
TIMESTAMP = 1606838077
2
SHA256 (oauth2-proxy-oauth2-proxy-v6.1.1_GH0.tar.gz) = d5fb4129d7f1d1c39f4f45184b319e9b60fcb186f3acdd7c3ea415c56f69079c
3
SIZE (oauth2-proxy-oauth2-proxy-v6.1.1_GH0.tar.gz) = 430480
4
SHA256 (Bose-minisentinel-917c5a9223bb_GH0.tar.gz) = c765c12a0ed631ae864f74ee606279a0962f3a87c4274cea6e8d922b0ad8a98e
5
SIZE (Bose-minisentinel-917c5a9223bb_GH0.tar.gz) = 8352
6
SHA256 (alicebob-gopher-json-a9ecdc9d1d3a_GH0.tar.gz) = ce51bf794d26ef3a8a4d0e4e8a4b477ce4e78bbad6d317fd7c839af9ebfcc68a
7
SIZE (alicebob-gopher-json-a9ecdc9d1d3a_GH0.tar.gz) = 3630
8
SHA256 (alicebob-miniredis-v2.13.0_GH0.tar.gz) = 4ff3ca22c22bab47966ab7465a89bf44b70341bd4f3242970f141b66c9424b12
9
SIZE (alicebob-miniredis-v2.13.0_GH0.tar.gz) = 124631
10
SHA256 (bitly-go-simplejson-v0.5.0_GH0.tar.gz) = 44196c95263e74277372319e5a6cb7f53b29ef7ddab8c7fed6ce6fc80144d465
11
SIZE (bitly-go-simplejson-v0.5.0_GH0.tar.gz) = 5994
12
SHA256 (bmizerany-assert-b7ed37b82869_GH0.tar.gz) = f7dc11f10c5e52a94c836e15e7aff05ad4afba7436f66e5f4506806627c4635e
13
SIZE (bmizerany-assert-b7ed37b82869_GH0.tar.gz) = 1469
14
SHA256 (census-instrumentation-opencensus-go-v0.21.0_GH0.tar.gz) = e7129aebb9bcb590f01b4fb773b6cf0b10109211cb38cfbaf1f097d191043251
15
SIZE (census-instrumentation-opencensus-go-v0.21.0_GH0.tar.gz) = 161522
16
SHA256 (coreos-go-oidc-v2.2.1_GH0.tar.gz) = e9a5b72b34e4657f526bb85d11b9afc05e84418a430713844a6aa3365b4373d0
17
SIZE (coreos-go-oidc-v2.2.1_GH0.tar.gz) = 24136
18
SHA256 (davecgh-go-spew-v1.1.1_GH0.tar.gz) = 7d82b9bb7291adbe7498fe946920ab3e7fc9e6cbfc3b2294693fad00bf0dd17e
19
SIZE (davecgh-go-spew-v1.1.1_GH0.tar.gz) = 42152
20
SHA256 (dgrijalva-jwt-go-v3.2.0_GH0.tar.gz) = 197465ef53219f3aeb1a6940b70e16d288fe4e4108d4831b91ea101118440e63
21
SIZE (dgrijalva-jwt-go-v3.2.0_GH0.tar.gz) = 36960
22
SHA256 (frankban-quicktest-v1.10.0_GH0.tar.gz) = 7d6311aa7864748a60c1e564e736d4d213800309027698f070131236788eae31
23
SIZE (frankban-quicktest-v1.10.0_GH0.tar.gz) = 33165
24
SHA256 (fsnotify-fsnotify-v1.4.9_GH0.tar.gz) = 4f888b1cb132026227826751d156c0a2958e7d492e5e38386cde8848ef494dcb
25
SIZE (fsnotify-fsnotify-v1.4.9_GH0.tar.gz) = 31900
26
SHA256 (go-ini-ini-v1.51.0_GH0.tar.gz) = 6c98311d375afbe36a246c5d29acb5cb428634a4186e591ce9b7fe2fa4f2a471
27
SIZE (go-ini-ini-v1.51.0_GH0.tar.gz) = 43536
28
SHA256 (go-redis-redis-v7.2.0_GH0.tar.gz) = 9aa836b2ae3be6214a12efbce7cf54d234525396e51a4ebcdadc35942807958a
29
SIZE (go-redis-redis-v7.2.0_GH0.tar.gz) = 101816
30
SHA256 (go-tomb-tomb-dd632973f1e7_GH0.tar.gz) = b67f4ee9324a78176bc3196fe262388696aeb3f31d9879d498200219f9c4c554
31
SIZE (go-tomb-tomb-dd632973f1e7_GH0.tar.gz) = 3631
32
SHA256 (go-yaml-yaml-v2.3.0_GH0.tar.gz) = 42027002bf258009d498600b04b8c9cbb29d2193185ea7bfa8fefe194fe72a07
33
SIZE (go-yaml-yaml-v2.3.0_GH0.tar.gz) = 72816
34
SHA256 (golang-appengine-v1.6.5_GH0.tar.gz) = 4e7df5d4ec2dda0f59f26925b36a087843fd1a165adb938712068376bf791316
35
SIZE (golang-appengine-v1.6.5_GH0.tar.gz) = 332903
36
SHA256 (golang-crypto-c2843e01d9a2_GH0.tar.gz) = a4d91350f176b2ef99084cd71f990ecee5f549efed72ef59a5b9e425a00d454a
37
SIZE (golang-crypto-c2843e01d9a2_GH0.tar.gz) = 1650817
38
SHA256 (golang-net-59133d7f0dd7_GH0.tar.gz) = ea0a358ca3f8e31ba20c4f20177c4fb8a081ad5119543ea454cabfd8707b5b16
39
SIZE (golang-net-59133d7f0dd7_GH0.tar.gz) = 1174691
40
SHA256 (golang-oauth2-bf48bf16ab8d_GH0.tar.gz) = 28b3a51a8bd90beb5952d1080218ea238127edfe9455ad48921989619ff918a8
41
SIZE (golang-oauth2-bf48bf16ab8d_GH0.tar.gz) = 47016
42
SHA256 (golang-protobuf-v1.4.2_GH0.tar.gz) = a1e486b3ed6f502c43e10cb28bde4e8f020a420ef9958d3fbe61801492c07c87
43
SIZE (golang-protobuf-v1.4.2_GH0.tar.gz) = 171778
44
SHA256 (golang-sys-fe76b779f299_GH0.tar.gz) = 84cda22938ed183a5629979d1f16ab82aa2fab1d2bbb078b6440deada7b360f5
45
SIZE (golang-sys-fe76b779f299_GH0.tar.gz) = 1052710
46
SHA256 (golang-text-v0.3.2_GH0.tar.gz) = 0b9309698f5708531c5377ab1e29b423a6d9e20c55a8d386c3b8283428212f22
47
SIZE (golang-text-v0.3.2_GH0.tar.gz) = 7168069
48
SHA256 (golang-xerrors-9bdfabe68543_GH0.tar.gz) = 54bb4d99e6cba2e3e5331d064f46640cc01a0e630ee6a684ae810bd94a7e4eb7
49
SIZE (golang-xerrors-9bdfabe68543_GH0.tar.gz) = 13657
50
SHA256 (google-go-genproto-24fa4b261c55_GH0.tar.gz) = 96481b64c5971de2dd22d7c6f764d2acbeb4cd85ab6166856284115c3f99238c
51
SIZE (google-go-genproto-24fa4b261c55_GH0.tar.gz) = 5332241
52
SHA256 (google-uuid-v1.1.1_GH0.tar.gz) = bebd4b0b4ea152a9793615ef23c83f688876d8c284a2092264d20a4bf4ffc423
53
SIZE (google-uuid-v1.1.1_GH0.tar.gz) = 13543
54
SHA256 (googleapis-gax-go-v2.0.5_GH0.tar.gz) = 3089affe6f5e27f7a6d494cb399aa6baf232384f763f548ad5ddfbea0e88e59c
55
SIZE (googleapis-gax-go-v2.0.5_GH0.tar.gz) = 15328
56
SHA256 (googleapis-google-api-go-client-v0.20.0_GH0.tar.gz) = 93f55b3f529e26e0c9c263aa323b3968f90b5d8a4faa09e7b24b05bc59226cd5
57
SIZE (googleapis-google-api-go-client-v0.20.0_GH0.tar.gz) = 14017412
58
SHA256 (googleapis-google-cloud-go-v0.38.0_GH0.tar.gz) = fec2263c5a5d12a32a2af6f4940e3d072a2ef3847b192545e8f56898dd80cbe5
59
SIZE (googleapis-google-cloud-go-v0.38.0_GH0.tar.gz) = 1919592
60
SHA256 (grpc-grpc-go-v1.27.0_GH0.tar.gz) = 53082da10cb09b2cb850ed3c0a41ed13e61fdcbff24fb43c473f8427d1c6dcbf
61
SIZE (grpc-grpc-go-v1.27.0_GH0.tar.gz) = 825961
62
SHA256 (hashicorp-golang-lru-v0.5.1_GH0.tar.gz) = 3bf57512af746dc0338651ba1c35c65fe907ff214ccb22d679539f7ea791511e
63
SIZE (hashicorp-golang-lru-v0.5.1_GH0.tar.gz) = 12982
64
SHA256 (hashicorp-hcl-v1.0.0_GH0.tar.gz) = 50632428210503070fd2fde748c88b7414bf84a6a0eadebf9d8e596a033bead2
65
SIZE (hashicorp-hcl-v1.0.0_GH0.tar.gz) = 70658
66
SHA256 (justinas-alice-v1.2.0_GH0.tar.gz) = 12171459da7096e0d34a0972387e15978ad7b0e73c83ce04ba2f89c44a22336b
67
SIZE (justinas-alice-v1.2.0_GH0.tar.gz) = 4568
68
SHA256 (magiconair-properties-v1.8.1_GH0.tar.gz) = 4449df3d2be86608bfc997228f66f1cff57bf620cc5bf9ba44339c7e4c5612dd
69
SIZE (magiconair-properties-v1.8.1_GH0.tar.gz) = 29735
70
SHA256 (mbland-hmacauth-44256dfd4bfa_GH0.tar.gz) = f5b9d6aff7eba04766d11cdc780d08458324f158f893ba84479f045dde75cb23
71
SIZE (mbland-hmacauth-44256dfd4bfa_GH0.tar.gz) = 6192
72
SHA256 (mitchellh-mapstructure-v1.1.2_GH0.tar.gz) = 53fbc06b125ff1c9c73a4eb1764346932671a29c67a45a92e2ebc6855635069b
73
SIZE (mitchellh-mapstructure-v1.1.2_GH0.tar.gz) = 20980
74
SHA256 (natefinch-lumberjack-v2.0.0_GH0.tar.gz) = 5817941b45096eb70b8114d7a4bf392ea47c4fe8030ff383ca54c67dfa0617bd
75
SIZE (natefinch-lumberjack-v2.0.0_GH0.tar.gz) = 12631
76
SHA256 (nxadm-tail-v1.4.4_GH0.tar.gz) = 08a132336f9043bdb364f2c50552f3105263108b97319f3b69fbcccfacbef76b
77
SIZE (nxadm-tail-v1.4.4_GH0.tar.gz) = 1238275
78
SHA256 (onsi-ginkgo-v1.14.0_GH0.tar.gz) = 71805486a70986eaba23ffaa28048e7c12055be10694cc554e892c4ade35f9e8
79
SIZE (onsi-ginkgo-v1.14.0_GH0.tar.gz) = 145809
80
SHA256 (onsi-gomega-v1.10.1_GH0.tar.gz) = c54eb65efc0e4b226dac7798b962135ce6e749ffab056611c04337e2c4367dc8
81
SIZE (onsi-gomega-v1.10.1_GH0.tar.gz) = 97294
82
SHA256 (pelletier-go-toml-v1.2.0_GH0.tar.gz) = 1a5a620f680033f17e34148bee8f26d96d8c27ff1d7f56f0fe1c7253595b5244
83
SIZE (pelletier-go-toml-v1.2.0_GH0.tar.gz) = 57496
84
SHA256 (pierrec-lz4-v2.5.2_GH0.tar.gz) = bf5ad1ce74f264bad828cea8a546e5d2100a7ab67695bf7badcbe14c57ec4df4
85
SIZE (pierrec-lz4-v2.5.2_GH0.tar.gz) = 20509582
86
SHA256 (pmezard-go-difflib-v1.0.0_GH0.tar.gz) = 28f3dc1b5c0efd61203ab07233f774740d3bf08da4d8153fb5310db6cea0ebda
87
SIZE (pmezard-go-difflib-v1.0.0_GH0.tar.gz) = 11398
88
SHA256 (pquerna-cachecontrol-1555304b9b35_GH0.tar.gz) = 3611cc14c2de3c0f2df51d98d440673b32f6a906de213098abbdb0bb5eed6919
89
SIZE (pquerna-cachecontrol-1555304b9b35_GH0.tar.gz) = 18998
90
SHA256 (protocolbuffers-protobuf-go-v1.23.0_GH0.tar.gz) = e7266bedaa4f110216fce52ae533dc5eba475d3829bb0592e8876684e202ae1f
91
SIZE (protocolbuffers-protobuf-go-v1.23.0_GH0.tar.gz) = 1214648
92
SHA256 (spf13-afero-v1.1.2_GH0.tar.gz) = 66554a6b09b0009340ae77c119d5a14e2460bb3aea56e75e138c87e621f3803b
93
SIZE (spf13-afero-v1.1.2_GH0.tar.gz) = 45309
94
SHA256 (spf13-cast-v1.3.0_GH0.tar.gz) = e685282ea33f89e9354d148ad1886f532bcebe86b0b60a167988f7c6d081085f
95
SIZE (spf13-cast-v1.3.0_GH0.tar.gz) = 11085
96
SHA256 (spf13-jwalterweatherman-v1.0.0_GH0.tar.gz) = 2ece12b964e0d230b10851555185d42d3c81b401efda044265ae716eb1d0bc2d
97
SIZE (spf13-jwalterweatherman-v1.0.0_GH0.tar.gz) = 6392
98
SHA256 (spf13-pflag-v1.0.3_GH0.tar.gz) = 9e57f86f493f04d9077fccd04e7139ebf243dd544e917ab83d35729b3e54a124
99
SIZE (spf13-pflag-v1.0.3_GH0.tar.gz) = 46002
100
SHA256 (spf13-viper-v1.6.3_GH0.tar.gz) = a58703b5a80523d752d67ba1238473ec507e2f752268926f3a4fd79e3cb44e47
101
SIZE (spf13-viper-v1.6.3_GH0.tar.gz) = 52318
102
SHA256 (square-go-jose-v2.4.1_GH0.tar.gz) = b675a128c23f9181f9779f74631a442bbe93f24e18aef5b161788019c4445dac
103
SIZE (square-go-jose-v2.4.1_GH0.tar.gz) = 304063
104
SHA256 (stretchr-testify-v1.5.1_GH0.tar.gz) = 6d65f92aeff186bb261dbdb885d9f3ba09db3d79eb5f212fcace1fd4a2858263
105
SIZE (stretchr-testify-v1.5.1_GH0.tar.gz) = 78657
106
SHA256 (subosito-gotenv-v1.2.0_GH0.tar.gz) = 5f6826992c11981018c77377f33dbc56d0be932e0d38a2f51e795c99725e7ba5
107
SIZE (subosito-gotenv-v1.2.0_GH0.tar.gz) = 7359
108
SHA256 (vmihailenco-msgpack-v4.3.11_GH0.tar.gz) = 99b599c1e6f7d4f82bf147722d54ba5180c5e9febaccd8bbaea2a31ac2923dfd
109
SIZE (vmihailenco-msgpack-v4.3.11_GH0.tar.gz) = 31465
110
SHA256 (vmihailenco-tagparser-v0.1.1_GH0.tar.gz) = 0d83a863ff6488f469cb783a3910079fd158b3b400da1aa44f27ec93961a2c08
111
SIZE (vmihailenco-tagparser-v0.1.1_GH0.tar.gz) = 3649
112
SHA256 (yhat-wsutil-1d66fa95c997_GH0.tar.gz) = 05da8fa8530e85820f9e8bc0657354501be321e5024bec2346e60ef71a381105
113
SIZE (yhat-wsutil-1d66fa95c997_GH0.tar.gz) = 11163
114
SHA256 (yuin-gopher-lua-ab39c6098bdb_GH0.tar.gz) = 709a4aeb7a033157f678db2a5f785a1bfc541cbeb5cf53a1e92ba8d8fd93fd07
115
SIZE (yuin-gopher-lua-ab39c6098bdb_GH0.tar.gz) = 161569
(-)www/oauth2-proxy/files/oauth2-proxy.in (+79 lines)
Line 0 Link Here
1
#!/bin/sh
2
3
# $FreeBSD$
4
#
5
# PROVIDE: oauth2_proxy
6
# REQUIRE: NETWORKING SERVERS
7
# KEYWORD: shutdown
8
#
9
# Add these following line to /etc/rc.conf.local or /etc/rc.conf
10
# to enable this service:
11
#
12
# oauth2_proxy_enable (bool):         Set it to YES to enable keycloak on startup.
13
#                                 Default: NO
14
# oauth2_proxy_user (string):         User account to run with.
15
#                                 Default: www
16
# oauth2_proxy_flags (string):        Additional flags for the startup script.
17
#
18
19
. /etc/rc.subr
20
21
name=oauth2_proxy
22
rcvar=oauth2_proxy_enable
23
desc="OAuth 2.0 proxy server"
24
25
load_rc_config $name
26
27
: ${oauth2_proxy_enable:=NO}
28
: ${oauth2_proxy_user:=%%USER%%}
29
: ${oauth2_proxy_group:=%%GROUP%%}
30
: ${oauth2_proxy_flags:=""}
31
: ${oauth2_proxy_restart:=60}
32
33
pidfile=%%RUN_DIR%%/%%PORTNAME%%.pid
34
command=/usr/sbin/daemon
35
command_args="-u ${oauth2_proxy_user} -o %%LOG_DIR%%/%%PORTNAME%%.out -t %%PORTNAME%% -R ${oauth2_proxy_restart} -P ${pidfile}"
36
37
start_cmd="oauth2_proxy_start"
38
stop_cmd="oauth2_proxy_stop"
39
40
oauth2_proxy_start()
41
{
42
	if [ ! -d "%%LOG_DIR%%" ]; then
43
		install -d -o ${oauth2_proxy_user} %%LOG_DIR%%
44
	fi
45
	if [ ! -d "%%RUN_DIR%%" ]; then
46
		install -d -o ${oauth2_proxy_user} %%RUN_DIR%%
47
	fi
48
49
	chown -R ${oauth2_proxy_user} %%LOG_DIR%%
50
51
	echo "Starting %%PORTNAME%%."
52
        ${command} ${command_args} \
53
                %%PREFIX%%/bin/%%PORTNAME%% \
54
                --config %%PREFIX%%/etc/%%PORTNAME%%.cfg \
55
                ${oauth2_proxy_flags}
56
}
57
58
oauth2_proxy_stop()
59
{
60
    local pid_daemon
61
    local pid_child
62
63
    echo "Stopping %%PORTNAME%%."
64
65
    pid_daemon=$(check_pidfile ${pidfile} ${command})
66
    if [ ! -z "${pid_daemon}" ]; then
67
        kill -TERM ${pid_daemon}
68
    fi
69
70
71
    pid_child=$(pgrep -U ${oauth2_proxy_user} -f %%PREFIX%%/bin/%%PORTNAME%%)
72
    if [ ! -z "${pid_child}" ]; then
73
        kill -TERM ${pid_child}
74
    fi
75
76
    wait_for_pids ${pid_daemon} ${pid_child}
77
}
78
79
run_rc_command "$1"
(-)www/oauth2-proxy/pkg-descr (+5 lines)
Line 0 Link Here
1
A reverse proxy and static file server that provides authentication using
2
Providers (Google, GitHub, and others) to validate accounts by email, domain
3
or group.
4
5
WWW: https://github.com/oauth2-proxy/oauth2-proxy
(-)www/oauth2-proxy/pkg-plist (+10 lines)
Line 0 Link Here
1
bin/oauth2-proxy
2
@owner www
3
@group www
4
@mode 600
5
@sample %%ETCDIR%%.cfg.sample
6
@mode
7
@dir /var/log/oauth2-proxy
8
@dir /var/run/oauth2-proxy
9
@owner
10
@group

Return to bug 252832