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

Bug 99992

Summary: app-antivirus/clamav - enable onaccess use
Product: Gentoo Linux Reporter: Alon Bar-Lev (RETIRED) <alonbl>
Component: New packagesAssignee: Antivirus Team <antivirus>
Status: RESOLVED FIXED    
Severity: enhancement CC: wschlich
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 11487, 151630    
Bug Blocks:    
Attachments: clamav-0.86.2-r1.ebuild.diff
clamav-0.88.ebuild.diff
udev-60-dazuko.rules
clamav-0.88.7.ebuild.diff
udev-60-dazuko.rules

Description Alon Bar-Lev (RETIRED) gentoo-dev 2005-07-23 01:53:43 UTC
Please consider adding onaccess use for clamav.
This depends on dazuko (bug #11487), but will allow users to figure out that
they need this component as dependency.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Alon Bar-Lev (RETIRED) gentoo-dev 2005-07-23 01:55:06 UTC
Created attachment 64110 [details, diff]
clamav-0.86.2-r1.ebuild.diff

Suggested modifications for clamav ebuild.
Comment 2 Alon Bar-Lev (RETIRED) gentoo-dev 2005-09-11 12:50:55 UTC
Now, after there is sys-fs/dazuko, can you please consider the attached
modification in order to add onaccess use?
Comment 3 Andrej Kacian (RETIRED) gentoo-dev 2005-09-28 12:50:34 UTC
We'll need dazuko keyworded atleast ~arch for all supported arches, or atleast
for arches which dazuko actually works on.

CCing dazuko maintainer: Wolfram, is there some list of arches dazuko will/will
not work on, to narrow the list? Otherwise onaccess support for clamav will have
to wait until dazuko receives attention from all relevant arch teams.
Comment 4 Alon Bar-Lev (RETIRED) gentoo-dev 2006-02-10 15:20:09 UTC
Created attachment 79468 [details, diff]
clamav-0.88.ebuild.diff

Updated ebuild, sets udev permissions for dazuko.
Comment 5 Alon Bar-Lev (RETIRED) gentoo-dev 2006-02-10 15:20:54 UTC
Created attachment 79469 [details]
udev-60-dazuko.rules

udev rule for dazuko.
Comment 6 Alon Bar-Lev (RETIRED) gentoo-dev 2006-04-21 07:10:42 UTC
Hello,
If you don't wish to do this, please close the bug.
Comment 7 Andrej Kacian (RETIRED) gentoo-dev 2006-04-21 07:51:14 UTC
I was waiting for Wolfram, but looks like we'll have to do it via USE-flag masking for other architectures.
Comment 8 Alon Bar-Lev (RETIRED) gentoo-dev 2006-09-22 01:47:27 UTC
(In reply to comment #7)
> I was waiting for Wolfram, but looks like we'll have to do it via USE-flag
> masking for other architectures.

Hello,
A lot of time passed.
Can you please do this via USE-flag masking?
Comment 9 Andrej Kacian (RETIRED) gentoo-dev 2006-12-18 11:53:56 UTC
OK, I got clamuko working easily, but it requires /dev/dazuko to be writable by user that runs clamav. How do we handle this in dazuko and/or clamav ebuilds?
Comment 10 Alon Bar-Lev (RETIRED) gentoo-dev 2006-12-18 12:01:09 UTC
Created attachment 104303 [details, diff]
clamav-0.88.7.ebuild.diff
Comment 11 Alon Bar-Lev (RETIRED) gentoo-dev 2006-12-18 12:01:59 UTC
Created attachment 104304 [details]
udev-60-dazuko.rules
Comment 12 Alon Bar-Lev (RETIRED) gentoo-dev 2006-12-18 12:03:37 UTC
(In reply to comment #9)
> OK, I got clamuko working easily, but it requires /dev/dazuko to be writable by
> user that runs clamav. How do we handle this in dazuko and/or clamav ebuilds?

Attachmens are modified ebuild and udev rule (put in ${FILESDIR}).
The udev rule allows clamav to access the device.
It is installed if you use the onaccess use flag.
Comment 13 Andrej Kacian (RETIRED) gentoo-dev 2006-12-18 17:05:42 UTC
Um, is it OK if we just echo the line to /etc/udev/rules.d/60-dazuko.rules instead of adding yet another file in the tree?
Comment 14 Andrej Kacian (RETIRED) gentoo-dev 2006-12-18 18:42:23 UTC
Newly added clamav-0.88.7-r1 has support for dazuko now. At last.

Thanks for your time spent on this, Alon.
Comment 15 Alon Bar-Lev (RETIRED) gentoo-dev 2006-12-18 22:18:29 UTC
Thanks!
Any reason to remove the postinst messages?
Comment 16 Alon Bar-Lev (RETIRED) gentoo-dev 2006-12-19 12:39:41 UTC
Hi!
I see you removed the fbsd keyword because of dazuko...
You could have simply mask the onaccess use flag from fbsd...
Comment 17 Andrej Kacian (RETIRED) gentoo-dev 2006-12-19 13:10:36 UTC
(In reply to comment #16)
> Hi!
> I see you removed the fbsd keyword because of dazuko...
> You could have simply mask the onaccess use flag from fbsd...
> 

Yes, I plan to ping fbsd team for that, but I didn't get around to do it yet.