1 |
commit: cdbf0ffd1fe1e284c60b184d68f9747acfd46467 |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Dec 29 15:47:23 2018 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Dec 29 15:47:23 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=cdbf0ffd |
7 |
|
8 |
app-antivirus/clamav: moved to tree |
9 |
|
10 |
Signed-off-by: Anthony G. Basile <blueness <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 |
.../clamav/files/clamav-0.100.0_autotools.patch | 10 -- |
17 |
.../clamav/files/clamav-milter.README.gentoo | 85 ---------- |
18 |
app-antivirus/clamav/files/clamav-milter.service | 12 -- |
19 |
.../clamav/files/clamav-milter.service-r1 | 13 -- |
20 |
app-antivirus/clamav/files/clamav.logrotate | 17 -- |
21 |
app-antivirus/clamav/files/clamd.conf | 9 -- |
22 |
app-antivirus/clamav/files/clamd.conf-r1 | 7 - |
23 |
app-antivirus/clamav/files/clamd.initd-r6 | 128 --------------- |
24 |
app-antivirus/clamav/files/clamd.service | 12 -- |
25 |
app-antivirus/clamav/files/clamd_at.service | 12 -- |
26 |
app-antivirus/clamav/files/freshclamd.service | 13 -- |
27 |
app-antivirus/clamav/files/tmpfiles.d/clamav.conf | 1 - |
28 |
app-antivirus/clamav/metadata.xml | 21 --- |
29 |
app-crypt/chntpw/chntpw-140201.ebuild | 9 +- |
30 |
18 files changed, 6 insertions(+), 863 deletions(-) |
31 |
|
32 |
diff --git a/app-antivirus/clamav/Manifest b/app-antivirus/clamav/Manifest |
33 |
deleted file mode 100644 |
34 |
index 3b0a197..0000000 |
35 |
--- a/app-antivirus/clamav/Manifest |
36 |
+++ /dev/null |
37 |
@@ -1,3 +0,0 @@ |
38 |
-DIST clamav-0.100.1.tar.gz 16154415 BLAKE2B df4ddde28b0b263765f4a571a407390b30aa6fe58d07e1b8fe427e70141219fb3d7c5addfbf30a350c6c08324dee1ec3dd80319306df7578ed87138c6513b99d SHA512 13a4e050e030ac3d1cc07b12bdd56c455e266e0b205a4c9bc9f18e53f6d8913a66eed2296abf857f395227ab0ed5c7bc90bc357bcb314dc9e18a9c6177dcc5b2 |
39 |
-DIST clamav-0.100.2.tar.gz 15926420 BLAKE2B 0a64a08b6cdad94f55852041df06b5517bcfa3bacb5871c694bf51692c4698ffd39f09c92fe2af167fcf2b27806a7175a9b649e6d6d5ffc65755509e3574d374 SHA512 70b51eafb11dc727188e7d4554b8095a9e0406e76b78778fede94f8a4c78146034478197217039384eb1fd15532e822cfa6b51707e431e9397ec21d5e393a60c |
40 |
-DIST clamav-0.101.0.tar.gz 21686531 BLAKE2B ea3ae1e5b31d6b10600eac8f0ea93c9460f0e337de7a3f43345c26e0efb0b3f664d1f640b723795eac6491f959492202a249222b561917072811df86314ea9d8 SHA512 faf6186b51b332eca67684bfe72f473a910577093964338278656ab67c61d28f66f7f501f4db5e1bb37112d66ad4433d792c50af70aceefd5bcbc5dab7ac7aa0 |
41 |
|
42 |
diff --git a/app-antivirus/clamav/clamav-0.100.1-r1.ebuild b/app-antivirus/clamav/clamav-0.100.1-r1.ebuild |
43 |
deleted file mode 100644 |
44 |
index 5073d37..0000000 |
45 |
--- a/app-antivirus/clamav/clamav-0.100.1-r1.ebuild |
46 |
+++ /dev/null |
47 |
@@ -1,167 +0,0 @@ |
48 |
-# Copyright 1999-2018 Gentoo Authors |
49 |
-# Distributed under the terms of the GNU General Public License v2 |
50 |
- |
51 |
-EAPI=6 |
52 |
- |
53 |
-inherit autotools eutils flag-o-matic user systemd |
54 |
- |
55 |
-DESCRIPTION="Clam Anti-Virus Scanner" |
56 |
-HOMEPAGE="https://www.clamav.net/" |
57 |
-SRC_URI="https://www.clamav.net/downloads/production/${P}.tar.gz" |
58 |
- |
59 |
-LICENSE="GPL-2" |
60 |
-SLOT="0" |
61 |
-KEYWORDS="amd64 arm ppc x86" |
62 |
-IUSE="bzip2 doc clamdtop iconv ipv6 libressl milter metadata-analysis-api selinux static-libs system-libmspack test uclibc" |
63 |
- |
64 |
-CDEPEND="bzip2? ( app-arch/bzip2 ) |
65 |
- clamdtop? ( sys-libs/ncurses:0 ) |
66 |
- iconv? ( virtual/libiconv ) |
67 |
- metadata-analysis-api? ( dev-libs/json-c:= ) |
68 |
- milter? ( || ( mail-filter/libmilter mail-mta/sendmail ) ) |
69 |
- >=sys-libs/zlib-1.2.2:= |
70 |
- !libressl? ( dev-libs/openssl:0= ) |
71 |
- libressl? ( dev-libs/libressl:0= ) |
72 |
- sys-devel/libtool |
73 |
- || ( dev-libs/libpcre2 >dev-libs/libpcre-6 ) |
74 |
- system-libmspack? ( dev-libs/libmspack ) |
75 |
- elibc_musl? ( sys-libs/fts-standalone ) |
76 |
- !!<app-antivirus/clamav-0.99" |
77 |
-# hard block clamav < 0.99 due to linking problems Bug #567680 |
78 |
-# openssl is now *required* see this link as to why |
79 |
-# https://blog.clamav.net/2014/02/introducing-openssl-as-dependency-to.html |
80 |
-DEPEND="${CDEPEND} |
81 |
- virtual/pkgconfig |
82 |
- test? ( dev-libs/check )" |
83 |
-RDEPEND="${CDEPEND} |
84 |
- selinux? ( sec-policy/selinux-clamav )" |
85 |
- |
86 |
-DOCS=( docs/clamdoc.pdf docs/phishsigs_howto.pdf docs/signatures.pdf ) |
87 |
-HTML_DOCS=( docs/html ) |
88 |
- |
89 |
-PATCHES=( |
90 |
- "${FILESDIR}/clamav-0.100.0_autotools.patch" |
91 |
-) |
92 |
- |
93 |
-pkg_setup() { |
94 |
- enewgroup clamav |
95 |
- enewuser clamav -1 -1 /dev/null clamav |
96 |
-} |
97 |
- |
98 |
-src_prepare() { |
99 |
- default |
100 |
- |
101 |
- eautoconf |
102 |
-} |
103 |
- |
104 |
-src_configure() { |
105 |
- use elibc_musl && append-ldflags -lfts |
106 |
- use ppc64 && append-flags -mminimal-toc |
107 |
- use uclibc && export ac_cv_type_error_t=yes |
108 |
- |
109 |
- econf \ |
110 |
- $(use_enable bzip2) \ |
111 |
- $(use_enable clamdtop) \ |
112 |
- $(use_enable ipv6) \ |
113 |
- $(use_enable milter) \ |
114 |
- $(use_enable static-libs static) \ |
115 |
- $(use_enable test check) \ |
116 |
- $(use_with iconv) \ |
117 |
- $(use_with metadata-analysis-api libjson /usr) \ |
118 |
- $(use_with system-libmspack) \ |
119 |
- --cache-file="${S}"/config.cache \ |
120 |
- --disable-experimental \ |
121 |
- --disable-gcc-vcheck \ |
122 |
- --disable-zlib-vcheck \ |
123 |
- --enable-id-check \ |
124 |
- --with-dbdir="${EPREFIX}"/var/lib/clamav \ |
125 |
- --with-zlib="${EPREFIX}"/usr \ |
126 |
- --disable-llvm |
127 |
-} |
128 |
- |
129 |
-src_install() { |
130 |
- default |
131 |
- |
132 |
- rm -rf "${ED}"/var/lib/clamav |
133 |
- newinitd "${FILESDIR}"/clamd.initd-r6 clamd |
134 |
- newconfd "${FILESDIR}"/clamd.conf-r1 clamd |
135 |
- |
136 |
- systemd_dotmpfilesd "${FILESDIR}/tmpfiles.d/clamav.conf" |
137 |
- systemd_newunit "${FILESDIR}/clamd_at.service" "clamd@.service" |
138 |
- systemd_dounit "${FILESDIR}/clamd.service" |
139 |
- systemd_dounit "${FILESDIR}/freshclamd.service" |
140 |
- |
141 |
- keepdir /var/lib/clamav |
142 |
- fowners clamav:clamav /var/lib/clamav |
143 |
- keepdir /var/log/clamav |
144 |
- fowners clamav:clamav /var/log/clamav |
145 |
- |
146 |
- dodir /etc/logrotate.d |
147 |
- insinto /etc/logrotate.d |
148 |
- newins "${FILESDIR}"/clamav.logrotate clamav |
149 |
- |
150 |
- # Modify /etc/{clamd,freshclam}.conf to be usable out of the box |
151 |
- sed -i -e "s:^\(Example\):\# \1:" \ |
152 |
- -e "s:.*\(PidFile\) .*:\1 ${EPREFIX}/var/run/clamav/clamd.pid:" \ |
153 |
- -e "s:.*\(LocalSocket\) .*:\1 ${EPREFIX}/var/run/clamav/clamd.sock:" \ |
154 |
- -e "s:.*\(User\) .*:\1 clamav:" \ |
155 |
- -e "s:^\#\(LogFile\) .*:\1 ${EPREFIX}/var/log/clamav/clamd.log:" \ |
156 |
- -e "s:^\#\(LogTime\).*:\1 yes:" \ |
157 |
- -e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \ |
158 |
- "${ED}"/etc/clamd.conf.sample || die |
159 |
- sed -i -e "s:^\(Example\):\# \1:" \ |
160 |
- -e "s:.*\(PidFile\) .*:\1 ${EPREFIX}/var/run/clamav/freshclam.pid:" \ |
161 |
- -e "s:.*\(DatabaseOwner\) .*:\1 clamav:" \ |
162 |
- -e "s:^\#\(UpdateLogFile\) .*:\1 ${EPREFIX}/var/log/clamav/freshclam.log:" \ |
163 |
- -e "s:^\#\(NotifyClamd\).*:\1 ${EPREFIX}/etc/clamd.conf:" \ |
164 |
- -e "s:^\#\(ScriptedUpdates\).*:\1 yes:" \ |
165 |
- -e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \ |
166 |
- "${ED}"/etc/freshclam.conf.sample || die |
167 |
- |
168 |
- if use milter ; then |
169 |
- # MilterSocket one to include ' /' because there is a 2nd line for |
170 |
- # inet: which we want to leave |
171 |
- ##dodoc "${FILESDIR}"/clamav-milter.README.gentoo |
172 |
- sed -i -e "s:^\(Example\):\# \1:" \ |
173 |
- -e "s:.*\(PidFile\) .*:\1 ${EPREFIX}/var/run/clamav/clamav-milter.pid:" \ |
174 |
- -e "s+^\#\(ClamdSocket\) .*+\1 unix:${EPREFIX}/var/run/clamav/clamd.sock+" \ |
175 |
- -e "s:.*\(User\) .*:\1 clamav:" \ |
176 |
- -e "s+^\#\(MilterSocket\) /.*+\1 unix:${EPREFIX}/var/run/clamav/clamav-milter.sock+" \ |
177 |
- -e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \ |
178 |
- -e "s:^\#\(LogFile\) .*:\1 ${EPREFIX}/var/log/clamav/clamav-milter.log:" \ |
179 |
- "${ED}"/etc/clamav-milter.conf.sample || die |
180 |
- cat >> "${ED}"/etc/conf.d/clamd <<-EOF |
181 |
- MILTER_NICELEVEL=19 |
182 |
- START_MILTER=no |
183 |
- EOF |
184 |
- |
185 |
- systemd_newunit "${FILESDIR}/clamav-milter.service-r1" clamav-milter.service |
186 |
- fi |
187 |
- |
188 |
- if use doc; then |
189 |
- einstalldocs |
190 |
- doman docs/man/*.[1-8] |
191 |
- fi |
192 |
- |
193 |
- for i in clamd freshclam clamav-milter |
194 |
- do |
195 |
- [[ -f "${D}"/etc/"${i}".conf.sample ]] && mv "${D}"/etc/"${i}".conf{.sample,} |
196 |
- done |
197 |
- |
198 |
- prune_libtool_files --all |
199 |
-} |
200 |
- |
201 |
-src_test() { |
202 |
- emake quick-check |
203 |
-} |
204 |
- |
205 |
-pkg_postinst() { |
206 |
- if use milter ; then |
207 |
- elog "For simple instructions how to setup the clamav-milter read the" |
208 |
- elog "clamav-milter.README.gentoo in /usr/share/doc/${PF}" |
209 |
- fi |
210 |
- if test -z $(find "${ROOT}"var/lib/clamav -maxdepth 1 -name 'main.c*' -print -quit) ; then |
211 |
- ewarn "You must run freshclam manually to populate the virus database files" |
212 |
- ewarn "before starting clamav for the first time.\n" |
213 |
- fi |
214 |
-} |
215 |
|
216 |
diff --git a/app-antivirus/clamav/clamav-0.100.2.ebuild b/app-antivirus/clamav/clamav-0.100.2.ebuild |
217 |
deleted file mode 100644 |
218 |
index fd98bc0..0000000 |
219 |
--- a/app-antivirus/clamav/clamav-0.100.2.ebuild |
220 |
+++ /dev/null |
221 |
@@ -1,175 +0,0 @@ |
222 |
-# Copyright 1999-2018 Gentoo Authors |
223 |
-# Distributed under the terms of the GNU General Public License v2 |
224 |
- |
225 |
-EAPI=6 |
226 |
- |
227 |
-inherit autotools eutils flag-o-matic user systemd |
228 |
- |
229 |
-DESCRIPTION="Clam Anti-Virus Scanner" |
230 |
-HOMEPAGE="https://www.clamav.net/" |
231 |
-SRC_URI="https://www.clamav.net/downloads/production/${P}.tar.gz" |
232 |
- |
233 |
-LICENSE="GPL-2" |
234 |
-SLOT="0" |
235 |
-KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris" |
236 |
-IUSE="bzip2 doc clamdtop iconv ipv6 libressl milter metadata-analysis-api selinux static-libs test uclibc xml" |
237 |
- |
238 |
-CDEPEND="bzip2? ( app-arch/bzip2 ) |
239 |
- clamdtop? ( sys-libs/ncurses:0 ) |
240 |
- iconv? ( virtual/libiconv ) |
241 |
- metadata-analysis-api? ( dev-libs/json-c:= ) |
242 |
- milter? ( || ( mail-filter/libmilter mail-mta/sendmail ) ) |
243 |
- >=sys-libs/zlib-1.2.2:= |
244 |
- !libressl? ( dev-libs/openssl:0= ) |
245 |
- libressl? ( dev-libs/libressl:0= ) |
246 |
- sys-devel/libtool |
247 |
- || ( dev-libs/libpcre2 >dev-libs/libpcre-6 ) |
248 |
- dev-libs/libmspack |
249 |
- xml? ( dev-libs/libxml2 ) |
250 |
- elibc_musl? ( sys-libs/fts-standalone ) |
251 |
- !!<app-antivirus/clamav-0.99" |
252 |
-# hard block clamav < 0.99 due to linking problems Bug #567680 |
253 |
-# openssl is now *required* see this link as to why |
254 |
-# https://blog.clamav.net/2014/02/introducing-openssl-as-dependency-to.html |
255 |
-DEPEND="${CDEPEND} |
256 |
- virtual/pkgconfig |
257 |
- test? ( dev-libs/check )" |
258 |
-RDEPEND="${CDEPEND} |
259 |
- selinux? ( sec-policy/selinux-clamav )" |
260 |
- |
261 |
-DOCS=( docs/clamdoc.pdf docs/phishsigs_howto.pdf docs/signatures.pdf ) |
262 |
-HTML_DOCS=( docs/html ) |
263 |
- |
264 |
-PATCHES=( |
265 |
- "${FILESDIR}/clamav-0.100.0_autotools.patch" |
266 |
-) |
267 |
- |
268 |
-pkg_setup() { |
269 |
- enewgroup clamav |
270 |
- enewuser clamav -1 -1 /dev/null clamav |
271 |
-} |
272 |
- |
273 |
-src_prepare() { |
274 |
- default |
275 |
- |
276 |
- eautoconf |
277 |
-} |
278 |
- |
279 |
-src_configure() { |
280 |
- use elibc_musl && append-ldflags -lfts |
281 |
- use ppc64 && append-flags -mminimal-toc |
282 |
- use uclibc && export ac_cv_type_error_t=yes |
283 |
- |
284 |
- # according to configure help it should be |
285 |
- # $(use_enable xml) |
286 |
- # but that does not work |
287 |
- # do not add this, since --disable-xml seems to override |
288 |
- # --without-xml |
289 |
- |
290 |
- econf \ |
291 |
- $(use_enable bzip2) \ |
292 |
- $(use_enable clamdtop) \ |
293 |
- $(use_enable ipv6) \ |
294 |
- $(use_enable milter) \ |
295 |
- $(use_enable static-libs static) \ |
296 |
- $(use_enable test check) \ |
297 |
- $(use_with xml) \ |
298 |
- $(use_with iconv) \ |
299 |
- $(use_with metadata-analysis-api libjson /usr) \ |
300 |
- --with-system-libmspack \ |
301 |
- --cache-file="${S}"/config.cache \ |
302 |
- --disable-experimental \ |
303 |
- --disable-gcc-vcheck \ |
304 |
- --disable-zlib-vcheck \ |
305 |
- --enable-id-check \ |
306 |
- --with-dbdir="${EPREFIX}"/var/lib/clamav \ |
307 |
- --with-zlib="${EPREFIX}"/usr \ |
308 |
- --disable-llvm |
309 |
-} |
310 |
- |
311 |
-src_install() { |
312 |
- default |
313 |
- |
314 |
- rm -rf "${ED}"/var/lib/clamav |
315 |
- newinitd "${FILESDIR}"/clamd.initd-r6 clamd |
316 |
- newconfd "${FILESDIR}"/clamd.conf-r1 clamd |
317 |
- |
318 |
- systemd_dotmpfilesd "${FILESDIR}/tmpfiles.d/clamav.conf" |
319 |
- systemd_newunit "${FILESDIR}/clamd_at.service" "clamd@.service" |
320 |
- systemd_dounit "${FILESDIR}/clamd.service" |
321 |
- systemd_dounit "${FILESDIR}/freshclamd.service" |
322 |
- |
323 |
- keepdir /var/lib/clamav |
324 |
- fowners clamav:clamav /var/lib/clamav |
325 |
- keepdir /var/log/clamav |
326 |
- fowners clamav:clamav /var/log/clamav |
327 |
- |
328 |
- dodir /etc/logrotate.d |
329 |
- insinto /etc/logrotate.d |
330 |
- newins "${FILESDIR}"/clamav.logrotate clamav |
331 |
- |
332 |
- # Modify /etc/{clamd,freshclam}.conf to be usable out of the box |
333 |
- sed -i -e "s:^\(Example\):\# \1:" \ |
334 |
- -e "s:.*\(PidFile\) .*:\1 ${EPREFIX}/var/run/clamav/clamd.pid:" \ |
335 |
- -e "s:.*\(LocalSocket\) .*:\1 ${EPREFIX}/var/run/clamav/clamd.sock:" \ |
336 |
- -e "s:.*\(User\) .*:\1 clamav:" \ |
337 |
- -e "s:^\#\(LogFile\) .*:\1 ${EPREFIX}/var/log/clamav/clamd.log:" \ |
338 |
- -e "s:^\#\(LogTime\).*:\1 yes:" \ |
339 |
- -e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \ |
340 |
- "${ED}"/etc/clamd.conf.sample || die |
341 |
- sed -i -e "s:^\(Example\):\# \1:" \ |
342 |
- -e "s:.*\(PidFile\) .*:\1 ${EPREFIX}/var/run/clamav/freshclam.pid:" \ |
343 |
- -e "s:.*\(DatabaseOwner\) .*:\1 clamav:" \ |
344 |
- -e "s:^\#\(UpdateLogFile\) .*:\1 ${EPREFIX}/var/log/clamav/freshclam.log:" \ |
345 |
- -e "s:^\#\(NotifyClamd\).*:\1 ${EPREFIX}/etc/clamd.conf:" \ |
346 |
- -e "s:^\#\(ScriptedUpdates\).*:\1 yes:" \ |
347 |
- -e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \ |
348 |
- "${ED}"/etc/freshclam.conf.sample || die |
349 |
- |
350 |
- if use milter ; then |
351 |
- # MilterSocket one to include ' /' because there is a 2nd line for |
352 |
- # inet: which we want to leave |
353 |
- ##dodoc "${FILESDIR}"/clamav-milter.README.gentoo |
354 |
- sed -i -e "s:^\(Example\):\# \1:" \ |
355 |
- -e "s:.*\(PidFile\) .*:\1 ${EPREFIX}/var/run/clamav/clamav-milter.pid:" \ |
356 |
- -e "s+^\#\(ClamdSocket\) .*+\1 unix:${EPREFIX}/var/run/clamav/clamd.sock+" \ |
357 |
- -e "s:.*\(User\) .*:\1 clamav:" \ |
358 |
- -e "s+^\#\(MilterSocket\) /.*+\1 unix:${EPREFIX}/var/run/clamav/clamav-milter.sock+" \ |
359 |
- -e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \ |
360 |
- -e "s:^\#\(LogFile\) .*:\1 ${EPREFIX}/var/log/clamav/clamav-milter.log:" \ |
361 |
- "${ED}"/etc/clamav-milter.conf.sample || die |
362 |
- cat >> "${ED}"/etc/conf.d/clamd <<-EOF |
363 |
- MILTER_NICELEVEL=19 |
364 |
- START_MILTER=no |
365 |
- EOF |
366 |
- |
367 |
- systemd_newunit "${FILESDIR}/clamav-milter.service-r1" clamav-milter.service |
368 |
- fi |
369 |
- |
370 |
- if use doc; then |
371 |
- einstalldocs |
372 |
- doman docs/man/*.[1-8] |
373 |
- fi |
374 |
- |
375 |
- for i in clamd freshclam clamav-milter |
376 |
- do |
377 |
- [[ -f "${D}"/etc/"${i}".conf.sample ]] && mv "${D}"/etc/"${i}".conf{.sample,} |
378 |
- done |
379 |
- |
380 |
- prune_libtool_files --all |
381 |
-} |
382 |
- |
383 |
-src_test() { |
384 |
- emake quick-check |
385 |
-} |
386 |
- |
387 |
-pkg_postinst() { |
388 |
- if use milter ; then |
389 |
- elog "For simple instructions how to setup the clamav-milter read the" |
390 |
- elog "clamav-milter.README.gentoo in /usr/share/doc/${PF}" |
391 |
- fi |
392 |
- if test -z $(find "${ROOT}"var/lib/clamav -maxdepth 1 -name 'main.c*' -print -quit) ; then |
393 |
- ewarn "You must run freshclam manually to populate the virus database files" |
394 |
- ewarn "before starting clamav for the first time.\n" |
395 |
- fi |
396 |
-} |
397 |
|
398 |
diff --git a/app-antivirus/clamav/clamav-0.101.0.ebuild b/app-antivirus/clamav/clamav-0.101.0.ebuild |
399 |
deleted file mode 100644 |
400 |
index 5f65942..0000000 |
401 |
--- a/app-antivirus/clamav/clamav-0.101.0.ebuild |
402 |
+++ /dev/null |
403 |
@@ -1,175 +0,0 @@ |
404 |
-# Copyright 1999-2018 Gentoo Authors |
405 |
-# Distributed under the terms of the GNU General Public License v2 |
406 |
- |
407 |
-EAPI=6 |
408 |
- |
409 |
-inherit autotools eutils flag-o-matic user systemd |
410 |
- |
411 |
-DESCRIPTION="Clam Anti-Virus Scanner" |
412 |
-HOMEPAGE="https://www.clamav.net/" |
413 |
-SRC_URI="https://www.clamav.net/downloads/production/${P}.tar.gz" |
414 |
- |
415 |
-LICENSE="GPL-2" |
416 |
-SLOT="0" |
417 |
-KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris" |
418 |
-IUSE="bzip2 doc clamdtop iconv ipv6 libressl milter metadata-analysis-api selinux static-libs test uclibc xml" |
419 |
- |
420 |
-CDEPEND="bzip2? ( app-arch/bzip2 ) |
421 |
- clamdtop? ( sys-libs/ncurses:0 ) |
422 |
- iconv? ( virtual/libiconv ) |
423 |
- metadata-analysis-api? ( dev-libs/json-c:= ) |
424 |
- milter? ( || ( mail-filter/libmilter mail-mta/sendmail ) ) |
425 |
- >=sys-libs/zlib-1.2.2:= |
426 |
- !libressl? ( dev-libs/openssl:0= ) |
427 |
- libressl? ( dev-libs/libressl:0= ) |
428 |
- sys-devel/libtool |
429 |
- || ( dev-libs/libpcre2 >dev-libs/libpcre-6 ) |
430 |
- dev-libs/libmspack |
431 |
- xml? ( dev-libs/libxml2 ) |
432 |
- elibc_musl? ( sys-libs/fts-standalone ) |
433 |
- !!<app-antivirus/clamav-0.99" |
434 |
-# hard block clamav < 0.99 due to linking problems Bug #567680 |
435 |
-# openssl is now *required* see this link as to why |
436 |
-# https://blog.clamav.net/2014/02/introducing-openssl-as-dependency-to.html |
437 |
-DEPEND="${CDEPEND} |
438 |
- virtual/pkgconfig |
439 |
- test? ( dev-libs/check )" |
440 |
-RDEPEND="${CDEPEND} |
441 |
- selinux? ( sec-policy/selinux-clamav )" |
442 |
- |
443 |
-DOCS=( docs/UserManual.md docs/UserManual ) |
444 |
-HTML_DOCS=( docs/html ) |
445 |
- |
446 |
-#PATCHES=( |
447 |
-# "${FILESDIR}/clamav-0.100.0_autotools.patch" |
448 |
-#) |
449 |
- |
450 |
-pkg_setup() { |
451 |
- enewgroup clamav |
452 |
- enewuser clamav -1 -1 /dev/null clamav |
453 |
-} |
454 |
- |
455 |
-#src_prepare() { |
456 |
-# default |
457 |
-# |
458 |
-# eautoconf |
459 |
-#} |
460 |
- |
461 |
-src_configure() { |
462 |
- use elibc_musl && append-ldflags -lfts |
463 |
- use ppc64 && append-flags -mminimal-toc |
464 |
- use uclibc && export ac_cv_type_error_t=yes |
465 |
- |
466 |
- # according to configure help it should be |
467 |
- # $(use_enable xml) |
468 |
- # but that does not work |
469 |
- # do not add this, since --disable-xml seems to override |
470 |
- # --without-xml |
471 |
- |
472 |
- econf \ |
473 |
- $(use_enable bzip2) \ |
474 |
- $(use_enable clamdtop) \ |
475 |
- $(use_enable ipv6) \ |
476 |
- $(use_enable milter) \ |
477 |
- $(use_enable static-libs static) \ |
478 |
- $(use_enable test check) \ |
479 |
- $(use_with xml) \ |
480 |
- $(use_with iconv) \ |
481 |
- $(use_with metadata-analysis-api libjson /usr) \ |
482 |
- --with-system-libmspack \ |
483 |
- --cache-file="${S}"/config.cache \ |
484 |
- --disable-experimental \ |
485 |
- --disable-gcc-vcheck \ |
486 |
- --disable-zlib-vcheck \ |
487 |
- --enable-id-check \ |
488 |
- --with-dbdir="${EPREFIX}"/var/lib/clamav \ |
489 |
- --with-zlib="${EPREFIX}"/usr \ |
490 |
- --disable-llvm |
491 |
-} |
492 |
- |
493 |
-src_install() { |
494 |
- default |
495 |
- |
496 |
- rm -rf "${ED}"/var/lib/clamav |
497 |
- newinitd "${FILESDIR}"/clamd.initd-r6 clamd |
498 |
- newconfd "${FILESDIR}"/clamd.conf-r1 clamd |
499 |
- |
500 |
- systemd_dotmpfilesd "${FILESDIR}/tmpfiles.d/clamav.conf" |
501 |
- systemd_newunit "${FILESDIR}/clamd_at.service" "clamd@.service" |
502 |
- systemd_dounit "${FILESDIR}/clamd.service" |
503 |
- systemd_dounit "${FILESDIR}/freshclamd.service" |
504 |
- |
505 |
- keepdir /var/lib/clamav |
506 |
- fowners clamav:clamav /var/lib/clamav |
507 |
- keepdir /var/log/clamav |
508 |
- fowners clamav:clamav /var/log/clamav |
509 |
- |
510 |
- dodir /etc/logrotate.d |
511 |
- insinto /etc/logrotate.d |
512 |
- newins "${FILESDIR}"/clamav.logrotate clamav |
513 |
- |
514 |
- # Modify /etc/{clamd,freshclam}.conf to be usable out of the box |
515 |
- sed -i -e "s:^\(Example\):\# \1:" \ |
516 |
- -e "s:.*\(PidFile\) .*:\1 ${EPREFIX}/var/run/clamav/clamd.pid:" \ |
517 |
- -e "s:.*\(LocalSocket\) .*:\1 ${EPREFIX}/var/run/clamav/clamd.sock:" \ |
518 |
- -e "s:.*\(User\) .*:\1 clamav:" \ |
519 |
- -e "s:^\#\(LogFile\) .*:\1 ${EPREFIX}/var/log/clamav/clamd.log:" \ |
520 |
- -e "s:^\#\(LogTime\).*:\1 yes:" \ |
521 |
- -e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \ |
522 |
- "${ED}"/etc/clamd.conf.sample || die |
523 |
- sed -i -e "s:^\(Example\):\# \1:" \ |
524 |
- -e "s:.*\(PidFile\) .*:\1 ${EPREFIX}/var/run/clamav/freshclam.pid:" \ |
525 |
- -e "s:.*\(DatabaseOwner\) .*:\1 clamav:" \ |
526 |
- -e "s:^\#\(UpdateLogFile\) .*:\1 ${EPREFIX}/var/log/clamav/freshclam.log:" \ |
527 |
- -e "s:^\#\(NotifyClamd\).*:\1 ${EPREFIX}/etc/clamd.conf:" \ |
528 |
- -e "s:^\#\(ScriptedUpdates\).*:\1 yes:" \ |
529 |
- -e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \ |
530 |
- "${ED}"/etc/freshclam.conf.sample || die |
531 |
- |
532 |
- if use milter ; then |
533 |
- # MilterSocket one to include ' /' because there is a 2nd line for |
534 |
- # inet: which we want to leave |
535 |
- ##dodoc "${FILESDIR}"/clamav-milter.README.gentoo |
536 |
- sed -i -e "s:^\(Example\):\# \1:" \ |
537 |
- -e "s:.*\(PidFile\) .*:\1 ${EPREFIX}/var/run/clamav/clamav-milter.pid:" \ |
538 |
- -e "s+^\#\(ClamdSocket\) .*+\1 unix:${EPREFIX}/var/run/clamav/clamd.sock+" \ |
539 |
- -e "s:.*\(User\) .*:\1 clamav:" \ |
540 |
- -e "s+^\#\(MilterSocket\) /.*+\1 unix:${EPREFIX}/var/run/clamav/clamav-milter.sock+" \ |
541 |
- -e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \ |
542 |
- -e "s:^\#\(LogFile\) .*:\1 ${EPREFIX}/var/log/clamav/clamav-milter.log:" \ |
543 |
- "${ED}"/etc/clamav-milter.conf.sample || die |
544 |
- cat >> "${ED}"/etc/conf.d/clamd <<-EOF |
545 |
- MILTER_NICELEVEL=19 |
546 |
- START_MILTER=no |
547 |
- EOF |
548 |
- |
549 |
- systemd_newunit "${FILESDIR}/clamav-milter.service-r1" clamav-milter.service |
550 |
- fi |
551 |
- |
552 |
- if use doc; then |
553 |
- einstalldocs |
554 |
- doman docs/man/*.[1-8] |
555 |
- fi |
556 |
- |
557 |
- for i in clamd freshclam clamav-milter |
558 |
- do |
559 |
- [[ -f "${D}"/etc/"${i}".conf.sample ]] && mv "${D}"/etc/"${i}".conf{.sample,} |
560 |
- done |
561 |
- |
562 |
- prune_libtool_files --all |
563 |
-} |
564 |
- |
565 |
-src_test() { |
566 |
- emake quick-check |
567 |
-} |
568 |
- |
569 |
-pkg_postinst() { |
570 |
- if use milter ; then |
571 |
- elog "For simple instructions how to setup the clamav-milter read the" |
572 |
- elog "clamav-milter.README.gentoo in /usr/share/doc/${PF}" |
573 |
- fi |
574 |
- if test -z $(find "${ROOT}"var/lib/clamav -maxdepth 1 -name 'main.c*' -print -quit) ; then |
575 |
- ewarn "You must run freshclam manually to populate the virus database files" |
576 |
- ewarn "before starting clamav for the first time.\n" |
577 |
- fi |
578 |
-} |
579 |
|
580 |
diff --git a/app-antivirus/clamav/files/clamav-0.100.0_autotools.patch b/app-antivirus/clamav/files/clamav-0.100.0_autotools.patch |
581 |
deleted file mode 100644 |
582 |
index 58c3b4e..0000000 |
583 |
--- a/app-antivirus/clamav/files/clamav-0.100.0_autotools.patch |
584 |
+++ /dev/null |
585 |
@@ -1,10 +0,0 @@ |
586 |
---- clamav-0.100.0/configure.ac_orig 2018-04-12 13:12:58.201729248 +0200 |
587 |
-+++ clamav-0.100.0/configure.ac 2018-04-12 13:23:44.982679360 +0200 |
588 |
-@@ -47,6 +47,7 @@ |
589 |
- LT_CONFIG_LTDL_DIR([libltdl]) |
590 |
- LT_INIT([dlopen disable-static]) |
591 |
- LTDL_INIT([recursive]) |
592 |
-+PKG_PROG_PKG_CONFIG(0.16) |
593 |
- |
594 |
- m4_include([m4/reorganization/build_tools.m4]) |
595 |
- m4_include([m4/reorganization/headers.m4]) |
596 |
|
597 |
diff --git a/app-antivirus/clamav/files/clamav-milter.README.gentoo b/app-antivirus/clamav/files/clamav-milter.README.gentoo |
598 |
deleted file mode 100644 |
599 |
index f526bd3..0000000 |
600 |
--- a/app-antivirus/clamav/files/clamav-milter.README.gentoo |
601 |
+++ /dev/null |
602 |
@@ -1,85 +0,0 @@ |
603 |
-Nick Hadaway <raker@g.o> |
604 |
-Updated by Andrea Barisani <lcars@g.o> |
605 |
-18/05/2004 |
606 |
- |
607 |
-Setting up clamav-milter on Gentoo Linux |
608 |
- |
609 |
-Step 1 - Configure clamd |
610 |
- |
611 |
-Check /etc/clamd.conf, default values should work out of the box but |
612 |
-read and understand all the options especially if you are going to |
613 |
-use it on production boxes. |
614 |
- |
615 |
-Step 2 - Tell the init script to start clamd as well as freshclam and the |
616 |
- milter itself. |
617 |
- |
618 |
- nano -w /etc/conf.d/clamd |
619 |
- |
620 |
- START_CLAMD=yes |
621 |
- START_FRESHCLAM=yes |
622 |
- START_MILTER=yes |
623 |
- |
624 |
-Step 3 - Inform your MTA about the new milter. |
625 |
- |
626 |
- SENDMAIL |
627 |
- Step 3.a.1 - Edit sendmail.mc |
628 |
- |
629 |
- Add these lines to sendmail.mc before any any other |
630 |
- INPUT_MAIL_FILTER lines and before MAILER(local) |
631 |
- NOTE: ANY INPUT_MAIL_FILTER definitions put before these lines |
632 |
- will be discarded due to the use of confINPUT_MAIL_FILTERS |
633 |
- Make this your first mail filter. :) |
634 |
- |
635 |
- INPUT_MAIL_FILTER(`clmilter',`S=local:/var/run/clamav/clmilter.sock, F=, T=S:4m;R:4m')dnl |
636 |
- define(`confINPUT_MAIL_FILTERS', `clmilter')dnl |
637 |
- |
638 |
- Step 3.a.2 - Rebuild sendmail.cf |
639 |
- |
640 |
- cd /etc/mail |
641 |
- m4 sendmail.mc > sendmail.cf |
642 |
- |
643 |
- |
644 |
- |
645 |
- POSTFIX |
646 |
- Step 3.b - Edit main.cf. |
647 |
- |
648 |
- Add unix:/var/run/clamav/clamav-milter.sock to your |
649 |
- smtpd_milters line. If the line doesn't exist, just |
650 |
- stick it at the bottom of main.cf on a new line. |
651 |
- |
652 |
- If you're appending, this is a space separated list. |
653 |
- If virus scanning is your most intensive test, you |
654 |
- may wish to put it on the end of the list so earlier, |
655 |
- easiser tests may punt the message before you go through the |
656 |
- trouble of virus scanning it. |
657 |
- |
658 |
- Only one milter example: |
659 |
- |
660 |
- # milters to run on network received mail. |
661 |
- smtpd_milters=unix:/var/run/clamav/clamav-milter.suck |
662 |
- |
663 |
- Multiple milters example: |
664 |
- |
665 |
- # milters to run on network received mail. |
666 |
- smtpd_milters=unix:/var/run/dkim-filter/dkim-filter.sock unix:/var/run/clamav/clamav-milter.sock |
667 |
- |
668 |
- |
669 |
-Step 5 - Adjust permissions for clamav-milter socket |
670 |
- |
671 |
- Edit /etc/clamav-milter.conf and check/change MilterSocketGroup and MilterSocketMode |
672 |
- e.g. for postfix it would be this (sendmail,.. should be similar): |
673 |
- MiltersocketGroup postfix |
674 |
- MilterSocketMode 660 |
675 |
- |
676 |
-Step 6 - Start clamad |
677 |
- |
678 |
- /etc/init.d/clamd start |
679 |
- |
680 |
-Step 7 - Restart your MTA |
681 |
- |
682 |
- SENDMAIL |
683 |
- /etc/init.d/sendmail restart |
684 |
- |
685 |
- POSTFIX |
686 |
- /etc/init.d/postfix restart |
687 |
- |
688 |
|
689 |
diff --git a/app-antivirus/clamav/files/clamav-milter.service b/app-antivirus/clamav/files/clamav-milter.service |
690 |
deleted file mode 100644 |
691 |
index 5a1a24f..0000000 |
692 |
--- a/app-antivirus/clamav/files/clamav-milter.service |
693 |
+++ /dev/null |
694 |
@@ -1,12 +0,0 @@ |
695 |
-[Unit] |
696 |
-Description=Milter module for the ClamAV scanner |
697 |
-After=nss-lookup.target network.target |
698 |
-Before=sendmail.service |
699 |
-Before=postfix.service |
700 |
- |
701 |
-[Service] |
702 |
-ExecStart=/usr/sbin/clamav-milter -c /etc/clamav-milter.conf --nofork=yes |
703 |
-Restart=on-failure |
704 |
- |
705 |
-[Install] |
706 |
-WantedBy=multi-user.target |
707 |
|
708 |
diff --git a/app-antivirus/clamav/files/clamav-milter.service-r1 b/app-antivirus/clamav/files/clamav-milter.service-r1 |
709 |
deleted file mode 100644 |
710 |
index f0118d8..0000000 |
711 |
--- a/app-antivirus/clamav/files/clamav-milter.service-r1 |
712 |
+++ /dev/null |
713 |
@@ -1,13 +0,0 @@ |
714 |
-[Unit] |
715 |
-Description=Milter module for the ClamAV scanner |
716 |
-After=nss-lookup.target network.target |
717 |
-Before=sendmail.service |
718 |
-Before=postfix.service |
719 |
- |
720 |
-[Service] |
721 |
-Type=forking |
722 |
-PIDFile=/run/clamav/clamav-milter.pid |
723 |
-ExecStart=/usr/sbin/clamav-milter -c /etc/clamav-milter.conf |
724 |
- |
725 |
-[Install] |
726 |
-WantedBy=multi-user.target |
727 |
|
728 |
diff --git a/app-antivirus/clamav/files/clamav.logrotate b/app-antivirus/clamav/files/clamav.logrotate |
729 |
deleted file mode 100644 |
730 |
index 7a81126..0000000 |
731 |
--- a/app-antivirus/clamav/files/clamav.logrotate |
732 |
+++ /dev/null |
733 |
@@ -1,17 +0,0 @@ |
734 |
-/var/log/clamav/clamd.log { |
735 |
- su clamav clamav |
736 |
- missingok |
737 |
- postrotate |
738 |
- /etc/init.d/clamd logfix |
739 |
- /bin/kill -HUP `cat /var/run/clamav/clamd.pid 2> /dev/null` 2>/dev/null || true |
740 |
- endscript |
741 |
-} |
742 |
- |
743 |
-/var/log/clamav/freshclam.log { |
744 |
- su clamav clamav |
745 |
- missingok |
746 |
- postrotate |
747 |
- /etc/init.d/clamd logfix |
748 |
- /bin/kill -HUP `cat /var/run/clamav/freshclam.pid 2> /dev/null` 2>/dev/null || true |
749 |
- endscript |
750 |
-} |
751 |
|
752 |
diff --git a/app-antivirus/clamav/files/clamd.conf b/app-antivirus/clamav/files/clamd.conf |
753 |
deleted file mode 100644 |
754 |
index ee05513..0000000 |
755 |
--- a/app-antivirus/clamav/files/clamd.conf |
756 |
+++ /dev/null |
757 |
@@ -1,9 +0,0 @@ |
758 |
-# Config file for /etc/init.d/clamd |
759 |
- |
760 |
-# NOTICE: Since clamav-0.85-r1, only START_CLAMD and START_FRESHCLAM settings |
761 |
-# are used, other are silently ignored |
762 |
- |
763 |
-START_CLAMD=yes |
764 |
-START_FRESHCLAM=yes |
765 |
-CLAMD_NICELEVEL=3 |
766 |
-FRESHCLAM_NICELEVEL=19 |
767 |
|
768 |
diff --git a/app-antivirus/clamav/files/clamd.conf-r1 b/app-antivirus/clamav/files/clamd.conf-r1 |
769 |
deleted file mode 100644 |
770 |
index de95554..0000000 |
771 |
--- a/app-antivirus/clamav/files/clamd.conf-r1 |
772 |
+++ /dev/null |
773 |
@@ -1,7 +0,0 @@ |
774 |
-# Config file for /etc/init.d/clamd |
775 |
- |
776 |
-START_CLAMD=yes |
777 |
-START_FRESHCLAM=yes |
778 |
-CLAMD_NICELEVEL=3 |
779 |
-FRESHCLAM_NICELEVEL=19 |
780 |
-IONICE_LEVEL=2 |
781 |
|
782 |
diff --git a/app-antivirus/clamav/files/clamd.initd-r6 b/app-antivirus/clamav/files/clamd.initd-r6 |
783 |
deleted file mode 100644 |
784 |
index 8cf8dd0..0000000 |
785 |
--- a/app-antivirus/clamav/files/clamd.initd-r6 |
786 |
+++ /dev/null |
787 |
@@ -1,128 +0,0 @@ |
788 |
-#!/sbin/openrc-run |
789 |
-# Copyright 1999-2018 Gentoo Foundation |
790 |
-# Distributed under the terms of the GNU General Public License v2 |
791 |
- |
792 |
-daemon_clamd="/usr/sbin/clamd" |
793 |
-daemon_freshclam="/usr/bin/freshclam" |
794 |
-daemon_milter="/usr/sbin/clamav-milter" |
795 |
- |
796 |
-extra_commands="logfix" |
797 |
- |
798 |
-depend() { |
799 |
- use net |
800 |
- provide antivirus |
801 |
-} |
802 |
- |
803 |
-get_config() { |
804 |
- clamconf | sed 's/["=]//g' | \ |
805 |
- awk "{ |
806 |
- if(\$0==\"Config file: $1.conf\") S=1 |
807 |
- if(S==1&&\$0==\"\") { |
808 |
- print \"$3\" |
809 |
- exit |
810 |
- } |
811 |
- if(S==1&&\$1~\"^$2\$\") { |
812 |
- print \$2!=\"disabled\"?\$2:\"$3\" |
813 |
- exit |
814 |
- } |
815 |
- }" |
816 |
-} |
817 |
- |
818 |
-start() { |
819 |
- # populate variables and fix log file permissions |
820 |
- logfix |
821 |
- |
822 |
- if [ "${START_CLAMD}" = "yes" ]; then |
823 |
- checkpath --quiet --mode 755 \ |
824 |
- --owner "${clamd_user}":"${clamd_user}" \ |
825 |
- --directory `dirname ${clamd_socket}` |
826 |
- if [ -S "${clamd_socket}" ]; then |
827 |
- rm -f ${clamd_socket} |
828 |
- fi |
829 |
- ebegin "Starting clamd" |
830 |
- start-stop-daemon --start --quiet \ |
831 |
- --nicelevel ${CLAMD_NICELEVEL:-0} \ |
832 |
- --ionice ${IONICE_LEVEL:-0} \ |
833 |
- --exec ${daemon_clamd} |
834 |
- eend $? "Failed to start clamd" |
835 |
- fi |
836 |
- |
837 |
- if [ "${START_FRESHCLAM}" = "yes" ]; then |
838 |
- checkpath --quiet --mode 755 \ |
839 |
- --owner "${clamd_user}":"${clamd_user}" \ |
840 |
- --directory `dirname ${clamd_socket}` |
841 |
- ebegin "Starting freshclam" |
842 |
- start-stop-daemon --start --quiet \ |
843 |
- --nicelevel ${FRESHCLAM_NICELEVEL:-0} \ |
844 |
- --ionice ${IONICE_LEVEL:-0} \ |
845 |
- --exec ${daemon_freshclam} -- -d |
846 |
- retcode=$? |
847 |
- if [ ${retcode} = 1 ]; then |
848 |
- eend 0 |
849 |
- einfo "Virus databases are already up to date." |
850 |
- else |
851 |
- eend ${retcode} "Failed to start freshclam" |
852 |
- fi |
853 |
- fi |
854 |
- |
855 |
- if [ "${START_MILTER}" = "yes" ]; then |
856 |
- if [ -z "${MILTER_CONF_FILE}" ]; then |
857 |
- MILTER_CONF_FILE="/etc/clamav-milter.conf" |
858 |
- fi |
859 |
- |
860 |
- ebegin "Starting clamav-milter" |
861 |
- start-stop-daemon --start --quiet \ |
862 |
- --nicelevel ${MILTER_NICELEVEL:-0} \ |
863 |
- --ionice ${IONICE_LEVEL:-0} \ |
864 |
- --exec ${daemon_milter} -- -c ${MILTER_CONF_FILE} |
865 |
- eend $? "Failed to start clamav-milter" |
866 |
- fi |
867 |
-} |
868 |
- |
869 |
-stop() { |
870 |
- if [ "${START_CLAMD}" = "yes" ]; then |
871 |
- ebegin "Stopping clamd" |
872 |
- start-stop-daemon --stop --quiet --name clamd |
873 |
- eend $? "Failed to stop clamd" |
874 |
- fi |
875 |
- if [ "${START_FRESHCLAM}" = "yes" ]; then |
876 |
- ebegin "Stopping freshclam" |
877 |
- start-stop-daemon --stop --quiet --name freshclam |
878 |
- eend $? "Failed to stop freshclam" |
879 |
- fi |
880 |
- if [ "${START_MILTER}" = "yes" ]; then |
881 |
- ebegin "Stopping clamav-milter" |
882 |
- start-stop-daemon --stop --quiet --name clamav-milter |
883 |
- eend $? "Failed to stop clamav-milter" |
884 |
- fi |
885 |
-} |
886 |
- |
887 |
-logfix() { |
888 |
- clamd_socket=$(get_config clamd LocalSocket /run/clamav/clamd.sock) |
889 |
- clamd_user=$(get_config clamd User clamav) |
890 |
- freshclam_user=$(get_config freshclam DatabaseOwner clamav) |
891 |
- |
892 |
- if [ "${START_CLAMD}" = "yes" ]; then |
893 |
- # fix clamd log permissions |
894 |
- # (might be clobbered by logrotate or something) |
895 |
- local logfile=$(get_config clamd LogFile) |
896 |
- if [ -n "${logfile}" ]; then |
897 |
- checkpath --quiet \ |
898 |
- --owner "${clamd_user}":"${clamd_user}" \ |
899 |
- --mode 640 \ |
900 |
- --file ${logfile} |
901 |
- fi |
902 |
- fi |
903 |
- |
904 |
- if [ "${START_FRESHCLAM}" = "yes" ]; then |
905 |
- # fix freshclam log permissions |
906 |
- # (might be clobbered by logrotate or something) |
907 |
- local logfile=$(get_config freshclam UpdateLogFile) |
908 |
- if [ -n "${logfile}" ]; then |
909 |
- checkpath --quiet \ |
910 |
- --owner "${freshclam_user}":"${freshclam_user}" \ |
911 |
- --mode 640 \ |
912 |
- --file ${logfile} |
913 |
- fi |
914 |
- fi |
915 |
-} |
916 |
|
917 |
diff --git a/app-antivirus/clamav/files/clamd.service b/app-antivirus/clamav/files/clamd.service |
918 |
deleted file mode 100644 |
919 |
index 75aa2cc..0000000 |
920 |
--- a/app-antivirus/clamav/files/clamd.service |
921 |
+++ /dev/null |
922 |
@@ -1,12 +0,0 @@ |
923 |
-[Unit] |
924 |
-Description=clamd scanner daemon |
925 |
-After=nss-lookup.target network.target |
926 |
- |
927 |
-[Service] |
928 |
-Type=forking |
929 |
-ExecStart=/usr/sbin/clamd |
930 |
-Restart=on-failure |
931 |
-PrivateTmp=true |
932 |
- |
933 |
-[Install] |
934 |
-WantedBy=multi-user.target |
935 |
|
936 |
diff --git a/app-antivirus/clamav/files/clamd_at.service b/app-antivirus/clamav/files/clamd_at.service |
937 |
deleted file mode 100644 |
938 |
index 9008ba7..0000000 |
939 |
--- a/app-antivirus/clamav/files/clamd_at.service |
940 |
+++ /dev/null |
941 |
@@ -1,12 +0,0 @@ |
942 |
-[Unit] |
943 |
-Description=clamd scanner (%i) daemon |
944 |
-After=nss-lookup.target network.target |
945 |
- |
946 |
-[Service] |
947 |
-Type=forking |
948 |
-ExecStart=/usr/sbin/clamd -c /etc/clamd%i.conf |
949 |
-Restart=on-failure |
950 |
-PrivateTmp=true |
951 |
- |
952 |
-[Install] |
953 |
-WantedBy=multi-user.target |
954 |
|
955 |
diff --git a/app-antivirus/clamav/files/freshclamd.service b/app-antivirus/clamav/files/freshclamd.service |
956 |
deleted file mode 100644 |
957 |
index 2148768..0000000 |
958 |
--- a/app-antivirus/clamav/files/freshclamd.service |
959 |
+++ /dev/null |
960 |
@@ -1,13 +0,0 @@ |
961 |
-[Unit] |
962 |
-Description=clamav updater |
963 |
- |
964 |
-[Service] |
965 |
-Type=forking |
966 |
-User=clamav |
967 |
-Group=clamav |
968 |
-RuntimeDirectory=clamav |
969 |
-PIDFile=/run/clamav/freshclam.pid |
970 |
-ExecStart=/usr/bin/freshclam -d -p /run/clamav/freshclam.pid |
971 |
- |
972 |
-[Install] |
973 |
-WantedBy=multi-user.target |
974 |
|
975 |
diff --git a/app-antivirus/clamav/files/tmpfiles.d/clamav.conf b/app-antivirus/clamav/files/tmpfiles.d/clamav.conf |
976 |
deleted file mode 100644 |
977 |
index 1672df6..0000000 |
978 |
--- a/app-antivirus/clamav/files/tmpfiles.d/clamav.conf |
979 |
+++ /dev/null |
980 |
@@ -1 +0,0 @@ |
981 |
-d /run/clamav 0710 clamav clamav |
982 |
|
983 |
diff --git a/app-antivirus/clamav/metadata.xml b/app-antivirus/clamav/metadata.xml |
984 |
deleted file mode 100644 |
985 |
index e81808e..0000000 |
986 |
--- a/app-antivirus/clamav/metadata.xml |
987 |
+++ /dev/null |
988 |
@@ -1,21 +0,0 @@ |
989 |
-<?xml version="1.0" encoding="UTF-8"?> |
990 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
991 |
-<pkgmetadata> |
992 |
- <maintainer type="project"> |
993 |
- <email>antivirus@g.o</email> |
994 |
- <name>Gentoo Antivirus Project</name> |
995 |
- </maintainer> |
996 |
- <maintainer type="project"> |
997 |
- <email>net-mail@g.o</email> |
998 |
- <name>Net-Mail</name> |
999 |
- </maintainer> |
1000 |
- <use> |
1001 |
- <flag name="clamdtop">A Top like tool which shows what clamd is currently scanning amongst other things</flag> |
1002 |
- <flag name="metadata-analysis-api">Enables collection of file property metadata using ClamAV API for analysis by ClamAV bytecode programs.</flag> |
1003 |
- <flag name="system-libmspack">Use system libmspack instead of built in</flag> |
1004 |
- <flag name="xml">DMG and XAR support</flag> |
1005 |
- </use> |
1006 |
- <upstream> |
1007 |
- <remote-id type="sourceforge">clamav</remote-id> |
1008 |
- </upstream> |
1009 |
-</pkgmetadata> |
1010 |
|
1011 |
diff --git a/app-crypt/chntpw/chntpw-140201.ebuild b/app-crypt/chntpw/chntpw-140201.ebuild |
1012 |
index ebf6805..5f5ecfe 100644 |
1013 |
--- a/app-crypt/chntpw/chntpw-140201.ebuild |
1014 |
+++ b/app-crypt/chntpw/chntpw-140201.ebuild |
1015 |
@@ -1,7 +1,7 @@ |
1016 |
-# Copyright 1999-2017 Gentoo Foundation |
1017 |
+# Copyright 1999-2018 Gentoo Foundation |
1018 |
# Distributed under the terms of the GNU General Public License v2 |
1019 |
|
1020 |
-EAPI=6 |
1021 |
+EAPI=7 |
1022 |
|
1023 |
inherit toolchain-funcs |
1024 |
|
1025 |
@@ -21,7 +21,10 @@ DEPEND="${RDEPEND} |
1026 |
static? ( dev-libs/openssl:0[static-libs] )" |
1027 |
|
1028 |
DOCS=( |
1029 |
- HISTORY.txt README.txt regedit.txt WinReg.txt |
1030 |
+ HISTORY.txt |
1031 |
+ README.txt |
1032 |
+ WinReg.txt |
1033 |
+ regedit.txt |
1034 |
) |
1035 |
|
1036 |
PATCHES=( |