From owner-dev-commits-ports-main@freebsd.org Tue Aug 3 06:47:46 2021 Return-Path: Delivered-To: dev-commits-ports-main@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 9395E631ED7; Tue, 3 Aug 2021 06:47:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Gf56B3phxz4sWb; Tue, 3 Aug 2021 06:47:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 6ACD66A31; Tue, 3 Aug 2021 06:47:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1736lkhn028280; Tue, 3 Aug 2021 06:47:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1736lkB8028279; Tue, 3 Aug 2021 06:47:46 GMT (envelope-from git) Date: Tue, 3 Aug 2021 06:47:46 GMT Message-Id: <202108030647.1736lkB8028279@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Bernhard Froehlich Subject: git: 26613bdbc44d - main - security/vouch-proxy: Add new port MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: decke X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 26613bdbc44d37ecc0cfdbe726b50e5a01f1ff78 Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-main@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commits to the main branch of the FreeBSD ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Aug 2021 06:47:46 -0000 The branch main has been updated by decke: URL: https://cgit.FreeBSD.org/ports/commit/?id=26613bdbc44d37ecc0cfdbe726b50e5a01f1ff78 commit 26613bdbc44d37ecc0cfdbe726b50e5a01f1ff78 Author: Bernhard Froehlich AuthorDate: 2021-08-03 06:46:19 +0000 Commit: Bernhard Froehlich CommitDate: 2021-08-03 06:46:19 +0000 security/vouch-proxy: Add new port An SSO solution for Nginx using the auth_request module. Vouch Proxy can protect all of your websites at once. Vouch Proxy supports many OAuth and OIDC login providers and can enforce authentication to Google, GitHub, Okta and many more. WWW: https://github.com/vouch/vouch-proxy --- security/Makefile | 1 + security/vouch-proxy/Makefile | 23 +++++++++++++++++++++++ security/vouch-proxy/distinfo | 5 +++++ security/vouch-proxy/files/vouch-proxy.in | 19 +++++++++++++++++++ security/vouch-proxy/pkg-descr | 7 +++++++ security/vouch-proxy/pkg-plist | 13 +++++++++++++ 6 files changed, 68 insertions(+) diff --git a/security/Makefile b/security/Makefile index 2cb4494a6301..be4e71c56c82 100644 --- a/security/Makefile +++ b/security/Makefile @@ -1305,6 +1305,7 @@ SUBDIR += vlock SUBDIR += vm-to-tor SUBDIR += vnccrack + SUBDIR += vouch-proxy SUBDIR += vpnc SUBDIR += vuls SUBDIR += vuxml diff --git a/security/vouch-proxy/Makefile b/security/vouch-proxy/Makefile new file mode 100644 index 000000000000..ff6468c47629 --- /dev/null +++ b/security/vouch-proxy/Makefile @@ -0,0 +1,23 @@ +PORTNAME= vouch-proxy +DISTVERSIONPREFIX=v +DISTVERSION= 0.29.1 +CATEGORIES= security + +MAINTAINER= decke@FreeBSD.org +COMMENT= SSO solution for Nginx using the auth_request module + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= go:modules + +USE_RC_SUBR= ${PORTNAME} + +GO_MODULE= github.com/vouch/vouch-proxy +GO_BUILDFLAGS= -ldflags "-X main.version=${PORTVERSION} -X main.uname=FreeBSD" + +post-install: + @${MKDIR} ${STAGEDIR}${ETCDIR} + (cd ${WRKSRC}/config && ${COPYTREE_SHARE} "config.yml*" ${STAGEDIR}${ETCDIR}) + +.include diff --git a/security/vouch-proxy/distinfo b/security/vouch-proxy/distinfo new file mode 100644 index 000000000000..5f52d5faa02c --- /dev/null +++ b/security/vouch-proxy/distinfo @@ -0,0 +1,5 @@ +TIMESTAMP = 1627972867 +SHA256 (go/security_vouch-proxy/vouch-proxy-v0.29.1/v0.29.1.mod) = 441c7b64635398cb3a37e2851029f0adf2b99bfe39a889cdb7676e9f45dd48e0 +SIZE (go/security_vouch-proxy/vouch-proxy-v0.29.1/v0.29.1.mod) = 1287 +SHA256 (go/security_vouch-proxy/vouch-proxy-v0.29.1/v0.29.1.zip) = 819d5be679c3d9e1f8ae0731f169a4ce1865795fc0ca923a90226a4a73e16ab7 +SIZE (go/security_vouch-proxy/vouch-proxy-v0.29.1/v0.29.1.zip) = 253158 diff --git a/security/vouch-proxy/files/vouch-proxy.in b/security/vouch-proxy/files/vouch-proxy.in new file mode 100644 index 000000000000..a735628924e3 --- /dev/null +++ b/security/vouch-proxy/files/vouch-proxy.in @@ -0,0 +1,19 @@ +#!/bin/sh + +# PROVIDE: vouchproxy +# REQUIRE: NETWORKING + +. /etc/rc.subr + +name="vouchproxy" +rcvar="vouchproxy_enable" + +pidfile="/var/run/${name}.pid" +command="/usr/sbin/daemon" +command_args="-P ${pidfile} -r -f -o /var/log/${name}.log %%PREFIX%%/bin/vouch-proxy" + +load_rc_config $name +: ${vouchproxy_enable:=NO} +: ${vouchproxy_env:="VOUCH_CONFIG=%%PREFIX%%/etc/vouch-proxy/config.yml"} + +run_rc_command "$1" diff --git a/security/vouch-proxy/pkg-descr b/security/vouch-proxy/pkg-descr new file mode 100644 index 000000000000..39747950175b --- /dev/null +++ b/security/vouch-proxy/pkg-descr @@ -0,0 +1,7 @@ +An SSO solution for Nginx using the auth_request module. Vouch Proxy +can protect all of your websites at once. + +Vouch Proxy supports many OAuth and OIDC login providers and can +enforce authentication to Google, GitHub, Okta and many more. + +WWW: https://github.com/vouch/vouch-proxy diff --git a/security/vouch-proxy/pkg-plist b/security/vouch-proxy/pkg-plist new file mode 100644 index 000000000000..9cb28262d066 --- /dev/null +++ b/security/vouch-proxy/pkg-plist @@ -0,0 +1,13 @@ +bin/vouch-proxy +%%ETCDIR%%/config.yml_example +%%ETCDIR%%/config.yml_example_adfs +%%ETCDIR%%/config.yml_example_azure +%%ETCDIR%%/config.yml_example_gitea +%%ETCDIR%%/config.yml_example_github +%%ETCDIR%%/config.yml_example_github_enterprise +%%ETCDIR%%/config.yml_example_google +%%ETCDIR%%/config.yml_example_homeassistant +%%ETCDIR%%/config.yml_example_indieauth +%%ETCDIR%%/config.yml_example_nextcloud +%%ETCDIR%%/config.yml_example_oidc +%%ETCDIR%%/config.yml_example_scopes_and_claims