1 |
commit: a57654340b90fcb0004be856e63943244415e64d |
2 |
Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Feb 9 19:45:38 2021 +0000 |
4 |
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 9 19:46:29 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a5765434 |
7 |
|
8 |
app-antivirus/clamav: new upstream version 0.103.1. |
9 |
|
10 |
Package-Manager: Portage-3.0.13, Repoman-3.0.2 |
11 |
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org> |
12 |
|
13 |
app-antivirus/clamav/Manifest | 2 +- |
14 |
...mav-0.103.0-r2.ebuild => clamav-0.103.1.ebuild} | 5 +- |
15 |
.../clamav-0.103.0-freshclam-db-test-fix.patch | 27 -------- |
16 |
....patch => clamav-0.103.1-upstream-openrc.patch} | 79 ++++++++++++++++------ |
17 |
4 files changed, 60 insertions(+), 53 deletions(-) |
18 |
|
19 |
diff --git a/app-antivirus/clamav/Manifest b/app-antivirus/clamav/Manifest |
20 |
index 67f7c790109..2fad2fc449e 100644 |
21 |
--- a/app-antivirus/clamav/Manifest |
22 |
+++ b/app-antivirus/clamav/Manifest |
23 |
@@ -1,2 +1,2 @@ |
24 |
DIST clamav-0.102.4.tar.gz 13234444 BLAKE2B 7109da3e2281472032777b8a9d14ca6ff345aead33e5aaf0b9d1ff4721459926062f789dd1f7e8637155e4b9f3bce9f78127bf450f32baf3f1006b8083d3431a SHA512 29893deb8d2d913dff72331875d3dc3a10356bfb254ddfe1c1933b3ea4f8b76c96a1b840f95e72be36cbc0e00b9ec35e395225ef264761f53e709bb1026a4f09 |
25 |
-DIST clamav-0.103.0.tar.gz 13357078 BLAKE2B 6c4b05043f560a56f967642094ba4a9f9bd52268994ac43a99446650a78dafe0ec851b9ebcfe95f3e216fd7942e4756f2e20bda67ca9187e55523fbba9ca56d8 SHA512 e0712ed3c068dc8dab1d31b7cbc19cd69c62875fdcf314abb28e6f42660daf162a3aae69e0a008919e7b809675b68d35f79d3cb98379442bcbc6f5c8ee4313bf |
26 |
+DIST clamav-0.103.1.tar.gz 13369791 BLAKE2B 974716a17e67240ef606b074584a1ac344f1d5915347aaa02b388570ea543981433c482423b99f5d07054bdf4dce8a0d043afdd52b42d49ace468f3d801c3353 SHA512 f13e9542898ef42c0db6f7826bcb220b9cb57de2a88bfedc6c991b76ff06c59290522d31119132eaa2093da58c5069d63103f6260e271497bda2b472c3cd6ffb |
27 |
|
28 |
diff --git a/app-antivirus/clamav/clamav-0.103.0-r2.ebuild b/app-antivirus/clamav/clamav-0.103.1.ebuild |
29 |
similarity index 98% |
30 |
rename from app-antivirus/clamav/clamav-0.103.0-r2.ebuild |
31 |
rename to app-antivirus/clamav/clamav-0.103.1.ebuild |
32 |
index 1ebe1bd96d9..6829a29906a 100644 |
33 |
--- a/app-antivirus/clamav/clamav-0.103.0-r2.ebuild |
34 |
+++ b/app-antivirus/clamav/clamav-0.103.1.ebuild |
35 |
@@ -1,4 +1,4 @@ |
36 |
-# Copyright 1999-2020 Gentoo Authors |
37 |
+# Copyright 1999-2021 Gentoo Authors |
38 |
# Distributed under the terms of the GNU General Public License v2 |
39 |
|
40 |
EAPI=7 |
41 |
@@ -54,8 +54,7 @@ PATCHES=( |
42 |
"${FILESDIR}/${PN}-0.102.1-libxml2_pkgconfig.patch" #661328 |
43 |
"${FILESDIR}/${PN}-0.102.2-fix-curl-detection.patch" #709616 |
44 |
"${FILESDIR}/${PN}-0.103.0-system-tomsfastmath.patch" # 649394 |
45 |
- "${FILESDIR}/${PN}-0.103.0-upstream-openrc.patch" |
46 |
- "${FILESDIR}/${PN}-0.103.0-freshclam-db-test-fix.patch" |
47 |
+ "${FILESDIR}/${PN}-0.103.1-upstream-openrc.patch" |
48 |
) |
49 |
|
50 |
src_prepare() { |
51 |
|
52 |
diff --git a/app-antivirus/clamav/files/clamav-0.103.0-freshclam-db-test-fix.patch b/app-antivirus/clamav/files/clamav-0.103.0-freshclam-db-test-fix.patch |
53 |
deleted file mode 100644 |
54 |
index 25ae94b9fb8..00000000000 |
55 |
--- a/app-antivirus/clamav/files/clamav-0.103.0-freshclam-db-test-fix.patch |
56 |
+++ /dev/null |
57 |
@@ -1,27 +0,0 @@ |
58 |
-diff --git a/freshclam/freshclam.c b/freshclam/freshclam.c |
59 |
-index 8db3b8001..8cde8c9a8 100644 |
60 |
---- a/freshclam/freshclam.c |
61 |
-+++ b/freshclam/freshclam.c |
62 |
-@@ -280,6 +280,14 @@ fc_error_t download_complete_callback(const char *dbFilename, void *context) |
63 |
- goto done; |
64 |
- } |
65 |
- } else { |
66 |
-+ /* |
67 |
-+ * Attempt to test database in a child process. |
68 |
-+ */ |
69 |
-+ |
70 |
-+ /* We need to be able to wait for the child process ourselves. |
71 |
-+ * We'll re-enable wait in the global handler when we're done. */ |
72 |
-+ g_sigchildWait = 0; |
73 |
-+ |
74 |
- switch (pid = fork()) { |
75 |
- case -1: { |
76 |
- /* |
77 |
-@@ -391,6 +399,7 @@ done: |
78 |
- logg("!Database test FAILED.\n"); |
79 |
- } |
80 |
- |
81 |
-+ /* Re-enable the global handler's child process wait */ |
82 |
- g_sigchildWait = 1; |
83 |
- |
84 |
- return status; |
85 |
|
86 |
diff --git a/app-antivirus/clamav/files/clamav-0.103.0-upstream-openrc.patch b/app-antivirus/clamav/files/clamav-0.103.1-upstream-openrc.patch |
87 |
similarity index 86% |
88 |
rename from app-antivirus/clamav/files/clamav-0.103.0-upstream-openrc.patch |
89 |
rename to app-antivirus/clamav/files/clamav-0.103.1-upstream-openrc.patch |
90 |
index a7676f0ab82..a37d44fa934 100644 |
91 |
--- a/app-antivirus/clamav/files/clamav-0.103.0-upstream-openrc.patch |
92 |
+++ b/app-antivirus/clamav/files/clamav-0.103.1-upstream-openrc.patch |
93 |
@@ -1,5 +1,37 @@ |
94 |
+From 7d7ca4f425909368cd78cd587120703754bcd608 Mon Sep 17 00:00:00 2001 |
95 |
+From: Michael Orlitzky <michael@××××××××.com> |
96 |
+Date: Tue, 9 Feb 2021 14:24:09 -0500 |
97 |
+Subject: [PATCH 1/1] Add OpenRC service scripts integrated with the build |
98 |
+ system. |
99 |
+ |
100 |
+--- |
101 |
+ Makefile.am | 11 ++++++ |
102 |
+ clamav-milter/Makefile.am | 21 ++++++++++++ |
103 |
+ clamav-milter/openrc/clamav-milter.in.in | 34 +++++++++++++++++++ |
104 |
+ clamd/Makefile.am | 19 +++++++++++ |
105 |
+ clamd/openrc/clamd.in.in | 33 ++++++++++++++++++ |
106 |
+ clamonacc/Makefile.am | 19 +++++++++++ |
107 |
+ clamonacc/openrc/clamonacc.in.in | 18 ++++++++++ |
108 |
+ configure.ac | 16 ++++++++- |
109 |
+ etc/Makefile.am | 22 +++++++++++- |
110 |
+ ...sample => clamav-milter.conf.sample.in.in} | 5 +-- |
111 |
+ ...md.conf.sample => clamd.conf.sample.in.in} | 4 +-- |
112 |
+ ...onf.sample => freshclam.conf.sample.in.in} | 2 +- |
113 |
+ freshclam/Makefile.am | 20 +++++++++++ |
114 |
+ freshclam/openrc/freshclam.in.in | 8 +++++ |
115 |
+ m4/reorganization/libs/openrc.m4 | 8 +++++ |
116 |
+ 15 files changed, 233 insertions(+), 7 deletions(-) |
117 |
+ create mode 100644 clamav-milter/openrc/clamav-milter.in.in |
118 |
+ create mode 100644 clamd/openrc/clamd.in.in |
119 |
+ create mode 100644 clamonacc/openrc/clamonacc.in.in |
120 |
+ rename etc/{clamav-milter.conf.sample => clamav-milter.conf.sample.in.in} (98%) |
121 |
+ rename etc/{clamd.conf.sample => clamd.conf.sample.in.in} (99%) |
122 |
+ rename etc/{freshclam.conf.sample => freshclam.conf.sample.in.in} (99%) |
123 |
+ create mode 100644 freshclam/openrc/freshclam.in.in |
124 |
+ create mode 100644 m4/reorganization/libs/openrc.m4 |
125 |
+ |
126 |
diff --git a/Makefile.am b/Makefile.am |
127 |
-index 12e7fcc28..a3c47e23a 100644 |
128 |
+index 42a58e7..c4d82ad 100644 |
129 |
--- a/Makefile.am |
130 |
+++ b/Makefile.am |
131 |
@@ -52,6 +52,17 @@ nodist_include_HEADERS = clamav-types.h clamav-version.h |
132 |
@@ -21,7 +53,7 @@ index 12e7fcc28..a3c47e23a 100644 |
133 |
($(MAKE); cd unit_tests; $(MAKE) lcov) |
134 |
quick-check: |
135 |
diff --git a/clamav-milter/Makefile.am b/clamav-milter/Makefile.am |
136 |
-index 1ec4afff6..c75c2b4a3 100644 |
137 |
+index 38d9b94..46885a7 100644 |
138 |
--- a/clamav-milter/Makefile.am |
139 |
+++ b/clamav-milter/Makefile.am |
140 |
@@ -35,6 +35,27 @@ clamav_milter_SOURCES = \ |
141 |
@@ -54,7 +86,7 @@ index 1ec4afff6..c75c2b4a3 100644 |
142 |
LIBS = $(top_builddir)/libclamav/libclamav.la $(top_builddir)/shared/libshared.la @CLAMAV_MILTER_LIBS@ @THREAD_LIBS@ |
143 |
diff --git a/clamav-milter/openrc/clamav-milter.in.in b/clamav-milter/openrc/clamav-milter.in.in |
144 |
new file mode 100644 |
145 |
-index 000000000..71053564a |
146 |
+index 0000000..7105356 |
147 |
--- /dev/null |
148 |
+++ b/clamav-milter/openrc/clamav-milter.in.in |
149 |
@@ -0,0 +1,34 @@ |
150 |
@@ -93,7 +125,7 @@ index 000000000..71053564a |
151 |
+ "@RUNSTATEDIR@/clamav" |
152 |
+} |
153 |
diff --git a/clamd/Makefile.am b/clamd/Makefile.am |
154 |
-index 12b872b1f..725bc2fc1 100644 |
155 |
+index c161586..b59d94c 100644 |
156 |
--- a/clamd/Makefile.am |
157 |
+++ b/clamd/Makefile.am |
158 |
@@ -44,6 +44,25 @@ if INSTALL_SYSTEMD_UNITS |
159 |
@@ -124,7 +156,7 @@ index 12b872b1f..725bc2fc1 100644 |
160 |
|
161 |
diff --git a/clamd/openrc/clamd.in.in b/clamd/openrc/clamd.in.in |
162 |
new file mode 100644 |
163 |
-index 000000000..5d38f9a84 |
164 |
+index 0000000..5d38f9a |
165 |
--- /dev/null |
166 |
+++ b/clamd/openrc/clamd.in.in |
167 |
@@ -0,0 +1,33 @@ |
168 |
@@ -162,10 +194,10 @@ index 000000000..5d38f9a84 |
169 |
+ eend $? |
170 |
+} |
171 |
diff --git a/clamonacc/Makefile.am b/clamonacc/Makefile.am |
172 |
-index 181e22056..864a7fc2a 100644 |
173 |
+index 4cb4886..39c2e5d 100644 |
174 |
--- a/clamonacc/Makefile.am |
175 |
+++ b/clamonacc/Makefile.am |
176 |
-@@ -56,6 +56,25 @@ if INSTALL_SYSTEMD_UNITS |
177 |
+@@ -58,6 +58,25 @@ if INSTALL_SYSTEMD_UNITS |
178 |
systemdsystemunit_DATA = clamav-clamonacc.service |
179 |
endif |
180 |
|
181 |
@@ -193,7 +225,7 @@ index 181e22056..864a7fc2a 100644 |
182 |
|
183 |
diff --git a/clamonacc/openrc/clamonacc.in.in b/clamonacc/openrc/clamonacc.in.in |
184 |
new file mode 100644 |
185 |
-index 000000000..844cd49dd |
186 |
+index 0000000..844cd49 |
187 |
--- /dev/null |
188 |
+++ b/clamonacc/openrc/clamonacc.in.in |
189 |
@@ -0,0 +1,18 @@ |
190 |
@@ -216,7 +248,7 @@ index 000000000..844cd49dd |
191 |
+ need clamd |
192 |
+} |
193 |
diff --git a/configure.ac b/configure.ac |
194 |
-index 7b2a777d4..8e0e810f8 100644 |
195 |
+index 33e252e..c8cd60f 100644 |
196 |
--- a/configure.ac |
197 |
+++ b/configure.ac |
198 |
@@ -79,6 +79,12 @@ if test "$enable_experimental" = "yes"; then |
199 |
@@ -232,7 +264,7 @@ index 7b2a777d4..8e0e810f8 100644 |
200 |
build_configure_args=`echo "$ac_configure_args" | sed -e 's/[\"]//g'` |
201 |
AC_SUBST([BUILD_CONFIGURE_FLAGS], [$build_configure_args]) |
202 |
|
203 |
-@@ -104,6 +110,7 @@ m4_include([m4/reorganization/libs/libz.m4]) |
204 |
+@@ -105,6 +111,7 @@ m4_include([m4/reorganization/libs/libz.m4]) |
205 |
m4_include([m4/reorganization/libs/bzip.m4]) |
206 |
m4_include([m4/reorganization/libs/unrar.m4]) |
207 |
m4_include([m4/reorganization/libs/systemd.m4]) |
208 |
@@ -240,7 +272,7 @@ index 7b2a777d4..8e0e810f8 100644 |
209 |
m4_include([m4/reorganization/code_checks/ipv6.m4]) |
210 |
m4_include([m4/reorganization/code_checks/dns.m4]) |
211 |
m4_include([m4/reorganization/code_checks/fanotify.m4]) |
212 |
-@@ -192,7 +199,10 @@ AC_CONFIG_FILES([ |
213 |
+@@ -193,7 +200,10 @@ AC_CONFIG_FILES([ |
214 |
libclamav.pc |
215 |
platform.h |
216 |
clamav-types.h |
217 |
@@ -250,9 +282,9 @@ index 7b2a777d4..8e0e810f8 100644 |
218 |
+ etc/clamav-milter.conf.sample.in |
219 |
+ etc/freshclam.conf.sample.in]) |
220 |
if test "x$enable_libclamav_only" != "xyes"; then |
221 |
- AC_CONFIG_FILES([ |
222 |
- clamscan/Makefile |
223 |
-@@ -202,10 +212,14 @@ if test "x$enable_libclamav_only" != "xyes"; then |
224 |
+ if test "$have_curl" = "no"; then |
225 |
+ AC_MSG_ERROR([libcurl not found. libcurl (e.g. libcurl-devel) is required in order to build freshclam and clamsubmit.]) |
226 |
+@@ -207,10 +217,14 @@ if test "x$enable_libclamav_only" != "xyes"; then |
227 |
clamd/Makefile |
228 |
clamd/clamav-daemon.service |
229 |
clamd/clamav-daemon.socket |
230 |
@@ -268,7 +300,7 @@ index 7b2a777d4..8e0e810f8 100644 |
231 |
sigtool/Makefile |
232 |
clamconf/Makefile |
233 |
diff --git a/etc/Makefile.am b/etc/Makefile.am |
234 |
-index 487c31429..bee68f1d0 100644 |
235 |
+index c694856..213a978 100644 |
236 |
--- a/etc/Makefile.am |
237 |
+++ b/etc/Makefile.am |
238 |
@@ -18,11 +18,31 @@ |
239 |
@@ -303,12 +335,12 @@ index 487c31429..bee68f1d0 100644 |
240 |
+ rm -f $@ $@.tmp |
241 |
+ $(editgnudirs) $@.in > $@.tmp |
242 |
+ mv $@.tmp $@ |
243 |
-+>>>>>>> ea2f2442b... etc: convert conf files to templates and make @VARIABLE@ substitutions. |
244 |
++ |
245 |
diff --git a/etc/clamav-milter.conf.sample b/etc/clamav-milter.conf.sample.in.in |
246 |
similarity index 98% |
247 |
rename from etc/clamav-milter.conf.sample |
248 |
rename to etc/clamav-milter.conf.sample.in.in |
249 |
-index bf46b4fc5..c3c5d2000 100644 |
250 |
+index bf46b4f..c3c5d20 100644 |
251 |
--- a/etc/clamav-milter.conf.sample |
252 |
+++ b/etc/clamav-milter.conf.sample.in.in |
253 |
@@ -17,7 +17,7 @@ Example |
254 |
@@ -341,7 +373,7 @@ diff --git a/etc/clamd.conf.sample b/etc/clamd.conf.sample.in.in |
255 |
similarity index 99% |
256 |
rename from etc/clamd.conf.sample |
257 |
rename to etc/clamd.conf.sample.in.in |
258 |
-index 828dd5ad9..0e0ea4b12 100644 |
259 |
+index a1ca9ec..82ef42c 100644 |
260 |
--- a/etc/clamd.conf.sample |
261 |
+++ b/etc/clamd.conf.sample.in.in |
262 |
@@ -74,7 +74,7 @@ Example |
263 |
@@ -366,7 +398,7 @@ diff --git a/etc/freshclam.conf.sample b/etc/freshclam.conf.sample.in.in |
264 |
similarity index 99% |
265 |
rename from etc/freshclam.conf.sample |
266 |
rename to etc/freshclam.conf.sample.in.in |
267 |
-index 2f7d14618..3af3a3485 100644 |
268 |
+index 8f4dd49..5a5c42b 100644 |
269 |
--- a/etc/freshclam.conf.sample |
270 |
+++ b/etc/freshclam.conf.sample.in.in |
271 |
@@ -51,7 +51,7 @@ Example |
272 |
@@ -379,7 +411,7 @@ index 2f7d14618..3af3a3485 100644 |
273 |
# By default when started freshclam drops privileges and switches to the |
274 |
# "clamav" user. This directive allows you to change the database owner. |
275 |
diff --git a/freshclam/Makefile.am b/freshclam/Makefile.am |
276 |
-index ab6ac8f1c..6b16b3d3e 100644 |
277 |
+index 9e48119..46ef224 100644 |
278 |
--- a/freshclam/Makefile.am |
279 |
+++ b/freshclam/Makefile.am |
280 |
@@ -32,6 +32,26 @@ if INSTALL_SYSTEMD_UNITS |
281 |
@@ -411,7 +443,7 @@ index ab6ac8f1c..6b16b3d3e 100644 |
282 |
AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/shared -I$(top_srcdir)/libclamav -I$(top_builddir)/libclamav -I$(top_srcdir)/libclamunrar_iface -I$(top_srcdir)/libfreshclam @CURL_CPPFLAGS@ @SSL_CPPFLAGS@ @FRESHCLAM_CPPFLAGS@ @ZLIB_CFLAGS@ @JSON_CPPFLAGS@ @PCRE_CPPFLAGS@ |
283 |
diff --git a/freshclam/openrc/freshclam.in.in b/freshclam/openrc/freshclam.in.in |
284 |
new file mode 100644 |
285 |
-index 000000000..9feb73747 |
286 |
+index 0000000..9feb737 |
287 |
--- /dev/null |
288 |
+++ b/freshclam/openrc/freshclam.in.in |
289 |
@@ -0,0 +1,8 @@ |
290 |
@@ -425,7 +457,7 @@ index 000000000..9feb73747 |
291 |
+command_args_background="--daemon" |
292 |
diff --git a/m4/reorganization/libs/openrc.m4 b/m4/reorganization/libs/openrc.m4 |
293 |
new file mode 100644 |
294 |
-index 000000000..1a73d1589 |
295 |
+index 0000000..1a73d15 |
296 |
--- /dev/null |
297 |
+++ b/m4/reorganization/libs/openrc.m4 |
298 |
@@ -0,0 +1,8 @@ |
299 |
@@ -437,3 +469,6 @@ index 000000000..1a73d1589 |
300 |
+ [enable_openrc=no]) |
301 |
+AM_CONDITIONAL(INSTALL_OPENRC_SERVICES, |
302 |
+ [test "x$enable_openrc" = "xyes"]) |
303 |
+-- |
304 |
+2.26.2 |
305 |
+ |