1 |
commit: 3d86e6ca95c57aed9de733faf596a377ed428398 |
2 |
Author: Aaron Bauman <bman <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Apr 8 15:28:11 2019 +0000 |
4 |
Commit: Aaron Bauman <bman <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Apr 8 15:33:20 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d86e6ca |
7 |
|
8 |
app-antivirus/clamav: drop vulnerable wrt bug #681840 |
9 |
|
10 |
Signed-off-by: Aaron Bauman <bman <AT> gentoo.org> |
11 |
|
12 |
app-antivirus/clamav/Manifest | 3 - |
13 |
app-antivirus/clamav/clamav-0.100.1-r1.ebuild | 167 ------------------------ |
14 |
app-antivirus/clamav/clamav-0.100.2.ebuild | 175 -------------------------- |
15 |
app-antivirus/clamav/clamav-0.101.0.ebuild | 175 -------------------------- |
16 |
app-antivirus/clamav/clamav-0.101.1.ebuild | 175 -------------------------- |
17 |
5 files changed, 695 deletions(-) |
18 |
|
19 |
diff --git a/app-antivirus/clamav/Manifest b/app-antivirus/clamav/Manifest |
20 |
index f4cc2f425fb..f5e1e680758 100644 |
21 |
--- a/app-antivirus/clamav/Manifest |
22 |
+++ b/app-antivirus/clamav/Manifest |
23 |
@@ -1,5 +1,2 @@ |
24 |
DIST clamav-0.100.1.tar.gz 16154415 BLAKE2B df4ddde28b0b263765f4a571a407390b30aa6fe58d07e1b8fe427e70141219fb3d7c5addfbf30a350c6c08324dee1ec3dd80319306df7578ed87138c6513b99d SHA512 13a4e050e030ac3d1cc07b12bdd56c455e266e0b205a4c9bc9f18e53f6d8913a66eed2296abf857f395227ab0ed5c7bc90bc357bcb314dc9e18a9c6177dcc5b2 |
25 |
-DIST clamav-0.100.2.tar.gz 15926420 BLAKE2B 0a64a08b6cdad94f55852041df06b5517bcfa3bacb5871c694bf51692c4698ffd39f09c92fe2af167fcf2b27806a7175a9b649e6d6d5ffc65755509e3574d374 SHA512 70b51eafb11dc727188e7d4554b8095a9e0406e76b78778fede94f8a4c78146034478197217039384eb1fd15532e822cfa6b51707e431e9397ec21d5e393a60c |
26 |
-DIST clamav-0.101.0.tar.gz 21686531 BLAKE2B ea3ae1e5b31d6b10600eac8f0ea93c9460f0e337de7a3f43345c26e0efb0b3f664d1f640b723795eac6491f959492202a249222b561917072811df86314ea9d8 SHA512 faf6186b51b332eca67684bfe72f473a910577093964338278656ab67c61d28f66f7f501f4db5e1bb37112d66ad4433d792c50af70aceefd5bcbc5dab7ac7aa0 |
27 |
-DIST clamav-0.101.1.tar.gz 21691396 BLAKE2B e9a63ba90bef5504aac1020293f26cf957323677ed229543f0e7784b80e11837683e72432890f3109b040a2ba08029383892a6f40f64050d3caa3fe94c0571aa SHA512 eb72fe21a9485d2906aec7f9a3dc955bbe4bb0fa812d622bc9c6c5c019eb2238a7370cb5dc1ba3886764269a925f7dcbe93255c77920bb489af4f3f81680d4c8 |
28 |
DIST clamav-0.101.2.tar.gz 21722932 BLAKE2B 5c2960e678510a6f829fc9333e05a45a57a704e13eb407e0f890dd5553a1f9644eb3b1122c677755237b8c682127319d447a508087bc9130d14cd2cfec92896a SHA512 f9ea4589a8081acf7b6d454d1a068da05ae6574a9070a08f9438935795cb6dc084ffb9222b11fb1623f31962f859e6536a2f5bd1de29ef6b9b314efa5edc8c7e |
29 |
|
30 |
diff --git a/app-antivirus/clamav/clamav-0.100.1-r1.ebuild b/app-antivirus/clamav/clamav-0.100.1-r1.ebuild |
31 |
deleted file mode 100644 |
32 |
index 89955613a3e..00000000000 |
33 |
--- a/app-antivirus/clamav/clamav-0.100.1-r1.ebuild |
34 |
+++ /dev/null |
35 |
@@ -1,167 +0,0 @@ |
36 |
-# Copyright 1999-2019 Gentoo Authors |
37 |
-# Distributed under the terms of the GNU General Public License v2 |
38 |
- |
39 |
-EAPI=6 |
40 |
- |
41 |
-inherit autotools eutils flag-o-matic user systemd |
42 |
- |
43 |
-DESCRIPTION="Clam Anti-Virus Scanner" |
44 |
-HOMEPAGE="https://www.clamav.net/" |
45 |
-SRC_URI="https://www.clamav.net/downloads/production/${P}.tar.gz" |
46 |
- |
47 |
-LICENSE="GPL-2" |
48 |
-SLOT="0" |
49 |
-KEYWORDS="amd64 ~arm hppa ia64 ppc ppc64 ~sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris" |
50 |
-IUSE="bzip2 doc clamdtop iconv ipv6 libressl milter metadata-analysis-api selinux static-libs system-libmspack test uclibc" |
51 |
- |
52 |
-CDEPEND="bzip2? ( app-arch/bzip2 ) |
53 |
- clamdtop? ( sys-libs/ncurses:0 ) |
54 |
- iconv? ( virtual/libiconv ) |
55 |
- metadata-analysis-api? ( dev-libs/json-c:= ) |
56 |
- milter? ( || ( mail-filter/libmilter mail-mta/sendmail ) ) |
57 |
- >=sys-libs/zlib-1.2.2:= |
58 |
- !libressl? ( dev-libs/openssl:0= ) |
59 |
- libressl? ( dev-libs/libressl:0= ) |
60 |
- sys-devel/libtool |
61 |
- || ( dev-libs/libpcre2 >dev-libs/libpcre-6 ) |
62 |
- system-libmspack? ( dev-libs/libmspack ) |
63 |
- elibc_musl? ( sys-libs/fts-standalone ) |
64 |
- !!<app-antivirus/clamav-0.99" |
65 |
-# hard block clamav < 0.99 due to linking problems Bug #567680 |
66 |
-# openssl is now *required* see this link as to why |
67 |
-# https://blog.clamav.net/2014/02/introducing-openssl-as-dependency-to.html |
68 |
-DEPEND="${CDEPEND} |
69 |
- virtual/pkgconfig |
70 |
- test? ( dev-libs/check )" |
71 |
-RDEPEND="${CDEPEND} |
72 |
- selinux? ( sec-policy/selinux-clamav )" |
73 |
- |
74 |
-DOCS=( docs/clamdoc.pdf docs/phishsigs_howto.pdf docs/signatures.pdf ) |
75 |
-HTML_DOCS=( docs/html ) |
76 |
- |
77 |
-PATCHES=( |
78 |
- "${FILESDIR}/clamav-0.100.0_autotools.patch" |
79 |
-) |
80 |
- |
81 |
-pkg_setup() { |
82 |
- enewgroup clamav |
83 |
- enewuser clamav -1 -1 /dev/null clamav |
84 |
-} |
85 |
- |
86 |
-src_prepare() { |
87 |
- default |
88 |
- |
89 |
- eautoconf |
90 |
-} |
91 |
- |
92 |
-src_configure() { |
93 |
- use elibc_musl && append-ldflags -lfts |
94 |
- use ppc64 && append-flags -mminimal-toc |
95 |
- use uclibc && export ac_cv_type_error_t=yes |
96 |
- |
97 |
- econf \ |
98 |
- $(use_enable bzip2) \ |
99 |
- $(use_enable clamdtop) \ |
100 |
- $(use_enable ipv6) \ |
101 |
- $(use_enable milter) \ |
102 |
- $(use_enable static-libs static) \ |
103 |
- $(use_enable test check) \ |
104 |
- $(use_with iconv) \ |
105 |
- $(use_with metadata-analysis-api libjson /usr) \ |
106 |
- $(use_with system-libmspack) \ |
107 |
- --cache-file="${S}"/config.cache \ |
108 |
- --disable-experimental \ |
109 |
- --disable-gcc-vcheck \ |
110 |
- --disable-zlib-vcheck \ |
111 |
- --enable-id-check \ |
112 |
- --with-dbdir="${EPREFIX}"/var/lib/clamav \ |
113 |
- --with-zlib="${EPREFIX}"/usr \ |
114 |
- --disable-llvm |
115 |
-} |
116 |
- |
117 |
-src_install() { |
118 |
- default |
119 |
- |
120 |
- rm -rf "${ED}"/var/lib/clamav |
121 |
- newinitd "${FILESDIR}"/clamd.initd-r6 clamd |
122 |
- newconfd "${FILESDIR}"/clamd.conf-r1 clamd |
123 |
- |
124 |
- systemd_dotmpfilesd "${FILESDIR}/tmpfiles.d/clamav.conf" |
125 |
- systemd_newunit "${FILESDIR}/clamd_at.service" "clamd@.service" |
126 |
- systemd_dounit "${FILESDIR}/clamd.service" |
127 |
- systemd_dounit "${FILESDIR}/freshclamd.service" |
128 |
- |
129 |
- keepdir /var/lib/clamav |
130 |
- fowners clamav:clamav /var/lib/clamav |
131 |
- keepdir /var/log/clamav |
132 |
- fowners clamav:clamav /var/log/clamav |
133 |
- |
134 |
- dodir /etc/logrotate.d |
135 |
- insinto /etc/logrotate.d |
136 |
- newins "${FILESDIR}"/clamav.logrotate clamav |
137 |
- |
138 |
- # Modify /etc/{clamd,freshclam}.conf to be usable out of the box |
139 |
- sed -i -e "s:^\(Example\):\# \1:" \ |
140 |
- -e "s:.*\(PidFile\) .*:\1 ${EPREFIX}/var/run/clamav/clamd.pid:" \ |
141 |
- -e "s:.*\(LocalSocket\) .*:\1 ${EPREFIX}/var/run/clamav/clamd.sock:" \ |
142 |
- -e "s:.*\(User\) .*:\1 clamav:" \ |
143 |
- -e "s:^\#\(LogFile\) .*:\1 ${EPREFIX}/var/log/clamav/clamd.log:" \ |
144 |
- -e "s:^\#\(LogTime\).*:\1 yes:" \ |
145 |
- -e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \ |
146 |
- "${ED}"/etc/clamd.conf.sample || die |
147 |
- sed -i -e "s:^\(Example\):\# \1:" \ |
148 |
- -e "s:.*\(PidFile\) .*:\1 ${EPREFIX}/var/run/clamav/freshclam.pid:" \ |
149 |
- -e "s:.*\(DatabaseOwner\) .*:\1 clamav:" \ |
150 |
- -e "s:^\#\(UpdateLogFile\) .*:\1 ${EPREFIX}/var/log/clamav/freshclam.log:" \ |
151 |
- -e "s:^\#\(NotifyClamd\).*:\1 ${EPREFIX}/etc/clamd.conf:" \ |
152 |
- -e "s:^\#\(ScriptedUpdates\).*:\1 yes:" \ |
153 |
- -e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \ |
154 |
- "${ED}"/etc/freshclam.conf.sample || die |
155 |
- |
156 |
- if use milter ; then |
157 |
- # MilterSocket one to include ' /' because there is a 2nd line for |
158 |
- # inet: which we want to leave |
159 |
- ##dodoc "${FILESDIR}"/clamav-milter.README.gentoo |
160 |
- sed -i -e "s:^\(Example\):\# \1:" \ |
161 |
- -e "s:.*\(PidFile\) .*:\1 ${EPREFIX}/var/run/clamav/clamav-milter.pid:" \ |
162 |
- -e "s+^\#\(ClamdSocket\) .*+\1 unix:${EPREFIX}/var/run/clamav/clamd.sock+" \ |
163 |
- -e "s:.*\(User\) .*:\1 clamav:" \ |
164 |
- -e "s+^\#\(MilterSocket\) /.*+\1 unix:${EPREFIX}/var/run/clamav/clamav-milter.sock+" \ |
165 |
- -e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \ |
166 |
- -e "s:^\#\(LogFile\) .*:\1 ${EPREFIX}/var/log/clamav/clamav-milter.log:" \ |
167 |
- "${ED}"/etc/clamav-milter.conf.sample || die |
168 |
- cat >> "${ED}"/etc/conf.d/clamd <<-EOF |
169 |
- MILTER_NICELEVEL=19 |
170 |
- START_MILTER=no |
171 |
- EOF |
172 |
- |
173 |
- systemd_newunit "${FILESDIR}/clamav-milter.service-r1" clamav-milter.service |
174 |
- fi |
175 |
- |
176 |
- if use doc; then |
177 |
- einstalldocs |
178 |
- doman docs/man/*.[1-8] |
179 |
- fi |
180 |
- |
181 |
- for i in clamd freshclam clamav-milter |
182 |
- do |
183 |
- [[ -f "${D}"/etc/"${i}".conf.sample ]] && mv "${D}"/etc/"${i}".conf{.sample,} |
184 |
- done |
185 |
- |
186 |
- prune_libtool_files --all |
187 |
-} |
188 |
- |
189 |
-src_test() { |
190 |
- emake quick-check |
191 |
-} |
192 |
- |
193 |
-pkg_postinst() { |
194 |
- if use milter ; then |
195 |
- elog "For simple instructions how to setup the clamav-milter read the" |
196 |
- elog "clamav-milter.README.gentoo in /usr/share/doc/${PF}" |
197 |
- fi |
198 |
- if test -z $(find "${ROOT}"var/lib/clamav -maxdepth 1 -name 'main.c*' -print -quit) ; then |
199 |
- ewarn "You must run freshclam manually to populate the virus database files" |
200 |
- ewarn "before starting clamav for the first time.\n" |
201 |
- fi |
202 |
-} |
203 |
|
204 |
diff --git a/app-antivirus/clamav/clamav-0.100.2.ebuild b/app-antivirus/clamav/clamav-0.100.2.ebuild |
205 |
deleted file mode 100644 |
206 |
index fd98bc0029f..00000000000 |
207 |
--- a/app-antivirus/clamav/clamav-0.100.2.ebuild |
208 |
+++ /dev/null |
209 |
@@ -1,175 +0,0 @@ |
210 |
-# Copyright 1999-2018 Gentoo Authors |
211 |
-# Distributed under the terms of the GNU General Public License v2 |
212 |
- |
213 |
-EAPI=6 |
214 |
- |
215 |
-inherit autotools eutils flag-o-matic user systemd |
216 |
- |
217 |
-DESCRIPTION="Clam Anti-Virus Scanner" |
218 |
-HOMEPAGE="https://www.clamav.net/" |
219 |
-SRC_URI="https://www.clamav.net/downloads/production/${P}.tar.gz" |
220 |
- |
221 |
-LICENSE="GPL-2" |
222 |
-SLOT="0" |
223 |
-KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris" |
224 |
-IUSE="bzip2 doc clamdtop iconv ipv6 libressl milter metadata-analysis-api selinux static-libs test uclibc xml" |
225 |
- |
226 |
-CDEPEND="bzip2? ( app-arch/bzip2 ) |
227 |
- clamdtop? ( sys-libs/ncurses:0 ) |
228 |
- iconv? ( virtual/libiconv ) |
229 |
- metadata-analysis-api? ( dev-libs/json-c:= ) |
230 |
- milter? ( || ( mail-filter/libmilter mail-mta/sendmail ) ) |
231 |
- >=sys-libs/zlib-1.2.2:= |
232 |
- !libressl? ( dev-libs/openssl:0= ) |
233 |
- libressl? ( dev-libs/libressl:0= ) |
234 |
- sys-devel/libtool |
235 |
- || ( dev-libs/libpcre2 >dev-libs/libpcre-6 ) |
236 |
- dev-libs/libmspack |
237 |
- xml? ( dev-libs/libxml2 ) |
238 |
- elibc_musl? ( sys-libs/fts-standalone ) |
239 |
- !!<app-antivirus/clamav-0.99" |
240 |
-# hard block clamav < 0.99 due to linking problems Bug #567680 |
241 |
-# openssl is now *required* see this link as to why |
242 |
-# https://blog.clamav.net/2014/02/introducing-openssl-as-dependency-to.html |
243 |
-DEPEND="${CDEPEND} |
244 |
- virtual/pkgconfig |
245 |
- test? ( dev-libs/check )" |
246 |
-RDEPEND="${CDEPEND} |
247 |
- selinux? ( sec-policy/selinux-clamav )" |
248 |
- |
249 |
-DOCS=( docs/clamdoc.pdf docs/phishsigs_howto.pdf docs/signatures.pdf ) |
250 |
-HTML_DOCS=( docs/html ) |
251 |
- |
252 |
-PATCHES=( |
253 |
- "${FILESDIR}/clamav-0.100.0_autotools.patch" |
254 |
-) |
255 |
- |
256 |
-pkg_setup() { |
257 |
- enewgroup clamav |
258 |
- enewuser clamav -1 -1 /dev/null clamav |
259 |
-} |
260 |
- |
261 |
-src_prepare() { |
262 |
- default |
263 |
- |
264 |
- eautoconf |
265 |
-} |
266 |
- |
267 |
-src_configure() { |
268 |
- use elibc_musl && append-ldflags -lfts |
269 |
- use ppc64 && append-flags -mminimal-toc |
270 |
- use uclibc && export ac_cv_type_error_t=yes |
271 |
- |
272 |
- # according to configure help it should be |
273 |
- # $(use_enable xml) |
274 |
- # but that does not work |
275 |
- # do not add this, since --disable-xml seems to override |
276 |
- # --without-xml |
277 |
- |
278 |
- econf \ |
279 |
- $(use_enable bzip2) \ |
280 |
- $(use_enable clamdtop) \ |
281 |
- $(use_enable ipv6) \ |
282 |
- $(use_enable milter) \ |
283 |
- $(use_enable static-libs static) \ |
284 |
- $(use_enable test check) \ |
285 |
- $(use_with xml) \ |
286 |
- $(use_with iconv) \ |
287 |
- $(use_with metadata-analysis-api libjson /usr) \ |
288 |
- --with-system-libmspack \ |
289 |
- --cache-file="${S}"/config.cache \ |
290 |
- --disable-experimental \ |
291 |
- --disable-gcc-vcheck \ |
292 |
- --disable-zlib-vcheck \ |
293 |
- --enable-id-check \ |
294 |
- --with-dbdir="${EPREFIX}"/var/lib/clamav \ |
295 |
- --with-zlib="${EPREFIX}"/usr \ |
296 |
- --disable-llvm |
297 |
-} |
298 |
- |
299 |
-src_install() { |
300 |
- default |
301 |
- |
302 |
- rm -rf "${ED}"/var/lib/clamav |
303 |
- newinitd "${FILESDIR}"/clamd.initd-r6 clamd |
304 |
- newconfd "${FILESDIR}"/clamd.conf-r1 clamd |
305 |
- |
306 |
- systemd_dotmpfilesd "${FILESDIR}/tmpfiles.d/clamav.conf" |
307 |
- systemd_newunit "${FILESDIR}/clamd_at.service" "clamd@.service" |
308 |
- systemd_dounit "${FILESDIR}/clamd.service" |
309 |
- systemd_dounit "${FILESDIR}/freshclamd.service" |
310 |
- |
311 |
- keepdir /var/lib/clamav |
312 |
- fowners clamav:clamav /var/lib/clamav |
313 |
- keepdir /var/log/clamav |
314 |
- fowners clamav:clamav /var/log/clamav |
315 |
- |
316 |
- dodir /etc/logrotate.d |
317 |
- insinto /etc/logrotate.d |
318 |
- newins "${FILESDIR}"/clamav.logrotate clamav |
319 |
- |
320 |
- # Modify /etc/{clamd,freshclam}.conf to be usable out of the box |
321 |
- sed -i -e "s:^\(Example\):\# \1:" \ |
322 |
- -e "s:.*\(PidFile\) .*:\1 ${EPREFIX}/var/run/clamav/clamd.pid:" \ |
323 |
- -e "s:.*\(LocalSocket\) .*:\1 ${EPREFIX}/var/run/clamav/clamd.sock:" \ |
324 |
- -e "s:.*\(User\) .*:\1 clamav:" \ |
325 |
- -e "s:^\#\(LogFile\) .*:\1 ${EPREFIX}/var/log/clamav/clamd.log:" \ |
326 |
- -e "s:^\#\(LogTime\).*:\1 yes:" \ |
327 |
- -e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \ |
328 |
- "${ED}"/etc/clamd.conf.sample || die |
329 |
- sed -i -e "s:^\(Example\):\# \1:" \ |
330 |
- -e "s:.*\(PidFile\) .*:\1 ${EPREFIX}/var/run/clamav/freshclam.pid:" \ |
331 |
- -e "s:.*\(DatabaseOwner\) .*:\1 clamav:" \ |
332 |
- -e "s:^\#\(UpdateLogFile\) .*:\1 ${EPREFIX}/var/log/clamav/freshclam.log:" \ |
333 |
- -e "s:^\#\(NotifyClamd\).*:\1 ${EPREFIX}/etc/clamd.conf:" \ |
334 |
- -e "s:^\#\(ScriptedUpdates\).*:\1 yes:" \ |
335 |
- -e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \ |
336 |
- "${ED}"/etc/freshclam.conf.sample || die |
337 |
- |
338 |
- if use milter ; then |
339 |
- # MilterSocket one to include ' /' because there is a 2nd line for |
340 |
- # inet: which we want to leave |
341 |
- ##dodoc "${FILESDIR}"/clamav-milter.README.gentoo |
342 |
- sed -i -e "s:^\(Example\):\# \1:" \ |
343 |
- -e "s:.*\(PidFile\) .*:\1 ${EPREFIX}/var/run/clamav/clamav-milter.pid:" \ |
344 |
- -e "s+^\#\(ClamdSocket\) .*+\1 unix:${EPREFIX}/var/run/clamav/clamd.sock+" \ |
345 |
- -e "s:.*\(User\) .*:\1 clamav:" \ |
346 |
- -e "s+^\#\(MilterSocket\) /.*+\1 unix:${EPREFIX}/var/run/clamav/clamav-milter.sock+" \ |
347 |
- -e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \ |
348 |
- -e "s:^\#\(LogFile\) .*:\1 ${EPREFIX}/var/log/clamav/clamav-milter.log:" \ |
349 |
- "${ED}"/etc/clamav-milter.conf.sample || die |
350 |
- cat >> "${ED}"/etc/conf.d/clamd <<-EOF |
351 |
- MILTER_NICELEVEL=19 |
352 |
- START_MILTER=no |
353 |
- EOF |
354 |
- |
355 |
- systemd_newunit "${FILESDIR}/clamav-milter.service-r1" clamav-milter.service |
356 |
- fi |
357 |
- |
358 |
- if use doc; then |
359 |
- einstalldocs |
360 |
- doman docs/man/*.[1-8] |
361 |
- fi |
362 |
- |
363 |
- for i in clamd freshclam clamav-milter |
364 |
- do |
365 |
- [[ -f "${D}"/etc/"${i}".conf.sample ]] && mv "${D}"/etc/"${i}".conf{.sample,} |
366 |
- done |
367 |
- |
368 |
- prune_libtool_files --all |
369 |
-} |
370 |
- |
371 |
-src_test() { |
372 |
- emake quick-check |
373 |
-} |
374 |
- |
375 |
-pkg_postinst() { |
376 |
- if use milter ; then |
377 |
- elog "For simple instructions how to setup the clamav-milter read the" |
378 |
- elog "clamav-milter.README.gentoo in /usr/share/doc/${PF}" |
379 |
- fi |
380 |
- if test -z $(find "${ROOT}"var/lib/clamav -maxdepth 1 -name 'main.c*' -print -quit) ; then |
381 |
- ewarn "You must run freshclam manually to populate the virus database files" |
382 |
- ewarn "before starting clamav for the first time.\n" |
383 |
- fi |
384 |
-} |
385 |
|
386 |
diff --git a/app-antivirus/clamav/clamav-0.101.0.ebuild b/app-antivirus/clamav/clamav-0.101.0.ebuild |
387 |
deleted file mode 100644 |
388 |
index ac309327872..00000000000 |
389 |
--- a/app-antivirus/clamav/clamav-0.101.0.ebuild |
390 |
+++ /dev/null |
391 |
@@ -1,175 +0,0 @@ |
392 |
-# Copyright 1999-2019 Gentoo Authors |
393 |
-# Distributed under the terms of the GNU General Public License v2 |
394 |
- |
395 |
-EAPI=6 |
396 |
- |
397 |
-inherit autotools eutils flag-o-matic user systemd |
398 |
- |
399 |
-DESCRIPTION="Clam Anti-Virus Scanner" |
400 |
-HOMEPAGE="https://www.clamav.net/" |
401 |
-SRC_URI="https://www.clamav.net/downloads/production/${P}.tar.gz" |
402 |
- |
403 |
-LICENSE="GPL-2" |
404 |
-SLOT="0" |
405 |
-KEYWORDS="amd64 arm hppa ia64 ppc ppc64 ~sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris" |
406 |
-IUSE="bzip2 doc clamdtop iconv ipv6 libressl milter metadata-analysis-api selinux static-libs test uclibc xml" |
407 |
- |
408 |
-CDEPEND="bzip2? ( app-arch/bzip2 ) |
409 |
- clamdtop? ( sys-libs/ncurses:0 ) |
410 |
- iconv? ( virtual/libiconv ) |
411 |
- metadata-analysis-api? ( dev-libs/json-c:= ) |
412 |
- milter? ( || ( mail-filter/libmilter mail-mta/sendmail ) ) |
413 |
- >=sys-libs/zlib-1.2.2:= |
414 |
- !libressl? ( dev-libs/openssl:0= ) |
415 |
- libressl? ( dev-libs/libressl:0= ) |
416 |
- sys-devel/libtool |
417 |
- || ( dev-libs/libpcre2 >dev-libs/libpcre-6 ) |
418 |
- dev-libs/libmspack |
419 |
- xml? ( dev-libs/libxml2 ) |
420 |
- elibc_musl? ( sys-libs/fts-standalone ) |
421 |
- !!<app-antivirus/clamav-0.99" |
422 |
-# hard block clamav < 0.99 due to linking problems Bug #567680 |
423 |
-# openssl is now *required* see this link as to why |
424 |
-# https://blog.clamav.net/2014/02/introducing-openssl-as-dependency-to.html |
425 |
-DEPEND="${CDEPEND} |
426 |
- virtual/pkgconfig |
427 |
- test? ( dev-libs/check )" |
428 |
-RDEPEND="${CDEPEND} |
429 |
- selinux? ( sec-policy/selinux-clamav )" |
430 |
- |
431 |
-DOCS=( docs/UserManual.md docs/UserManual ) |
432 |
-HTML_DOCS=( docs/html ) |
433 |
- |
434 |
-#PATCHES=( |
435 |
-# "${FILESDIR}/clamav-0.100.0_autotools.patch" |
436 |
-#) |
437 |
- |
438 |
-pkg_setup() { |
439 |
- enewgroup clamav |
440 |
- enewuser clamav -1 -1 /dev/null clamav |
441 |
-} |
442 |
- |
443 |
-#src_prepare() { |
444 |
-# default |
445 |
-# |
446 |
-# eautoconf |
447 |
-#} |
448 |
- |
449 |
-src_configure() { |
450 |
- use elibc_musl && append-ldflags -lfts |
451 |
- use ppc64 && append-flags -mminimal-toc |
452 |
- use uclibc && export ac_cv_type_error_t=yes |
453 |
- |
454 |
- # according to configure help it should be |
455 |
- # $(use_enable xml) |
456 |
- # but that does not work |
457 |
- # do not add this, since --disable-xml seems to override |
458 |
- # --without-xml |
459 |
- |
460 |
- econf \ |
461 |
- $(use_enable bzip2) \ |
462 |
- $(use_enable clamdtop) \ |
463 |
- $(use_enable ipv6) \ |
464 |
- $(use_enable milter) \ |
465 |
- $(use_enable static-libs static) \ |
466 |
- $(use_enable test check) \ |
467 |
- $(use_with xml) \ |
468 |
- $(use_with iconv) \ |
469 |
- $(use_with metadata-analysis-api libjson /usr) \ |
470 |
- --with-system-libmspack \ |
471 |
- --cache-file="${S}"/config.cache \ |
472 |
- --disable-experimental \ |
473 |
- --disable-gcc-vcheck \ |
474 |
- --disable-zlib-vcheck \ |
475 |
- --enable-id-check \ |
476 |
- --with-dbdir="${EPREFIX}"/var/lib/clamav \ |
477 |
- --with-zlib="${EPREFIX}"/usr \ |
478 |
- --disable-llvm |
479 |
-} |
480 |
- |
481 |
-src_install() { |
482 |
- default |
483 |
- |
484 |
- rm -rf "${ED}"/var/lib/clamav |
485 |
- newinitd "${FILESDIR}"/clamd.initd-r6 clamd |
486 |
- newconfd "${FILESDIR}"/clamd.conf-r1 clamd |
487 |
- |
488 |
- systemd_dotmpfilesd "${FILESDIR}/tmpfiles.d/clamav.conf" |
489 |
- systemd_newunit "${FILESDIR}/clamd_at.service" "clamd@.service" |
490 |
- systemd_dounit "${FILESDIR}/clamd.service" |
491 |
- systemd_dounit "${FILESDIR}/freshclamd.service" |
492 |
- |
493 |
- keepdir /var/lib/clamav |
494 |
- fowners clamav:clamav /var/lib/clamav |
495 |
- keepdir /var/log/clamav |
496 |
- fowners clamav:clamav /var/log/clamav |
497 |
- |
498 |
- dodir /etc/logrotate.d |
499 |
- insinto /etc/logrotate.d |
500 |
- newins "${FILESDIR}"/clamav.logrotate clamav |
501 |
- |
502 |
- # Modify /etc/{clamd,freshclam}.conf to be usable out of the box |
503 |
- sed -i -e "s:^\(Example\):\# \1:" \ |
504 |
- -e "s:.*\(PidFile\) .*:\1 ${EPREFIX}/var/run/clamav/clamd.pid:" \ |
505 |
- -e "s:.*\(LocalSocket\) .*:\1 ${EPREFIX}/var/run/clamav/clamd.sock:" \ |
506 |
- -e "s:.*\(User\) .*:\1 clamav:" \ |
507 |
- -e "s:^\#\(LogFile\) .*:\1 ${EPREFIX}/var/log/clamav/clamd.log:" \ |
508 |
- -e "s:^\#\(LogTime\).*:\1 yes:" \ |
509 |
- -e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \ |
510 |
- "${ED}"/etc/clamd.conf.sample || die |
511 |
- sed -i -e "s:^\(Example\):\# \1:" \ |
512 |
- -e "s:.*\(PidFile\) .*:\1 ${EPREFIX}/var/run/clamav/freshclam.pid:" \ |
513 |
- -e "s:.*\(DatabaseOwner\) .*:\1 clamav:" \ |
514 |
- -e "s:^\#\(UpdateLogFile\) .*:\1 ${EPREFIX}/var/log/clamav/freshclam.log:" \ |
515 |
- -e "s:^\#\(NotifyClamd\).*:\1 ${EPREFIX}/etc/clamd.conf:" \ |
516 |
- -e "s:^\#\(ScriptedUpdates\).*:\1 yes:" \ |
517 |
- -e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \ |
518 |
- "${ED}"/etc/freshclam.conf.sample || die |
519 |
- |
520 |
- if use milter ; then |
521 |
- # MilterSocket one to include ' /' because there is a 2nd line for |
522 |
- # inet: which we want to leave |
523 |
- ##dodoc "${FILESDIR}"/clamav-milter.README.gentoo |
524 |
- sed -i -e "s:^\(Example\):\# \1:" \ |
525 |
- -e "s:.*\(PidFile\) .*:\1 ${EPREFIX}/var/run/clamav/clamav-milter.pid:" \ |
526 |
- -e "s+^\#\(ClamdSocket\) .*+\1 unix:${EPREFIX}/var/run/clamav/clamd.sock+" \ |
527 |
- -e "s:.*\(User\) .*:\1 clamav:" \ |
528 |
- -e "s+^\#\(MilterSocket\) /.*+\1 unix:${EPREFIX}/var/run/clamav/clamav-milter.sock+" \ |
529 |
- -e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \ |
530 |
- -e "s:^\#\(LogFile\) .*:\1 ${EPREFIX}/var/log/clamav/clamav-milter.log:" \ |
531 |
- "${ED}"/etc/clamav-milter.conf.sample || die |
532 |
- cat >> "${ED}"/etc/conf.d/clamd <<-EOF |
533 |
- MILTER_NICELEVEL=19 |
534 |
- START_MILTER=no |
535 |
- EOF |
536 |
- |
537 |
- systemd_newunit "${FILESDIR}/clamav-milter.service-r1" clamav-milter.service |
538 |
- fi |
539 |
- |
540 |
- if use doc; then |
541 |
- einstalldocs |
542 |
- doman docs/man/*.[1-8] |
543 |
- fi |
544 |
- |
545 |
- for i in clamd freshclam clamav-milter |
546 |
- do |
547 |
- [[ -f "${D}"/etc/"${i}".conf.sample ]] && mv "${D}"/etc/"${i}".conf{.sample,} |
548 |
- done |
549 |
- |
550 |
- prune_libtool_files --all |
551 |
-} |
552 |
- |
553 |
-src_test() { |
554 |
- emake quick-check |
555 |
-} |
556 |
- |
557 |
-pkg_postinst() { |
558 |
- if use milter ; then |
559 |
- elog "For simple instructions how to setup the clamav-milter read the" |
560 |
- elog "clamav-milter.README.gentoo in /usr/share/doc/${PF}" |
561 |
- fi |
562 |
- if test -z $(find "${ROOT}"var/lib/clamav -maxdepth 1 -name 'main.c*' -print -quit) ; then |
563 |
- ewarn "You must run freshclam manually to populate the virus database files" |
564 |
- ewarn "before starting clamav for the first time.\n" |
565 |
- fi |
566 |
-} |
567 |
|
568 |
diff --git a/app-antivirus/clamav/clamav-0.101.1.ebuild b/app-antivirus/clamav/clamav-0.101.1.ebuild |
569 |
deleted file mode 100644 |
570 |
index 63e3af208b0..00000000000 |
571 |
--- a/app-antivirus/clamav/clamav-0.101.1.ebuild |
572 |
+++ /dev/null |
573 |
@@ -1,175 +0,0 @@ |
574 |
-# Copyright 1999-2019 Gentoo Authors |
575 |
-# Distributed under the terms of the GNU General Public License v2 |
576 |
- |
577 |
-EAPI=6 |
578 |
- |
579 |
-inherit autotools eutils flag-o-matic user systemd |
580 |
- |
581 |
-DESCRIPTION="Clam Anti-Virus Scanner" |
582 |
-HOMEPAGE="https://www.clamav.net/" |
583 |
-SRC_URI="https://www.clamav.net/downloads/production/${P}.tar.gz" |
584 |
- |
585 |
-LICENSE="GPL-2" |
586 |
-SLOT="0" |
587 |
-KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris" |
588 |
-IUSE="bzip2 doc clamdtop iconv ipv6 libressl milter metadata-analysis-api selinux static-libs test uclibc xml" |
589 |
- |
590 |
-CDEPEND="bzip2? ( app-arch/bzip2 ) |
591 |
- clamdtop? ( sys-libs/ncurses:0 ) |
592 |
- iconv? ( virtual/libiconv ) |
593 |
- metadata-analysis-api? ( dev-libs/json-c:= ) |
594 |
- milter? ( || ( mail-filter/libmilter mail-mta/sendmail ) ) |
595 |
- >=sys-libs/zlib-1.2.2:= |
596 |
- !libressl? ( dev-libs/openssl:0= ) |
597 |
- libressl? ( dev-libs/libressl:0= ) |
598 |
- sys-devel/libtool |
599 |
- || ( dev-libs/libpcre2 >dev-libs/libpcre-6 ) |
600 |
- dev-libs/libmspack |
601 |
- xml? ( dev-libs/libxml2 ) |
602 |
- elibc_musl? ( sys-libs/fts-standalone ) |
603 |
- !!<app-antivirus/clamav-0.99" |
604 |
-# hard block clamav < 0.99 due to linking problems Bug #567680 |
605 |
-# openssl is now *required* see this link as to why |
606 |
-# https://blog.clamav.net/2014/02/introducing-openssl-as-dependency-to.html |
607 |
-DEPEND="${CDEPEND} |
608 |
- virtual/pkgconfig |
609 |
- test? ( dev-libs/check )" |
610 |
-RDEPEND="${CDEPEND} |
611 |
- selinux? ( sec-policy/selinux-clamav )" |
612 |
- |
613 |
-DOCS=( docs/UserManual.md docs/UserManual ) |
614 |
-HTML_DOCS=( docs/html ) |
615 |
- |
616 |
-#PATCHES=( |
617 |
-# "${FILESDIR}/clamav-0.100.0_autotools.patch" |
618 |
-#) |
619 |
- |
620 |
-pkg_setup() { |
621 |
- enewgroup clamav |
622 |
- enewuser clamav -1 -1 /dev/null clamav |
623 |
-} |
624 |
- |
625 |
-#src_prepare() { |
626 |
-# default |
627 |
-# |
628 |
-# eautoconf |
629 |
-#} |
630 |
- |
631 |
-src_configure() { |
632 |
- use elibc_musl && append-ldflags -lfts |
633 |
- use ppc64 && append-flags -mminimal-toc |
634 |
- use uclibc && export ac_cv_type_error_t=yes |
635 |
- |
636 |
- # according to configure help it should be |
637 |
- # $(use_enable xml) |
638 |
- # but that does not work |
639 |
- # do not add this, since --disable-xml seems to override |
640 |
- # --without-xml |
641 |
- |
642 |
- econf \ |
643 |
- $(use_enable bzip2) \ |
644 |
- $(use_enable clamdtop) \ |
645 |
- $(use_enable ipv6) \ |
646 |
- $(use_enable milter) \ |
647 |
- $(use_enable static-libs static) \ |
648 |
- $(use_enable test check) \ |
649 |
- $(use_with xml) \ |
650 |
- $(use_with iconv) \ |
651 |
- $(use_with metadata-analysis-api libjson /usr) \ |
652 |
- --with-system-libmspack \ |
653 |
- --cache-file="${S}"/config.cache \ |
654 |
- --disable-experimental \ |
655 |
- --disable-gcc-vcheck \ |
656 |
- --disable-zlib-vcheck \ |
657 |
- --enable-id-check \ |
658 |
- --with-dbdir="${EPREFIX}"/var/lib/clamav \ |
659 |
- --with-zlib="${EPREFIX}"/usr \ |
660 |
- --disable-llvm |
661 |
-} |
662 |
- |
663 |
-src_install() { |
664 |
- default |
665 |
- |
666 |
- rm -rf "${ED}"/var/lib/clamav |
667 |
- newinitd "${FILESDIR}"/clamd.initd-r6 clamd |
668 |
- newconfd "${FILESDIR}"/clamd.conf-r1 clamd |
669 |
- |
670 |
- systemd_dotmpfilesd "${FILESDIR}/tmpfiles.d/clamav.conf" |
671 |
- systemd_newunit "${FILESDIR}/clamd_at.service" "clamd@.service" |
672 |
- systemd_dounit "${FILESDIR}/clamd.service" |
673 |
- systemd_dounit "${FILESDIR}/freshclamd.service" |
674 |
- |
675 |
- keepdir /var/lib/clamav |
676 |
- fowners clamav:clamav /var/lib/clamav |
677 |
- keepdir /var/log/clamav |
678 |
- fowners clamav:clamav /var/log/clamav |
679 |
- |
680 |
- dodir /etc/logrotate.d |
681 |
- insinto /etc/logrotate.d |
682 |
- newins "${FILESDIR}"/clamav.logrotate clamav |
683 |
- |
684 |
- # Modify /etc/{clamd,freshclam}.conf to be usable out of the box |
685 |
- sed -i -e "s:^\(Example\):\# \1:" \ |
686 |
- -e "s:.*\(PidFile\) .*:\1 ${EPREFIX}/var/run/clamav/clamd.pid:" \ |
687 |
- -e "s:.*\(LocalSocket\) .*:\1 ${EPREFIX}/var/run/clamav/clamd.sock:" \ |
688 |
- -e "s:.*\(User\) .*:\1 clamav:" \ |
689 |
- -e "s:^\#\(LogFile\) .*:\1 ${EPREFIX}/var/log/clamav/clamd.log:" \ |
690 |
- -e "s:^\#\(LogTime\).*:\1 yes:" \ |
691 |
- -e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \ |
692 |
- "${ED}"/etc/clamd.conf.sample || die |
693 |
- sed -i -e "s:^\(Example\):\# \1:" \ |
694 |
- -e "s:.*\(PidFile\) .*:\1 ${EPREFIX}/var/run/clamav/freshclam.pid:" \ |
695 |
- -e "s:.*\(DatabaseOwner\) .*:\1 clamav:" \ |
696 |
- -e "s:^\#\(UpdateLogFile\) .*:\1 ${EPREFIX}/var/log/clamav/freshclam.log:" \ |
697 |
- -e "s:^\#\(NotifyClamd\).*:\1 ${EPREFIX}/etc/clamd.conf:" \ |
698 |
- -e "s:^\#\(ScriptedUpdates\).*:\1 yes:" \ |
699 |
- -e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \ |
700 |
- "${ED}"/etc/freshclam.conf.sample || die |
701 |
- |
702 |
- if use milter ; then |
703 |
- # MilterSocket one to include ' /' because there is a 2nd line for |
704 |
- # inet: which we want to leave |
705 |
- ##dodoc "${FILESDIR}"/clamav-milter.README.gentoo |
706 |
- sed -i -e "s:^\(Example\):\# \1:" \ |
707 |
- -e "s:.*\(PidFile\) .*:\1 ${EPREFIX}/var/run/clamav/clamav-milter.pid:" \ |
708 |
- -e "s+^\#\(ClamdSocket\) .*+\1 unix:${EPREFIX}/var/run/clamav/clamd.sock+" \ |
709 |
- -e "s:.*\(User\) .*:\1 clamav:" \ |
710 |
- -e "s+^\#\(MilterSocket\) /.*+\1 unix:${EPREFIX}/var/run/clamav/clamav-milter.sock+" \ |
711 |
- -e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \ |
712 |
- -e "s:^\#\(LogFile\) .*:\1 ${EPREFIX}/var/log/clamav/clamav-milter.log:" \ |
713 |
- "${ED}"/etc/clamav-milter.conf.sample || die |
714 |
- cat >> "${ED}"/etc/conf.d/clamd <<-EOF |
715 |
- MILTER_NICELEVEL=19 |
716 |
- START_MILTER=no |
717 |
- EOF |
718 |
- |
719 |
- systemd_newunit "${FILESDIR}/clamav-milter.service-r1" clamav-milter.service |
720 |
- fi |
721 |
- |
722 |
- if use doc; then |
723 |
- einstalldocs |
724 |
- doman docs/man/*.[1-8] |
725 |
- fi |
726 |
- |
727 |
- for i in clamd freshclam clamav-milter |
728 |
- do |
729 |
- [[ -f "${D}"/etc/"${i}".conf.sample ]] && mv "${D}"/etc/"${i}".conf{.sample,} |
730 |
- done |
731 |
- |
732 |
- prune_libtool_files --all |
733 |
-} |
734 |
- |
735 |
-src_test() { |
736 |
- emake quick-check |
737 |
-} |
738 |
- |
739 |
-pkg_postinst() { |
740 |
- if use milter ; then |
741 |
- elog "For simple instructions how to setup the clamav-milter read the" |
742 |
- elog "clamav-milter.README.gentoo in /usr/share/doc/${PF}" |
743 |
- fi |
744 |
- if test -z $(find "${ROOT}"var/lib/clamav -maxdepth 1 -name 'main.c*' -print -quit) ; then |
745 |
- ewarn "You must run freshclam manually to populate the virus database files" |
746 |
- ewarn "before starting clamav for the first time.\n" |
747 |
- fi |
748 |
-} |