Gentoo Archives: gentoo-commits

From: "Manuel Rüger" <mrueg@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-auth/docker_auth/
Date: Thu, 31 Jan 2019 16:36:28
Message-Id: 1548952560.8a8dc3d9260b1d82c240fb583d4384218eca07c4.mrueg@gentoo
1 commit: 8a8dc3d9260b1d82c240fb583d4384218eca07c4
2 Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 31 16:36:00 2019 +0000
4 Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 31 16:36:00 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8a8dc3d9
7
8 sys-auth/docker_auth: Version bump to 1.4.0
9
10 Package-Manager: Portage-2.3.59, Repoman-2.3.12
11 Signed-off-by: Manuel Rüger <mrueg <AT> gentoo.org>
12
13 sys-auth/docker_auth/Manifest | 1 +
14 sys-auth/docker_auth/docker_auth-1.4.0.ebuild | 91 +++++++++++++++++++++++++++
15 2 files changed, 92 insertions(+)
16
17 diff --git a/sys-auth/docker_auth/Manifest b/sys-auth/docker_auth/Manifest
18 index dfac227e595..80d2485ae75 100644
19 --- a/sys-auth/docker_auth/Manifest
20 +++ b/sys-auth/docker_auth/Manifest
21 @@ -1,4 +1,5 @@
22 DIST docker_auth-1.3.1.tar.gz 49687 BLAKE2B 7c7c8235ad4eb139d1b964de3583a714040747b0823f33bd529469834c75539c583bdca56b0a6cbabeed4eb3435845f831f10a65ae2ef4a445b7b13d4a16695c SHA512 fe5a37a3975fe33c38db649be0560f87b8c179273bb3d2e044f2df3840e316f8a9f292a94ea601896cbe8c137560200be98628b873a0cd53b2d6b17c5164537d
23 +DIST docker_auth-1.4.0.tar.gz 54036 BLAKE2B ca7b8c229456bd878579ecf688484c80cc46b06beb95886d8652945742233f3a8214059da2363cf5c03462ee2b49f8c14dfc01a42496b6afed145a12687b9b1e SHA512 f20b3ee907c65053e1e873f96fd7ffdca09b43d625a1a429339d9bd20e7cbd662e5b5b1bdb44ca7e072f2b0097abefac4cf5682e71fca9a9ba92ca4ca567c33f
24 DIST github.com-GoogleCloudPlatform-gcloud-golang-20d4028b8a750c2aca76bf9fefa8ed2d0109b573.tar.gz 873021 BLAKE2B f6bd3a08081b7ddd9c61884ba3157654139c70982ffa7245ed988bb1f0fd80af98ccac556168e90ea871ccc0909d03e7f1ee7bcf7cbf2160bbf764e412d123ad SHA512 e98f269d70927bb59fee31059e2d24a5ba71837adbf1f6619b1d9df0a3ec11ef58a2bdf46de6dc45f9ee0a3985c37bc05004beac34b94bc790093aa1550c939a
25 DIST github.com-cesanta-glog-22eb27a0ae192b290b25537b8e876556fc25129c.tar.gz 20273 BLAKE2B 982093a19a04611d3e1e9c06dd499fd7eb4730c49057e2c86042acecbf7f1920b6dd83133eb0ae07938ab995cbf809aa7d2236c67a805e3f16ff2c2535e2f66b SHA512 3c4b757fc0d0e45382b1ef0180eea2f0429e8c7ecac0089fca79bc717f6c0a04918b91a144ca78331178cc914b808b40596c6a6e214157d2f812858be31c13d6
26 DIST github.com-dchest-uniuri-8902c56451e9b58ff940bbe5fec35d5f9c04584a.tar.gz 2471 BLAKE2B 9cc560893309347a9f012cdb32009bc7201511fa337339c8ced7c671e4b43100e36370dc71c47001e33e411b7707c30787a36e953fa5d15990a1f0edf38accc2 SHA512 70421b526e3040a49e63be6c892de2953b4f9ecdb01b148eb2bab3814f610a8c39bd98aad858cbaf9dcf621b52ee9ef952f0cdcdc6eca77da8ebf80dbbf1c04c
27
28 diff --git a/sys-auth/docker_auth/docker_auth-1.4.0.ebuild b/sys-auth/docker_auth/docker_auth-1.4.0.ebuild
29 new file mode 100644
30 index 00000000000..9c6effc2e32
31 --- /dev/null
32 +++ b/sys-auth/docker_auth/docker_auth-1.4.0.ebuild
33 @@ -0,0 +1,91 @@
34 +# Copyright 1999-2019 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=6
38 +EGO_PN="github.com/cesanta/docker_auth"
39 +
40 +EGO_VENDOR=(
41 + "github.com/dchest/uniuri 8902c56451e9b58ff940bbe5fec35d5f9c04584a"
42 + "github.com/deckarep/golang-set fc8930a5e645572ee00bf66358ed3414f3c13b90"
43 + "github.com/docker/distribution 0700fa570d7bcc1b3e46ee127c4489fd25f4daa3"
44 + "github.com/docker/libtrust aabc10ec26b754e797f9028f4589c5b7bd90dc20"
45 + "github.com/facebookgo/httpdown a3b1354551a26449fbe05f5d855937f6e7acbd71"
46 + "github.com/facebookgo/clock 600d898af40aa09a7a93ecb9265d87b0504b6f03"
47 + "github.com/facebookgo/stats 1b76add642e42c6ffba7211ad7b3939ce654526e"
48 + "github.com/go-ldap/ldap 13cedcf58a1ea124045dea529a66c849d3444c8e"
49 + "github.com/cesanta/glog 22eb27a0ae192b290b25537b8e876556fc25129c"
50 + "github.com/schwarmco/go-cartesian-product c2c0aca869a6cbf51e017ce148b949d9dee09bc3"
51 + "github.com/syndtr/goleveldb 3c5717caf1475fd25964109a0fc640bd150fce43"
52 + "github.com/golang/snappy 553a641470496b2327abcac10b36396bd98e45c9"
53 + "gopkg.in/asn1-ber.v1 4e86f4367175e39f69d9358a5f17b4dda270378d github.com/go-asn1-ber/asn1-ber"
54 + "gopkg.in/fsnotify.v1 629574ca2a5df945712d3079857300b5e4da0236 github.com/fsnotify/fsnotify"
55 + "gopkg.in/mgo.v2 3f83fa5005286a7fe593b055f0d7771a7dce4655 github.com/go-mgo/mgo"
56 + "gopkg.in/yaml.v2 a3f3340b5840cee44f372bddb5880fcbc419b46a github.com/go-yaml/yaml"
57 + "golang.org/x/crypto e1a4589e7d3ea14a3352255d04b6f1a418845e5e github.com/golang/crypto"
58 + "golang.org/x/sys 493114f68206f85e7e333beccfabc11e98cba8dd github.com/golang/sys"
59 + "golang.org/x/net 859d1a86bb617c0c20d154590c3c5d3fcb670b07 github.com/golang/net"
60 + "google.golang.org/api 39c3dd417c5a443607650f18e829ad308da08dd2 github.com/google/google-api-go-client"
61 + "google.golang.org/grpc 35170916ff58e89ae03f52e778228e18207e0e02 github.com/grpc/grpc-go"
62 + "github.com/golang/protobuf 11b8df160996e00fd4b55cbaafb3d84ec6d50fa8"
63 + "golang.org/x/oauth2 13449ad91cb26cb47661c1b080790392170385fd github.com/golang/oauth2"
64 + "cloud.google.com/go 20d4028b8a750c2aca76bf9fefa8ed2d0109b573 github.com/GoogleCloudPlatform/gcloud-golang"
65 + "golang.org/x/text ab5ac5f9a8deb4855a60fab02bc61a4ec770bd49 github.com/golang/text"
66 + "github.com/googleapis/gax-go 8c160ca1523d8eea3932fbaa494c8964b7724aa8"
67 + "google.golang.org/genproto 595979c8a7bf586b2d293fb42246bf91a0b893d9 github.com/google/go-genproto"
68 + )
69 +
70 +inherit user golang-build golang-vcs-snapshot
71 +EGIT_COMMIT="b89dec9a4f0098fb0f71d9b94e44d1710c1fe5cf"
72 +SHORT_COMMIT=${EGIT_COMMIT:0:7}
73 +SRC_URI="https://${EGO_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz
74 + ${EGO_VENDOR_URI}"
75 +KEYWORDS="~amd64"
76 +
77 +DESCRIPTION="Docker Registry 2 authentication server"
78 +HOMEPAGE="https://github.com/cesanta/docker_auth"
79 +
80 +LICENSE="Apache-2.0"
81 +SLOT="0"
82 +IUSE=""
83 +
84 +DEPEND="dev-go/go-bindata"
85 +
86 +RESTRICT="test"
87 +
88 +pkg_setup() {
89 + enewgroup ${PN}
90 + enewuser ${PN} -1 -1 /dev/null ${PN}
91 +}
92 +
93 +src_prepare() {
94 + default
95 + pushd src/${EGO_PN}
96 + cp "${FILESDIR}/version.go" auth_server/version.go || die
97 + sed -i -e "s/{version}/${PV}/" -e "s/{build_id}/${SHORT_COMMIT}/" auth_server/version.go || die
98 + sed -i -e "/.*gen_version.py*/d" auth_server/main.go || die
99 + popd || die
100 +}
101 +
102 +src_compile() {
103 + pushd src/${EGO_PN}/auth_server || die
104 + GOPATH="${WORKDIR}/${P}" emake generate
105 + GOPATH="${WORKDIR}/${P}" go build -v -o "bin/auth_server" || die
106 + popd || die
107 +}
108 +
109 +src_install() {
110 + pushd src/${EGO_PN} || die
111 + dodoc README.md docs/*
112 + insinto /usr/share/${PF}
113 + doins -r examples
114 + insinto /etc/docker_auth/
115 + newins examples/reference.yml config.yml.example
116 + dobin auth_server/bin/auth_server
117 + popd || die
118 + newinitd "${FILESDIR}"/${PN}.initd ${PN}
119 + newconfd "${FILESDIR}"/${PN}.confd ${PN}
120 + insinto /etc/logrotate.d
121 + newins "${FILESDIR}"/${PN}.logrotated ${PN}
122 + keepdir /var/log/docker_auth
123 + fowners ${PN}:${PN} /var/log/docker_auth
124 +}