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