1 |
commit: e15fd7a32774d5f86334176aaec2a9f0a4cbd732 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jan 30 19:15:59 2023 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 30 19:20:55 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e15fd7a3 |
7 |
|
8 |
kde-apps/kdepim-addons: Fix spamassassin-4 detection |
9 |
|
10 |
Upstream commit e9eda87eaf8838d5ee29860129817e5b90afd78e |
11 |
|
12 |
Closes: https://bugs.gentoo.org/892593 |
13 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
14 |
|
15 |
.../kdepim-addons-22.08.3-spamassassin-4.patch | 79 ++++++++++++++++++++ |
16 |
.../kdepim-addons/kdepim-addons-22.08.3-r2.ebuild | 87 ++++++++++++++++++++++ |
17 |
.../kdepim-addons/kdepim-addons-22.12.1-r2.ebuild | 87 ++++++++++++++++++++++ |
18 |
3 files changed, 253 insertions(+) |
19 |
|
20 |
diff --git a/kde-apps/kdepim-addons/files/kdepim-addons-22.08.3-spamassassin-4.patch b/kde-apps/kdepim-addons/files/kdepim-addons-22.08.3-spamassassin-4.patch |
21 |
new file mode 100644 |
22 |
index 000000000000..ef9436f0548f |
23 |
--- /dev/null |
24 |
+++ b/kde-apps/kdepim-addons/files/kdepim-addons-22.08.3-spamassassin-4.patch |
25 |
@@ -0,0 +1,79 @@ |
26 |
+From e9eda87eaf8838d5ee29860129817e5b90afd78e Mon Sep 17 00:00:00 2001 |
27 |
+From: Laurent Montel <montel@×××.org> |
28 |
+Date: Sun, 29 Jan 2023 16:32:01 +0100 |
29 |
+Subject: [PATCH] Fix kdepim-addons: support Spamassassin 4.0.0 with Kmail |
30 |
+ |
31 |
+BUG: 464973 |
32 |
+FIXED-IN: 5.22.2 |
33 |
+--- |
34 |
+ kmail/plugins/common/kmail.antispamrc | 52 ++++++++++++++++++++++++++- |
35 |
+ 1 file changed, 51 insertions(+), 1 deletion(-) |
36 |
+ |
37 |
+diff --git a/kmail/plugins/common/kmail.antispamrc b/kmail/plugins/common/kmail.antispamrc |
38 |
+index 67f920b85..acdf1c205 100644 |
39 |
+--- a/kmail/plugins/common/kmail.antispamrc |
40 |
++++ b/kmail/plugins/common/kmail.antispamrc |
41 |
+@@ -1,5 +1,5 @@ |
42 |
+ [General] |
43 |
+-tools=12 |
44 |
++tools=14 |
45 |
+ |
46 |
+ [Spamtool #1] |
47 |
+ Ident=spamassassin |
48 |
+@@ -258,3 +258,53 @@ ScoreHeader=X-Spamd-Result |
49 |
+ ScoreType=Adjusted |
50 |
+ ScoreValueRegexp=\\[([\\d\\.-]+)[^\\d\\.] |
51 |
+ ScoreThresholdRegexp= \\/ ([\\d\\.-]+)[^\\d\\.] |
52 |
++ |
53 |
++[Spamtool #13] |
54 |
++Ident=spamassassin |
55 |
++Version=1 |
56 |
++Priority=42 |
57 |
++VisibleName=SpamAssassin 4.x (Perl) |
58 |
++Executable=spamassassin -V | grep "SpamAssassin version 4" |
59 |
++URL=https://spamassassin.apache.org/ |
60 |
++PipeFilterName=SpamAssassin Check |
61 |
++PipeCmdDetect=spamassassin -L |
62 |
++PipeCmdNoSpam=spamassassin -d |
63 |
++ExecCmdSpam=sa-learn -L --spam --no-sync |
64 |
++ExecCmdHam=sa-learn -L --ham --no-sync |
65 |
++DetectionHeader=X-Spam-Flag |
66 |
++DetectionPattern=(yes)|(YES) |
67 |
++DetectionPattern2= |
68 |
++DetectionOnly=0 |
69 |
++UseRegExp=1 |
70 |
++SupportsBayes=1 |
71 |
++SupportsUnsure=0 |
72 |
++ScoreName=Spamassassin |
73 |
++ScoreHeader=X-Spam-Status |
74 |
++ScoreType=Adjusted |
75 |
++ScoreValueRegexp=(?:hits|score)=([\\d\\.-]+)[^\\d\\.] |
76 |
++ScoreThresholdRegexp=required=([\\d\\.-]+)[^\\d\\.] |
77 |
++ |
78 |
++[Spamtool #14] |
79 |
++Ident=spamd |
80 |
++Version=1 |
81 |
++Priority=46 |
82 |
++VisibleName=SpamAssassin 4.x (Daemon) |
83 |
++Executable=echo "From: test" | spamc -x && spamassassin -V | grep "SpamAssassin version 4" |
84 |
++URL=https://spamassassin.apache.org/ |
85 |
++PipeFilterName=SpamAssassin Service Check |
86 |
++PipeCmdDetect=spamc |
87 |
++PipeCmdNoSpam=spamassassin -d |
88 |
++ExecCmdSpam=sa-learn -L --spam --no-sync --single |
89 |
++ExecCmdHam=sa-learn -L --ham --no-sync --single |
90 |
++DetectionHeader=X-Spam-Flag |
91 |
++DetectionPattern=(yes)|(YES) |
92 |
++DetectionPattern2= |
93 |
++DetectionOnly=0 |
94 |
++UseRegExp=1 |
95 |
++SupportsBayes=1 |
96 |
++SupportsUnsure=0 |
97 |
++ScoreName=Spamassassin |
98 |
++ScoreHeader=X-Spam-Status |
99 |
++ScoreType=Adjusted |
100 |
++ScoreValueRegexp=(?:hits|score)=([\\d\\.-]+)[^\\d\\.] |
101 |
++ScoreThresholdRegexp=required=([\\d\\.-]+)[^\\d\\.] |
102 |
+-- |
103 |
+GitLab |
104 |
+ |
105 |
|
106 |
diff --git a/kde-apps/kdepim-addons/kdepim-addons-22.08.3-r2.ebuild b/kde-apps/kdepim-addons/kdepim-addons-22.08.3-r2.ebuild |
107 |
new file mode 100644 |
108 |
index 000000000000..378814b81d41 |
109 |
--- /dev/null |
110 |
+++ b/kde-apps/kdepim-addons/kdepim-addons-22.08.3-r2.ebuild |
111 |
@@ -0,0 +1,87 @@ |
112 |
+# Copyright 1999-2023 Gentoo Authors |
113 |
+# Distributed under the terms of the GNU General Public License v2 |
114 |
+ |
115 |
+EAPI=8 |
116 |
+ |
117 |
+ECM_TEST="forceoptional" |
118 |
+PVCUT=$(ver_cut 1-3) |
119 |
+KFMIN=5.96.0 |
120 |
+QTMIN=5.15.5 |
121 |
+VIRTUALX_REQUIRED="test" |
122 |
+inherit ecm gear.kde.org optfeature |
123 |
+ |
124 |
+DESCRIPTION="Plugins for KDE Personal Information Management Suite" |
125 |
+HOMEPAGE="https://apps.kde.org/kontact/" |
126 |
+ |
127 |
+LICENSE="GPL-2+ LGPL-2.1+" |
128 |
+SLOT="5" |
129 |
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" |
130 |
+IUSE="importwizard markdown" |
131 |
+ |
132 |
+RESTRICT="test" |
133 |
+ |
134 |
+RDEPEND=" |
135 |
+ >=app-crypt/gpgme-1.16.0:=[cxx,qt5] |
136 |
+ >=dev-libs/grantlee-5.2.0:5 |
137 |
+ >=dev-qt/qtgui-${QTMIN}:5 |
138 |
+ >=dev-qt/qtnetwork-${QTMIN}:5 |
139 |
+ >=dev-qt/qtwidgets-${QTMIN}:5 |
140 |
+ >=dev-qt/qtxml-${QTMIN}:5 |
141 |
+ >=kde-apps/akonadi-${PVCUT}:5 |
142 |
+ >=kde-apps/akonadi-contacts-${PVCUT}:5 |
143 |
+ >=kde-apps/akonadi-notes-${PVCUT}:5 |
144 |
+ >=kde-apps/calendarsupport-${PVCUT}:5 |
145 |
+ >=kde-apps/eventviews-${PVCUT}:5 |
146 |
+ >=kde-apps/grantleetheme-${PVCUT}:5 |
147 |
+ >=kde-apps/incidenceeditor-${PVCUT}:5 |
148 |
+ >=kde-apps/kaddressbook-${PVCUT}:5 |
149 |
+ >=kde-apps/kidentitymanagement-${PVCUT}:5 |
150 |
+ >=kde-apps/kimap-${PVCUT}:5 |
151 |
+ >=kde-apps/kitinerary-${PVCUT}:5 |
152 |
+ >=kde-apps/kmailtransport-${PVCUT}:5 |
153 |
+ >=kde-apps/kmime-${PVCUT}:5 |
154 |
+ >=kde-apps/kpkpass-${PVCUT}:5 |
155 |
+ >=kde-apps/libkdepim-${PVCUT}:5 |
156 |
+ >=kde-apps/libkleo-${PVCUT}:5 |
157 |
+ >=kde-apps/libksieve-${PVCUT}:5 |
158 |
+ >=kde-apps/libktnef-${PVCUT}:5 |
159 |
+ >=kde-apps/mailcommon-${PVCUT}:5 |
160 |
+ >=kde-apps/messagelib-${PVCUT}:5 |
161 |
+ >=kde-apps/pimcommon-${PVCUT}:5 |
162 |
+ >=kde-frameworks/kcompletion-${KFMIN}:5 |
163 |
+ >=kde-frameworks/kconfig-${KFMIN}:5 |
164 |
+ >=kde-frameworks/kconfigwidgets-${KFMIN}:5 |
165 |
+ >=kde-frameworks/kcontacts-${KFMIN}:5 |
166 |
+ >=kde-frameworks/kcoreaddons-${KFMIN}:5 |
167 |
+ >=kde-frameworks/kdbusaddons-${KFMIN}:5 |
168 |
+ >=kde-frameworks/kguiaddons-${KFMIN}:5 |
169 |
+ >=kde-frameworks/ki18n-${KFMIN}:5 |
170 |
+ >=kde-frameworks/kiconthemes-${KFMIN}:5 |
171 |
+ >=kde-frameworks/kio-${KFMIN}:5 |
172 |
+ >=kde-frameworks/kparts-${KFMIN}:5 |
173 |
+ >=kde-frameworks/kwidgetsaddons-${KFMIN}:5 |
174 |
+ >=kde-frameworks/kxmlgui-${KFMIN}:5 |
175 |
+ >=kde-frameworks/prison-${KFMIN}:5 |
176 |
+ >=kde-frameworks/syntax-highlighting-${KFMIN}:5 |
177 |
+ importwizard? ( >=kde-apps/akonadi-import-wizard-${PVCUT}:5 ) |
178 |
+ markdown? ( app-text/discount:= ) |
179 |
+" |
180 |
+DEPEND="${RDEPEND}" |
181 |
+ |
182 |
+PATCHES=( "${FILESDIR}/${P}-spamassassin-4.patch" ) |
183 |
+ |
184 |
+src_configure() { |
185 |
+ local mycmakeargs=( |
186 |
+ $(cmake_use_find_package importwizard KPimImportWizard) |
187 |
+ $(cmake_use_find_package markdown Discount) |
188 |
+ ) |
189 |
+ |
190 |
+ ecm_src_configure |
191 |
+} |
192 |
+ |
193 |
+pkg_postinst() { |
194 |
+ if [[ -z "${REPLACING_VERSIONS}" ]]; then |
195 |
+ optfeature "regex support for Sieve editor plugin" kde-misc/kregexpeditor |
196 |
+ fi |
197 |
+ ecm_pkg_postinst |
198 |
+} |
199 |
|
200 |
diff --git a/kde-apps/kdepim-addons/kdepim-addons-22.12.1-r2.ebuild b/kde-apps/kdepim-addons/kdepim-addons-22.12.1-r2.ebuild |
201 |
new file mode 100644 |
202 |
index 000000000000..4db31e0d4b3b |
203 |
--- /dev/null |
204 |
+++ b/kde-apps/kdepim-addons/kdepim-addons-22.12.1-r2.ebuild |
205 |
@@ -0,0 +1,87 @@ |
206 |
+# Copyright 1999-2023 Gentoo Authors |
207 |
+# Distributed under the terms of the GNU General Public License v2 |
208 |
+ |
209 |
+EAPI=8 |
210 |
+ |
211 |
+ECM_TEST="forceoptional" |
212 |
+PVCUT=$(ver_cut 1-3) |
213 |
+KFMIN=5.101.0 |
214 |
+QTMIN=5.15.5 |
215 |
+VIRTUALX_REQUIRED="test" |
216 |
+inherit ecm gear.kde.org optfeature |
217 |
+ |
218 |
+DESCRIPTION="Plugins for KDE Personal Information Management Suite" |
219 |
+HOMEPAGE="https://apps.kde.org/kontact/" |
220 |
+ |
221 |
+LICENSE="GPL-2+ LGPL-2.1+" |
222 |
+SLOT="5" |
223 |
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" |
224 |
+IUSE="importwizard markdown" |
225 |
+ |
226 |
+RESTRICT="test" |
227 |
+ |
228 |
+RDEPEND=" |
229 |
+ >=app-crypt/gpgme-1.16.0:=[cxx,qt5] |
230 |
+ >=dev-libs/grantlee-5.2.0:5 |
231 |
+ >=dev-qt/qtgui-${QTMIN}:5 |
232 |
+ >=dev-qt/qtnetwork-${QTMIN}:5 |
233 |
+ >=dev-qt/qtwidgets-${QTMIN}:5 |
234 |
+ >=dev-qt/qtxml-${QTMIN}:5 |
235 |
+ >=kde-apps/akonadi-${PVCUT}:5 |
236 |
+ >=kde-apps/akonadi-contacts-${PVCUT}:5 |
237 |
+ >=kde-apps/akonadi-notes-${PVCUT}:5 |
238 |
+ >=kde-apps/calendarsupport-${PVCUT}:5 |
239 |
+ >=kde-apps/eventviews-${PVCUT}:5 |
240 |
+ >=kde-apps/grantleetheme-${PVCUT}:5 |
241 |
+ >=kde-apps/incidenceeditor-${PVCUT}:5 |
242 |
+ >=kde-apps/kaddressbook-${PVCUT}:5 |
243 |
+ >=kde-apps/kidentitymanagement-${PVCUT}:5 |
244 |
+ >=kde-apps/kimap-${PVCUT}:5 |
245 |
+ >=kde-apps/kitinerary-${PVCUT}:5 |
246 |
+ >=kde-apps/kmailtransport-${PVCUT}:5 |
247 |
+ >=kde-apps/kmime-${PVCUT}:5 |
248 |
+ >=kde-apps/kpkpass-${PVCUT}:5 |
249 |
+ >=kde-apps/libkdepim-${PVCUT}:5 |
250 |
+ >=kde-apps/libkleo-${PVCUT}:5 |
251 |
+ >=kde-apps/libksieve-${PVCUT}:5 |
252 |
+ >=kde-apps/libktnef-${PVCUT}:5 |
253 |
+ >=kde-apps/mailcommon-${PVCUT}:5 |
254 |
+ >=kde-apps/messagelib-${PVCUT}:5 |
255 |
+ >=kde-apps/pimcommon-${PVCUT}:5 |
256 |
+ >=kde-frameworks/kcompletion-${KFMIN}:5 |
257 |
+ >=kde-frameworks/kconfig-${KFMIN}:5 |
258 |
+ >=kde-frameworks/kconfigwidgets-${KFMIN}:5 |
259 |
+ >=kde-frameworks/kcontacts-${KFMIN}:5 |
260 |
+ >=kde-frameworks/kcoreaddons-${KFMIN}:5 |
261 |
+ >=kde-frameworks/kdbusaddons-${KFMIN}:5 |
262 |
+ >=kde-frameworks/kguiaddons-${KFMIN}:5 |
263 |
+ >=kde-frameworks/ki18n-${KFMIN}:5 |
264 |
+ >=kde-frameworks/kiconthemes-${KFMIN}:5 |
265 |
+ >=kde-frameworks/kio-${KFMIN}:5 |
266 |
+ >=kde-frameworks/kparts-${KFMIN}:5 |
267 |
+ >=kde-frameworks/kwidgetsaddons-${KFMIN}:5 |
268 |
+ >=kde-frameworks/kxmlgui-${KFMIN}:5 |
269 |
+ >=kde-frameworks/prison-${KFMIN}:5 |
270 |
+ >=kde-frameworks/syntax-highlighting-${KFMIN}:5 |
271 |
+ importwizard? ( >=kde-apps/akonadi-import-wizard-${PVCUT}:5 ) |
272 |
+ markdown? ( app-text/discount:= ) |
273 |
+" |
274 |
+DEPEND="${RDEPEND}" |
275 |
+ |
276 |
+PATCHES=( "${FILESDIR}/${PN}-22.08.3-spamassassin-4.patch" ) |
277 |
+ |
278 |
+src_configure() { |
279 |
+ local mycmakeargs=( |
280 |
+ $(cmake_use_find_package importwizard KPimImportWizard) |
281 |
+ $(cmake_use_find_package markdown Discount) |
282 |
+ ) |
283 |
+ |
284 |
+ ecm_src_configure |
285 |
+} |
286 |
+ |
287 |
+pkg_postinst() { |
288 |
+ if [[ -z "${REPLACING_VERSIONS}" ]]; then |
289 |
+ optfeature "regex support for Sieve editor plugin" kde-misc/kregexpeditor |
290 |
+ fi |
291 |
+ ecm_pkg_postinst |
292 |
+} |