]> git.pld-linux.org Git - packages/clamav.git/blobdiff - clamav-pld_config.patch
- add systemd tmpfiles config
[packages/clamav.git] / clamav-pld_config.patch
index 08381939bf8eaa38aecc4926a3545a382a9e4466..4cb395886e37bef1683eb7e9723d2f2889d91431 100644 (file)
@@ -1,6 +1,76 @@
-diff -uNr clamav-0.91.orig/etc/clamd.conf clamav-0.91/etc/clamd.conf
---- clamav-0.91.orig/etc/clamd.conf    2007-07-05 23:52:20.000000000 +0200
-+++ clamav-0.91/etc/clamd.conf 2007-07-12 14:45:44.125622000 +0200
+diff -ur clamav-0.97.1/etc//clamav-milter.conf clamav-0.97.1.new/etc//clamav-milter.conf
+--- clamav-0.97.1/etc//clamav-milter.conf      2011-01-10 18:48:28.000000000 +0100
++++ clamav-0.97.1.new/etc//clamav-milter.conf  2011-07-14 18:24:02.801795736 +0200
+@@ -3,7 +3,7 @@
+ ##
+ # Comment or remove the line below.
+-Example
++#Example
+ ##
+@@ -17,12 +17,12 @@
+ # inet6:port@[hostname|ip-address] - to specify an ipv6 socket
+ #
+ # Default: no default
+-#MilterSocket /tmp/clamav-milter.socket
++MilterSocket /var/lib/clamav/clamav-milter.socket
+ #MilterSocket inet:7357
+ # Define the group ownership for the (unix) milter socket.
+ # Default: disabled (the primary group of the user running clamd)
+-#MilterSocketGroup virusgroup
++#MilterSocketGroup clamav
+ # Sets the permissions on the (unix) milter socket to the specified mode.
+ # Default: disabled (obey umask)
+@@ -41,7 +41,7 @@
+ # Initialize supplementary group access (clamav-milter must be started by root).
+ #
+ # Default: no
+-#AllowSupplementaryGroups no
++AllowSupplementaryGroups yes
+ # Waiting for data from clamd will timeout after this time (seconds).
+ # Value of 0 disables the timeout.
+@@ -64,7 +64,7 @@
+ # daemon (main thread).
+ #
+ # Default: disabled
+-#PidFile /var/run/clamav-milter.pid
++PidFile /var/run/clamav/clamav-milter.pid
+ # Optional path to the global temporary directory.
+ # Default: system specific (usually /tmp or /var/tmp).
+@@ -90,7 +90,7 @@
+ # with the same socket: clamd servers will be selected in a round-robin fashion.
+ #
+ # Default: no default
+-#ClamdSocket tcp:scanner.mydomain:7357
++ClamdSocket /var/lib/clamav/clamd.socket
+ ##
+@@ -238,13 +238,13 @@
+ # Use system logger (can work together with LogFile).
+ #
+ # Default: no
+-#LogSyslog yes
++LogSyslog yes
+ # Specify the type of syslog messages - please refer to 'man syslog'
+ # for facility names.
+ #
+ # Default: LOG_LOCAL6
+-#LogFacility LOG_MAIL
++LogFacility LOG_MAIL
+ # Enable verbose logging.
+ #
+diff -ur clamav-0.97.1/etc//clamd.conf clamav-0.97.1.new/etc//clamd.conf
+--- clamav-0.97.1/etc//clamd.conf      2011-05-13 13:25:31.000000000 +0200
++++ clamav-0.97.1.new/etc//clamd.conf  2011-07-14 18:19:05.824861957 +0200
 @@ -5,13 +5,13 @@
  
  
@@ -32,7 +102,7 @@ diff -uNr clamav-0.91.orig/etc/clamd.conf clamav-0.91/etc/clamd.conf
  
  # Enable verbose logging.
  # Default: no
-@@ -54,7 +54,7 @@
+@@ -58,7 +58,7 @@
  # This option allows you to save a process identifier of the listening
  # daemon (main thread).
  # Default: disabled
@@ -41,23 +111,23 @@ diff -uNr clamav-0.91.orig/etc/clamd.conf clamav-0.91/etc/clamd.conf
  
  # Optional path to the global temporary directory.
  # Default: system specific (usually /tmp or /var/tmp).
