]> git.pld-linux.org Git - packages/clamav.git/blobdiff - clamav-pld_config.patch
- update to 0.90
[packages/clamav.git] / clamav-pld_config.patch
index 7ad436dfe1e56c5d48228461851e05124b36c759..8eb95cc7d8a6c93880ffcc4a46a62b766ba267b8 100644 (file)
-diff -urN clamav-0.66.org/etc/clamav.conf clamav-0.66/etc/clamav.conf
---- clamav-0.66.org/etc/clamav.conf    Wed Feb 11 11:51:14 2004
-+++ clamav-0.66/etc/clamav.conf        Wed Feb 11 11:52:00 2004
-@@ -5,12 +5,12 @@
+--- clamav-0.90rc2/etc/clamd.conf      2006-11-05 18:53:11.342468909 +0200
++++ clamav-0.90/etc/clamd.conf 2007-02-14 10:46:12.916118373 +0200
+@@ -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
++#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
-@@ -34,14 +34,14 @@
- #LogClean
+@@ -40,12 +40,12 @@
  
  # Use system logger (can work together with LogFile).
--#LogSyslog
-+LogSyslog
+ # Default: no
+-#LogSyslog yes
++LogSyslog yes
  
- # Enable verbose logging.
- #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
 +PidFile /var/run/clamav/clamd.pid
  
  # Optional path to the global temporary directory.
- # Default is system specific - usually /var/tmp or /tmp.
-@@ -58,10 +58,10 @@
- # 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.
+ # Default: system specific (usually /tmp or /var/tmp).
+@@ -69,11 +69,11 @@
+ # Path to a local socket file the daemon will listen on.
+ # Default: disabled (must be specified by a user)
 -LocalSocket /tmp/clamd
 +LocalSocket /var/lib/clamav/clamd.socket
  
  # Remove stale socket after unclean shutdown.
--#FixStaleSocket
-+FixStaleSocket
+ # Default: no
+-#FixStaleSocket yes
++FixStaleSocket yes
  
  # TCP port address.
- #TCPSocket 3310
-@@ -86,7 +86,7 @@
- # Maximal number of a threads running at the same time.
- # Default is 5, and it should be sufficient for a typical workstation.
- # You may need to increase threads number for a server machine.
--#MaxThreads 10
-+MaxThreads 10
- # Thread (scanner - single task) will be stopped after this time (seconds).
- # Default is 180. Value of 0 disables the timeout. SECURITY HINT: Increase the
-@@ -119,11 +119,11 @@
- # Run as selected user (clamd must be started by root).
- # By default it doesn't drop privileges.
+ # Default: no
+@@ -141,11 +141,11 @@
+ # Run as a selected user (clamd must be started by root).
+ # 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
- # Don't fork into background. Useful in debugging.
- #Foreground
-@@ -136,7 +136,7 @@
- ##
- # Uncomment this option if you are planning to scan mail files.
--#ScanMail
-+ScanMail
- ##
- ## Archive support
---- clamav-0.70/etc/freshclam.conf.orig        2004-04-17 00:42:13.000000000 +0200
-+++ clamav-0.70/etc/freshclam.conf     2004-04-20 03:27:50.230380664 +0200
-@@ -3,23 +3,28 @@
- ## Please read the clamav.conf(5) manual before editing this file.
- ## This file may be optionally merged with clamav.conf.
+ # Initialize supplementary group access (clamd must be started by root).
+ # Default: no
+-#AllowSupplementaryGroups no
++AllowSupplementaryGroups yes
+ # Stop daemon when libclamav reports out of memory condition.
+ #ExitOnOOM yes
+@@ -326,15 +326,15 @@
+ # Set access mask for Clamuko.
+ # Default: no
+-#ClamukoScanOnOpen yes
+-#ClamukoScanOnClose yes
+-#ClamukoScanOnExec yes
++ClamukoScanOnOpen yes
++ClamukoScanOnClose yes
++ClamukoScanOnExec yes
+ # 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.90rc2/etc/freshclam.conf  2006-10-16 02:38:54.000000000 +0300
++++ clamav-0.90rc2.pld/etc/freshclam.conf      2006-11-05 17:19:32.115904497 +0200
+@@ -2,10 +2,14 @@
+ ## Example config file for freshclam
+ ## Please read the freshclam.conf(5) manual before editing this file.
  ##
+-
 +## 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. 
++## only for that.
 +## But if you have arguments please tell us.
  
+ # Comment or remove the line below.
+-Example
++#Example
  
- # You can change the default database directory here.
- #DatabaseDirectory /var/lib/clamav
- # Path to the log file (make sure it has proper permissions)
--#UpdateLogFile /var/log/freshclam.log
-+UpdateLogFile /var/log/freshclam.log
+ # Path to the database directory.
+ # WARNING: It must match clamd.conf's directive!
+@@ -18,11 +22,11 @@
  
  # Enable verbose logging.
--#LogVerbose
-+LogVerbose
+ # Default: no
+-#LogVerbose yes
++LogVerbose yes
  
  # Use system logger (can work together with UpdateLogFile).
- #LogSyslog
- # By default when freshclam is started by root it drops privileges and
- # switches to the "clamav" user. You can change this behaviour here.
+ # Default: no
+-#LogSyslog yes
++LogSyslog yes
+ # Specify the type of syslog messages - please refer to 'man syslog'
+ # for facility names.
+@@ -36,7 +40,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
  
- # The main database mirror is database.clamav.net (this is a round-robin
- # DNS that points to many mirrors on the world) and in most cases you
-@@ -31,7 +36,7 @@
+ # Initialize supplementary group access (freshclam must be started by root).
+ # Default: no
+@@ -66,7 +70,7 @@
  
- # How often check for a new database. We suggest checking for it every
- # two hours.
--Checks 12
+ # Number of database checks per day.
+ # Default: 12 (every two hours)
+-#Checks 24
 +Checks 2
  
  # Proxy settings
- #HTTPProxyServer myproxy.com
-@@ -41,6 +46,7 @@
+ # Default: disabled
+@@ -88,7 +92,7 @@
  
  # Send the RELOAD command to clamd.
- #NotifyClamd [/optional/config/file/path]
-+NotifyClamd /etc/clamav.conf
+ # Default: no
+-#NotifyClamd /path/to/clamd.conf
++#NotifyClamd /etc/clamd.conf
  
- # Run command after database update.
- #OnUpdateExecute command
+ # Run command after successful database update.
+ # Default: disabled
This page took 0.070363 seconds and 4 git commands to generate.