Gentoo Archives: gentoo-commits

From: Conrad Kostecki <conikost@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/docker-registry/
Date: Sun, 18 Jul 2021 17:00:53
Message-Id: 1626626360.bd6f0f26fb36d06225d585e3e9ade4b2c7b91c23.conikost@gentoo
1 commit: bd6f0f26fb36d06225d585e3e9ade4b2c7b91c23
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jul 18 16:39:20 2021 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 18 16:39:20 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bd6f0f26
7
8 app-emulation/docker-registry: drop old version
9
10 Closes: https://bugs.gentoo.org/781215
11 Package-Manager: Portage-3.0.20, Repoman-3.0.3
12 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
13
14 .../docker-registry/docker-registry-2.7.1.ebuild | 50 ----------------------
15 1 file changed, 50 deletions(-)
16
17 diff --git a/app-emulation/docker-registry/docker-registry-2.7.1.ebuild b/app-emulation/docker-registry/docker-registry-2.7.1.ebuild
18 deleted file mode 100644
19 index 76e7bd12811..00000000000
20 --- a/app-emulation/docker-registry/docker-registry-2.7.1.ebuild
21 +++ /dev/null
22 @@ -1,50 +0,0 @@
23 -# Copyright 1999-2020 Gentoo Authors
24 -# Distributed under the terms of the GNU General Public License v2
25 -
26 -EAPI=6
27 -inherit golang-vcs-snapshot systemd user
28 -
29 -KEYWORDS="amd64 ~arm64"
30 -EGO_PN="github.com/docker/distribution"
31 -EGIT_COMMIT="2461543d988979529609e8cb6fca9ca190dc48da"
32 -SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
33 -DESCRIPTION="Docker Registry 2.0"
34 -HOMEPAGE="https://github.com/docker/distribution"
35 -LICENSE="Apache-2.0 BSD BSD-2 CC-BY-SA-4.0 MIT ZLIB"
36 -SLOT="0"
37 -IUSE=""
38 -SVCNAME=registry
39 -
40 -pkg_setup() {
41 - enewgroup ${SVCNAME}
42 - enewuser ${SVCNAME} -1 -1 /dev/null ${SVCNAME}
43 -}
44 -
45 -src_prepare() {
46 - default
47 - pushd src/${EGO_PN} || die
48 - eapply "${FILESDIR}"/${PN}-2.7.0-notification-metrics.patch
49 - sed -i -e "s/git describe.*/echo ${PV})/"\
50 - -e "s/git rev-parse.*/echo ${EGIT_COMMIT})/"\
51 - -e "s/-s -w/-w/" Makefile || die
52 - popd || die
53 -}
54 -
55 -src_compile() {
56 - export -n GOCACHE XDG_CACHE_HOME #681072
57 - GOPATH="${S}" GO_BUILD_FLAGS="-v" emake -C src/${EGO_PN} binaries
58 -}
59 -
60 -src_install() {
61 - exeinto /usr/libexec/${PN}
62 - doexe src/${EGO_PN}/bin/*
63 - insinto /etc/docker/registry
64 - newins src/${EGO_PN}/cmd/registry/config-example.yml config.yml.example
65 - newinitd "${FILESDIR}/${SVCNAME}.initd" "${SVCNAME}"
66 - newconfd "${FILESDIR}/${SVCNAME}.confd" "${SVCNAME}"
67 - systemd_dounit "${FILESDIR}/${SVCNAME}.service"
68 - keepdir /var/{lib,log}/${SVCNAME}
69 - fowners ${SVCNAME}:${SVCNAME} /var/{lib,log}/${SVCNAME}
70 - insinto /etc/logrotate.d
71 - newins "${FILESDIR}/${SVCNAME}.logrotated" "${SVCNAME}"
72 -}