oauth2_proxy 2.2
use upstream gpm vendoring Closes #12856. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
parent
91420e4a99
commit
4b6eaa2868
1 changed files with 4 additions and 61 deletions
|
@ -1,10 +1,8 @@
|
|||
require "language/go"
|
||||
|
||||
class Oauth2Proxy < Formula
|
||||
desc "Reverse proxy for authenticating users via OAuth 2 providers"
|
||||
homepage "https://github.com/bitly/oauth2_proxy"
|
||||
url "https://github.com/bitly/oauth2_proxy/archive/v2.1.tar.gz"
|
||||
sha256 "e9f23bedaca7ee1da24c2834337846ccc618f8e55c698ae8e94394924c93858a"
|
||||
url "https://github.com/bitly/oauth2_proxy/archive/v2.2.tar.gz"
|
||||
sha256 "dae9bae213ccf2a98bf36177e04c1edf4688989c58c383525258956679ddcc19"
|
||||
head "https://github.com/bitly/oauth2_proxy.git"
|
||||
|
||||
bottle do
|
||||
|
@ -15,61 +13,7 @@ class Oauth2Proxy < Formula
|
|||
end
|
||||
|
||||
depends_on "go" => :build
|
||||
|
||||
go_resource "cloud.google.com/go" do
|
||||
url "https://code.googlesource.com/gocloud.git",
|
||||
:revision => "34b7f5b9fef1f79d2953ca03a36a9b824a1c54af"
|
||||
end
|
||||
|
||||
go_resource "github.com/18F/hmacauth" do
|
||||
url "https://github.com/18F/hmacauth.git",
|
||||
:revision => "9232a6386b737d7d1e5c1c6e817aa48d5d8ee7cd"
|
||||
end
|
||||
|
||||
go_resource "github.com/BurntSushi/toml" do
|
||||
url "https://github.com/BurntSushi/toml.git",
|
||||
:revision => "99064174e013895bbd9b025c31100bd1d9b590ca"
|
||||
end
|
||||
|
||||
go_resource "github.com/bitly/go-simplejson" do
|
||||
url "https://github.com/bitly/go-simplejson.git",
|
||||
:revision => "aabad6e819789e569bd6aabf444c935aa9ba1e44"
|
||||
end
|
||||
|
||||
go_resource "github.com/bmizerany/assert" do
|
||||
url "https://github.com/bmizerany/assert.git",
|
||||
:revision => "b7ed37b82869576c289d7d97fb2bbd8b64a0cb28"
|
||||
end
|
||||
|
||||
go_resource "github.com/mreiferson/go-options" do
|
||||
url "https://github.com/mreiferson/go-options.git",
|
||||
:revision => "33795234b6f327f1be2d78a541893012362a4e06"
|
||||
end
|
||||
|
||||
go_resource "golang.org/x/net" do
|
||||
url "https://go.googlesource.com/net.git",
|
||||
:revision => "9313baa13d9262e49d07b20ed57dceafcd7240cc"
|
||||
end
|
||||
|
||||
go_resource "golang.org/x/oauth2" do
|
||||
url "https://go.googlesource.com/oauth2.git",
|
||||
:revision => "3c3a985cb79f52a3190fbc056984415ca6763d01"
|
||||
end
|
||||
|
||||
go_resource "golang.org/x/sys" do
|
||||
url "https://go.googlesource.com/sys.git",
|
||||
:revision => "30de6d19a3bd89a5f38ae4028e23aaa5582648af"
|
||||
end
|
||||
|
||||
go_resource "google.golang.org/api" do
|
||||
url "https://code.googlesource.com/google-api-go-client.git",
|
||||
:revision => "a69f0f19d246419bb931b0ac8f4f8d3f3e6d4feb"
|
||||
end
|
||||
|
||||
go_resource "gopkg.in/fsnotify.v1" do
|
||||
url "https://gopkg.in/fsnotify.v1.git",
|
||||
:revision => "a8a77c9133d2d6fd8334f3260d06f60e8d80a5fb"
|
||||
end
|
||||
depends_on "gpm" => :build
|
||||
|
||||
def install
|
||||
mkdir_p "#{buildpath}/src/github.com/bitly"
|
||||
|
@ -77,9 +21,8 @@ class Oauth2Proxy < Formula
|
|||
|
||||
ENV["GOPATH"] = buildpath
|
||||
|
||||
Language::Go.stage_deps resources, buildpath/"src"
|
||||
system "gpm", "install"
|
||||
system "go", "build", "-o", "#{bin}/oauth2_proxy"
|
||||
doc.install "README.md"
|
||||
(etc/"oauth2_proxy").install "contrib/oauth2_proxy.cfg.example"
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue