Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/
Date: Sun, 31 Oct 2021 02:55:11
Message-Id: 1635648740.9494ffb383d9681207a4e4bdc1ea27a66c337885.sam@gentoo
1 commit: 9494ffb383d9681207a4e4bdc1ea27a66c337885
2 Author: Tomáš Mózes <hydrapolic <AT> gmail <DOT> com>
3 AuthorDate: Tue Oct 26 07:09:41 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 31 02:52:20 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9494ffb3
7
8 www-apps/gitea: drop vulnerable
9
10 Signed-off-by: Tomáš Mózes <hydrapolic <AT> gmail.com>
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 www-apps/gitea/Manifest | 4 --
14 www-apps/gitea/gitea-1.14.6.ebuild | 128 -------------------------------------
15 www-apps/gitea/gitea-1.14.7.ebuild | 128 -------------------------------------
16 www-apps/gitea/gitea-1.15.2.ebuild | 123 -----------------------------------
17 www-apps/gitea/gitea-1.15.3.ebuild | 123 -----------------------------------
18 www-apps/gitea/metadata.xml | 1 -
19 6 files changed, 507 deletions(-)
20
21 diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
22 index 4b82f4f45d2..6af1748c2e9 100644
23 --- a/www-apps/gitea/Manifest
24 +++ b/www-apps/gitea/Manifest
25 @@ -1,5 +1 @@
26 -DIST gitea-1.14.6.tar.gz 117871468 BLAKE2B f71ea5e6761e36bbb5d4304e606b99513196703773c4595fef85e1641cff179e2b58b3150de199636a504ec806fc17d8deb73cac903824502749cbcdd6f72aaa SHA512 2e17994dbadc29d62f244d70550da59c1ab6818a1e5af20265405024b26fe6641bbeabb6b227f432170abd133fb3f11a2b5d9ac814ebd234729e4fcc0c4ed6d0
27 -DIST gitea-1.14.7.tar.gz 117981989 BLAKE2B e3159f0a3c07511319491865ab75a4619e1c696e19e0dc6dc0ce56d0adf06f6be0658b96d65a8085694aac0fc0a5131e127b8181d789847708bc56691ad6a547 SHA512 023a6583f8352974df3138b8aa5e7729cef1769dff7a3a59b1a5efe66e4527296045ae10f69982592a9d932d390c60e749199e4d1fe1010b7507de5576c8abca
28 -DIST gitea-1.15.2.tar.gz 48648887 BLAKE2B 5bd5800e4c967946dad918d57318831cc7a55cdeedd46e8efb74cd47940eefde1212b85f43b77f1ba443d2c09997a5dd1dd29fd9c7bbc404cf2943048e42225c SHA512 47332f07882c2bef26f9417f0617801518c0448cbe84c2a70b140f38dbe18c17cfe9bb077da49536663066b8d09a566a423256430f954beafc53d746b5bfd578
29 -DIST gitea-1.15.3.tar.gz 48671233 BLAKE2B 3440e02711f696fff8629e5049c44963a31375516ae8e335069970d8a9a65792c60a382444bea6d49f1048936862ff5e56b79eaa7bc1aefaafe0c080ce52cb02 SHA512 00bf48e8c30ee2c00465f7e29055149e68a1f2956860ca4314c7671d054e93c94024d8aed91770b1a0a50a21937bb51e42da5d9639462c21f9a56652fbfdf04e
30 DIST gitea-1.15.5.tar.gz 48677702 BLAKE2B fe46e16041861a477cd91e66e741d35cd43264f8e8c6bfeac5a858fd4aeac9e5e92e308608d6fe74a86a69f21a7c036c8e3409aacb8e5841cbf60ae67009574a SHA512 85522113f389d0a26d4f4b78c05a5454095da5f9f9a030c7392143588f985dc7711368d40194bdc6ea286f3ec15b1f9db428f1401f29aa4c46800d0431696a85
31
32 diff --git a/www-apps/gitea/gitea-1.14.6.ebuild b/www-apps/gitea/gitea-1.14.6.ebuild
33 deleted file mode 100644
34 index 51099cd019a..00000000000
35 --- a/www-apps/gitea/gitea-1.14.6.ebuild
36 +++ /dev/null
37 @@ -1,128 +0,0 @@
38 -# Copyright 1999-2021 Gentoo Authors
39 -# Distributed under the terms of the GNU General Public License v2
40 -
41 -EAPI=7
42 -inherit fcaps go-module tmpfiles systemd
43 -MY_PV="${PV/_rc/-rc}"
44 -
45 -DESCRIPTION="A painless self-hosted Git service"
46 -HOMEPAGE="https://gitea.io"
47 -
48 -if [[ ${PV} != 9999* ]] ; then
49 - SRC_URI="https://github.com/go-gitea/gitea/releases/download/v${MY_PV}/gitea-src-${MY_PV}.tar.gz -> ${P}.tar.gz"
50 - KEYWORDS="~amd64 ~arm ~arm64"
51 - S="${WORKDIR}"
52 -else
53 - EGIT_REPO_URI="https://github.com/go-gitea/gitea"
54 - inherit git-r3
55 - S="${WORKDIR}/${P}"
56 -fi
57 -
58 -LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"
59 -SLOT="0"
60 -IUSE="+acct build-client pam sqlite"
61 -
62 -BDEPEND="build-client? ( >=net-libs/nodejs-10[npm] )"
63 -COMMON_DEPEND="
64 - acct? (
65 - acct-group/git
66 - acct-user/git[gitea] )
67 - pam? ( sys-libs/pam )"
68 -DEPEND="${COMMON_DEPEND}"
69 -RDEPEND="${COMMON_DEPEND}
70 - dev-vcs/git"
71 -
72 -DOCS=(
73 - custom/conf/app.example.ini CONTRIBUTING.md README.md
74 -)
75 -FILECAPS=(
76 - -m 0755 cap_net_bind_service+ep usr/bin/gitea
77 -)
78 -
79 -RESTRICT="test"
80 -QA_PRESTRIPPED="usr/bin/gitea"
81 -
82 -src_prepare() {
83 - default
84 -
85 - local sedcmds=(
86 - -e "s#^ROOT =#ROOT = ${EPREFIX}/var/lib/gitea/gitea-repositories#"
87 - -e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/gitea#"
88 - -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = ${EPREFIX}/var/lib/gitea/data#"
89 - -e "s#^HTTP_ADDR = 0.0.0.0#HTTP_ADDR = 127.0.0.1#"
90 - -e "s#^MODE = console#MODE = file#"
91 - -e "s#^LEVEL = Trace#LEVEL = Info#"
92 - -e "s#^LOG_SQL = true#LOG_SQL = false#"
93 - -e "s#^DISABLE_ROUTER_LOG = false#DISABLE_ROUTER_LOG = true#"
94 - )
95 -
96 - sed -i "${sedcmds[@]}" custom/conf/app.example.ini || die
97 - if use sqlite ; then
98 - sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" custom/conf/app.example.ini || die
99 - fi
100 -
101 - einfo "Remove tests which are known to fail with network-sandbox enabled."
102 - rm ./modules/migrations/github_test.go || die
103 -
104 - einfo "Remove tests which depend on gitea git-repo."
105 - rm ./modules/git/blob_test.go || die
106 - rm ./modules/git/repo_test.go || die
107 -
108 - # Remove already build assets (like frontend part)
109 - use build-client && emake clean-all
110 -}
111 -
112 -src_compile() {
113 - local gitea_tags=(
114 - bindata
115 - $(usev pam)
116 - $(usex sqlite 'sqlite sqlite_unlock_notify' '')
117 - )
118 - local gitea_settings=(
119 - "-X code.gitea.io/gitea/modules/setting.CustomConf=${EPREFIX}/etc/gitea/app.ini"
120 - "-X code.gitea.io/gitea/modules/setting.CustomPath=${EPREFIX}/var/lib/gitea/custom"
121 - "-X code.gitea.io/gitea/modules/setting.AppWorkPath=${EPREFIX}/var/lib/gitea"
122 - )
123 - local makeenv=(
124 - TAGS="${gitea_tags[*]}"
125 - LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[*]}"
126 - )
127 - [[ ${PV} != 9999* ]] && makeenv+=("DRONE_TAG=${MY_PV}")
128 -
129 - if use build-client; then
130 - # -j1 as Makefile doesn't handle dependancy correctly, and is not
131 - # useful as golang compiler don't use this info.
132 - env "${makeenv[@]}" emake -j1 build
133 - else
134 - env "${makeenv[@]}" emake backend
135 - fi
136 -}
137 -
138 -src_install() {
139 - dobin gitea
140 -
141 - einstalldocs
142 -
143 - newconfd "${FILESDIR}/gitea.confd-r1" gitea
144 - newinitd "${FILESDIR}/gitea.initd-r3" gitea
145 - newtmpfiles - gitea.conf <<-EOF
146 - d /run/gitea 0755 git git
147 - EOF
148 - systemd_newunit "${FILESDIR}"/gitea.service-r3 gitea.service
149 -
150 - insinto /etc/gitea
151 - newins custom/conf/app.example.ini app.ini
152 - if use acct ; then
153 - fowners root:git /etc/gitea/{,app.ini}
154 - fperms g+w,o-rwx /etc/gitea/{,app.ini}
155 -
156 - diropts -m0750 -o git -g git
157 - keepdir /var/lib/gitea /var/lib/gitea/custom /var/lib/gitea/data
158 - keepdir /var/log/gitea
159 - fi
160 -}
161 -
162 -pkg_postinst() {
163 - fcaps_pkg_postinst
164 - tmpfiles_process gitea.conf
165 -}
166
167 diff --git a/www-apps/gitea/gitea-1.14.7.ebuild b/www-apps/gitea/gitea-1.14.7.ebuild
168 deleted file mode 100644
169 index 51099cd019a..00000000000
170 --- a/www-apps/gitea/gitea-1.14.7.ebuild
171 +++ /dev/null
172 @@ -1,128 +0,0 @@
173 -# Copyright 1999-2021 Gentoo Authors
174 -# Distributed under the terms of the GNU General Public License v2
175 -
176 -EAPI=7
177 -inherit fcaps go-module tmpfiles systemd
178 -MY_PV="${PV/_rc/-rc}"
179 -
180 -DESCRIPTION="A painless self-hosted Git service"
181 -HOMEPAGE="https://gitea.io"
182 -
183 -if [[ ${PV} != 9999* ]] ; then
184 - SRC_URI="https://github.com/go-gitea/gitea/releases/download/v${MY_PV}/gitea-src-${MY_PV}.tar.gz -> ${P}.tar.gz"
185 - KEYWORDS="~amd64 ~arm ~arm64"
186 - S="${WORKDIR}"
187 -else
188 - EGIT_REPO_URI="https://github.com/go-gitea/gitea"
189 - inherit git-r3
190 - S="${WORKDIR}/${P}"
191 -fi
192 -
193 -LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"
194 -SLOT="0"
195 -IUSE="+acct build-client pam sqlite"
196 -
197 -BDEPEND="build-client? ( >=net-libs/nodejs-10[npm] )"
198 -COMMON_DEPEND="
199 - acct? (
200 - acct-group/git
201 - acct-user/git[gitea] )
202 - pam? ( sys-libs/pam )"
203 -DEPEND="${COMMON_DEPEND}"
204 -RDEPEND="${COMMON_DEPEND}
205 - dev-vcs/git"
206 -
207 -DOCS=(
208 - custom/conf/app.example.ini CONTRIBUTING.md README.md
209 -)
210 -FILECAPS=(
211 - -m 0755 cap_net_bind_service+ep usr/bin/gitea
212 -)
213 -
214 -RESTRICT="test"
215 -QA_PRESTRIPPED="usr/bin/gitea"
216 -
217 -src_prepare() {
218 - default
219 -
220 - local sedcmds=(
221 - -e "s#^ROOT =#ROOT = ${EPREFIX}/var/lib/gitea/gitea-repositories#"
222 - -e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/gitea#"
223 - -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = ${EPREFIX}/var/lib/gitea/data#"
224 - -e "s#^HTTP_ADDR = 0.0.0.0#HTTP_ADDR = 127.0.0.1#"
225 - -e "s#^MODE = console#MODE = file#"
226 - -e "s#^LEVEL = Trace#LEVEL = Info#"
227 - -e "s#^LOG_SQL = true#LOG_SQL = false#"
228 - -e "s#^DISABLE_ROUTER_LOG = false#DISABLE_ROUTER_LOG = true#"
229 - )
230 -
231 - sed -i "${sedcmds[@]}" custom/conf/app.example.ini || die
232 - if use sqlite ; then
233 - sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" custom/conf/app.example.ini || die
234 - fi
235 -
236 - einfo "Remove tests which are known to fail with network-sandbox enabled."
237 - rm ./modules/migrations/github_test.go || die
238 -
239 - einfo "Remove tests which depend on gitea git-repo."
240 - rm ./modules/git/blob_test.go || die
241 - rm ./modules/git/repo_test.go || die
242 -
243 - # Remove already build assets (like frontend part)
244 - use build-client && emake clean-all
245 -}
246 -
247 -src_compile() {
248 - local gitea_tags=(
249 - bindata
250 - $(usev pam)
251 - $(usex sqlite 'sqlite sqlite_unlock_notify' '')
252 - )
253 - local gitea_settings=(
254 - "-X code.gitea.io/gitea/modules/setting.CustomConf=${EPREFIX}/etc/gitea/app.ini"
255 - "-X code.gitea.io/gitea/modules/setting.CustomPath=${EPREFIX}/var/lib/gitea/custom"
256 - "-X code.gitea.io/gitea/modules/setting.AppWorkPath=${EPREFIX}/var/lib/gitea"
257 - )
258 - local makeenv=(
259 - TAGS="${gitea_tags[*]}"
260 - LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[*]}"
261 - )
262 - [[ ${PV} != 9999* ]] && makeenv+=("DRONE_TAG=${MY_PV}")
263 -
264 - if use build-client; then
265 - # -j1 as Makefile doesn't handle dependancy correctly, and is not
266 - # useful as golang compiler don't use this info.
267 - env "${makeenv[@]}" emake -j1 build
268 - else
269 - env "${makeenv[@]}" emake backend
270 - fi
271 -}
272 -
273 -src_install() {
274 - dobin gitea
275 -
276 - einstalldocs
277 -
278 - newconfd "${FILESDIR}/gitea.confd-r1" gitea
279 - newinitd "${FILESDIR}/gitea.initd-r3" gitea
280 - newtmpfiles - gitea.conf <<-EOF
281 - d /run/gitea 0755 git git
282 - EOF
283 - systemd_newunit "${FILESDIR}"/gitea.service-r3 gitea.service
284 -
285 - insinto /etc/gitea
286 - newins custom/conf/app.example.ini app.ini
287 - if use acct ; then
288 - fowners root:git /etc/gitea/{,app.ini}
289 - fperms g+w,o-rwx /etc/gitea/{,app.ini}
290 -
291 - diropts -m0750 -o git -g git
292 - keepdir /var/lib/gitea /var/lib/gitea/custom /var/lib/gitea/data
293 - keepdir /var/log/gitea
294 - fi
295 -}
296 -
297 -pkg_postinst() {
298 - fcaps_pkg_postinst
299 - tmpfiles_process gitea.conf
300 -}
301
302 diff --git a/www-apps/gitea/gitea-1.15.2.ebuild b/www-apps/gitea/gitea-1.15.2.ebuild
303 deleted file mode 100644
304 index a5eec77f603..00000000000
305 --- a/www-apps/gitea/gitea-1.15.2.ebuild
306 +++ /dev/null
307 @@ -1,123 +0,0 @@
308 -# Copyright 2016-2021 Gentoo Authors
309 -# Distributed under the terms of the GNU General Public License v2
310 -
311 -EAPI=7
312 -inherit fcaps go-module tmpfiles systemd
313 -MY_PV="${PV/_rc/-rc}"
314 -
315 -DESCRIPTION="A painless self-hosted Git service"
316 -HOMEPAGE="https://gitea.io"
317 -
318 -if [[ ${PV} != 9999* ]] ; then
319 - SRC_URI="https://github.com/go-gitea/gitea/releases/download/v${MY_PV}/gitea-src-${MY_PV}.tar.gz -> ${P}.tar.gz"
320 - KEYWORDS="~amd64 ~arm ~arm64"
321 - S="${WORKDIR}"
322 -else
323 - EGIT_REPO_URI="https://github.com/go-gitea/gitea"
324 - inherit git-r3
325 - S="${WORKDIR}/${P}"
326 -fi
327 -
328 -LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"
329 -SLOT="0"
330 -IUSE="+acct pam sqlite"
331 -
332 -COMMON_DEPEND="
333 - acct? (
334 - acct-group/git
335 - acct-user/git[gitea] )
336 - pam? ( sys-libs/pam )"
337 -DEPEND="${COMMON_DEPEND}"
338 -RDEPEND="${COMMON_DEPEND}
339 - dev-vcs/git"
340 -
341 -DOCS=(
342 - custom/conf/app.example.ini CONTRIBUTING.md README.md
343 -)
344 -FILECAPS=(
345 - -m 711 cap_net_bind_service+ep usr/bin/gitea
346 -)
347 -
348 -RESTRICT="test"
349 -QA_PRESTRIPPED="usr/bin/gitea"
350 -
351 -src_prepare() {
352 - default
353 -
354 - local sedcmds=(
355 - -e "s#^ROOT =#ROOT = ${EPREFIX}/var/lib/gitea/gitea-repositories#"
356 - -e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/gitea#"
357 - -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = ${EPREFIX}/var/lib/gitea/data#"
358 - -e "s#^HTTP_ADDR = 0.0.0.0#HTTP_ADDR = 127.0.0.1#"
359 - -e "s#^MODE = console#MODE = file#"
360 - -e "s#^LEVEL = Trace#LEVEL = Info#"
361 - -e "s#^LOG_SQL = true#LOG_SQL = false#"
362 - -e "s#^DISABLE_ROUTER_LOG = false#DISABLE_ROUTER_LOG = true#"
363 - )
364 -
365 - sed -i "${sedcmds[@]}" custom/conf/app.example.ini || die
366 - if use sqlite ; then
367 - sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" custom/conf/app.example.ini || die
368 - fi
369 -
370 - einfo "Remove tests which are known to fail with network-sandbox enabled."
371 - rm ./modules/migrations/github_test.go || die
372 -
373 - einfo "Remove tests which depend on gitea git-repo."
374 - rm ./modules/git/blob_test.go || die
375 - rm ./modules/git/repo_test.go || die
376 -}
377 -
378 -src_compile() {
379 - local gitea_tags=(
380 - bindata
381 - $(usev pam)
382 - $(usex sqlite 'sqlite sqlite_unlock_notify' '')
383 - )
384 - local gitea_settings=(
385 - "-X code.gitea.io/gitea/modules/setting.CustomConf=${EPREFIX}/etc/gitea/app.ini"
386 - "-X code.gitea.io/gitea/modules/setting.CustomPath=${EPREFIX}/var/lib/gitea/custom"
387 - "-X code.gitea.io/gitea/modules/setting.AppWorkPath=${EPREFIX}/var/lib/gitea"
388 - )
389 - local makeenv=(
390 - TAGS="${gitea_tags[*]}"
391 - LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[*]}"
392 - )
393 - [[ ${PV} != 9999* ]] && makeenv+=("DRONE_TAG=${MY_PV}")
394 -
395 - env "${makeenv[@]}" emake backend
396 -}
397 -
398 -src_install() {
399 - dobin gitea
400 -
401 - einstalldocs
402 -
403 - newconfd "${FILESDIR}/gitea.confd-r1" gitea
404 - newinitd "${FILESDIR}/gitea.initd-r3" gitea
405 - newtmpfiles - gitea.conf <<-EOF
406 - d /run/gitea 0755 git git
407 - EOF
408 - systemd_newunit "${FILESDIR}"/gitea.service-r3 gitea.service
409 -
410 - insinto /etc/gitea
411 - newins custom/conf/app.example.ini app.ini
412 - if use acct ; then
413 - fowners root:git /etc/gitea/{,app.ini}
414 - fperms g+w,o-rwx /etc/gitea/{,app.ini}
415 -
416 - diropts -m0750 -o git -g git
417 - keepdir /var/lib/gitea /var/lib/gitea/custom /var/lib/gitea/data
418 - keepdir /var/log/gitea
419 - fi
420 -}
421 -
422 -pkg_postinst() {
423 - fcaps_pkg_postinst
424 - tmpfiles_process gitea.conf
425 -
426 - ewarn "The default JWT signing algorithm changed in 1.15.0 from HS256 (symmetric) to"
427 - ewarn "RS256 (asymmetric). Gitea OAuth2 tokens (and potentially client secrets) will"
428 - ewarn "need to be regenerated unless you change your JWT_SIGNING_ALGORITHM back to HS256."
429 - ewarn "For other breaking changes, see <https://github.com/go-gitea/gitea/releases/tag/v1.15.0>."
430 -}
431
432 diff --git a/www-apps/gitea/gitea-1.15.3.ebuild b/www-apps/gitea/gitea-1.15.3.ebuild
433 deleted file mode 100644
434 index a5eec77f603..00000000000
435 --- a/www-apps/gitea/gitea-1.15.3.ebuild
436 +++ /dev/null
437 @@ -1,123 +0,0 @@
438 -# Copyright 2016-2021 Gentoo Authors
439 -# Distributed under the terms of the GNU General Public License v2
440 -
441 -EAPI=7
442 -inherit fcaps go-module tmpfiles systemd
443 -MY_PV="${PV/_rc/-rc}"
444 -
445 -DESCRIPTION="A painless self-hosted Git service"
446 -HOMEPAGE="https://gitea.io"
447 -
448 -if [[ ${PV} != 9999* ]] ; then
449 - SRC_URI="https://github.com/go-gitea/gitea/releases/download/v${MY_PV}/gitea-src-${MY_PV}.tar.gz -> ${P}.tar.gz"
450 - KEYWORDS="~amd64 ~arm ~arm64"
451 - S="${WORKDIR}"
452 -else
453 - EGIT_REPO_URI="https://github.com/go-gitea/gitea"
454 - inherit git-r3
455 - S="${WORKDIR}/${P}"
456 -fi
457 -
458 -LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"
459 -SLOT="0"
460 -IUSE="+acct pam sqlite"
461 -
462 -COMMON_DEPEND="
463 - acct? (
464 - acct-group/git
465 - acct-user/git[gitea] )
466 - pam? ( sys-libs/pam )"
467 -DEPEND="${COMMON_DEPEND}"
468 -RDEPEND="${COMMON_DEPEND}
469 - dev-vcs/git"
470 -
471 -DOCS=(
472 - custom/conf/app.example.ini CONTRIBUTING.md README.md
473 -)
474 -FILECAPS=(
475 - -m 711 cap_net_bind_service+ep usr/bin/gitea
476 -)
477 -
478 -RESTRICT="test"
479 -QA_PRESTRIPPED="usr/bin/gitea"
480 -
481 -src_prepare() {
482 - default
483 -
484 - local sedcmds=(
485 - -e "s#^ROOT =#ROOT = ${EPREFIX}/var/lib/gitea/gitea-repositories#"
486 - -e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/gitea#"
487 - -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = ${EPREFIX}/var/lib/gitea/data#"
488 - -e "s#^HTTP_ADDR = 0.0.0.0#HTTP_ADDR = 127.0.0.1#"
489 - -e "s#^MODE = console#MODE = file#"
490 - -e "s#^LEVEL = Trace#LEVEL = Info#"
491 - -e "s#^LOG_SQL = true#LOG_SQL = false#"
492 - -e "s#^DISABLE_ROUTER_LOG = false#DISABLE_ROUTER_LOG = true#"
493 - )
494 -
495 - sed -i "${sedcmds[@]}" custom/conf/app.example.ini || die
496 - if use sqlite ; then
497 - sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" custom/conf/app.example.ini || die
498 - fi
499 -
500 - einfo "Remove tests which are known to fail with network-sandbox enabled."
501 - rm ./modules/migrations/github_test.go || die
502 -
503 - einfo "Remove tests which depend on gitea git-repo."
504 - rm ./modules/git/blob_test.go || die
505 - rm ./modules/git/repo_test.go || die
506 -}
507 -
508 -src_compile() {
509 - local gitea_tags=(
510 - bindata
511 - $(usev pam)
512 - $(usex sqlite 'sqlite sqlite_unlock_notify' '')
513 - )
514 - local gitea_settings=(
515 - "-X code.gitea.io/gitea/modules/setting.CustomConf=${EPREFIX}/etc/gitea/app.ini"
516 - "-X code.gitea.io/gitea/modules/setting.CustomPath=${EPREFIX}/var/lib/gitea/custom"
517 - "-X code.gitea.io/gitea/modules/setting.AppWorkPath=${EPREFIX}/var/lib/gitea"
518 - )
519 - local makeenv=(
520 - TAGS="${gitea_tags[*]}"
521 - LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[*]}"
522 - )
523 - [[ ${PV} != 9999* ]] && makeenv+=("DRONE_TAG=${MY_PV}")
524 -
525 - env "${makeenv[@]}" emake backend
526 -}
527 -
528 -src_install() {
529 - dobin gitea
530 -
531 - einstalldocs
532 -
533 - newconfd "${FILESDIR}/gitea.confd-r1" gitea
534 - newinitd "${FILESDIR}/gitea.initd-r3" gitea
535 - newtmpfiles - gitea.conf <<-EOF
536 - d /run/gitea 0755 git git
537 - EOF
538 - systemd_newunit "${FILESDIR}"/gitea.service-r3 gitea.service
539 -
540 - insinto /etc/gitea
541 - newins custom/conf/app.example.ini app.ini
542 - if use acct ; then
543 - fowners root:git /etc/gitea/{,app.ini}
544 - fperms g+w,o-rwx /etc/gitea/{,app.ini}
545 -
546 - diropts -m0750 -o git -g git
547 - keepdir /var/lib/gitea /var/lib/gitea/custom /var/lib/gitea/data
548 - keepdir /var/log/gitea
549 - fi
550 -}
551 -
552 -pkg_postinst() {
553 - fcaps_pkg_postinst
554 - tmpfiles_process gitea.conf
555 -
556 - ewarn "The default JWT signing algorithm changed in 1.15.0 from HS256 (symmetric) to"
557 - ewarn "RS256 (asymmetric). Gitea OAuth2 tokens (and potentially client secrets) will"
558 - ewarn "need to be regenerated unless you change your JWT_SIGNING_ALGORITHM back to HS256."
559 - ewarn "For other breaking changes, see <https://github.com/go-gitea/gitea/releases/tag/v1.15.0>."
560 -}
561
562 diff --git a/www-apps/gitea/metadata.xml b/www-apps/gitea/metadata.xml
563 index a1543b43861..c5a8b29fd81 100644
564 --- a/www-apps/gitea/metadata.xml
565 +++ b/www-apps/gitea/metadata.xml
566 @@ -7,6 +7,5 @@
567 </upstream>
568 <use>
569 <flag name="acct">User and group management via acct-*/git packages</flag>
570 - <flag name="build-client">Build the client code, instead of using a precompiled one</flag>
571 </use>
572 </pkgmetadata>