]> TLD Linux GIT Repositories - packages/clamav.git/blob - clamav-config.patch
- updated to 0.100.0
[packages/clamav.git] / clamav-config.patch
1 diff -ur clamav-0.100.0.orig/etc/clamav-milter.conf.sample clamav-0.100.0/etc/clamav-milter.conf.sample
2 --- clamav-0.100.0.orig/etc/clamav-milter.conf.sample   2018-05-28 14:42:59.566979794 +0000
3 +++ clamav-0.100.0/etc/clamav-milter.conf.sample        2018-05-28 14:45:47.337977905 +0000
4 @@ -3,7 +3,7 @@
5  ##
6  
7  # Comment or remove the line below.
8 -Example
9 +#Example
10  
11  
12  ##
13 @@ -17,12 +17,12 @@
14  # inet6:port@[hostname|ip-address] - to specify an ipv6 socket
15  #
16  # Default: no default
17 -#MilterSocket /tmp/clamav-milter.socket
18 +MilterSocket /var/lib/clamav/clamav-milter.socket
19  #MilterSocket inet:7357
20  
21  # Define the group ownership for the (unix) milter socket.
22  # Default: disabled (the primary group of the user running clamd)
23 -#MilterSocketGroup virusgroup
24 +#MilterSocketGroup clamav
25  
26  # Sets the permissions on the (unix) milter socket to the specified mode.
27  # Default: disabled (obey umask)
28 @@ -61,7 +61,7 @@
29  # daemon (main thread).
30  #
31  # Default: disabled
32 -#PidFile /var/run/clamav-milter.pid
33 +PidFile /var/run/clamav/clamav-milter.pid
34  
35  # Optional path to the global temporary directory.
36  # Default: system specific (usually /tmp or /var/tmp).
37 @@ -88,7 +88,7 @@
38  # fashion.
39  #
40  # Default: no default
41 -#ClamdSocket tcp:scanner.mydomain:7357
42 +ClamdSocket /var/lib/clamav/clamd.socket
43  
44  
45  ##
46 @@ -238,13 +238,13 @@
47  # Use system logger (can work together with LogFile).
48  #
49  # Default: no
50 -#LogSyslog yes
51 +LogSyslog yes
52  
53  # Specify the type of syslog messages - please refer to 'man syslog'
54  # for facility names.
55  #
56  # Default: LOG_LOCAL6
57 -#LogFacility LOG_MAIL
58 +LogFacility LOG_MAIL
59  
60  # Enable verbose logging.
61  #
62 diff -ur clamav-0.100.0.orig/etc/clamd.conf.sample clamav-0.100.0/etc/clamd.conf.sample
63 --- clamav-0.100.0.orig/etc/clamd.conf.sample   2018-05-28 14:42:59.566979794 +0000
64 +++ clamav-0.100.0/etc/clamd.conf.sample        2018-05-28 14:46:31.706977405 +0000
65 @@ -5,13 +5,13 @@
66  
67  
68  # Comment or remove the line below.
69 -Example
70 +#Example
71  
72  # Uncomment this option to enable logging.
73  # LogFile must be writable for the user running daemon.
74  # A full path is required.
75  # Default: disabled
76 -#LogFile /tmp/clamd.log
77 +#LogFile /var/log/clamd.log
78  
79  # By default the log file is locked for writing - the lock protects against
80  # running clamd multiple times (if want to run another clamd, please
81 @@ -41,12 +41,12 @@
82  
83  # Use system logger (can work together with LogFile).
84  # Default: no
85 -#LogSyslog yes
86 +LogSyslog yes
87  
88  # Specify the type of syslog messages - please refer to 'man syslog'
89  # for facility names.
90  # Default: LOG_LOCAL6
91 -#LogFacility LOG_MAIL
92 +LogFacility LOG_MAIL
93  
94  # Enable verbose logging.
95  # Default: no
96 @@ -71,7 +71,7 @@
97  # This option allows you to save a process identifier of the listening
98  # daemon (main thread).
99  # Default: disabled
100 -#PidFile /var/run/clamd.pid
101 +PidFile /var/run/clamav/clamd.pid
102  
103  # Optional path to the global temporary directory.
104  # Default: system specific (usually /tmp or /var/tmp).
105 @@ -90,11 +90,11 @@
106  
107  # Path to a local socket file the daemon will listen on.
108  # Default: disabled (must be specified by a user)
109 -#LocalSocket /tmp/clamd.socket
110 +LocalSocket /var/lib/clamav/clamd.socket
111  
112  # Sets the group ownership on the unix socket.
113  # Default: disabled (the primary group of the user running clamd)
114 -#LocalSocketGroup virusgroup
115 +#LocalSocketGroup clamav
116  
117  # Sets the permissions on the unix socket to the specified mode.
118  # Default: disabled (socket is world accessible)
119 @@ -204,7 +204,7 @@
120  
121  # Run as another user (clamd must be started by root for this option to work)
122  # Default: don't drop privileges
123 -#User clamav
124 +User clamav
125  
126  # Stop daemon when libclamav reports out of memory condition.
127  #ExitOnOOM yes
128 diff -ur clamav-0.100.0.orig/etc/freshclam.conf.sample clamav-0.100.0/etc/freshclam.conf.sample
129 --- clamav-0.100.0.orig/etc/freshclam.conf.sample       2018-05-28 14:42:59.566979794 +0000
130 +++ clamav-0.100.0/etc/freshclam.conf.sample    2018-05-28 14:45:47.337977905 +0000
131 @@ -3,9 +3,11 @@
132  ## Please read the freshclam.conf(5) manual before editing this file.
133  ##
134  
135 +## TLD NOTE: freshclam is called periodically via cron, check
136 +## /etc/sysconfig/clamd for details.
137  
138  # Comment or remove the line below.
139 -Example
140 +#Example
141  
142  # Path to the database directory.
143  # WARNING: It must match clamd.conf's directive!
144 @@ -31,11 +33,11 @@
145  
146  # Enable verbose logging.
147  # Default: no
148 -#LogVerbose yes
149 +LogVerbose yes
150  
151  # Use system logger (can work together with UpdateLogFile).
152  # Default: no
153 -#LogSyslog yes
154 +LogSyslog yes
155  
156  # Specify the type of syslog messages - please refer to 'man syslog'
157  # for facility names.
158 @@ -53,7 +55,7 @@
159  # By default when started freshclam drops privileges and switches to the
160  # "clamav" user. This directive allows you to change the database owner.
161  # Default: clamav (may depend on installation options)
162 -#DatabaseOwner clamav
163 +DatabaseOwner clamav
164  
165  # Use DNS to verify virus database version. Freshclam uses DNS TXT records
166  # to verify database and software versions. With this directive you can change
167 @@ -110,7 +112,7 @@
168  
169  # Number of database checks per day.
170  # Default: 12 (every two hours)
171 -#Checks 24
172 +Checks 2
173  
174  # Proxy settings
175  # Default: disabled
176 @@ -132,7 +134,7 @@
177  
178  # Send the RELOAD command to clamd.
179  # Default: no
180 -#NotifyClamd /path/to/clamd.conf
181 +#NotifyClamd /etc/clamd.conf
182  
183  # Run command after successful database update.
184  # Default: disabled