diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
| commit | b590c8d7572b727d565cc0b8ff660d43569845de (patch) | |
| tree | 06f7a4102ea4e845df8b66660f252920d52952f9 /sys-auth/docker_auth | |
| parent | 24f9cbfc4c34fdb6a6e03311674414e881ceab47 (diff) | |
| download | baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.gz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.xz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.zip | |
Adding metadata
Diffstat (limited to 'sys-auth/docker_auth')
| -rw-r--r-- | sys-auth/docker_auth/Manifest | 2 | ||||
| -rw-r--r-- | sys-auth/docker_auth/docker_auth-1.9.0.ebuild | 49 | ||||
| -rw-r--r-- | sys-auth/docker_auth/files/docker_auth.confd | 2 | ||||
| -rw-r--r-- | sys-auth/docker_auth/files/docker_auth.initd | 19 | ||||
| -rw-r--r-- | sys-auth/docker_auth/files/docker_auth.logrotated | 8 | ||||
| -rw-r--r-- | sys-auth/docker_auth/metadata.xml | 9 |
6 files changed, 89 insertions, 0 deletions
diff --git a/sys-auth/docker_auth/Manifest b/sys-auth/docker_auth/Manifest new file mode 100644 index 000000000000..520a6ac54d1d --- /dev/null +++ b/sys-auth/docker_auth/Manifest @@ -0,0 +1,2 @@ +DIST docker_auth-1.9.0-deps.tar.xz 352698988 BLAKE2B 9e90fd0bf98396d453a8c52d2d8f19b02eb460e0ac0f4f808399f48d479f1b1a6debc615dcff78a98fe07529569f7da5a121d715786bf810dff3bb3d783781bd SHA512 d24c6acdbcb156cf125579787f140a9004ac2c5a80953a7655e50bcc6ff84b266d59066488c48dbd52e1653e3cd5c88a67a71d4cb66b2345d41e6371c634121d +DIST docker_auth-1.9.0.tar.gz 122606 BLAKE2B 29ce8fa1935e34eea1ed54b7656564ccf2803c1ded54e732b4f19966b46a69ad8f5224a17d85c6e7989feecb6724c04a21492473efa47ec08ae266c7fa8e74bd SHA512 be084d4b77b72c10a915950a7bc8bff39bed46edd68448337592650c5934fbaf1ec543e7eb27e8321bbb67302f96f60abe1ab3e151ce80adaa9667985425317b 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..29a04edc7e1a --- /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" +S="${S}/auth_server" + +src_compile() { + # 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 +} + +src_install() { + cd .. + dobin auth_server/auth_server + dodoc README.md docs/* + insinto /usr/share/${PF} + doins -r examples + insinto /etc/docker_auth/ + newins examples/reference.yml config.yml.example + 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 +} 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..096572cd8455 --- /dev/null +++ b/sys-auth/docker_auth/files/docker_auth.confd @@ -0,0 +1,2 @@ +# arguments for docker auth +command_args="--log_dir /var/log/${RC_SVCNAME} /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..52699100d8c1 --- /dev/null +++ b/sys-auth/docker_auth/files/docker_auth.initd @@ -0,0 +1,19 @@ +#!/sbin/openrc-run +# Copyright 2016-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +description="Docker Registry Authentication Server" +pidfile=${pidfile:-"/run/${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() { + after net +} 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/metadata.xml b/sys-auth/docker_auth/metadata.xml new file mode 100644 index 000000000000..17492b5107c4 --- /dev/null +++ b/sys-auth/docker_auth/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>williamh@gentoo.org</email> + <name>William Hubbs</name> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> |
