1 |
commit: 6b7434361dca974cf613f2576b42f72c3e36c70c |
2 |
Author: Tomáš Mózes <hydrapolic <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Feb 8 15:49:46 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 9 11:19:10 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6b743436 |
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/24127 |
12 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
13 |
|
14 |
www-apps/gitea/Manifest | 2 - |
15 |
www-apps/gitea/gitea-1.15.11.ebuild | 107 ------------------------------------ |
16 |
www-apps/gitea/gitea-1.16.0.ebuild | 107 ------------------------------------ |
17 |
3 files changed, 216 deletions(-) |
18 |
|
19 |
diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest |
20 |
index 1a204d7744f6..9443829fdeaa 100644 |
21 |
--- a/www-apps/gitea/Manifest |
22 |
+++ b/www-apps/gitea/Manifest |
23 |
@@ -1,3 +1 @@ |
24 |
-DIST gitea-1.15.11.tar.gz 48782819 BLAKE2B 1f04314cef3ee1467ed0948e95dec89c75a45cc2c3de78f7fc998b9716c5859bd87ec51e6e2b79d048701ac82fc112b3239a6e27bccfe4b0eeb4cdfdc1fb99d6 SHA512 1f842b90997cb7463751a0e08d37f4823437094efadeb6a27a6bbdb502b2bf33ebb0eab1e8e6bf5b64790b4c513cc42b978ec54152f1a4bfe0b6b957cb179fde |
25 |
-DIST gitea-1.16.0.tar.gz 49689929 BLAKE2B d6713dd6c72ee659335f263bcde2bbf25beba44fda7dc5e31d30c1a24bcf6a9155909f2e8e8039f462a2982ddef235a57cb08d77676c9a139fe5f7ef4379bfa8 SHA512 24cb3d7859bf57a0d78ed7820b1daffda3095fd6025e886d828d956fd1a75e179bd6c784cd54c7f174d63353f68d59c7a2a76cb0ce0a209f6d11b3c3181f9b5e |
26 |
DIST gitea-1.16.1.tar.gz 49719355 BLAKE2B a25f421079aa62311e1c607167904fa1daa8208d878fee3fb20cc2954a53ec171189c6d36da486636a725502a2d759534407b1e236e56f4947211c33176204b1 SHA512 c4ec0d1b3ec1898fa72fd62d98555e35898649d29e52eb5b9f9923f9703cd42b1c67f1a1e1a927c3de9b44cd65229c31330e534ad0117633b0320c1434614cab |
27 |
|
28 |
diff --git a/www-apps/gitea/gitea-1.15.11.ebuild b/www-apps/gitea/gitea-1.15.11.ebuild |
29 |
deleted file mode 100644 |
30 |
index eaeda1a3f382..000000000000 |
31 |
--- a/www-apps/gitea/gitea-1.15.11.ebuild |
32 |
+++ /dev/null |
33 |
@@ -1,107 +0,0 @@ |
34 |
-# Copyright 2016-2022 Gentoo Authors |
35 |
-# Distributed under the terms of the GNU General Public License v2 |
36 |
- |
37 |
-EAPI=8 |
38 |
- |
39 |
-inherit fcaps go-module tmpfiles systemd |
40 |
- |
41 |
-DESCRIPTION="A painless self-hosted Git service" |
42 |
-HOMEPAGE="https://gitea.io https://github.com/go-gitea/gitea" |
43 |
-SRC_URI="https://github.com/go-gitea/gitea/releases/download/v${PV}/gitea-src-${PV}.tar.gz -> ${P}.tar.gz" |
44 |
-KEYWORDS="~amd64 ~arm ~arm64" |
45 |
-S="${WORKDIR}" |
46 |
- |
47 |
-LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0" |
48 |
-SLOT="0" |
49 |
-IUSE="+acct pam sqlite" |
50 |
- |
51 |
-DEPEND=" |
52 |
- acct? ( |
53 |
- acct-group/git |
54 |
- acct-user/git[gitea] ) |
55 |
- pam? ( sys-libs/pam )" |
56 |
-RDEPEND="${DEPEND} |
57 |
- dev-vcs/git" |
58 |
- |
59 |
-DOCS=( |
60 |
- custom/conf/app.example.ini CONTRIBUTING.md README.md |
61 |
-) |
62 |
-FILECAPS=( |
63 |
- -m 711 cap_net_bind_service+ep usr/bin/gitea |
64 |
-) |
65 |
- |
66 |
-RESTRICT="test" |
67 |
- |
68 |
-src_prepare() { |
69 |
- default |
70 |
- |
71 |
- local sedcmds=( |
72 |
- -e "s#^ROOT =#ROOT = ${EPREFIX}/var/lib/gitea/gitea-repositories#" |
73 |
- -e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/gitea#" |
74 |
- -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = ${EPREFIX}/var/lib/gitea/data#" |
75 |
- -e "s#^HTTP_ADDR = 0.0.0.0#HTTP_ADDR = 127.0.0.1#" |
76 |
- -e "s#^MODE = console#MODE = file#" |
77 |
- -e "s#^LEVEL = Trace#LEVEL = Info#" |
78 |
- -e "s#^LOG_SQL = true#LOG_SQL = false#" |
79 |
- -e "s#^DISABLE_ROUTER_LOG = false#DISABLE_ROUTER_LOG = true#" |
80 |
- ) |
81 |
- |
82 |
- sed -i "${sedcmds[@]}" custom/conf/app.example.ini || die |
83 |
- if use sqlite ; then |
84 |
- sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" custom/conf/app.example.ini || die |
85 |
- fi |
86 |
-} |
87 |
- |
88 |
-src_compile() { |
89 |
- local gitea_tags=( |
90 |
- bindata |
91 |
- $(usev pam) |
92 |
- $(usex sqlite 'sqlite sqlite_unlock_notify' '') |
93 |
- ) |
94 |
- local gitea_settings=( |
95 |
- "-X code.gitea.io/gitea/modules/setting.CustomConf=${EPREFIX}/etc/gitea/app.ini" |
96 |
- "-X code.gitea.io/gitea/modules/setting.CustomPath=${EPREFIX}/var/lib/gitea/custom" |
97 |
- "-X code.gitea.io/gitea/modules/setting.AppWorkPath=${EPREFIX}/var/lib/gitea" |
98 |
- ) |
99 |
- local makeenv=( |
100 |
- DRONE_TAG="${PV}" |
101 |
- LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[*]}" |
102 |
- TAGS="${gitea_tags[*]}" |
103 |
- ) |
104 |
- |
105 |
- env "${makeenv[@]}" emake backend |
106 |
-} |
107 |
- |
108 |
-src_install() { |
109 |
- dobin gitea |
110 |
- |
111 |
- einstalldocs |
112 |
- |
113 |
- newconfd "${FILESDIR}/gitea.confd-r1" gitea |
114 |
- newinitd "${FILESDIR}/gitea.initd-r3" gitea |
115 |
- newtmpfiles - gitea.conf <<-EOF |
116 |
- d /run/gitea 0755 git git |
117 |
- EOF |
118 |
- systemd_newunit "${FILESDIR}"/gitea.service-r3 gitea.service |
119 |
- |
120 |
- insinto /etc/gitea |
121 |
- newins custom/conf/app.example.ini app.ini |
122 |
- if use acct; then |
123 |
- fowners root:git /etc/gitea/{,app.ini} |
124 |
- fperms g+w,o-rwx /etc/gitea/{,app.ini} |
125 |
- |
126 |
- diropts -m0750 -o git -g git |
127 |
- keepdir /var/lib/gitea /var/lib/gitea/custom /var/lib/gitea/data |
128 |
- keepdir /var/log/gitea |
129 |
- fi |
130 |
-} |
131 |
- |
132 |
-pkg_postinst() { |
133 |
- fcaps_pkg_postinst |
134 |
- tmpfiles_process gitea.conf |
135 |
- |
136 |
- ewarn "The default JWT signing algorithm changed in 1.15.0 from HS256 (symmetric) to" |
137 |
- ewarn "RS256 (asymmetric). Gitea OAuth2 tokens (and potentially client secrets) will" |
138 |
- ewarn "need to be regenerated unless you change your JWT_SIGNING_ALGORITHM back to HS256." |
139 |
- ewarn "For other breaking changes, see <https://github.com/go-gitea/gitea/releases/tag/v1.15.0>." |
140 |
-} |
141 |
|
142 |
diff --git a/www-apps/gitea/gitea-1.16.0.ebuild b/www-apps/gitea/gitea-1.16.0.ebuild |
143 |
deleted file mode 100644 |
144 |
index eaeda1a3f382..000000000000 |
145 |
--- a/www-apps/gitea/gitea-1.16.0.ebuild |
146 |
+++ /dev/null |
147 |
@@ -1,107 +0,0 @@ |
148 |
-# Copyright 2016-2022 Gentoo Authors |
149 |
-# Distributed under the terms of the GNU General Public License v2 |
150 |
- |
151 |
-EAPI=8 |
152 |
- |
153 |
-inherit fcaps go-module tmpfiles systemd |
154 |
- |
155 |
-DESCRIPTION="A painless self-hosted Git service" |
156 |
-HOMEPAGE="https://gitea.io https://github.com/go-gitea/gitea" |
157 |
-SRC_URI="https://github.com/go-gitea/gitea/releases/download/v${PV}/gitea-src-${PV}.tar.gz -> ${P}.tar.gz" |
158 |
-KEYWORDS="~amd64 ~arm ~arm64" |
159 |
-S="${WORKDIR}" |
160 |
- |
161 |
-LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0" |
162 |
-SLOT="0" |
163 |
-IUSE="+acct pam sqlite" |
164 |
- |
165 |
-DEPEND=" |
166 |
- acct? ( |
167 |
- acct-group/git |
168 |
- acct-user/git[gitea] ) |
169 |
- pam? ( sys-libs/pam )" |
170 |
-RDEPEND="${DEPEND} |
171 |
- dev-vcs/git" |
172 |
- |
173 |
-DOCS=( |
174 |
- custom/conf/app.example.ini CONTRIBUTING.md README.md |
175 |
-) |
176 |
-FILECAPS=( |
177 |
- -m 711 cap_net_bind_service+ep usr/bin/gitea |
178 |
-) |
179 |
- |
180 |
-RESTRICT="test" |
181 |
- |
182 |
-src_prepare() { |
183 |
- default |
184 |
- |
185 |
- local sedcmds=( |
186 |
- -e "s#^ROOT =#ROOT = ${EPREFIX}/var/lib/gitea/gitea-repositories#" |
187 |
- -e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/gitea#" |
188 |
- -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = ${EPREFIX}/var/lib/gitea/data#" |
189 |
- -e "s#^HTTP_ADDR = 0.0.0.0#HTTP_ADDR = 127.0.0.1#" |
190 |
- -e "s#^MODE = console#MODE = file#" |
191 |
- -e "s#^LEVEL = Trace#LEVEL = Info#" |
192 |
- -e "s#^LOG_SQL = true#LOG_SQL = false#" |
193 |
- -e "s#^DISABLE_ROUTER_LOG = false#DISABLE_ROUTER_LOG = true#" |
194 |
- ) |
195 |
- |
196 |
- sed -i "${sedcmds[@]}" custom/conf/app.example.ini || die |
197 |
- if use sqlite ; then |
198 |
- sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" custom/conf/app.example.ini || die |
199 |
- fi |
200 |
-} |
201 |
- |
202 |
-src_compile() { |
203 |
- local gitea_tags=( |
204 |
- bindata |
205 |
- $(usev pam) |
206 |
- $(usex sqlite 'sqlite sqlite_unlock_notify' '') |
207 |
- ) |
208 |
- local gitea_settings=( |
209 |
- "-X code.gitea.io/gitea/modules/setting.CustomConf=${EPREFIX}/etc/gitea/app.ini" |
210 |
- "-X code.gitea.io/gitea/modules/setting.CustomPath=${EPREFIX}/var/lib/gitea/custom" |
211 |
- "-X code.gitea.io/gitea/modules/setting.AppWorkPath=${EPREFIX}/var/lib/gitea" |
212 |
- ) |
213 |
- local makeenv=( |
214 |
- DRONE_TAG="${PV}" |
215 |
- LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[*]}" |
216 |
- TAGS="${gitea_tags[*]}" |
217 |
- ) |
218 |
- |
219 |
- env "${makeenv[@]}" emake backend |
220 |
-} |
221 |
- |
222 |
-src_install() { |
223 |
- dobin gitea |
224 |
- |
225 |
- einstalldocs |
226 |
- |
227 |
- newconfd "${FILESDIR}/gitea.confd-r1" gitea |
228 |
- newinitd "${FILESDIR}/gitea.initd-r3" gitea |
229 |
- newtmpfiles - gitea.conf <<-EOF |
230 |
- d /run/gitea 0755 git git |
231 |
- EOF |
232 |
- systemd_newunit "${FILESDIR}"/gitea.service-r3 gitea.service |
233 |
- |
234 |
- insinto /etc/gitea |
235 |
- newins custom/conf/app.example.ini app.ini |
236 |
- if use acct; then |
237 |
- fowners root:git /etc/gitea/{,app.ini} |
238 |
- fperms g+w,o-rwx /etc/gitea/{,app.ini} |
239 |
- |
240 |
- diropts -m0750 -o git -g git |
241 |
- keepdir /var/lib/gitea /var/lib/gitea/custom /var/lib/gitea/data |
242 |
- keepdir /var/log/gitea |
243 |
- fi |
244 |
-} |
245 |
- |
246 |
-pkg_postinst() { |
247 |
- fcaps_pkg_postinst |
248 |
- tmpfiles_process gitea.conf |
249 |
- |
250 |
- ewarn "The default JWT signing algorithm changed in 1.15.0 from HS256 (symmetric) to" |
251 |
- ewarn "RS256 (asymmetric). Gitea OAuth2 tokens (and potentially client secrets) will" |
252 |
- ewarn "need to be regenerated unless you change your JWT_SIGNING_ALGORITHM back to HS256." |
253 |
- ewarn "For other breaking changes, see <https://github.com/go-gitea/gitea/releases/tag/v1.15.0>." |
254 |
-} |