summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Rüger <mrueg@gentoo.org>2016-12-06 17:22:19 +0100
committerManuel Rüger <mrueg@gentoo.org>2016-12-06 17:22:19 +0100
commit30f4dcd81fce4fe777fc4ad39f8326b9b44f6029 (patch)
treec64ba2554042e3d44a22aa1023f175bc89bf544d /sys-auth/docker_auth
parentdev-util/cgdb: update the maintainer <name/> and upstream <remote-id/> (diff)
downloadgentoo-30f4dcd81fce4fe777fc4ad39f8326b9b44f6029.tar.gz
gentoo-30f4dcd81fce4fe777fc4ad39f8326b9b44f6029.tar.bz2
gentoo-30f4dcd81fce4fe777fc4ad39f8326b9b44f6029.zip
sys-auth/docker_auth: Initial version
Package-Manager: portage-2.3.3
Diffstat (limited to 'sys-auth/docker_auth')
-rw-r--r--sys-auth/docker_auth/Manifest16
-rw-r--r--sys-auth/docker_auth/docker_auth-1.1.ebuild89
-rw-r--r--sys-auth/docker_auth/files/docker_auth.confd2
-rw-r--r--sys-auth/docker_auth/files/docker_auth.initd25
-rw-r--r--sys-auth/docker_auth/files/docker_auth.logrotated8
-rw-r--r--sys-auth/docker_auth/files/version.go6
-rw-r--r--sys-auth/docker_auth/metadata.xml13
7 files changed, 159 insertions, 0 deletions
diff --git a/sys-auth/docker_auth/Manifest b/sys-auth/docker_auth/Manifest
new file mode 100644
index 000000000000..a307ffa7d5de
--- /dev/null
+++ b/sys-auth/docker_auth/Manifest
@@ -0,0 +1,16 @@
+DIST dchest-uniuri-8902c56451e9b58ff940bbe5fec35d5f9c04584a.tar.gz 2471 SHA256 f0e76f66c27b485fb8fd76ed0da635bf34751714487a16931f07bf1b1986b30f SHA512 70421b526e3040a49e63be6c892de2953b4f9ecdb01b148eb2bab3814f610a8c39bd98aad858cbaf9dcf621b52ee9ef952f0cdcdc6eca77da8ebf80dbbf1c04c WHIRLPOOL 63b97e4c3aa3b0275d3e2cd8f4fcdc523da62abba89b177c4f2a228bd7237fe719804e24616c082a41a2fef421ec3ed86be399cc207265675931a1e4cb73e050
+DIST deckarep-golang-set-ceca0031971f0401859beb9fc7396188545e4c9f.tar.gz 11663 SHA256 57420792d39db32401f4b5befa67831569aefe5b92b24fdeab54de6fdd1559b1 SHA512 9b7b610809ed0035d2b6d6de1f5feab3e09790f5ead2f8a0c6142bb360f91aaa15d6bb9d8b939311bb2fcda693470ef231830097a6b732e5010334b358714b89 WHIRLPOOL 4f1c14b5d000d251ddacff6df4bbd73eaf21c2fb3e95aba25ef765efe26a9409830cb6f0a02b90168095c2cccf16e0d18a5d2a4d4649ef128d5aff945268b0e2
+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 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
+DIST fsnotify-fsnotify-629574ca2a5df945712d3079857300b5e4da0236.tar.gz 29588 SHA256 efa6568b01943ef1bcb3311c2371d300925fdde8fa4746673fefb703b572da2f SHA512 eaadede8a6fe231ea1f66755899891e288b5a69c2f74c1f11854b5060f471591f291a5394490a80864fc8d24181ada8a454c9b91ad04988021b5029298dd411b WHIRLPOOL 6727fe1af62b01f0f7c4b2dd38d4c0598d0e6da6df4cd63a7638377685840d640538d814f5a02ee56d16819c24e74e84dd6680af0eb47d158fbaa7eedc0e3a7f
+DIST go-asn1-ber-asn1-ber-4e86f4367175e39f69d9358a5f17b4dda270378d.tar.gz 12329 SHA256 f6462804a4336e9ba814c9d6bd8b4caf632abc4e3a966a0201847a780c06076e SHA512 fbba36ee6fd0d33558d4f13b6327a1385bde914c1c40954da19039bb55dc10d0166a1dd7a8650cb9776f2aad6f03ad110fd550a49e9c934446d23cd8eb3279fb WHIRLPOOL 54c5af35f9bd79c6b553a516526ceb928c97bfcdcf037d737c9f5ffa39c3cd2d4667e28f0af0d4a44e003432a575ad79a51827949d33cc1d8154badbae4888b3
+DIST go-ldap-ldap-8168ee085ee43257585e50c6441aadf54ecb2c9f.tar.gz 35732 SHA256 98e27c6f7cc0f52ce97763583321ed5b370c271fb86be2ba407e9ec4538f8d4d SHA512 892476cb567338cff9a2c46699f9b2ed85a2e9951e222f190733cb17d4c7c15be709256235f3c8d0bcac9cf2a46133eaa593051acfa204b27b2595349210c635 WHIRLPOOL fd5f53572ffdfc51c4593cd87240719a017186cb715e22020e7071893407cb8b390fd4ea939bb3e28f676668a3d291855d28fbca8e11024363e46f744569c1a1
+DIST go-mgo-mgo-3f83fa5005286a7fe593b055f0d7771a7dce4655.tar.gz 376880 SHA256 6c97700204a9078a08bb0e67e8519c5f3a8c892b0401244a17bc2c0838410b9f SHA512 f0e7948d4672d29d3d0a741961ff8a75d30c556e157698118a32de10e2af8eb2ae6a61feea1c93aff313596d285a048a70dae7339c66760ebb91a1aecfb05845 WHIRLPOOL b95f88c8c023434b058426d8c8e5e230a1a4b6ba2bd701a0a078bfd774f861fcbff24fd08af6ed067fd3ea168854eec8c15708baf5275cb5c1e9ccce61d738c6
+DIST go-yaml-yaml-a5b47d31c556af34a302ce5d659e6fea44d90de0.tar.gz 60581 SHA256 64fb583b3df554869304d3482bca934ecc4064ad49118eb2dddd22178066f3ae SHA512 488623b842daea96680d4bca9e93d62785bbb472f1a11d12ff265b61dea900e9e6d09bdb50af835016c1a97eed6a0916a4f765bdac6e23c70db53af5546a389e WHIRLPOOL b20dbfca164787d93c244bd6f52427f82e37d460811e48072692f0b04e2c203ff8474e61ae189af8dbe49f98322db31334b7ca1a83c270b706871a76c6610981
+DIST golang-glog-23def4e6c14b4da8ac2ed8007337bc5eb5007998.tar.gz 19688 SHA256 ef225f77e38c3f071656a5bc529d7a66585e2ebc2b6149fa2bd4de1fb1ddacd6 SHA512 e9e70cf2a2d74ca813d0cadc23d213a1112ca4d1167abb63d8e0929585fca90c3a5bab1f49db20095c48bf1fe03b4424353c33728d09a201334eb65770888dc5 WHIRLPOOL a37d452661d3bcb35ceda79c1361a61a57ffa009a710f178f3ca1e57f99bd6255af70807a110f5a51cb50aced14519d1ca158fbfef92e582ffae2dfaab2e0e54
+DIST golang-snappy-d9eb7a3d35ec988b8585d4a0068e462c27d28380.tar.gz 62080 SHA256 9544da653a1edae7b83e32810136de6e94e3e4bf8788a716accac83e757234cd SHA512 23f9e9f21e220f95feb1de7764ca73c985f1b9f226f4011f5a06a7e03c42967a5c88990125284f69e721738ef1e0eccb7256915839e05f4d64c8bfcc254dbc96 WHIRLPOOL 87c3ab3883370158ff954474c93d3d24f2424b009b82715d281c9a7b2bffd7fd93f402ead7cdfcbd2d9deedf184ee50f5b8a2bcf369e33d9910dae764a7fb8f8
+DIST syndtr-goleveldb-6b4daa5362b502898ddf367c5c11deb9e7a5c727.tar.gz 137092 SHA256 82ff06595c33887fea836b722828d4c281f1f1b14528a8fa322459c7e9d4d482 SHA512 12e8cd9b8bd7344511208bb361471d3a083fe836680c44b27241b711e50b7ef519a792ea558885715ddb98a04c207e472e1ec087f50f39b1d5a0622b47d4d615 WHIRLPOOL 268e0c14f917ce23e23c1613498acc51481d641e31502ad172aa45706aa933a8b0d60e9f41f2a5a48fe79332f09c545f90b8a9b0f7966de8abdc531cf27de581
diff --git a/sys-auth/docker_auth/docker_auth-1.1.ebuild b/sys-auth/docker_auth/docker_auth-1.1.ebuild
new file mode 100644
index 000000000000..6b9451670378
--- /dev/null
+++ b/sys-auth/docker_auth/docker_auth-1.1.ebuild
@@ -0,0 +1,89 @@
+# 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="0b4bb77"
+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=""
+
+_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
+ popd || die
+}
diff --git a/sys-auth/docker_auth/files/docker_auth.confd b/sys-auth/docker_auth/files/docker_auth.confd
new file mode 100644
index 000000000000..0a3a03d8fd14
--- /dev/null
+++ b/sys-auth/docker_auth/files/docker_auth.confd
@@ -0,0 +1,2 @@
+# arguments for docker-registry
+command_args="/etc/docker_auth/config.yml"
diff --git a/sys-auth/docker_auth/files/docker_auth.initd b/sys-auth/docker_auth/files/docker_auth.initd
new file mode 100644
index 000000000000..c6fecffe7efc
--- /dev/null
+++ b/sys-auth/docker_auth/files/docker_auth.initd
@@ -0,0 +1,25 @@
+#!/sbin/openrc-run
+# Copyright 2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+description="Docker Registry Authentication Server"
+pidfile=${pidfile:-"/run/${SVCNAME}/${SVCNAME}.pid"}
+user=${user:-${SVCNAME}}
+group=${group:-${SVCNAME}}
+
+command="/usr/bin/auth_server"
+command_args="${command_args:--log_dir /var/log/${SVCNAME} /etc/docker_auth/config.yml}"
+command_background="true"
+start_stop_daemon_args="--user ${user} --group ${group} \
+ --stdout /var/log/${SVCNAME}/${SVCNAME}.log \
+ --stderr /var/log/${SVCNAME}/${SVCNAME}.log"
+
+depend() {
+ need net
+ after net
+}
+
+start_pre() {
+ checkpath -d -m 0755 -o "${user}":"${group}" "${pidfile%/*}"
+}
diff --git a/sys-auth/docker_auth/files/docker_auth.logrotated b/sys-auth/docker_auth/files/docker_auth.logrotated
new file mode 100644
index 000000000000..7bcd082c0719
--- /dev/null
+++ b/sys-auth/docker_auth/files/docker_auth.logrotated
@@ -0,0 +1,8 @@
+/var/log/docker_auth/* {
+ su docker_auth docker_auth
+ missingok
+ size 5M
+ rotate 3
+ compress
+ copytruncate
+}
diff --git a/sys-auth/docker_auth/files/version.go b/sys-auth/docker_auth/files/version.go
new file mode 100644
index 000000000000..9c014db7f1f2
--- /dev/null
+++ b/sys-auth/docker_auth/files/version.go
@@ -0,0 +1,6 @@
+package main
+
+const (
+ Version = "{version}"
+ BuildId = "{build_id}"
+)
diff --git a/sys-auth/docker_auth/metadata.xml b/sys-auth/docker_auth/metadata.xml
new file mode 100644
index 000000000000..99a05a65e745
--- /dev/null
+++ b/sys-auth/docker_auth/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <longdescription>
+ </longdescription>
+ <maintainer type="person">
+ <email>mrueg@gentoo.org</email>
+ <name>Manuel Rüger</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">cesanta/docker_auth</remote-id>
+ </upstream>
+</pkgmetadata>