Gentoo Archives: gentoo-commits

From: Aaron Bauman <bman@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/
Date: Tue, 23 Apr 2019 15:19:58
Message-Id: 1556032786.463b5c4584378f5c4187b9dc82f01e372545e438.bman@gentoo
1 commit: 463b5c4584378f5c4187b9dc82f01e372545e438
2 Author: Pierre-Olivier Mercier <nemunaire <AT> nemunai <DOT> re>
3 AuthorDate: Tue Apr 23 10:40:13 2019 +0000
4 Commit: Aaron Bauman <bman <AT> gentoo <DOT> org>
5 CommitDate: Tue Apr 23 15:19:46 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=463b5c45
7
8 www-apps/gitea: drop olds (security issues)
9
10 Package-Manager: Portage-2.3.62, Repoman-2.3.11
11 Signed-off-by: Pierre-Olivier Mercier <nemunaire <AT> nemunai.re>
12 Signed-off-by: Aaron Bauman <bman <AT> gentoo.org>
13
14 www-apps/gitea/Manifest | 2 -
15 www-apps/gitea/gitea-1.7.4.ebuild | 67 ------------------------------
16 www-apps/gitea/gitea-1.7.6.ebuild | 85 ---------------------------------------
17 3 files changed, 154 deletions(-)
18
19 diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
20 index 2d8c7032299..4bc7d85e617 100644
21 --- a/www-apps/gitea/Manifest
22 +++ b/www-apps/gitea/Manifest
23 @@ -1,3 +1 @@
24 -DIST gitea-1.7.4.tar.gz 20858340 BLAKE2B 81d896d313abe25bc1a5becd16249c2ce39ab45d9f40ccf3a565b6777847c7256d5b131f597be237df57513a207978e23480ad3c6087bbc588afe8bbcd46d5c9 SHA512 eede6d410529b1facf65061256e48fee7d459aa12d8c55346d3ad78004a45b7bf667536979fe92270a85901102fd9cddb8183490e16f912b742e799ca912e370
25 -DIST gitea-1.7.6.tar.gz 20868421 BLAKE2B bdd623c09f628a56df9e2c36958d94582707ffeaeb45960fd1ea0d50a8083458683f28ab2c398ac1e939ba6b011ba6a83cc02abd98e9b9ff131bda8fd224c66c SHA512 ad39969b5f1246875c006c72f2ea711772f29bfb9c687510efbd2089c9f88e9d218d14b03111715179b2e0f72f85731f22dd46fc022e224be73b7e73e798236b
26 DIST gitea-1.8.0.tar.gz 24268907 BLAKE2B b46a17733fc7bd0f228620bdfadf0d596ea56fca6e685afab7734e794c1f87c5e004529ca3d69e907d516bcb83563565b1d8c32501f1c2c0f9295ca028d96ad0 SHA512 eebbe2f77ed2e4c3562f48a6fa647e6f2a0492c5b6ea4f13542a5ef82e94a357a8d53897aa013107b5f735d2aff9d719893b5724de44831c43998c2e9c6e78d7
27
28 diff --git a/www-apps/gitea/gitea-1.7.4.ebuild b/www-apps/gitea/gitea-1.7.4.ebuild
29 deleted file mode 100644
30 index 994f2a9b90c..00000000000
31 --- a/www-apps/gitea/gitea-1.7.4.ebuild
32 +++ /dev/null
33 @@ -1,67 +0,0 @@
34 -# Copyright 1999-2019 Gentoo Authors
35 -# Distributed under the terms of the GNU General Public License v2
36 -
37 -EAPI=7
38 -inherit golang-build golang-vcs-snapshot systemd user
39 -
40 -EGO_PN="code.gitea.io/gitea"
41 -KEYWORDS="~amd64 ~arm ~arm64"
42 -
43 -DESCRIPTION="A painless self-hosted Git service, written in Go"
44 -HOMEPAGE="https://github.com/go-gitea/gitea"
45 -SRC_URI="https://github.com/go-gitea/gitea/archive/v${PV}.tar.gz -> ${P}.tar.gz"
46 -
47 -LICENSE="MIT"
48 -SLOT="0"
49 -
50 -DEPEND="
51 - dev-go/go-bindata
52 - sys-libs/pam
53 -"
54 -RDEPEND="
55 - dev-vcs/git
56 - sys-libs/pam
57 -"
58 -
59 -pkg_setup() {
60 - enewgroup git
61 - enewuser git -1 /bin/bash /var/lib/gitea git
62 -}
63 -
64 -src_prepare() {
65 - default
66 - sed -i -e "s/\"main.Version.*$/\"main.Version=${PV}\"/"\
67 - -e "s/-ldflags '-s/-ldflags '/" src/${EGO_PN}/Makefile || die
68 -}
69 -
70 -src_compile() {
71 - GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" emake -C src/${EGO_PN} generate
72 - TAGS="bindata pam sqlite" LDFLAGS="" CGO_LDFLAGS="" GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" emake -C src/${EGO_PN} build
73 -}
74 -
75 -src_install() {
76 - diropts -m0750 -o git -g git
77 - keepdir /var/log/gitea /var/lib/gitea /var/lib/gitea/data
78 - pushd src/${EGO_PN} >/dev/null || die
79 - dobin gitea
80 - insinto /var/lib/gitea/conf
81 - newins custom/conf/app.ini.sample app.ini.example
82 - popd >/dev/null || die
83 - newinitd "${FILESDIR}"/gitea.initd-r1 gitea
84 - newconfd "${FILESDIR}"/gitea.confd gitea
85 - systemd_dounit "${FILESDIR}/gitea.service"
86 -}
87 -
88 -pkg_postinst() {
89 - if [[ ! -e "${EROOT}/var/lib/gitea/conf/app.ini" ]]; then
90 - elog "No app.ini found, copying initial config over"
91 - cp "${FILESDIR}"/app.ini "${EROOT}"/var/lib/gitea/conf/ || die
92 - chown git:git /var/lib/gitea/conf/app.ini
93 - elog "Please make sure that your 'git' user has the correct homedir (/var/lib/gitea)."
94 - else
95 - elog "app.ini found, please check example file for possible changes"
96 - ewarn "Please note that environment variables have been changed:"
97 - ewarn "GITEA_WORK_DIR is set to /var/lib/gitea (previous value: unset)"
98 - ewarn "GITEA_CUSTOM is set to '\$GITEA_WORK_DIR/custom' (previous: /var/lib/gitea)"
99 - fi
100 -}
101
102 diff --git a/www-apps/gitea/gitea-1.7.6.ebuild b/www-apps/gitea/gitea-1.7.6.ebuild
103 deleted file mode 100644
104 index f62591346a4..00000000000
105 --- a/www-apps/gitea/gitea-1.7.6.ebuild
106 +++ /dev/null
107 @@ -1,85 +0,0 @@
108 -# Copyright 1999-2019 Gentoo Authors
109 -# Distributed under the terms of the GNU General Public License v2
110 -
111 -EAPI=7
112 -inherit golang-vcs-snapshot systemd user
113 -
114 -EGO_PN="code.gitea.io/gitea"
115 -KEYWORDS="~amd64 ~arm"
116 -
117 -DESCRIPTION="A painless self-hosted Git service"
118 -HOMEPAGE="https://gitea.io"
119 -SRC_URI="https://github.com/go-gitea/gitea/archive/v${PV}.tar.gz -> ${P}.tar.gz"
120 -
121 -LICENSE="MIT"
122 -SLOT="0"
123 -IUSE="pam sqlite"
124 -
125 -COMMON_DEPEND="pam? ( sys-libs/pam )"
126 -DEPEND="${COMMON_DEPEND}
127 - dev-go/go-bindata"
128 -RDEPEND="${COMMON_DEPEND}
129 - dev-vcs/git"
130 -
131 -DOCS=( custom/conf/app.ini.sample CONTRIBUTING.md README.md )
132 -S="${WORKDIR}/${P}/src/${EGO_PN}"
133 -
134 -pkg_setup() {
135 - enewgroup git
136 - enewuser git -1 /bin/bash /var/lib/gitea git
137 -}
138 -
139 -gitea_make() {
140 - local my_tags=(
141 - bindata
142 - $(usev pam)
143 - $(usex sqlite 'sqlite sqlite_unlock_notify' '')
144 - )
145 - local my_makeopt=(
146 - DRONE_TAG=${PV}
147 - TAGS="${my_tags[@]}"
148 - )
149 - GOPATH=${WORKDIR}/${P}:$(get_golibdir_gopath) emake "${my_makeopt[@]}" "$1"
150 -}
151 -
152 -src_compile() {
153 - gitea_make generate
154 - gitea_make build
155 -}
156 -
157 -src_test() {
158 - gitea_make test
159 -}
160 -
161 -src_install() {
162 - einstalldocs
163 - dobin gitea
164 - newconfd "${FILESDIR}"/gitea.confd-r1 gitea
165 - newinitd "${FILESDIR}"/gitea.initd-r2 gitea
166 - systemd_newunit "${FILESDIR}"/gitea.service-r1 gitea.service
167 - diropts -m0750 -o git -g git
168 - keepdir /etc/gitea
169 - keepdir /var/lib/gitea /var/lib/gitea/custom /var/lib/gitea/data
170 - keepdir /var/log/gitea
171 -}
172 -
173 -pkg_postinst() {
174 - ewarn "The configuration path has been changed to ${EROOT}/etc/gitea/app.ini."
175 - ewarn "Please adapt the gitea-repositories hooks and ssh authorized_keys."
176 - ewarn "Depending on your configuration you should run something like:"
177 - ewarn "sed -i -e 's#/var/lib/gitea/conf/app.ini#/etc/gitea/app.ini#' \\"
178 - ewarn " /var/lib/gitea/gitea-repositories/*/*/hooks/*/* \\"
179 - ewarn " /var/lib/gitea/.ssh/authorized_keys"
180 -
181 - if [[ ! -e "${EROOT}/etc/gitea/app.ini" ]]; then
182 - elog "No app.ini found, copying initial config over"
183 - cp "${FILESDIR}"/app.ini "${EROOT}"/etc/gitea/ || die
184 - chown git:git "${EROOT}"/etc/gitea/app.ini || die
185 - elog "Please make sure that your 'git' user has the correct homedir (/var/lib/gitea)."
186 - else
187 - elog "app.ini found, please check the sample file for possible changes"
188 - ewarn "Please note that environment variables have been changed:"
189 - ewarn "GITEA_WORK_DIR is set to /var/lib/gitea (previous value: unset)"
190 - ewarn "GITEA_CUSTOM is set to '\$GITEA_WORK_DIR/custom' (previous: /var/lib/gitea)"
191 - fi
192 -}