summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clamav/build/clamav.conf.patch52
-rw-r--r--clamav/build/freshclam.conf.patch49
2 files changed, 101 insertions, 0 deletions
diff --git a/clamav/build/clamav.conf.patch b/clamav/build/clamav.conf.patch
new file mode 100644
index 00000000..0706e3cf
--- /dev/null
+++ b/clamav/build/clamav.conf.patch
@@ -0,0 +1,52 @@
+--- /clamd.conf.old 2005-05-11 03:43:05.000000000 +0200
++++ clamd.conf 2005-05-21 14:34:47.000000000 +0200
+@@ -11,7 +11,7 @@
+ # 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
+@@ -31,7 +31,7 @@
+
+ # Log time with each message.
+ # Default: disabled
+-#LogTime
++LogTime
+
+ # Also log clean files. Useful in debugging but drastically increases the
+ # log size.
+@@ -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: system specific (usually /tmp or /var/tmp).
+@@ -69,7 +69,7 @@
+
+ # Path to a local socket file the daemon will listen on.
+ # Default: disabled
+-LocalSocket /tmp/clamd
++LocalSocket /var/run/clamav/clamd
+
+ # Remove stale socket after unclean shutdown.
+ # Default: disabled
+@@ -141,11 +141,11 @@
+
+ # Run as a selected user (clamd must be started by root).
+ # Default: disabled
+-#User clamav
++User clamav
+
+ # Initialize supplementary group access (clamd must be started by root).
+ # Default: disabled
+-#AllowSupplementaryGroups
++AllowSupplementaryGroups
+
+ # Stop daemon when libclamav reports out of memory condition.
+ #ExitOnOOM
diff --git a/clamav/build/freshclam.conf.patch b/clamav/build/freshclam.conf.patch
new file mode 100644
index 00000000..e154c661
--- /dev/null
+++ b/clamav/build/freshclam.conf.patch
@@ -0,0 +1,49 @@
+--- freshclam.conf.old 2005-05-11 03:43:05.000000000 +0200
++++ freshclam.conf 2005-05-21 14:34:47.000000000 +0200
+@@ -15,7 +15,7 @@
+
+ # Path to the log file (make sure it has proper permissions)
+ # Default: disabled
+-#UpdateLogFile /var/log/freshclam.log
++UpdateLogFile /var/log/freshclam.log
+
+ # Enable verbose logging.
+ # Default: disabled
+@@ -32,16 +32,16 @@
+
+ # This option allows you to save the process identifier of the daemon
+ # Default: disabled
+-#PidFile /var/run/freshclam.pid
++PidFile /var/run/clamav/freshclam.pid
+
+ # 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: disabled
+-#AllowSupplementaryGroups
++AllowSupplementaryGroups
+
+ # Use DNS to verify virus database version. Freshclam uses DNS TXT records
+ # to verify database and software versions. With this directive you can change
+@@ -66,7 +66,7 @@
+
+ # Number of database checks per day.
+ # Default: 12 (every two hours)
+-#Checks 24
++Checks 24
+
+ # Proxy settings
+ # Default: disabled
+@@ -82,7 +82,7 @@
+
+ # Send the RELOAD command to clamd.
+ # Default: disabled
+-#NotifyClamd
++NotifyClamd
+ # By default it uses the hardcoded configuration file but you can force an
+ # another one.
+ #NotifyClamd /config/file/path