When using clamav with samba, my shares are accessed very rarely, so rather than have the clamav daemon run all the time, I'd prefer the necissary libraries to be loaded only on access by compiling the vscan support with the --with-clamav-lib flag. Currently the samba ebuild compiles vscan with default options which means only clamd is supported. (perhaps this could be pushed upstream to make it runtime configurable, though pathing the ebuild to add --with-clamav-lib would be a lot simpler at this stage) Reproducible: Always Steps to Reproduce: USE="oav" emerge samba Actual Results: vscan builds only with support for clamd daemon. Expected Results: Optional use of libclamav
Created attachment 42140 [details] Proposed ebuild My mistake, the configure option is --with-libclamav Attached is an ebuild that adds this option if the libclamav use flag is present. In vscan 0.3.5 a missing #ifdef causes scanning on file close to fail when using libclamav, this ebuild includes a patch to fix this.
Created attachment 42141 [details] Patch for libclamav in vscan Patch to fix scan on close with libclamav
could you please post a diff between your ebuild and the latest samba ebuild? It is _very_ faster for us to process.
Created attachment 42150 [details, diff] Patch from current portage to proposed ebuild My appologies, I had assumed the procedure was the same as for proposing a ebuild for a package not in portage. Patch is attached
in samba-3.0.8. thanks :-)