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