diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-03-20 00:40:44 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-03-20 00:40:44 +0000 |
commit | 4cbcc855382a06088e2f016f62cafdbcb7e40665 (patch) | |
tree | 356496503d52354aa6d9f2d36126302fed5f3a73 /sys-auth/docker_auth/docker_auth-1.9.0.ebuild | |
parent | fcc5224904648a8e6eb528d7603154160a20022f (diff) |
gentoo resync : 20.03.2022
Diffstat (limited to 'sys-auth/docker_auth/docker_auth-1.9.0.ebuild')
-rw-r--r-- | sys-auth/docker_auth/docker_auth-1.9.0.ebuild | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/sys-auth/docker_auth/docker_auth-1.9.0.ebuild b/sys-auth/docker_auth/docker_auth-1.9.0.ebuild new file mode 100644 index 000000000000..eaddcf7cccba --- /dev/null +++ b/sys-auth/docker_auth/docker_auth-1.9.0.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit go-module + +DESCRIPTION="Docker Registry 2 authentication server" +HOMEPAGE="https://github.com/cesanta/docker_auth" + +SRC_URI="https://github.com/cesanta/docker_auth/archive/${PV}.tar.gz -> ${P}.tar.gz" +SRC_URI+=" https://dev.gentoo.org/~williamh/dist/${P}-deps.tar.xz" + +LICENSE="Apache-2.0 BSD BSD-2 LGPL-3 MIT ZLIB" +SLOT="0" +KEYWORDS="~amd64" + +BDEPEND="dev-go/go-bindata" +COMMON_DEPEND="acct-group/docker_auth + acct-user/docker_auth" +DEPEND="${COMMON_DEPEND}" +RDEPEND="${COMMON_DEPEND}" + +RESTRICT=" test" + +src_compile() { + pushd auth_server || die + # see the upstream Makefile for how to generate the VERSION and + # BUILD_ID values. + emake \ + VERSION=2022022022 \ + BUILD_ID=20220220-221158/1.9.0@636c09af \ + build + popd || die +} + +src_install() { + dodoc README.md docs/* + insinto /usr/share/${PF} + doins -r examples + insinto /etc/docker_auth/ + newins examples/reference.yml config.yml.example + dobin auth_server/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 + fowners ${PN}:${PN} /var/log/docker_auth +} |