Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 67857 - Use flag to compile samba oav --with-clamav-lib
Summary: Use flag to compile samba oav --with-clamav-lib
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-17 03:49 UTC by chris-gentoo
Modified: 2004-11-09 06:29 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Proposed ebuild (samba-3.0.7-r1.ebuild,15.07 KB, text/plain)
2004-10-18 21:23 UTC, chris-gentoo
Details
Patch for libclamav in vscan (libclamav.patch,523 bytes, text/plain)
2004-10-18 21:24 UTC, chris-gentoo
Details
Patch from current portage to proposed ebuild (samba-3.0.7-r1.ebuild.patch,1.49 KB, patch)
2004-10-19 02:30 UTC, chris-gentoo
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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 :-)