summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Rüger <mrueg@gentoo.org>2016-12-25 14:06:44 +0100
committerManuel Rüger <mrueg@gentoo.org>2016-12-25 14:06:57 +0100
commit168d4a683246af264daaf9abbbc8b0d3c6b0ad3f (patch)
tree22c1a9371c16d0f7601e195f8f62b07a324267ef /sys-auth/docker_auth
parentapp-editors/emacs: Remove old. (diff)
downloadgentoo-168d4a683246af264daaf9abbbc8b0d3c6b0ad3f.tar.gz
gentoo-168d4a683246af264daaf9abbbc8b0d3c6b0ad3f.tar.bz2
gentoo-168d4a683246af264daaf9abbbc8b0d3c6b0ad3f.zip
sys-auth/docker_auth: Version bump to 1.2
Package-Manager: portage-2.3.3
Diffstat (limited to 'sys-auth/docker_auth')
-rw-r--r--sys-auth/docker_auth/Manifest1
-rw-r--r--sys-auth/docker_auth/docker_auth-1.2.ebuild97
2 files changed, 98 insertions, 0 deletions
diff --git a/sys-auth/docker_auth/Manifest b/sys-auth/docker_auth/Manifest
index a307ffa7d5de..f08ff2a78a18 100644
--- a/sys-auth/docker_auth/Manifest
+++ b/sys-auth/docker_auth/Manifest
@@ -3,6 +3,7 @@ DIST deckarep-golang-set-ceca0031971f0401859beb9fc7396188545e4c9f.tar.gz 11663 S
DIST docker-distribution-314144ac0bdb35c759a63eed71cda272b7bbddff.tar.gz 1579756 SHA256 1bc77a467ef77c2390ff06805dfaae8ffd2e7e40d488c02378c6993dc522bd6e SHA512 272788bf1b2f680a0d4ddee5081e5c705cecea3398eb425177327069746eeae63079aed16877c6b9c9e94e80ceba7343b0adeff56b53d903a0ff18241a62d5af WHIRLPOOL dde5c1573a8bfe1111f4aaaa59ae223a3783a9d0feeab3bb044ff22fe92c49221f4b599a3ab38ac631b180e0e2e397e3328ea545da08057213e35f550dfcfd3b
DIST docker-libtrust-aabc10ec26b754e797f9028f4589c5b7bd90dc20.tar.gz 39352 SHA256 a3cb5fd53b4eb0ef259f039d0d10e237c8fff86993f9335959cf233956f0c065 SHA512 31d5a613807764c03d3356ee134bf384eca7953d4113e35d8fcce322611c25b444dd07904eb34c86c7e951529040c33fa821a56a687260e9298f900c7907e83b WHIRLPOOL 0b1cd73ba1ca2858324d6bc7f862bb794480d908250b8e05b3b28ff06837420e3b71107d040d3dfdda031cbcb72d0d0a3e934406a06d0e21c9a69708363b8f92
DIST docker_auth-1.1.tar.gz 35287 SHA256 442e2f8f2b42d97d49fce5e7de422217a31b8dfd0254466d9019f995b7d37e06 SHA512 e0c745be55ca7237fe2045dfb339b992ed8f38cfdb185b15b678d31107a918793095cfe1fc9cc28fcedae67e02fabf28acf82ec22f0eaa4be485ed9ec090fbba WHIRLPOOL ef1518a9887adccaf34c2f83ca1a6bbaaa00dcc6acfd48d134b4f7737fe3a8ea931bb5cd87dc56ee593aec52af61ad7a8943a3edc3d018efd61f07399a1f317d
+DIST docker_auth-1.2.tar.gz 35773 SHA256 1cbef353519a53a70563357b6c8df9016edae39fbaf65410b7d83ea6b367d88c SHA512 082c0c28ef9ff6b273c4a493ea36c669628f7ab50d70ef6d33d3e6e1710f1db1f7d0e11286923ef9c2e950f62eeade202d21a9f471d86bf2fb95d0a77619a57b WHIRLPOOL b3157bbc3616211aed9b0243703fd1719daed61df86724f3721eb567a2f196a4894ab9dd785c4062cde452bbc1ae5adf23f54dd0a99c73495d8472a929ba1636
DIST facebookgo-clock-600d898af40aa09a7a93ecb9265d87b0504b6f03.tar.gz 6382 SHA256 363140ddedf035ef012e0b17a35d32210f51b7f160c3fb0e89d08aa83d1870e0 SHA512 023741d93573d53471d1ec10a47c2a0034ecd0e0db35440b50bc7085ddd94e9cd5d0388586a25b060b50a1b9e442d4974a931b3f5d14aa1710629f19ad4acf8f WHIRLPOOL 2dd3fce28c58fb16998449d47433b3e0f726ef74323b116d60c4cfffeb9dac57320602883ab1b620b4ae9099e88f398dc34463f389008e8cfeff457db9b22c5d
DIST facebookgo-httpdown-a3b1354551a26449fbe05f5d855937f6e7acbd71.tar.gz 9729 SHA256 c34330738c168a17a7720bd32fb00311005bd8c0d6bb5d6690bb2e73a81386ca SHA512 1958e337e1fd896227dd4a2eb551ffe92ffe12a25acdc422ad14c6234eb5e080a6f537f73175c2246768978803edf5fd9425925880546746e996e51a232bc7bd WHIRLPOOL 2234ea870430e3e35771550add39542f84522f656193f14b794dedca0a4c3a537513d8a6b686265e814d528e3c9139fc125f3584531a24bc3862f724e36b43ce
DIST facebookgo-stats-1b76add642e42c6ffba7211ad7b3939ce654526e.tar.gz 5658 SHA256 9b22019e41b13c2e84dbe887689897ecc0b5a1b2410bca0454eebc83166cadc6 SHA512 12a0b172c956592c7ea1db3a8a0bda5ba80b215d938ecee1c0fa492bd04f3f896efeadeac192c5d1d57031e10d5c95578e441cbba0df080f4c4a1852de7d36fe WHIRLPOOL 211e6238c0ee34dd7d41e7b812a927f3d88e073bfde1e922795adcaf87032287913c8e59571ca412baea1a5818cbd49c2d4825c4db24244f6d3ee4e54a908430
diff --git a/sys-auth/docker_auth/docker_auth-1.2.ebuild b/sys-auth/docker_auth/docker_auth-1.2.ebuild
new file mode 100644
index 000000000000..e314a8c5d0b7
--- /dev/null
+++ b/sys-auth/docker_auth/docker_auth-1.2.ebuild
@@ -0,0 +1,97 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+EGO_PN="github.com/cesanta/docker_auth/..."
+
+inherit user golang-build golang-vcs-snapshot
+
+SHORT_COMMIT="99a7306"
+SRC_URI="https://${EGO_PN%/*}/archive/${PV}.tar.gz -> ${P}.tar.gz
+ https://github.com/dchest/uniuri/archive/8902c56451e9b58ff940bbe5fec35d5f9c04584a.tar.gz -> dchest-uniuri-8902c56451e9b58ff940bbe5fec35d5f9c04584a.tar.gz
+ https://github.com/deckarep/golang-set/archive/ceca0031971f0401859beb9fc7396188545e4c9f.tar.gz -> deckarep-golang-set-ceca0031971f0401859beb9fc7396188545e4c9f.tar.gz
+ https://github.com/docker/distribution/archive/314144ac0bdb35c759a63eed71cda272b7bbddff.tar.gz -> docker-distribution-314144ac0bdb35c759a63eed71cda272b7bbddff.tar.gz
+ https://github.com/docker/libtrust/archive/aabc10ec26b754e797f9028f4589c5b7bd90dc20.tar.gz -> docker-libtrust-aabc10ec26b754e797f9028f4589c5b7bd90dc20.tar.gz
+ https://github.com/facebookgo/httpdown/archive/a3b1354551a26449fbe05f5d855937f6e7acbd71.tar.gz -> facebookgo-httpdown-a3b1354551a26449fbe05f5d855937f6e7acbd71.tar.gz
+ https://github.com/facebookgo/clock/archive/600d898af40aa09a7a93ecb9265d87b0504b6f03.tar.gz -> facebookgo-clock-600d898af40aa09a7a93ecb9265d87b0504b6f03.tar.gz
+ https://github.com/facebookgo/stats/archive/1b76add642e42c6ffba7211ad7b3939ce654526e.tar.gz -> facebookgo-stats-1b76add642e42c6ffba7211ad7b3939ce654526e.tar.gz
+ https://github.com/go-ldap/ldap/archive/8168ee085ee43257585e50c6441aadf54ecb2c9f.tar.gz -> go-ldap-ldap-8168ee085ee43257585e50c6441aadf54ecb2c9f.tar.gz
+ https://github.com/golang/glog/archive/23def4e6c14b4da8ac2ed8007337bc5eb5007998.tar.gz -> golang-glog-23def4e6c14b4da8ac2ed8007337bc5eb5007998.tar.gz
+ https://github.com/syndtr/goleveldb/archive/6b4daa5362b502898ddf367c5c11deb9e7a5c727.tar.gz -> syndtr-goleveldb-6b4daa5362b502898ddf367c5c11deb9e7a5c727.tar.gz
+ https://github.com/golang/snappy/archive/d9eb7a3d35ec988b8585d4a0068e462c27d28380.tar.gz -> golang-snappy-d9eb7a3d35ec988b8585d4a0068e462c27d28380.tar.gz
+ https://github.com/go-asn1-ber/asn1-ber/archive/4e86f4367175e39f69d9358a5f17b4dda270378d.tar.gz -> go-asn1-ber-asn1-ber-4e86f4367175e39f69d9358a5f17b4dda270378d.tar.gz
+ https://github.com/fsnotify/fsnotify/archive/629574ca2a5df945712d3079857300b5e4da0236.tar.gz -> fsnotify-fsnotify-629574ca2a5df945712d3079857300b5e4da0236.tar.gz
+ https://github.com/go-mgo/mgo/archive/3f83fa5005286a7fe593b055f0d7771a7dce4655.tar.gz -> go-mgo-mgo-3f83fa5005286a7fe593b055f0d7771a7dce4655.tar.gz
+ https://github.com/go-yaml/yaml/archive/a5b47d31c556af34a302ce5d659e6fea44d90de0.tar.gz -> go-yaml-yaml-a5b47d31c556af34a302ce5d659e6fea44d90de0.tar.gz"
+KEYWORDS="~amd64"
+
+DESCRIPTION="Docker Registry 2 authentication server"
+HOMEPAGE="http://github.com/cesanta/docker_auth"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+IUSE=""
+
+DEPEND="dev-go/go-crypto:=
+ dev-go/go-sys:="
+
+_golang-include-src() {
+ local VENDORPN=$1 TARBALL=$2
+ mkdir -p "${WORKDIR}/${P}/src/${VENDORPN}" || die
+ tar -C "${WORKDIR}/${P}/src/${VENDORPN}" -x --strip-components 1\
+ -f "${DISTDIR}"/${TARBALL} || die
+}
+
+pkg_setup() {
+ enewgroup ${PN}
+ enewuser ${PN} -1 -1 /dev/null ${PN}
+}
+
+src_unpack() {
+ golang-vcs-snapshot_src_unpack
+ _golang-include-src github.com/dchest/uniuri dchest-uniuri*.tar.gz
+ _golang-include-src github.com/deckarep/golang-set deckarep-golang-set*.tar.gz
+ _golang-include-src github.com/docker/distribution docker-distribution*.tar.gz
+ _golang-include-src github.com/docker/libtrust docker-libtrust*.tar.gz
+ _golang-include-src github.com/facebookgo/httpdown facebookgo-httpdown-*.tar.gz
+ _golang-include-src github.com/facebookgo/clock facebookgo-clock-*.tar.gz
+ _golang-include-src github.com/facebookgo/stats facebookgo-stats-*.tar.gz
+ _golang-include-src github.com/go-ldap/ldap go-ldap-ldap-*.tar.gz
+ _golang-include-src github.com/golang/glog golang-glog-*.tar.gz
+ _golang-include-src github.com/go-ldap/ldap go-ldap-ldap-*.tar.gz
+ _golang-include-src github.com/syndtr/goleveldb syndtr-goleveldb-*.tar.gz
+ _golang-include-src github.com/golang/snappy golang-snappy-*.tar.gz
+ _golang-include-src gopkg.in/asn1-ber.v1 go-asn1-ber-asn1-ber-*.tar.gz
+ _golang-include-src gopkg.in/fsnotify.v1 fsnotify-fsnotify-*.tar.gz
+ _golang-include-src gopkg.in/mgo.v2 go-mgo-*.tar.gz
+ _golang-include-src gopkg.in/yaml.v2 go-yaml-*.tar.gz
+}
+
+src_prepare() {
+ default
+ cp "${FILESDIR}/version.go" src/${EGO_PN%/*}/auth_server/version.go || die
+ sed -i -e "s/{version}/${PV}/" -e "s/{build_id}/${SHORT_COMMIT}/" src/${EGO_PN%/*}/auth_server/version.go || die
+}
+
+src_compile() {
+ pushd src/${EGO_PN%/*}/auth_server || die
+ GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" go build -o "bin/auth_server" || die
+ popd || die
+}
+
+src_install() {
+ pushd src/${EGO_PN%/*} || die
+ dodoc README.md docs/Backend_MongoDB.md
+ insinto /usr/share/${PF}
+ doins -r examples
+ insinto /etc/docker_auth/
+ newins examples/reference.yml config.yml.example
+ dobin auth_server/bin/auth_server
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
+ newconfd "${FILESDIR}"/${PN}.confd ${PN}
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}"/${PN}.logrotated ${PN}
+ keepdir /var/log/docker_auth
+ popd || die
+}