To use scannedonly with samba, two parts are needed. The vfs module for samba is already included in packages for >=samba-3.5.0. The daemon for scannedonly, however, cannot yet be found in portage.
Please include scannedonlyd_clamav in portage. Maybe even include a new use flag (like eg. "scannedonly_clamav") for >=samba-3.5.0 and make it depend on the new package. (http://olivier.sessink.nl/scannedonly/)
Steps to Reproduce:
Hello, The Gentoo Team would like to firstly thank you for your ebuild
submission. We also apologize for not being able to accommodate you in a timely
manner. There are simply too many new packages.
Allow me to use this opportunity to introduce you to Gentoo Sunrise. The
sunrise overlay is a overlay for Gentoo which we allow trusted users to
commit to and all users can have ebuilds reviewed by Gentoo devs for entry
into the overlay. So, the sunrise team is suggesting that you look into this
and submit your ebuild to the overlay where even *you* can commit to. =)
On behalf of the Gentoo Sunrise Team,
Created attachment 242387 [details]
The ebuild file.
Created attachment 242389 [details]
Patch (will not be needed in next version of package)
Created attachment 242391 [details]
Created attachment 242393 [details]
Attached you will find four files that are needed to be put in the portage tree:, the ebuild, a patch (ebuild didn't compile on my system without it, but it's going to be included in new official version) and files to create conf.d and init.d scripts.
File scannedonly-0.20-r1.ebuild should be put propably in the app-antivirus/scannedonly branch of portage tree, and three additional files should be put in files subdirectory.
I tested this backage on x86 and amd64 systems with samba-3.5.4 and seems to work fine but it's still a quite young application so still needs testing. Moreover it's my first ebuild submitted here so someone more experienced should have a look at it.
Created attachment 298843 [details]
Good. But problems:
1) as-needed problem (possible todo: find source and open bug for clamav);
2) sometimes (now, for example) homepage is down, going to SF;
3) strange ebuild structure.
So, scannedonly-9999.ebuild attached (must work with release, but I cannot get tarball now - homepage is down). Patch not required.
More fixed ebuild and startup script here:
Optionally autostart prescan too. clamd startup dependence removed (clamd not used here, just freshclam daemon or cron-ed freshclam is good).
To Gentoo-ish maniax: you can hardcode socket to /var/run/scannedonly.sock, but I just "keepdir /var/lib/scannedonly" for default.
... but looks like unuseful package ;) - few hours (with debugging) and simple perl daemon ready... http://mahatma.bspu.unibel.by/download/scannedonly_clamd.pl - this use clamd (original package use clamav library).