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: Sun, 25 Dec 2016 13:08:31
Message-Id: 1482671263.760db8fd6c679d2b4b2955e45f782041cf8b4a9f.mrueg@gentoo
1 commit: 760db8fd6c679d2b4b2955e45f782041cf8b4a9f
2 Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
3 AuthorDate: Sun Dec 25 13:07:43 2016 +0000
4 Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
5 CommitDate: Sun Dec 25 13:07:43 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=760db8fd
7
8 sys-auth/docker_auth: Remove old
9
10 Package-Manager: portage-2.3.3
11
12 sys-auth/docker_auth/Manifest | 1 -
13 sys-auth/docker_auth/docker_auth-1.1-r1.ebuild | 97 --------------------------
14 2 files changed, 98 deletions(-)
15
16 diff --git a/sys-auth/docker_auth/Manifest b/sys-auth/docker_auth/Manifest
17 index f08ff2a..463499c 100644
18 --- a/sys-auth/docker_auth/Manifest
19 +++ b/sys-auth/docker_auth/Manifest
20 @@ -2,7 +2,6 @@ DIST dchest-uniuri-8902c56451e9b58ff940bbe5fec35d5f9c04584a.tar.gz 2471 SHA256 f
21 DIST deckarep-golang-set-ceca0031971f0401859beb9fc7396188545e4c9f.tar.gz 11663 SHA256 57420792d39db32401f4b5befa67831569aefe5b92b24fdeab54de6fdd1559b1 SHA512 9b7b610809ed0035d2b6d6de1f5feab3e09790f5ead2f8a0c6142bb360f91aaa15d6bb9d8b939311bb2fcda693470ef231830097a6b732e5010334b358714b89 WHIRLPOOL 4f1c14b5d000d251ddacff6df4bbd73eaf21c2fb3e95aba25ef765efe26a9409830cb6f0a02b90168095c2cccf16e0d18a5d2a4d4649ef128d5aff945268b0e2
22 DIST docker-distribution-314144ac0bdb35c759a63eed71cda272b7bbddff.tar.gz 1579756 SHA256 1bc77a467ef77c2390ff06805dfaae8ffd2e7e40d488c02378c6993dc522bd6e SHA512 272788bf1b2f680a0d4ddee5081e5c705cecea3398eb425177327069746eeae63079aed16877c6b9c9e94e80ceba7343b0adeff56b53d903a0ff18241a62d5af WHIRLPOOL dde5c1573a8bfe1111f4aaaa59ae223a3783a9d0feeab3bb044ff22fe92c49221f4b599a3ab38ac631b180e0e2e397e3328ea545da08057213e35f550dfcfd3b
23 DIST docker-libtrust-aabc10ec26b754e797f9028f4589c5b7bd90dc20.tar.gz 39352 SHA256 a3cb5fd53b4eb0ef259f039d0d10e237c8fff86993f9335959cf233956f0c065 SHA512 31d5a613807764c03d3356ee134bf384eca7953d4113e35d8fcce322611c25b444dd07904eb34c86c7e951529040c33fa821a56a687260e9298f900c7907e83b WHIRLPOOL 0b1cd73ba1ca2858324d6bc7f862bb794480d908250b8e05b3b28ff06837420e3b71107d040d3dfdda031cbcb72d0d0a3e934406a06d0e21c9a69708363b8f92
24 -DIST docker_auth-1.1.tar.gz 35287 SHA256 442e2f8f2b42d97d49fce5e7de422217a31b8dfd0254466d9019f995b7d37e06 SHA512 e0c745be55ca7237fe2045dfb339b992ed8f38cfdb185b15b678d31107a918793095cfe1fc9cc28fcedae67e02fabf28acf82ec22f0eaa4be485ed9ec090fbba WHIRLPOOL ef1518a9887adccaf34c2f83ca1a6bbaaa00dcc6acfd48d134b4f7737fe3a8ea931bb5cd87dc56ee593aec52af61ad7a8943a3edc3d018efd61f07399a1f317d
25 DIST docker_auth-1.2.tar.gz 35773 SHA256 1cbef353519a53a70563357b6c8df9016edae39fbaf65410b7d83ea6b367d88c SHA512 082c0c28ef9ff6b273c4a493ea36c669628f7ab50d70ef6d33d3e6e1710f1db1f7d0e11286923ef9c2e950f62eeade202d21a9f471d86bf2fb95d0a77619a57b WHIRLPOOL b3157bbc3616211aed9b0243703fd1719daed61df86724f3721eb567a2f196a4894ab9dd785c4062cde452bbc1ae5adf23f54dd0a99c73495d8472a929ba1636
26 DIST facebookgo-clock-600d898af40aa09a7a93ecb9265d87b0504b6f03.tar.gz 6382 SHA256 363140ddedf035ef012e0b17a35d32210f51b7f160c3fb0e89d08aa83d1870e0 SHA512 023741d93573d53471d1ec10a47c2a0034ecd0e0db35440b50bc7085ddd94e9cd5d0388586a25b060b50a1b9e442d4974a931b3f5d14aa1710629f19ad4acf8f WHIRLPOOL 2dd3fce28c58fb16998449d47433b3e0f726ef74323b116d60c4cfffeb9dac57320602883ab1b620b4ae9099e88f398dc34463f389008e8cfeff457db9b22c5d
27 DIST facebookgo-httpdown-a3b1354551a26449fbe05f5d855937f6e7acbd71.tar.gz 9729 SHA256 c34330738c168a17a7720bd32fb00311005bd8c0d6bb5d6690bb2e73a81386ca SHA512 1958e337e1fd896227dd4a2eb551ffe92ffe12a25acdc422ad14c6234eb5e080a6f537f73175c2246768978803edf5fd9425925880546746e996e51a232bc7bd WHIRLPOOL 2234ea870430e3e35771550add39542f84522f656193f14b794dedca0a4c3a537513d8a6b686265e814d528e3c9139fc125f3584531a24bc3862f724e36b43ce
28
29 diff --git a/sys-auth/docker_auth/docker_auth-1.1-r1.ebuild b/sys-auth/docker_auth/docker_auth-1.1-r1.ebuild
30 deleted file mode 100644
31 index e535d4d..00000000
32 --- a/sys-auth/docker_auth/docker_auth-1.1-r1.ebuild
33 +++ /dev/null
34 @@ -1,97 +0,0 @@
35 -# Copyright 1999-2016 Gentoo Foundation
36 -# Distributed under the terms of the GNU General Public License v2
37 -# $Id$
38 -
39 -EAPI=6
40 -EGO_PN="github.com/cesanta/docker_auth/..."
41 -
42 -inherit user golang-build golang-vcs-snapshot
43 -
44 -SHORT_COMMIT="0b4bb77"
45 -SRC_URI="https://${EGO_PN%/*}/archive/${PV}.tar.gz -> ${P}.tar.gz
46 - https://github.com/dchest/uniuri/archive/8902c56451e9b58ff940bbe5fec35d5f9c04584a.tar.gz -> dchest-uniuri-8902c56451e9b58ff940bbe5fec35d5f9c04584a.tar.gz
47 - https://github.com/deckarep/golang-set/archive/ceca0031971f0401859beb9fc7396188545e4c9f.tar.gz -> deckarep-golang-set-ceca0031971f0401859beb9fc7396188545e4c9f.tar.gz
48 - https://github.com/docker/distribution/archive/314144ac0bdb35c759a63eed71cda272b7bbddff.tar.gz -> docker-distribution-314144ac0bdb35c759a63eed71cda272b7bbddff.tar.gz
49 - https://github.com/docker/libtrust/archive/aabc10ec26b754e797f9028f4589c5b7bd90dc20.tar.gz -> docker-libtrust-aabc10ec26b754e797f9028f4589c5b7bd90dc20.tar.gz
50 - https://github.com/facebookgo/httpdown/archive/a3b1354551a26449fbe05f5d855937f6e7acbd71.tar.gz -> facebookgo-httpdown-a3b1354551a26449fbe05f5d855937f6e7acbd71.tar.gz
51 - https://github.com/facebookgo/clock/archive/600d898af40aa09a7a93ecb9265d87b0504b6f03.tar.gz -> facebookgo-clock-600d898af40aa09a7a93ecb9265d87b0504b6f03.tar.gz
52 - https://github.com/facebookgo/stats/archive/1b76add642e42c6ffba7211ad7b3939ce654526e.tar.gz -> facebookgo-stats-1b76add642e42c6ffba7211ad7b3939ce654526e.tar.gz
53 - https://github.com/go-ldap/ldap/archive/8168ee085ee43257585e50c6441aadf54ecb2c9f.tar.gz -> go-ldap-ldap-8168ee085ee43257585e50c6441aadf54ecb2c9f.tar.gz
54 - https://github.com/golang/glog/archive/23def4e6c14b4da8ac2ed8007337bc5eb5007998.tar.gz -> golang-glog-23def4e6c14b4da8ac2ed8007337bc5eb5007998.tar.gz
55 - https://github.com/syndtr/goleveldb/archive/6b4daa5362b502898ddf367c5c11deb9e7a5c727.tar.gz -> syndtr-goleveldb-6b4daa5362b502898ddf367c5c11deb9e7a5c727.tar.gz
56 - https://github.com/golang/snappy/archive/d9eb7a3d35ec988b8585d4a0068e462c27d28380.tar.gz -> golang-snappy-d9eb7a3d35ec988b8585d4a0068e462c27d28380.tar.gz
57 - https://github.com/go-asn1-ber/asn1-ber/archive/4e86f4367175e39f69d9358a5f17b4dda270378d.tar.gz -> go-asn1-ber-asn1-ber-4e86f4367175e39f69d9358a5f17b4dda270378d.tar.gz
58 - https://github.com/fsnotify/fsnotify/archive/629574ca2a5df945712d3079857300b5e4da0236.tar.gz -> fsnotify-fsnotify-629574ca2a5df945712d3079857300b5e4da0236.tar.gz
59 - https://github.com/go-mgo/mgo/archive/3f83fa5005286a7fe593b055f0d7771a7dce4655.tar.gz -> go-mgo-mgo-3f83fa5005286a7fe593b055f0d7771a7dce4655.tar.gz
60 - https://github.com/go-yaml/yaml/archive/a5b47d31c556af34a302ce5d659e6fea44d90de0.tar.gz -> go-yaml-yaml-a5b47d31c556af34a302ce5d659e6fea44d90de0.tar.gz"
61 -KEYWORDS="~amd64"
62 -
63 -DESCRIPTION="Docker Registry 2 authentication server"
64 -HOMEPAGE="http://github.com/cesanta/docker_auth"
65 -
66 -LICENSE="Apache-2.0"
67 -SLOT="0"
68 -IUSE=""
69 -
70 -DEPEND="dev-go/go-crypto:=
71 - dev-go/go-sys:="
72 -
73 -_golang-include-src() {
74 - local VENDORPN=$1 TARBALL=$2
75 - mkdir -p "${WORKDIR}/${P}/src/${VENDORPN}" || die
76 - tar -C "${WORKDIR}/${P}/src/${VENDORPN}" -x --strip-components 1\
77 - -f "${DISTDIR}"/${TARBALL} || die
78 -}
79 -
80 -pkg_setup() {
81 - enewgroup ${PN}
82 - enewuser ${PN} -1 -1 /dev/null ${PN}
83 -}
84 -
85 -src_unpack() {
86 - golang-vcs-snapshot_src_unpack
87 - _golang-include-src github.com/dchest/uniuri dchest-uniuri*.tar.gz
88 - _golang-include-src github.com/deckarep/golang-set deckarep-golang-set*.tar.gz
89 - _golang-include-src github.com/docker/distribution docker-distribution*.tar.gz
90 - _golang-include-src github.com/docker/libtrust docker-libtrust*.tar.gz
91 - _golang-include-src github.com/facebookgo/httpdown facebookgo-httpdown-*.tar.gz
92 - _golang-include-src github.com/facebookgo/clock facebookgo-clock-*.tar.gz
93 - _golang-include-src github.com/facebookgo/stats facebookgo-stats-*.tar.gz
94 - _golang-include-src github.com/go-ldap/ldap go-ldap-ldap-*.tar.gz
95 - _golang-include-src github.com/golang/glog golang-glog-*.tar.gz
96 - _golang-include-src github.com/go-ldap/ldap go-ldap-ldap-*.tar.gz
97 - _golang-include-src github.com/syndtr/goleveldb syndtr-goleveldb-*.tar.gz
98 - _golang-include-src github.com/golang/snappy golang-snappy-*.tar.gz
99 - _golang-include-src gopkg.in/asn1-ber.v1 go-asn1-ber-asn1-ber-*.tar.gz
100 - _golang-include-src gopkg.in/fsnotify.v1 fsnotify-fsnotify-*.tar.gz
101 - _golang-include-src gopkg.in/mgo.v2 go-mgo-*.tar.gz
102 - _golang-include-src gopkg.in/yaml.v2 go-yaml-*.tar.gz
103 -}
104 -
105 -src_prepare() {
106 - default
107 - cp "${FILESDIR}/version.go" src/${EGO_PN%/*}/auth_server/version.go || die
108 - sed -i -e "s/{version}/${PV}/" -e "s/{build_id}/${SHORT_COMMIT}/" src/${EGO_PN%/*}/auth_server/version.go || die
109 -}
110 -
111 -src_compile() {
112 - pushd src/${EGO_PN%/*}/auth_server || die
113 - GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" go build -o "bin/auth_server" || die
114 - popd || die
115 -}
116 -
117 -src_install() {
118 - pushd src/${EGO_PN%/*} || die
119 - dodoc README.md docs/Backend_MongoDB.md
120 - insinto /usr/share/${PF}
121 - doins -r examples
122 - insinto /etc/docker_auth/
123 - newins examples/reference.yml config.yml.example
124 - dobin auth_server/bin/auth_server
125 - newinitd "${FILESDIR}"/${PN}.initd ${PN}
126 - newconfd "${FILESDIR}"/${PN}.confd ${PN}
127 - insinto /etc/logrotate.d
128 - newins "${FILESDIR}"/${PN}.logrotated ${PN}
129 - keepdir /var/log/docker_auth
130 - popd || die
131 -}