]> git.pld-linux.org Git - packages/clamav.git/blobdiff - clamav-pld_config.patch
- up for 0.92
[packages/clamav.git] / clamav-pld_config.patch
index 4fe52e643705ac508b7fc3e86e1a8b74c04fc749..2d692985714421419b046876dc0180a44c5a9e19 100644 (file)
-diff -urN clamav-0.60.orig/etc/clamav.conf clamav-0.60/etc/clamav.conf
---- clamav-0.60.orig/etc/clamav.conf   Thu Aug 28 14:14:08 2003
-+++ clamav-0.60/etc/clamav.conf        Thu Aug 28 14:15:09 2003
-@@ -5,12 +5,12 @@
-  
+--- clamav-0.92.orig/etc/clamd.conf    2007-12-06 13:59:09.000000000 +0100
++++ clamav-0.92/etc/clamd.conf 2007-12-17 21:48:15.000000000 +0100
+@@ -5,13 +5,13 @@
  
  # Comment or remove the line below.
 -Example
-+# Example
++#Example
  
  # Uncomment this option to enable logging.
- # LogFile must be writable for the user running the daemon.
- # Full path is required.
+ # LogFile must be writable for the user running daemon.
+ # A full path is required.
+ # Default: disabled
 -#LogFile /tmp/clamd.log
 +#LogFile /var/log/clamd.log
  
  # By default the log file is locked for writing - the lock protects against
  # running clamd multiple times (if want to run another clamd, please
-@@ -30,19 +30,20 @@
- #LogTime
+@@ -40,12 +40,12 @@
  
  # Use system logger (can work together with LogFile).
--#LogSyslog
-+LogSyslog
+ # Default: no
+-#LogSyslog yes
++LogSyslog yes
  
- # Enable verbose logging.
--#LogVerbose
-+# LogVerbose
+ # Specify the type of syslog messages - please refer to 'man syslog'
+ # for facility names.
+ # Default: LOG_LOCAL6
+-#LogFacility LOG_MAIL
++LogFacility LOG_MAIL
  
- # This option allows you to save the process identifier of the listening
+ # Enable verbose logging.
+ # Default: no
+@@ -54,7 +54,7 @@
+ # This option allows you to save a process identifier of the listening
  # daemon (main thread).
+ # Default: disabled
 -#PidFile /var/run/clamd.pid
-+# We use dir becouse covering clamd.pid file couse default rights are sane.
-+PidFile /var/run/clamav/clamd.pid 
- # Path to a directory containing .db files.
- # Default is the hardcoded directory (mostly /usr/local/share/clamav,
- # it depends on installation options).
--#DataDirectory /var/lib/clamav
-+DataDirectory /var/lib/clamav
-  
- # The daemon works in local or network mode. Currently the local mode is
- # recommended for security reasons.
-@@ -50,7 +51,9 @@
- # Path to the local socket. The daemon doesn't change the mode of the
- # created file (portability reasons). You may want to create it in a directory
- # which is only accessible for a user running daemon.
--LocalSocket /tmp/clamd
-+# LocalSocket /var/run/clamav/clamd.socket
-+
-+LocalSocket /var/lib/clamav/clamd.socket
- # TCP port address.
- #TCPSocket 3310
-@@ -93,11 +96,11 @@
- # Run as selected user (clamd must be started by root).
- # By default it doesn't drop privileges.
++PidFile /var/run/clamav/clamd.pid
+ # Optional path to the global temporary directory.
+ # Default: system specific (usually /tmp or /var/tmp).
+@@ -141,11 +141,11 @@
+ # Run as another user (clamd must be started by root for this option to work)
+ # Default: don't drop privileges
 -#User clamav
 +User clamav
  
- # Initialize the supplementary group access (for all groups in /etc/group
- # user is added in. clamd must be started by root).
--#AllowSupplementaryGroups
-+AllowSupplementaryGroups
+ # Initialize supplementary group access (clamd must be started by root).
+ # Default: no
+-#AllowSupplementaryGroups no
++AllowSupplementaryGroups yes
  
- # Don't fork into background. Useful in debugging.
- #Foreground
-@@ -107,13 +110,12 @@
- ##
+ # Stop daemon when libclamav reports out of memory condition.
+ #ExitOnOOM yes
+@@ -327,15 +327,15 @@
  
- # Uncomment this option if you are planning to scan mail files.
--#ScanMail
-+ScanMail
+ # Set access mask for Clamuko.
+ # Default: no
+-#ClamukoScanOnOpen yes
+-#ClamukoScanOnClose yes
+-#ClamukoScanOnExec yes
++ClamukoScanOnOpen yes
++ClamukoScanOnClose yes
++ClamukoScanOnExec yes
  
- ##
- ## Archive support
- ##
+ # Set the include paths (all files inside them will be scanned). You can have
+ # multiple ClamukoIncludePath directives but each directory must be added
+ # in a seperate line.
+ # Default: disabled
+-#ClamukoIncludePath /home
++ClamukoIncludePath /home
+ #ClamukoIncludePath /students
  
+ # Set the exclude paths. All subdirectories are also excluded.
+--- clamav-0.92.orig/etc/freshclam.conf        2007-12-06 13:59:09.000000000 +0100
++++ clamav-0.92/etc/freshclam.conf     2007-12-17 21:48:15.000000000 +0100
+@@ -2,10 +2,14 @@
+ ## Example config file for freshclam
+ ## Please read the freshclam.conf(5) manual before editing this file.
+ ##
 -
- # Comment this line to disable scanning of the archives.
- ScanArchive
++## PLD NOTE: Note that freshclam is called periodically via cron
++## Check /etc/sysconfig/clamd for details
++## Seems better to run task once per period than keep daemon running
++## only for that.
++## But if you have arguments please tell us.
+ # Comment or remove the line below.
+-Example
++#Example
+ # Path to the database directory.
+ # WARNING: It must match clamd.conf's directive!
+@@ -30,11 +34,11 @@
+ # Enable verbose logging.
+ # Default: no
+-#LogVerbose yes
++LogVerbose yes
+ # Use system logger (can work together with UpdateLogFile).
+ # Default: no
+-#LogSyslog yes
++LogSyslog yes
+ # Specify the type of syslog messages - please refer to 'man syslog'
+ # for facility names.
+@@ -48,7 +52,7 @@
+ # By default when started freshclam drops privileges and switches to the
+ # "clamav" user. This directive allows you to change the database owner.
+ # Default: clamav (may depend on installation options)
+-#DatabaseOwner clamav
++DatabaseOwner clamav
+ # Initialize supplementary group access (freshclam must be started by root).
+ # Default: no
+@@ -82,7 +86,7 @@
+ # Number of database checks per day.
+ # Default: 12 (every two hours)
+-#Checks 24
++Checks 2
+ # Proxy settings
+ # Default: disabled
+@@ -104,7 +108,7 @@
+ # Send the RELOAD command to clamd.
+ # Default: no
+-#NotifyClamd /path/to/clamd.conf
++#NotifyClamd /etc/clamd.conf
  
+ # Run command after successful database update.
+ # Default: disabled
This page took 0.035601 seconds and 4 git commands to generate.