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: Sat, 25 Dec 2021 23:20:28
Message-Id: 1640474405.ebe66b7f4f5dded19bc31d8a5f40aa84cb468477.sam@gentoo
1 commit: ebe66b7f4f5dded19bc31d8a5f40aa84cb468477
2 Author: Tomáš Mózes <hydrapolic <AT> gmail <DOT> com>
3 AuthorDate: Thu Dec 23 20:50:24 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 25 23:20:05 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ebe66b7f
7
8 www-apps/gitea: drop old and live
9
10 Live ebuild does not work since the frontend part is not included as in
11 the releases.
12
13 Signed-off-by: Tomáš Mózes <hydrapolic <AT> gmail.com>
14 Closes: https://github.com/gentoo/gentoo/pull/23486
15 Signed-off-by: Sam James <sam <AT> gentoo.org>
16
17 www-apps/gitea/Manifest | 2 -
18 www-apps/gitea/gitea-1.15.5.ebuild | 123 -------------------------------------
19 www-apps/gitea/gitea-1.15.6.ebuild | 123 -------------------------------------
20 www-apps/gitea/gitea-9999.ebuild | 123 -------------------------------------
21 4 files changed, 371 deletions(-)
22
23 diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
24 index 0632a8e636fa..89fa2fa6367e 100644
25 --- a/www-apps/gitea/Manifest
26 +++ b/www-apps/gitea/Manifest
27 @@ -1,4 +1,2 @@
28 -DIST gitea-1.15.5.tar.gz 48677702 BLAKE2B fe46e16041861a477cd91e66e741d35cd43264f8e8c6bfeac5a858fd4aeac9e5e92e308608d6fe74a86a69f21a7c036c8e3409aacb8e5841cbf60ae67009574a SHA512 85522113f389d0a26d4f4b78c05a5454095da5f9f9a030c7392143588f985dc7711368d40194bdc6ea286f3ec15b1f9db428f1401f29aa4c46800d0431696a85
29 -DIST gitea-1.15.6.tar.gz 48675768 BLAKE2B e7952cc981925ec36ab6576456266e3582ea88098a2ad83da161c875b3621be586ddbe63fe0d0ce7c62a0fa1e46663f20ce24ce998f3318645667bd92236ade1 SHA512 9492a3628c5b300a1322893ffdfffa42e904d1b94917c058ad339e0d9ca21155c834b11d55808cbc89e08533de5340fbf858b87487ad307713c4dc12f5e810c8
30 DIST gitea-1.15.7.tar.gz 48716399 BLAKE2B 4238dad8ce64f205bc18fb35a395b18f6da9f34e5bc0dd9d9bb33d5b8413895fb11f85e8514aca62485ce70f0af5091cb8dfeaccecd146fe5e37ca250227847d SHA512 9488776bb39d15a7390e6734e05c6ee9e092a52055575bc784660d6815125f29498d16a7807dac71ecbabc3f08c407c2da1514c36cce72855a17a9ed7b52fbb9
31 DIST gitea-1.15.8.tar.gz 48705540 BLAKE2B fe51af1ac573958e615e600925a3e2a8f1bdfe44333304571198de58fa989e8f8c9ebc4f4714d7700c24f28cba60170a2e34c4416ed28ec201577af92d557a82 SHA512 026f8006fa5f51f6bd753228290f1f3714cd5b23c35e2041b309fc4d0d66be9f84fdaf4c7bd5759248fa26e3d3b9fe628fd5ee4c96e13ff6c99fa7facef4ab06
32
33 diff --git a/www-apps/gitea/gitea-1.15.5.ebuild b/www-apps/gitea/gitea-1.15.5.ebuild
34 deleted file mode 100644
35 index a5eec77f6034..000000000000
36 --- a/www-apps/gitea/gitea-1.15.5.ebuild
37 +++ /dev/null
38 @@ -1,123 +0,0 @@
39 -# Copyright 2016-2021 Gentoo Authors
40 -# Distributed under the terms of the GNU General Public License v2
41 -
42 -EAPI=7
43 -inherit fcaps go-module tmpfiles systemd
44 -MY_PV="${PV/_rc/-rc}"
45 -
46 -DESCRIPTION="A painless self-hosted Git service"
47 -HOMEPAGE="https://gitea.io"
48 -
49 -if [[ ${PV} != 9999* ]] ; then
50 - SRC_URI="https://github.com/go-gitea/gitea/releases/download/v${MY_PV}/gitea-src-${MY_PV}.tar.gz -> ${P}.tar.gz"
51 - KEYWORDS="~amd64 ~arm ~arm64"
52 - S="${WORKDIR}"
53 -else
54 - EGIT_REPO_URI="https://github.com/go-gitea/gitea"
55 - inherit git-r3
56 - S="${WORKDIR}/${P}"
57 -fi
58 -
59 -LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"
60 -SLOT="0"
61 -IUSE="+acct pam sqlite"
62 -
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 711 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 -
109 -src_compile() {
110 - local gitea_tags=(
111 - bindata
112 - $(usev pam)
113 - $(usex sqlite 'sqlite sqlite_unlock_notify' '')
114 - )
115 - local gitea_settings=(
116 - "-X code.gitea.io/gitea/modules/setting.CustomConf=${EPREFIX}/etc/gitea/app.ini"
117 - "-X code.gitea.io/gitea/modules/setting.CustomPath=${EPREFIX}/var/lib/gitea/custom"
118 - "-X code.gitea.io/gitea/modules/setting.AppWorkPath=${EPREFIX}/var/lib/gitea"
119 - )
120 - local makeenv=(
121 - TAGS="${gitea_tags[*]}"
122 - LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[*]}"
123 - )
124 - [[ ${PV} != 9999* ]] && makeenv+=("DRONE_TAG=${MY_PV}")
125 -
126 - env "${makeenv[@]}" emake backend
127 -}
128 -
129 -src_install() {
130 - dobin gitea
131 -
132 - einstalldocs
133 -
134 - newconfd "${FILESDIR}/gitea.confd-r1" gitea
135 - newinitd "${FILESDIR}/gitea.initd-r3" gitea
136 - newtmpfiles - gitea.conf <<-EOF
137 - d /run/gitea 0755 git git
138 - EOF
139 - systemd_newunit "${FILESDIR}"/gitea.service-r3 gitea.service
140 -
141 - insinto /etc/gitea
142 - newins custom/conf/app.example.ini app.ini
143 - if use acct ; then
144 - fowners root:git /etc/gitea/{,app.ini}
145 - fperms g+w,o-rwx /etc/gitea/{,app.ini}
146 -
147 - diropts -m0750 -o git -g git
148 - keepdir /var/lib/gitea /var/lib/gitea/custom /var/lib/gitea/data
149 - keepdir /var/log/gitea
150 - fi
151 -}
152 -
153 -pkg_postinst() {
154 - fcaps_pkg_postinst
155 - tmpfiles_process gitea.conf
156 -
157 - ewarn "The default JWT signing algorithm changed in 1.15.0 from HS256 (symmetric) to"
158 - ewarn "RS256 (asymmetric). Gitea OAuth2 tokens (and potentially client secrets) will"
159 - ewarn "need to be regenerated unless you change your JWT_SIGNING_ALGORITHM back to HS256."
160 - ewarn "For other breaking changes, see <https://github.com/go-gitea/gitea/releases/tag/v1.15.0>."
161 -}
162
163 diff --git a/www-apps/gitea/gitea-1.15.6.ebuild b/www-apps/gitea/gitea-1.15.6.ebuild
164 deleted file mode 100644
165 index 4da3155a2589..000000000000
166 --- a/www-apps/gitea/gitea-1.15.6.ebuild
167 +++ /dev/null
168 @@ -1,123 +0,0 @@
169 -# Copyright 2016-2021 Gentoo Authors
170 -# Distributed under the terms of the GNU General Public License v2
171 -
172 -EAPI=7
173 -
174 -inherit fcaps go-module tmpfiles systemd
175 -MY_PV="${PV/_rc/-rc}"
176 -
177 -DESCRIPTION="A painless self-hosted Git service"
178 -HOMEPAGE="https://gitea.io https://github.com/go-gitea/gitea"
179 -
180 -if [[ ${PV} != 9999* ]] ; then
181 - SRC_URI="https://github.com/go-gitea/gitea/releases/download/v${MY_PV}/gitea-src-${MY_PV}.tar.gz -> ${P}.tar.gz"
182 - KEYWORDS="~amd64 ~arm ~arm64"
183 - S="${WORKDIR}"
184 -else
185 - EGIT_REPO_URI="https://github.com/go-gitea/gitea"
186 - inherit git-r3
187 - S="${WORKDIR}/${P}"
188 -fi
189 -
190 -LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"
191 -SLOT="0"
192 -IUSE="+acct pam sqlite"
193 -
194 -DEPEND="
195 - acct? (
196 - acct-group/git
197 - acct-user/git[gitea] )
198 - pam? ( sys-libs/pam )"
199 -RDEPEND="${DEPEND}
200 - dev-vcs/git"
201 -
202 -DOCS=(
203 - custom/conf/app.example.ini CONTRIBUTING.md README.md
204 -)
205 -FILECAPS=(
206 - -m 711 cap_net_bind_service+ep usr/bin/gitea
207 -)
208 -
209 -RESTRICT="test"
210 -QA_PRESTRIPPED="usr/bin/gitea"
211 -
212 -src_prepare() {
213 - default
214 -
215 - local sedcmds=(
216 - -e "s#^ROOT =#ROOT = ${EPREFIX}/var/lib/gitea/gitea-repositories#"
217 - -e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/gitea#"
218 - -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = ${EPREFIX}/var/lib/gitea/data#"
219 - -e "s#^HTTP_ADDR = 0.0.0.0#HTTP_ADDR = 127.0.0.1#"
220 - -e "s#^MODE = console#MODE = file#"
221 - -e "s#^LEVEL = Trace#LEVEL = Info#"
222 - -e "s#^LOG_SQL = true#LOG_SQL = false#"
223 - -e "s#^DISABLE_ROUTER_LOG = false#DISABLE_ROUTER_LOG = true#"
224 - )
225 -
226 - sed -i "${sedcmds[@]}" custom/conf/app.example.ini || die
227 - if use sqlite ; then
228 - sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" custom/conf/app.example.ini || die
229 - fi
230 -
231 - einfo "Remove tests which are known to fail with network-sandbox enabled."
232 - rm ./modules/migrations/github_test.go || die
233 -
234 - einfo "Remove tests which depend on gitea git-repo."
235 - rm ./modules/git/blob_test.go || die
236 - rm ./modules/git/repo_test.go || die
237 -}
238 -
239 -src_compile() {
240 - local gitea_tags=(
241 - bindata
242 - $(usev pam)
243 - $(usex sqlite 'sqlite sqlite_unlock_notify' '')
244 - )
245 - local gitea_settings=(
246 - "-X code.gitea.io/gitea/modules/setting.CustomConf=${EPREFIX}/etc/gitea/app.ini"
247 - "-X code.gitea.io/gitea/modules/setting.CustomPath=${EPREFIX}/var/lib/gitea/custom"
248 - "-X code.gitea.io/gitea/modules/setting.AppWorkPath=${EPREFIX}/var/lib/gitea"
249 - )
250 - local makeenv=(
251 - TAGS="${gitea_tags[*]}"
252 - LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[*]}"
253 - )
254 - [[ ${PV} != 9999* ]] && makeenv+=("DRONE_TAG=${MY_PV}")
255 -
256 - env "${makeenv[@]}" emake backend
257 -}
258 -
259 -src_install() {
260 - dobin gitea
261 -
262 - einstalldocs
263 -
264 - newconfd "${FILESDIR}/gitea.confd-r1" gitea
265 - newinitd "${FILESDIR}/gitea.initd-r3" gitea
266 - newtmpfiles - gitea.conf <<-EOF
267 - d /run/gitea 0755 git git
268 - EOF
269 - systemd_newunit "${FILESDIR}"/gitea.service-r3 gitea.service
270 -
271 - insinto /etc/gitea
272 - newins custom/conf/app.example.ini app.ini
273 - if use acct ; then
274 - fowners root:git /etc/gitea/{,app.ini}
275 - fperms g+w,o-rwx /etc/gitea/{,app.ini}
276 -
277 - diropts -m0750 -o git -g git
278 - keepdir /var/lib/gitea /var/lib/gitea/custom /var/lib/gitea/data
279 - keepdir /var/log/gitea
280 - fi
281 -}
282 -
283 -pkg_postinst() {
284 - fcaps_pkg_postinst
285 - tmpfiles_process gitea.conf
286 -
287 - ewarn "The default JWT signing algorithm changed in 1.15.0 from HS256 (symmetric) to"
288 - ewarn "RS256 (asymmetric). Gitea OAuth2 tokens (and potentially client secrets) will"
289 - ewarn "need to be regenerated unless you change your JWT_SIGNING_ALGORITHM back to HS256."
290 - ewarn "For other breaking changes, see <https://github.com/go-gitea/gitea/releases/tag/v1.15.0>."
291 -}
292
293 diff --git a/www-apps/gitea/gitea-9999.ebuild b/www-apps/gitea/gitea-9999.ebuild
294 deleted file mode 100644
295 index 4da3155a2589..000000000000
296 --- a/www-apps/gitea/gitea-9999.ebuild
297 +++ /dev/null
298 @@ -1,123 +0,0 @@
299 -# Copyright 2016-2021 Gentoo Authors
300 -# Distributed under the terms of the GNU General Public License v2
301 -
302 -EAPI=7
303 -
304 -inherit fcaps go-module tmpfiles systemd
305 -MY_PV="${PV/_rc/-rc}"
306 -
307 -DESCRIPTION="A painless self-hosted Git service"
308 -HOMEPAGE="https://gitea.io https://github.com/go-gitea/gitea"
309 -
310 -if [[ ${PV} != 9999* ]] ; then
311 - SRC_URI="https://github.com/go-gitea/gitea/releases/download/v${MY_PV}/gitea-src-${MY_PV}.tar.gz -> ${P}.tar.gz"
312 - KEYWORDS="~amd64 ~arm ~arm64"
313 - S="${WORKDIR}"
314 -else
315 - EGIT_REPO_URI="https://github.com/go-gitea/gitea"
316 - inherit git-r3
317 - S="${WORKDIR}/${P}"
318 -fi
319 -
320 -LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"
321 -SLOT="0"
322 -IUSE="+acct pam sqlite"
323 -
324 -DEPEND="
325 - acct? (
326 - acct-group/git
327 - acct-user/git[gitea] )
328 - pam? ( sys-libs/pam )"
329 -RDEPEND="${DEPEND}
330 - dev-vcs/git"
331 -
332 -DOCS=(
333 - custom/conf/app.example.ini CONTRIBUTING.md README.md
334 -)
335 -FILECAPS=(
336 - -m 711 cap_net_bind_service+ep usr/bin/gitea
337 -)
338 -
339 -RESTRICT="test"
340 -QA_PRESTRIPPED="usr/bin/gitea"
341 -
342 -src_prepare() {
343 - default
344 -
345 - local sedcmds=(
346 - -e "s#^ROOT =#ROOT = ${EPREFIX}/var/lib/gitea/gitea-repositories#"
347 - -e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/gitea#"
348 - -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = ${EPREFIX}/var/lib/gitea/data#"
349 - -e "s#^HTTP_ADDR = 0.0.0.0#HTTP_ADDR = 127.0.0.1#"
350 - -e "s#^MODE = console#MODE = file#"
351 - -e "s#^LEVEL = Trace#LEVEL = Info#"
352 - -e "s#^LOG_SQL = true#LOG_SQL = false#"
353 - -e "s#^DISABLE_ROUTER_LOG = false#DISABLE_ROUTER_LOG = true#"
354 - )
355 -
356 - sed -i "${sedcmds[@]}" custom/conf/app.example.ini || die
357 - if use sqlite ; then
358 - sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" custom/conf/app.example.ini || die
359 - fi
360 -
361 - einfo "Remove tests which are known to fail with network-sandbox enabled."
362 - rm ./modules/migrations/github_test.go || die
363 -
364 - einfo "Remove tests which depend on gitea git-repo."
365 - rm ./modules/git/blob_test.go || die
366 - rm ./modules/git/repo_test.go || die
367 -}
368 -
369 -src_compile() {
370 - local gitea_tags=(
371 - bindata
372 - $(usev pam)
373 - $(usex sqlite 'sqlite sqlite_unlock_notify' '')
374 - )
375 - local gitea_settings=(
376 - "-X code.gitea.io/gitea/modules/setting.CustomConf=${EPREFIX}/etc/gitea/app.ini"
377 - "-X code.gitea.io/gitea/modules/setting.CustomPath=${EPREFIX}/var/lib/gitea/custom"
378 - "-X code.gitea.io/gitea/modules/setting.AppWorkPath=${EPREFIX}/var/lib/gitea"
379 - )
380 - local makeenv=(
381 - TAGS="${gitea_tags[*]}"
382 - LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[*]}"
383 - )
384 - [[ ${PV} != 9999* ]] && makeenv+=("DRONE_TAG=${MY_PV}")
385 -
386 - env "${makeenv[@]}" emake backend
387 -}
388 -
389 -src_install() {
390 - dobin gitea
391 -
392 - einstalldocs
393 -
394 - newconfd "${FILESDIR}/gitea.confd-r1" gitea
395 - newinitd "${FILESDIR}/gitea.initd-r3" gitea
396 - newtmpfiles - gitea.conf <<-EOF
397 - d /run/gitea 0755 git git
398 - EOF
399 - systemd_newunit "${FILESDIR}"/gitea.service-r3 gitea.service
400 -
401 - insinto /etc/gitea
402 - newins custom/conf/app.example.ini app.ini
403 - if use acct ; then
404 - fowners root:git /etc/gitea/{,app.ini}
405 - fperms g+w,o-rwx /etc/gitea/{,app.ini}
406 -
407 - diropts -m0750 -o git -g git
408 - keepdir /var/lib/gitea /var/lib/gitea/custom /var/lib/gitea/data
409 - keepdir /var/log/gitea
410 - fi
411 -}
412 -
413 -pkg_postinst() {
414 - fcaps_pkg_postinst
415 - tmpfiles_process gitea.conf
416 -
417 - ewarn "The default JWT signing algorithm changed in 1.15.0 from HS256 (symmetric) to"
418 - ewarn "RS256 (asymmetric). Gitea OAuth2 tokens (and potentially client secrets) will"
419 - ewarn "need to be regenerated unless you change your JWT_SIGNING_ALGORITHM back to HS256."
420 - ewarn "For other breaking changes, see <https://github.com/go-gitea/gitea/releases/tag/v1.15.0>."
421 -}