Mailing List Archive

New Cmake options?
Hi all!
I've compiled Clamav for years with autoconf as prescribed for versions
103.x and earlier. My simple question now is the Cmake option for
disableing clamav at compilation. It used to be --disable-clamav. But now?
I can't see it from the new Cmake instructions for Clamav source 104.x.
Yes, I might be a bit slow LOL.

Regards, Ake Svensson, Sweden
Re: New Cmake options? [ In reply to ]
Hi Ake,

The new build system doesn't have an equivalent option for "--disable-clamav". But that should be okay. You shouldn't need it.

The previous Autotools build system had a feature to check the current machine for a clamav user and clamav group and would fail the build if the user or group did not exist. It used the discovered user and group names to override the default CLAMAVUSER and CLAMAVGROUP preprocessor macros (which would be "clamav") that it defines in the generated clamav-config.h file.

It essentially requires that the machine building ClamAV has the "clamav" user/group accounts in order to build ClamAV even though that may not necessarily be the same machine running ClamAV. As you know, you could disable this user/group requirement with the "--disable-clamav" option. I didn't include this build requirement when creating the new CMake build system as I don't believe it really adds much value.

You can still customize the default user and group names if you need to, by setting -D CLAMAV_USER=youruser and -D CLAMAV_GROUP=yourgroup.
Or you can set the user value with the "DatabaseOwner" option in freshclam.conf, and the "User" option in clamd.conf.

Regards,
Micah


Micah Snyder
ClamAV Development
Talos
Cisco Systems, Inc.
________________________________
From: clamav-users <clamav-users-bounces@lists.clamav.net> on behalf of ?ke Svensson via clamav-users <clamav-users@lists.clamav.net>
Sent: Monday, September 6, 2021 7:05 AM
To: clamav-users@lists.clamav.net <clamav-users@lists.clamav.net>
Cc: ?ke Svensson <webaake@gmail.com>
Subject: [clamav-users] New Cmake options?


Hi all!
I've compiled Clamav for years with autoconf as prescribed for versions 103.x and earlier. My simple question now is the Cmake option for disableing clamav at compilation. It used to be --disable-clamav. But now? I can't see it from the new Cmake instructions for Clamav source 104.x. Yes, I might be a bit slow LOL.

Regards, Ake Svensson, Sweden