[MacPorts] #50570: Installing clamav/clamav-server is very annoying on MacPorts
#50570: Installing clamav/clamav-server is very annoying on MacPorts -------------------------------+----------------------------------- Reporter: graziosi.angelo@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Keywords: | Port: clamav, clamav-server -------------------------------+----------------------------------- On GNU/Linux Mint {{{ sudo apt-get install clamav }}} is enough to have a working Clamav installation which automatically updates its database (main.cvd etc.) On MacPorts, one have to install at least two package and manually adjust clamd.conf and freshclam.con as suggested by clamav-server installation, {{{ sudo port install clamav-server [...] To configure clamd and freshclam look for the following files: /opt/local/etc/clamd.conf /opt/local/etc/freshclam.conf If these files do not exist you can copy the sample conf files into place: sudo cp /opt/local/etc/clamd.conf.sample /opt/local/etc/clamd.conf sudo cp /opt/local/etc/freshclam.conf.sample /opt/local/etc/freshclam.conf Edit /opt/local/etc/clamd.conf to your liking, example: # Comment out 'Example' near the top if it exists #Example LogFile /opt/local/var/log/clamav/clamd.log PidFile /opt/local/var/run/clamav/clamd.pid LocalSocket /opt/local/var/run/clamav/clamd.socket Foreground yes Edit /opt/local/etc/freshclam.conf to your liking, example: # Comment out 'Example' near the top if it exists #Example UpdateLogFile /opt/local/var/log/clamav/freshclam.log PidFile /opt/local/var/run/clamav/freshclam.pid NotifyClamd /opt/local/etc/clamd.conf Two launchd startup items have been installed. To load clamd and freshclam do the following: sudo launchctl load -w /Library/LaunchDaemons/org.macports.clamd.plist sudo launchctl load -w /Library/LaunchDaemons/org.macports.freshclam.plist To unload clamd and freshclam do the following: sudo launchctl unload -w /Library/LaunchDaemons/org.macports.clamd.plist sudo launchctl unload -w /Library/LaunchDaemons/org.macports.freshclam.plist To try things out do sudo freshclam If all is well you should see your clamav database being updated [...] }}} ...otherwise "sudo freshclam" prints ERROR! But this is not enough!!! One has also to do: {{{ sudo mkdir -p /opt/local/share/clamav sudo chown 82:82 /opt/local/share/clamav sudo chmod 755 /opt/local/share/clamav }}} to avoid other ERRORS! Now {{{ sudo freshclam }}} updates the database but will it do the job automatically? Let's see in the next few days.. Why have you created a so annoying port installation? and why two packages? You need only one package which installs ClamAV and setups it so that the database is update automatically It should be obvious that the installation of an AV should came with a working default installation... -- Ticket URL: <https://trac.macports.org/ticket/50570> MacPorts <https://www.macports.org/> Ports system for OS X
#50570: Installing clamav/clamav-server is very annoying on MacPorts -----------------------------------+--------------------- Reporter: graziosi.angelo@… | Owner: dluke@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: clamav clamav-server | -----------------------------------+--------------------- Changes (by mf2k@…): * cc: pixilla@… (added) * owner: macports-tickets@… => dluke@… * port: clamav, clamav-server => clamav clamav-server Comment: In the future, please Cc the port maintainers ({{{port info --maintainers clamav clamav-server}}}), if any. -- Ticket URL: <https://trac.macports.org/ticket/50570#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#50570: Installing clamav/clamav-server is very annoying on MacPorts -----------------------------------+--------------------- Reporter: graziosi.angelo@… | Owner: dluke@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: clamav clamav-server | -----------------------------------+--------------------- Comment (by dluke@…): people may want to install/use clamav without running the server - hence the two ports. I know the port used to install the ${prefix}/share/clamav directory, but I guess an upstream change must have broken that (and I didn't notice it). -- Ticket URL: <https://trac.macports.org/ticket/50570#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
#50570: Installing clamav/clamav-server is very annoying on MacPorts -----------------------------------+----------------------- Reporter: graziosi.angelo@… | Owner: pixilla@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: clamav clamav-server | -----------------------------------+----------------------- Changes (by dluke@…): * cc: pixilla@… (removed) * owner: dluke@… => pixilla@… Comment: Replying to [comment:4 dluke@…]:
people may want to install/use clamav without running the server - hence the two ports. I know the port used to install the ${prefix}/share/clamav directory, but I guess an upstream change must have broken that (and I didn't notice it).
This probably belongs in the clamav-server port since it's the one that sets up the clamav user. Pixilla, feel free to add me back if you think something needs to change in the clamav port instead. -- Ticket URL: <https://trac.macports.org/ticket/50570#comment:5> MacPorts <https://www.macports.org/> Ports system for OS X
#50570: Installing clamav/clamav-server is very annoying on MacPorts -----------------------------------+----------------------- Reporter: graziosi.angelo@… | Owner: pixilla@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: clamav clamav-server | -----------------------------------+----------------------- Comment (by graziosi.angelo@…): Replying to [comment:4 dluke@…]:
people may want to install/use clamav without running the server
I don't understand why an user should "install/use clamav without" a mechanism to selfupdate its "vital" database... as occurs on other systems -- Ticket URL: <https://trac.macports.org/ticket/50570#comment:6> MacPorts <https://www.macports.org/> Ports system for OS X
#50570: Installing clamav/clamav-server is very annoying on MacPorts -----------------------------------+----------------------- Reporter: graziosi.angelo@… | Owner: pixilla@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: clamav clamav-server | -----------------------------------+----------------------- Comment (by dluke@…): Replying to [comment:6 graziosi.angelo@…]:
I don't understand why an user should "install/use clamav without" a mechanism to selfupdate its "vital" database... as occurs on other systems
you may want to update the db via cron (instead of running freshclam) you may be running on a host that only has periodic internet connection. Also, 'freshclam' running as a daemon doesn't necessarily mean you want 'clamd' running all the time. In any event, the port you want is 'clamav-server' which if you install also installs the 'clamav' port. So if the clamav-server is updated, you should be happy. -- Ticket URL: <https://trac.macports.org/ticket/50570#comment:7> MacPorts <https://www.macports.org/> Ports system for OS X
#50570: Installing clamav/clamav-server is very annoying on MacPorts -----------------------------------+----------------------- Reporter: graziosi.angelo@… | Owner: pixilla@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: clamav clamav-server | -----------------------------------+----------------------- Comment (by graziosi.angelo@…): Replying to [comment:7 dluke@…]:
Replying to [comment:6 graziosi.angelo@…]:
I don't understand why an user should "install/use clamav without" a mechanism to selfupdate its "vital" database... as occurs on other systems
you may want to update the db via cron (instead of running freshclam) you may be running on a host that only has periodic internet connection.
Also, 'freshclam' running as a daemon doesn't necessarily mean you want 'clamd' running all the time.
In any event, the port you want is 'clamav-server' which if you install also installs the 'clamav' port. So if the clamav-server is updated, you should be happy.
No, I fear that I will not be happy.. On GNU/linux I have installed *only* "clamav" and every time I run manually "sudo freshclam" I find that the database is already updated... -- Ticket URL: <https://trac.macports.org/ticket/50570#comment:8> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts