Hi there, On Sat, 19 Nov 2022, Mark Allan wrote:
I'm trying to build the ClamAV 1.0.0 RC and saw this in the documentation
"Some of the dependencies are optional if you elect to not build all of the command line applications, or elect to only build the libclamav library. Specifically: libcurl: required for libfreshclam, freshclam, clamsubmit, clamonacc ncurses: required for clamdtop" I don't need any of those binaries but I can't see how to specify that in the CMake configuration call. I've had a look at the INSTALL.md file within the source directory but the only feature I seem to be able to disable is "clamonacc". The ENABLE_APP option seems to turn on/off all of the programs rather than letting me pick and choose. All I really need is clamd, clamdscan, clamscan and sigtool. Is there a way to achieve that without building everything and deleting the bits I don't want?
DISCLAIMER: The CMake system is completely new to me so I don't know what the "correct" way to do things like this might be, but if you look at around line 1051 in CMakeLists.txt you'll see this: 8<---------------------------------------------------------------------- if(NOT ENABLE_LIBCLAMAV_ONLY) add_subdirectory( common ) add_subdirectory( libfreshclam ) if(ENABLE_APP) # Build targets for primary applications. add_subdirectory( clamconf ) add_subdirectory( clamd ) add_subdirectory( clamdscan ) if(C_LINUX AND ENABLE_CLAMONACC) add_subdirectory( clamonacc ) endif() if(ENABLE_MILTER) add_subdirectory( clamav-milter ) endif() add_subdirectory( clamscan ) add_subdirectory( sigtool ) add_subdirectory( clambc ) add_subdirectory( clamsubmit ) add_subdirectory( freshclam ) add_subdirectory( clamdtop ) if(WIN32) add_subdirectory( win32/conf_examples ) else() add_subdirectory( etc ) endif() endif() endif() 8<---------------------------------------------------------------------- My guess from that (because of the part about ENABLE_MILTER) is that if you simply edit this file to prevent creation of the subdirectories for the relevant binaries you'll at least prevent them from being built. Whether the result will be what you want remains to be seen... -- 73, Ged. _______________________________________________ clamav-devel mailing list clamav-devel@lists.clamav.net https://lists.clamav.net/mailman/listinfo/clamav-devel Please submit your patches to our Github: https://github.com/Cisco-Talos/clamav-devel/pulls Help us build a comprehensive ClamAV guide: https://github.com/vrtadmin/clamav-faq http://www.clamav.net/contact.html#ml