Bug 173221
| Summary: | Packaging Problems (RPM Dependency, Configuration Files) | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Rob Ludwick <rcludw> |
| Component: | clamav | Assignee: | Enrico Scholz <rh-bugzilla> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 3 | CC: | extras-qa |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i386 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2005-11-15 19:35:23 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Rob Ludwick
2005-11-15 07:01:09 UTC
Description of problem: > One package put its config file in /etc (clamav-update) while another > put its config file in /etc/clamd.d (clamav-milter). Can't you just > have one location? /etc/clamd.d is for a class of configuration files while /etc/freshclam.conf is a single file. Creating a dirtree like | /etc | `-- clamav | |-- clamd.d/ | `-- freshclam.conf would create more complication without giving a gain. So a WONTFIX for this point. > Where is the proper location for clamd.conf? There can not be a common 'clamd.conf'. Therefore, there does not exist such a proper location. > Hand running clamd says it's expecting the config file to reside in > /etc/clamd not /etc/clamd.d/clamd.conf -- which is, btw, different > than what your readme file says. I can not find the place where the README is telling this. Can you point me to the exact place? > clamav-milter's spec file needs to add a dependency for clamav-server, > so yum picks it up correctly. NOTABUG. clamav-milter does *NOT* need a clamd instance by default. > Clamdscan is in clamav, but has a dependency on clamd (clamav-server) > and should really be put in that package. Why should clients put into the server package? Last time when I looked, apache 'httpd' package does neither ship firefox nor konqueror ;) Correct fix would be a separate '-client' subpackage for the client program. But because this is some overkill and 'clamdscan' does not introduce additional dependencies, I keep it in the base package. Therefore, WONTFIX > clamav has the clamd.conf and freshclam.conf man pages. These need > to be in the respective packages. Thx; freshclam.conf was moved into -update. 'clamd.conf' now is both in base and in -server. > If you look how yum was packaged, there wasn't a yum-update package > split off of it. Also, yum puts a file in /etc/cron.daily instead > of /etc/cron.d. If I were doing it, I'd do it the way the yum > package does it. The reason is that the user can turn it on and > off without editing the /etc/sysconfig/freshclam file by hand. WONTFIX; only a daily update of the antivirus database would not be enough. > clamav-lib, clamav-data, clamav, clamav-update should be merged > into one package. It doesn't make much sense to split these out. > Plus you don't have to worry about getting all the dependencies > right. clamav-data will just be overwritten over time anyway, and > only a small minority of people will not want to run freshclam to > get updates, which starts out disabled anyway. So, make it simple > for us, eh? WONTFIX; I hate it when a package contains lot of programs with different functionality. Usually, this creates a huge dependency tree. Normal users will need only a | # yum install clamav clamav-update > Well... try yum install clamav-milter. Note that after installation > the package doesn't work. And it's not clear why it's not either. WORKSFORME; 1. # yum install clamav-milter sendmail-cf make 2. # chkconfig clamav-milter on (I won't change that...) 2. ... put the INPUT_MAIL_FILTER(`clamav', `S=local:/var/run/clamav-milter/clamav.sock, F=, T=S:4m;R:4m')dnl line into /etc/mail/sendmail.mc 3. remove the 'Example' from /etc/clamd.d/milter.conf (I won't change that...) 4. add a '-l' to the options in /etc/sysconfig/clamav-milter (needed for tests in local LAN and documentation discourages this flag; so I won't change that) 5. reboot (or 'service clamav-milter restart && service sendmail restart') 6. $ telnet 192.168.46.243 25 220 kosh.bigo.ensc.de ESMTP Sendmail 8.13.4/8.13.4; Tue, 15 Nov 2005 14:02:59 -0500 EHLO x 250-kosh.bigo.ensc.de Hello londo.bigo.ensc.de [192.168.46.6], pleased to meet you 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-8BITMIME 250-SIZE 250-DSN 250-ETRN 250-AUTH DIGEST-MD5 CRAM-MD5 250-DELIVERBY 250 HELP MAIL FROM: ensc@XXX 250 2.1.0 ensc@XXX... Sender ok RCPT TO: ensc@YYY 250 2.1.5 ensc@YYY... Recipient ok DATA 354 Enter mail, end with "." on a line by itself Subject: test ...<removed by me to avoid filtering>...$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H* . 554 5.7.1 virus Eicar-Test-Signature detected by ClamAV - http://www.clamav.net Thanks for responding to my bug report.
Once I realized that you've got things going on in /etc/clamd.d to replace the
lone /etc/clamd.conf ... things started making more sense. I was stuck on the
fact that freshclam couldn't parse /etc/clamd.conf. "Where the hell is
/etc/clamd.conf?" And then a lot of your responses started to make sense.
The other thing is that I was thinking that clamd provided a UNIX socket only,
and I guess I didn't realize/remember last night that it can be configured with
a TCP socket as well.
So most of what I thought were bugs were actually not, I withdraw my bug
complaint. I'll chalk that up to a late night, and misunderstandings on my part.
It's clear that we have different philosophies, on packaging. I want something
that works out of the box. You want to make sure there's flexibility for
administrators -- that's something I can appreciate. I just think that if I yum
install clamav-milter I should get freshclam as well. And when I run freshclam
it updates the db instead of spitting out:
[root@crow clamav-server-0.87.1]# freshclam
ERROR: Please edit the example config file /etc/freshclam.conf.
ERROR: Can't parse the config file /etc/clamd.conf
Note that it was the second message that I was spinning in circles about. I
didn't think that clamav-milter was useful unless freshclam is working anyway.
But apparently, yum install clamav-milter does work -- although is not very useful.
Again different package philosophies. I'll go see what other packagers are
doing, I think.
BTW, here's the readme file I was looking at:
/usr/share/doc/clamav-server-0.87.1/README.
You'll see things that look like this:
>>clamd.logrotate:
>> * set the correct value for the logfile
>> * place it into /etc/logrotate.d
>>
>>clamd.sysconfig:
>> * set the name of the config-file and the local socket
>> * copy it to /etc/sysconfig/clamd.<SERVICE>
>>
>>clamd.init:
>> * set the service-name
>> * place it into /etc/init.d/ with an unique name and activate it
>> (e.g. with /sbin/chkconfig clamd.<SERVICE> on)
|