summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Rüger <mrueg@gentoo.org>2017-02-21 19:33:13 +0100
committerManuel Rüger <mrueg@gentoo.org>2017-02-21 19:33:13 +0100
commit9b62efb5027a69a444ad1a34069301cb922698a8 (patch)
tree642d5ffefec0d8b8f6b62ed1eb96b0c661a27eaf /sys-auth
parentdev-lang/perl: Copy dropped ~x64-cygwin support (diff)
downloadgentoo-9b62efb5027a69a444ad1a34069301cb922698a8.tar.gz
gentoo-9b62efb5027a69a444ad1a34069301cb922698a8.tar.bz2
gentoo-9b62efb5027a69a444ad1a34069301cb922698a8.zip
sys-auth/docker_auth: Revendor go-sys and go-crypto
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'sys-auth')
-rw-r--r--sys-auth/docker_auth/Manifest2
-rw-r--r--sys-auth/docker_auth/docker_auth-1.2-r1.ebuild98
2 files changed, 100 insertions, 0 deletions
diff --git a/sys-auth/docker_auth/Manifest b/sys-auth/docker_auth/Manifest
index 463499c0bff6..687a90b1bea7 100644
--- a/sys-auth/docker_auth/Manifest
+++ b/sys-auth/docker_auth/Manifest
@@ -11,6 +11,8 @@ DIST go-asn1-ber-asn1-ber-4e86f4367175e39f69d9358a5f17b4dda270378d.tar.gz 12329
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-crypto-453249f01cfeb54c3d549ddb75ff152ca243f9d8.tar.gz 1305950 SHA256 cb376694f8e583a3ed25111ee0ab1d6c16d28f5cfb2c4a5850c1b193bd81dbed SHA512 60b6aa64e7e671ec6a732021f0022580b95002ebd9c89876be5935342c561739b388a77d7e5ff70625e0933c4f4c4fa3d1c1ccf5e4532f44538035c945acb606 WHIRLPOOL 722e02458be59220c73235e0b508b1f54d513fc0819de189cbcf762b8b8ccac4a1a7bde1d003296aa475feec1ab26c5705c1a9fccbf6ca046cba3984175486fd
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 golang-sys-075e574b89e4c2d22f2286a7e2b919519c6f3547.tar.gz 670541 SHA256 be26ef71364f7e073a20796dbf54843fbb565277cda668ee68552fd6d4cff430 SHA512 6881433751650b865bc103a034d84bdd889061e778256187ff6ac7d8b497c4e1dcddab370bdf765f14d20e333cbb7eab40eb25cf95bbbeb52417e994d91a6f02 WHIRLPOOL 680f70b6f6b17931f9b3c90140566c0f5a601688d48253d591e269149881ab8162330901d7657540cf0c1b6d5e040b29d6a435cc9e085f11f0db143fc39112ae
DIST syndtr-goleveldb-6b4daa5362b502898ddf367c5c11deb9e7a5c727.tar.gz 137092 SHA256 82ff06595c33887fea836b722828d4c281f1f1b14528a8fa322459c7e9d4d482 SHA512 12e8cd9b8bd7344511208bb361471d3a083fe836680c44b27241b711e50b7ef519a792ea558885715ddb98a04c207e472e1ec087f50f39b1d5a0622b47d4d615 WHIRLPOOL 268e0c14f917ce23e23c1613498acc51481d641e31502ad172aa45706aa933a8b0d60e9f41f2a5a48fe79332f09c545f90b8a9b0f7966de8abdc531cf27de581
diff --git a/sys-auth/docker_auth/docker_auth-1.2-r1.ebuild b/sys-auth/docker_auth/docker_auth-1.2-r1.ebuild
new file mode 100644
index 000000000000..55351b0d08dc
--- /dev/null
+++ b/sys-auth/docker_auth/docker_auth-1.2-r1.ebuild
@@ -0,0 +1,98 @@
+# Copyright 1999-2017 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
+ https://github.com/golang/crypto/archive/453249f01cfeb54c3d549ddb75ff152ca243f9d8.tar.gz -> golang-crypto-453249f01cfeb54c3d549ddb75ff152ca243f9d8.tar.gz
+ https://github.com/golang/sys/archive/075e574b89e4c2d22f2286a7e2b919519c6f3547.tar.gz -> golang-sys-075e574b89e4c2d22f2286a7e2b919519c6f3547.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
+ _golang-include-src golang.org/x/crypto golang-crypto-*.tar.gz
+ _golang-include-src golang.org/x/sys golang-sys-*.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}" 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
+}