-@@ -69,11 +69,11 @@
+@@ -77,11 +77,11 @@
  
  # Path to a local socket file the daemon will listen on.
  # Default: disabled (must be specified by a user)
--LocalSocket /tmp/clamd.socket
+-#LocalSocket /tmp/clamd.socket
 +LocalSocket /var/lib/clamav/clamd.socket
  
- # Remove stale socket after unclean shutdown.
- # Default: no
--#FixStaleSocket yes
-+FixStaleSocket yes
+ # Sets the group ownership on the unix socket.
+ # Default: disabled (the primary group of the user running clamd)
+-#LocalSocketGroup virusgroup
++#LocalSocketGroup clamav
  
- # TCP port address.
- # Default: no
-@@ -142,11 +142,11 @@
- # Run as another user (clamd must be started by root to make this option
- # working).
+ # Sets the permissions on the unix socket to the specified mode.
+ # Default: disabled (socket is world accessible)
+@@ -186,11 +186,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
@@ -69,9 +139,9 @@ diff -uNr clamav-0.91.orig/etc/clamd.conf clamav-0.91/etc/clamd.conf
  
  # Stop daemon when libclamav reports out of memory condition.
  #ExitOnOOM yes
-@@ -328,15 +328,15 @@
+@@ -443,15 +443,15 @@
  
- # Set access mask for Clamuko.
+ # Set access mask for Clamuko (Dazuko only).
  # Default: no
 -#ClamukoScanOnOpen yes
 -#ClamukoScanOnClose yes
@@ -82,21 +152,20 @@ diff -uNr clamav-0.91.orig/etc/clamd.conf clamav-0.91/etc/clamd.conf
  
  # 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.
+ # in a seperate line. (Dazuko only)
  # Default: disabled
 -#ClamukoIncludePath /home
 +ClamukoIncludePath /home
  #ClamukoIncludePath /students
  
- # Set the exclude paths. All subdirectories are also excluded.
-diff -uNr clamav-0.91.orig/etc/freshclam.conf clamav-0.91/etc/freshclam.conf
---- clamav-0.91.orig/etc/freshclam.conf        2007-02-17 20:13:49.000000000 +0100
-+++ clamav-0.91/etc/freshclam.conf     2007-07-12 14:49:25.623464750 +0200
-@@ -2,10 +2,14 @@
- ## Example config file for freshclam
+ # Set the exclude paths. All subdirectories are also excluded. (Dazuko only)
+diff -ur clamav-0.97.1/etc//freshclam.conf clamav-0.97.1.new/etc//freshclam.conf
+--- clamav-0.97.1/etc//freshclam.conf  2011-01-10 18:48:28.000000000 +0100
++++ clamav-0.97.1.new/etc//freshclam.conf      2011-07-14 18:14:32.705707450 +0200
+@@ -3,9 +3,14 @@
  ## 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
@@ -109,7 +178,7 @@ diff -uNr clamav-0.91.orig/etc/freshclam.conf clamav-0.91/etc/freshclam.conf
  
  # Path to the database directory.
  # WARNING: It must match clamd.conf's directive!
-@@ -18,11 +22,11 @@
+@@ -30,11 +35,11 @@
  
  # Enable verbose logging.
  # Default: no
@@ -123,7 +192,7 @@ diff -uNr clamav-0.91.orig/etc/freshclam.conf clamav-0.91/etc/freshclam.conf
  
  # Specify the type of syslog messages - please refer to 'man syslog'
  # for facility names.
-@@ -36,7 +40,7 @@
+@@ -48,7 +53,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)
@@ -132,7 +201,7 @@ diff -uNr clamav-0.91.orig/etc/freshclam.conf clamav-0.91/etc/freshclam.conf
  
  # Initialize supplementary group access (freshclam must be started by root).
  # Default: no
-@@ -70,7 +74,7 @@
+@@ -96,7 +101,7 @@
  
  # Number of database checks per day.
  # Default: 12 (every two hours)
@@ -141,7 +210,7 @@ diff -uNr clamav-0.91.orig/etc/freshclam.conf clamav-0.91/etc/freshclam.conf
  
  # Proxy settings
  # Default: disabled
-@@ -92,7 +96,7 @@
+@@ -118,7 +123,7 @@
  
  # Send the RELOAD command to clamd.
  # Default: no
This page took 0.0374 seconds and 4 git commands to generate.