Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 67857

Summary: Use flag to compile samba oav --with-clamav-lib
Product: Gentoo Linux Reporter: chris-gentoo
Component: New packagesAssignee: Gentoo's SAMBA Team <samba>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Proposed ebuild
Patch for libclamav in vscan
Patch from current portage to proposed ebuild

Description chris-gentoo 2004-10-17 03:49:13 UTC
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
Comment 1 chris-gentoo 2004-10-18 21:23:30 UTC
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.
Comment 2 chris-gentoo 2004-10-18 21:24:38 UTC
Created attachment 42141 [details]
Patch for libclamav in vscan

Patch to fix scan on close with libclamav
Comment 3 Christian Andreetta (RETIRED) gentoo-dev 2004-10-19 01:18:15 UTC
could you please post a diff between your ebuild and the latest samba ebuild? It is _very_ faster for us to process. 
Comment 4 chris-gentoo 2004-10-19 02:30:52 UTC
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
Comment 5 Christian Andreetta (RETIRED) gentoo-dev 2004-11-09 06:29:31 UTC
in samba-3.0.8. thanks :-)