Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/
Date: Thu, 29 Sep 2022 13:53:14
Message-Id: 1664459572.be1363f08f70bea68c6a6d0129b6097e70d2be40.juippis@gentoo
1 commit: be1363f08f70bea68c6a6d0129b6097e70d2be40
2 Author: Tomáš Mózes <hydrapolic <AT> gmail <DOT> com>
3 AuthorDate: Thu Sep 29 09:23:53 2022 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 29 13:52:52 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be1363f0
7
8 www-apps/gitea: drop vulnerable
9
10 Bug: https://bugs.gentoo.org/868996
11 Signed-off-by: Tomáš Mózes <hydrapolic <AT> gmail.com>
12 Closes: https://github.com/gentoo/gentoo/pull/27524
13 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
14
15 www-apps/gitea/Manifest | 3 -
16 www-apps/gitea/gitea-1.16.7.ebuild | 118 ----------------------------------
17 www-apps/gitea/gitea-1.16.9.ebuild | 125 -------------------------------------
18 www-apps/gitea/gitea-1.17.1.ebuild | 125 -------------------------------------
19 4 files changed, 371 deletions(-)
20
21 diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
22 index 67c39f569b76..44add5f0cbde 100644
23 --- a/www-apps/gitea/Manifest
24 +++ b/www-apps/gitea/Manifest
25 @@ -1,4 +1 @@
26 -DIST gitea-1.16.7.tar.gz 53657579 BLAKE2B ae9d67fa633bcc5156036f033a4ed084b5b6ac0d71ec6a1ec0d0c88848233f3f0f0c22ca1c33289dc0e9950a8b299e26a88417e03643972f6721f94097b37d85 SHA512 7a31330e46078e215eecfbb2ec28373be1a176790720afbcf9674f3530d66f300d8ef9e47b9b9124cda9ce585d26d40c975e4897e5a3477dcec28b6f2b16735c
27 -DIST gitea-1.16.9.tar.gz 53660093 BLAKE2B f289a6525b046efa56b0250a997c1b1957c58447b87d7b0f5a65754ff3278da5dd37e1cf090b6d27c61d779fe2f19c4405aff9be526c5689935fba88c8488ad5 SHA512 b27da6b77ac33829ba3108e54c8fab59fe80f2ce88cc5eeb95ec38186da4b34508cdfb1a5fe0a68013001403a69080ebddb8d5116a73e1cf47e27ee4cc3095f1
28 -DIST gitea-1.17.1.tar.gz 52649181 BLAKE2B b8a444900a3efc9911cad17b32933ada7995dd3424bc92c034222fdf50ea7629fc0b190fad7563c4694228021784c66196ae2f5df533bbcc36e6e2eccd9e57c0 SHA512 9afa5e58e90fcda957f8f5eba76931d5a933554c47965180371c9b73c887810aa67e8e87fc619a1abcb954379de23750e9e93654d518c6ab77b2ca944eb186d6
29 DIST gitea-1.17.2.tar.gz 52668293 BLAKE2B 02f50ee5ef30887fb5daf5d3543bdb4b0fe2e4f3903c29beedc134d861fe23df92f4d379d6faacfd984ff203eefff6d6c7dca06e6b974538557e3694f1f2a03b SHA512 fe0176cb4dee724ec91e5f44cb71851368d0e4234c20f17bcccbb422f90c6545184d1f620bbd5999ca24c477e0cf0de7c4a21ce93e3532f29e0b2bba7d03ffb9
30
31 diff --git a/www-apps/gitea/gitea-1.16.7.ebuild b/www-apps/gitea/gitea-1.16.7.ebuild
32 deleted file mode 100644
33 index eda894a4cb53..000000000000
34 --- a/www-apps/gitea/gitea-1.16.7.ebuild
35 +++ /dev/null
36 @@ -1,118 +0,0 @@
37 -# Copyright 2016-2022 Gentoo Authors
38 -# Distributed under the terms of the GNU General Public License v2
39 -
40 -EAPI=8
41 -
42 -inherit fcaps go-module tmpfiles systemd flag-o-matic
43 -
44 -DESCRIPTION="A painless self-hosted Git service"
45 -HOMEPAGE="https://gitea.io https://github.com/go-gitea/gitea"
46 -SRC_URI="https://github.com/go-gitea/gitea/releases/download/v${PV}/gitea-src-${PV}.tar.gz -> ${P}.tar.gz"
47 -KEYWORDS="amd64 ~arm ~arm64 ~x86"
48 -S="${WORKDIR}"
49 -
50 -LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"
51 -SLOT="0"
52 -IUSE="+acct pam sqlite pie"
53 -
54 -DEPEND="
55 - acct? (
56 - acct-group/git
57 - acct-user/git[gitea] )
58 - pam? ( sys-libs/pam )"
59 -RDEPEND="${DEPEND}
60 - dev-vcs/git"
61 -
62 -DOCS=(
63 - custom/conf/app.example.ini CONTRIBUTING.md README.md
64 -)
65 -FILECAPS=(
66 - -m 711 cap_net_bind_service+ep usr/bin/gitea
67 -)
68 -
69 -RESTRICT="test"
70 -
71 -src_prepare() {
72 - default
73 -
74 - local sedcmds=(
75 - -e "s#^ROOT =#ROOT = ${EPREFIX}/var/lib/gitea/gitea-repositories#"
76 - -e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/gitea#"
77 - -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = ${EPREFIX}/var/lib/gitea/data#"
78 - -e "s#^HTTP_ADDR = 0.0.0.0#HTTP_ADDR = 127.0.0.1#"
79 - -e "s#^MODE = console#MODE = file#"
80 - -e "s#^LEVEL = Trace#LEVEL = Info#"
81 - -e "s#^LOG_SQL = true#LOG_SQL = false#"
82 - -e "s#^DISABLE_ROUTER_LOG = false#DISABLE_ROUTER_LOG = true#"
83 - )
84 -
85 - sed -i "${sedcmds[@]}" custom/conf/app.example.ini || die
86 - if use sqlite ; then
87 - sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" custom/conf/app.example.ini || die
88 - fi
89 -}
90 -
91 -src_configure() {
92 - # bug 832756 - PIE build issues
93 - filter-flags -fPIE
94 - filter-ldflags -fPIE -pie
95 -}
96 -
97 -src_compile() {
98 - local gitea_tags=(
99 - bindata
100 - $(usev pam)
101 - $(usex sqlite 'sqlite sqlite_unlock_notify' '')
102 - )
103 - local gitea_settings=(
104 - "-X code.gitea.io/gitea/modules/setting.CustomConf=${EPREFIX}/etc/gitea/app.ini"
105 - "-X code.gitea.io/gitea/modules/setting.CustomPath=${EPREFIX}/var/lib/gitea/custom"
106 - "-X code.gitea.io/gitea/modules/setting.AppWorkPath=${EPREFIX}/var/lib/gitea"
107 - )
108 - local makeenv=(
109 - DRONE_TAG="${PV}"
110 - LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[*]}"
111 - TAGS="${gitea_tags[*]}"
112 - )
113 -
114 - GOFLAGS=""
115 - if use pie ; then
116 - GOFLAGS+="-buildmode=pie"
117 - fi
118 -
119 - env "${makeenv[@]}" emake EXTRA_GOFLAGS="${GOFLAGS}" backend
120 -}
121 -
122 -src_install() {
123 - dobin gitea
124 -
125 - einstalldocs
126 -
127 - newconfd "${FILESDIR}/gitea.confd-r1" gitea
128 - newinitd "${FILESDIR}/gitea.initd-r3" gitea
129 - newtmpfiles - gitea.conf <<-EOF
130 - d /run/gitea 0755 git git
131 - EOF
132 - systemd_newunit "${FILESDIR}"/gitea.service-r3 gitea.service
133 -
134 - insinto /etc/gitea
135 - newins custom/conf/app.example.ini app.ini
136 - if use acct; then
137 - fowners root:git /etc/gitea/{,app.ini}
138 - fperms g+w,o-rwx /etc/gitea/{,app.ini}
139 -
140 - diropts -m0750 -o git -g git
141 - keepdir /var/lib/gitea /var/lib/gitea/custom /var/lib/gitea/data
142 - keepdir /var/log/gitea
143 - fi
144 -}
145 -
146 -pkg_postinst() {
147 - fcaps_pkg_postinst
148 - tmpfiles_process gitea.conf
149 -
150 - ewarn "The default JWT signing algorithm changed in 1.15.0 from HS256 (symmetric) to"
151 - ewarn "RS256 (asymmetric). Gitea OAuth2 tokens (and potentially client secrets) will"
152 - ewarn "need to be regenerated unless you change your JWT_SIGNING_ALGORITHM back to HS256."
153 - ewarn "For other breaking changes, see <https://github.com/go-gitea/gitea/releases/tag/v1.15.0>."
154 -}
155
156 diff --git a/www-apps/gitea/gitea-1.16.9.ebuild b/www-apps/gitea/gitea-1.16.9.ebuild
157 deleted file mode 100644
158 index a78f96df3391..000000000000
159 --- a/www-apps/gitea/gitea-1.16.9.ebuild
160 +++ /dev/null
161 @@ -1,125 +0,0 @@
162 -# Copyright 2016-2022 Gentoo Authors
163 -# Distributed under the terms of the GNU General Public License v2
164 -
165 -EAPI=8
166 -
167 -inherit fcaps go-module tmpfiles systemd flag-o-matic
168 -
169 -DESCRIPTION="A painless self-hosted Git service"
170 -HOMEPAGE="https://gitea.io https://github.com/go-gitea/gitea"
171 -
172 -if [[ ${PV} == *9999 ]]; then
173 - inherit git-r3
174 - EGIT_REPO_URI="https://github.com/go-gitea/gitea.git"
175 -else
176 - SRC_URI="https://github.com/go-gitea/gitea/releases/download/v${PV}/gitea-src-${PV}.tar.gz -> ${P}.tar.gz"
177 - KEYWORDS="amd64 ~arm ~arm64 ~x86"
178 -fi
179 -
180 -S="${WORKDIR}"
181 -
182 -LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"
183 -SLOT="0"
184 -IUSE="+acct pam sqlite pie"
185 -
186 -DEPEND="
187 - acct? (
188 - acct-group/git
189 - acct-user/git[gitea] )
190 - pam? ( sys-libs/pam )"
191 -RDEPEND="${DEPEND}
192 - dev-vcs/git"
193 -
194 -DOCS=(
195 - custom/conf/app.example.ini CONTRIBUTING.md README.md
196 -)
197 -FILECAPS=(
198 - -m 711 cap_net_bind_service+ep usr/bin/gitea
199 -)
200 -
201 -RESTRICT="test"
202 -
203 -src_prepare() {
204 - default
205 -
206 - local sedcmds=(
207 - -e "s#^ROOT =#ROOT = ${EPREFIX}/var/lib/gitea/gitea-repositories#"
208 - -e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/gitea#"
209 - -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = ${EPREFIX}/var/lib/gitea/data#"
210 - -e "s#^HTTP_ADDR = 0.0.0.0#HTTP_ADDR = 127.0.0.1#"
211 - -e "s#^MODE = console#MODE = file#"
212 - -e "s#^LEVEL = Trace#LEVEL = Info#"
213 - -e "s#^LOG_SQL = true#LOG_SQL = false#"
214 - -e "s#^DISABLE_ROUTER_LOG = false#DISABLE_ROUTER_LOG = true#"
215 - )
216 -
217 - sed -i "${sedcmds[@]}" custom/conf/app.example.ini || die
218 - if use sqlite ; then
219 - sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" custom/conf/app.example.ini || die
220 - fi
221 -}
222 -
223 -src_configure() {
224 - # bug 832756 - PIE build issues
225 - filter-flags -fPIE
226 - filter-ldflags -fPIE -pie
227 -}
228 -
229 -src_compile() {
230 - local gitea_tags=(
231 - bindata
232 - $(usev pam)
233 - $(usex sqlite 'sqlite sqlite_unlock_notify' '')
234 - )
235 - local gitea_settings=(
236 - "-X code.gitea.io/gitea/modules/setting.CustomConf=${EPREFIX}/etc/gitea/app.ini"
237 - "-X code.gitea.io/gitea/modules/setting.CustomPath=${EPREFIX}/var/lib/gitea/custom"
238 - "-X code.gitea.io/gitea/modules/setting.AppWorkPath=${EPREFIX}/var/lib/gitea"
239 - )
240 - local makeenv=(
241 - DRONE_TAG="${PV}"
242 - LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[*]}"
243 - TAGS="${gitea_tags[*]}"
244 - )
245 -
246 - GOFLAGS=""
247 - if use pie ; then
248 - GOFLAGS+="-buildmode=pie"
249 - fi
250 -
251 - env "${makeenv[@]}" emake EXTRA_GOFLAGS="${GOFLAGS}" backend
252 -}
253 -
254 -src_install() {
255 - dobin gitea
256 -
257 - einstalldocs
258 -
259 - newconfd "${FILESDIR}/gitea.confd-r1" gitea
260 - newinitd "${FILESDIR}/gitea.initd-r3" gitea
261 - newtmpfiles - gitea.conf <<-EOF
262 - d /run/gitea 0755 git git
263 - EOF
264 - systemd_newunit "${FILESDIR}"/gitea.service-r3 gitea.service
265 -
266 - insinto /etc/gitea
267 - newins custom/conf/app.example.ini app.ini
268 - if use acct; then
269 - fowners root:git /etc/gitea/{,app.ini}
270 - fperms g+w,o-rwx /etc/gitea/{,app.ini}
271 -
272 - diropts -m0750 -o git -g git
273 - keepdir /var/lib/gitea /var/lib/gitea/custom /var/lib/gitea/data
274 - keepdir /var/log/gitea
275 - fi
276 -}
277 -
278 -pkg_postinst() {
279 - fcaps_pkg_postinst
280 - tmpfiles_process gitea.conf
281 -
282 - ewarn "The default JWT signing algorithm changed in 1.15.0 from HS256 (symmetric) to"
283 - ewarn "RS256 (asymmetric). Gitea OAuth2 tokens (and potentially client secrets) will"
284 - ewarn "need to be regenerated unless you change your JWT_SIGNING_ALGORITHM back to HS256."
285 - ewarn "For other breaking changes, see <https://github.com/go-gitea/gitea/releases/tag/v1.15.0>."
286 -}
287
288 diff --git a/www-apps/gitea/gitea-1.17.1.ebuild b/www-apps/gitea/gitea-1.17.1.ebuild
289 deleted file mode 100644
290 index c0f056208ec7..000000000000
291 --- a/www-apps/gitea/gitea-1.17.1.ebuild
292 +++ /dev/null
293 @@ -1,125 +0,0 @@
294 -# Copyright 2016-2022 Gentoo Authors
295 -# Distributed under the terms of the GNU General Public License v2
296 -
297 -EAPI=8
298 -
299 -inherit fcaps go-module tmpfiles systemd flag-o-matic
300 -
301 -DESCRIPTION="A painless self-hosted Git service"
302 -HOMEPAGE="https://gitea.io https://github.com/go-gitea/gitea"
303 -
304 -if [[ ${PV} == *9999 ]]; then
305 - inherit git-r3
306 - EGIT_REPO_URI="https://github.com/go-gitea/gitea.git"
307 -else
308 - SRC_URI="https://github.com/go-gitea/gitea/releases/download/v${PV}/gitea-src-${PV}.tar.gz -> ${P}.tar.gz"
309 - KEYWORDS="~amd64 ~arm ~arm64 ~x86"
310 -fi
311 -
312 -S="${WORKDIR}/${PN}-src-${PV}"
313 -
314 -LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"
315 -SLOT="0"
316 -IUSE="+acct pam sqlite pie"
317 -
318 -DEPEND="
319 - acct? (
320 - acct-group/git
321 - acct-user/git[gitea] )
322 - pam? ( sys-libs/pam )"
323 -RDEPEND="${DEPEND}
324 - dev-vcs/git"
325 -
326 -DOCS=(
327 - custom/conf/app.example.ini CONTRIBUTING.md README.md
328 -)
329 -FILECAPS=(
330 - -m 711 cap_net_bind_service+ep usr/bin/gitea
331 -)
332 -
333 -RESTRICT="test"
334 -
335 -src_prepare() {
336 - default
337 -
338 - local sedcmds=(
339 - -e "s#^ROOT =#ROOT = ${EPREFIX}/var/lib/gitea/gitea-repositories#"
340 - -e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/gitea#"
341 - -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = ${EPREFIX}/var/lib/gitea/data#"
342 - -e "s#^HTTP_ADDR = 0.0.0.0#HTTP_ADDR = 127.0.0.1#"
343 - -e "s#^MODE = console#MODE = file#"
344 - -e "s#^LEVEL = Trace#LEVEL = Info#"
345 - -e "s#^LOG_SQL = true#LOG_SQL = false#"
346 - -e "s#^DISABLE_ROUTER_LOG = false#DISABLE_ROUTER_LOG = true#"
347 - )
348 -
349 - sed -i "${sedcmds[@]}" custom/conf/app.example.ini || die
350 - if use sqlite ; then
351 - sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" custom/conf/app.example.ini || die
352 - fi
353 -}
354 -
355 -src_configure() {
356 - # bug 832756 - PIE build issues
357 - filter-flags -fPIE
358 - filter-ldflags -fPIE -pie
359 -}
360 -
361 -src_compile() {
362 - local gitea_tags=(
363 - bindata
364 - $(usev pam)
365 - $(usex sqlite 'sqlite sqlite_unlock_notify' '')
366 - )
367 - local gitea_settings=(
368 - "-X code.gitea.io/gitea/modules/setting.CustomConf=${EPREFIX}/etc/gitea/app.ini"
369 - "-X code.gitea.io/gitea/modules/setting.CustomPath=${EPREFIX}/var/lib/gitea/custom"
370 - "-X code.gitea.io/gitea/modules/setting.AppWorkPath=${EPREFIX}/var/lib/gitea"
371 - )
372 - local makeenv=(
373 - DRONE_TAG="${PV}"
374 - LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[*]}"
375 - TAGS="${gitea_tags[*]}"
376 - )
377 -
378 - GOFLAGS=""
379 - if use pie ; then
380 - GOFLAGS+="-buildmode=pie"
381 - fi
382 -
383 - env "${makeenv[@]}" emake EXTRA_GOFLAGS="${GOFLAGS}" backend
384 -}
385 -
386 -src_install() {
387 - dobin gitea
388 -
389 - einstalldocs
390 -
391 - newconfd "${FILESDIR}/gitea.confd-r1" gitea
392 - newinitd "${FILESDIR}/gitea.initd-r3" gitea
393 - newtmpfiles - gitea.conf <<-EOF
394 - d /run/gitea 0755 git git
395 - EOF
396 - systemd_newunit "${FILESDIR}"/gitea.service-r3 gitea.service
397 -
398 - insinto /etc/gitea
399 - newins custom/conf/app.example.ini app.ini
400 - if use acct; then
401 - fowners root:git /etc/gitea/{,app.ini}
402 - fperms g+w,o-rwx /etc/gitea/{,app.ini}
403 -
404 - diropts -m0750 -o git -g git
405 - keepdir /var/lib/gitea /var/lib/gitea/custom /var/lib/gitea/data
406 - keepdir /var/log/gitea
407 - fi
408 -}
409 -
410 -pkg_postinst() {
411 - fcaps_pkg_postinst
412 - tmpfiles_process gitea.conf
413 -
414 - ewarn "The default JWT signing algorithm changed in 1.15.0 from HS256 (symmetric) to"
415 - ewarn "RS256 (asymmetric). Gitea OAuth2 tokens (and potentially client secrets) will"
416 - ewarn "need to be regenerated unless you change your JWT_SIGNING_ALGORITHM back to HS256."
417 - ewarn "For other breaking changes, see <https://github.com/go-gitea/gitea/releases/tag/v1.15.0>."
418 -}