]> git.pld-linux.org Git - packages/clamav.git/blob - clamav-pld_config.patch
- package more static libs
[packages/clamav.git] / clamav-pld_config.patch
1 diff -ur clamav-1.2.0.org/etc/clamav-milter.conf.sample clamav-1.2.0/etc/clamav-milter.conf.sample
2 --- clamav-1.2.0.org/etc/clamav-milter.conf.sample      2023-08-27 00:00:24.000000000 +0200
3 +++ clamav-1.2.0/etc/clamav-milter.conf.sample  2023-09-05 10:47:53.869998771 +0200
4 @@ -3,7 +3,7 @@
5  ##
6  
7  # Comment or remove the line below.
8 -Example
9 +#Example
10  
11  
12  ##
13 @@ -20,10 +20,11 @@
14  #MilterSocket /run/clamav/clamav-milter.sock
15  #MilterSocket /tmp/clamav-milter.sock
16  #MilterSocket inet:7357
17 +MilterSocket /var/lib/clamav/clamav-milter.socket
18  
19  # Define the group ownership for the (unix) milter socket.
20  # Default: disabled (the primary group of the user running clamd)
21 -#MilterSocketGroup virusgroup
22 +#MilterSocketGroup clamav
23  
24  # Sets the permissions on the (unix) milter socket to the specified mode.
25  # Default: disabled (obey umask)
26 @@ -66,6 +67,7 @@
27  #
28  # Default: disabled
29  #PidFile /run/clamav/clamav-milter.pid
30 +PidFile /var/run/clamav/clamav-milter.pid
31  
32  # Optional path to the global temporary directory.
33  # Default: system specific (usually /tmp or /var/tmp).
34 @@ -94,7 +96,7 @@
35  # Default: no default
36  #ClamdSocket tcp:scanner.mydomain:7357
37  #ClamdSocket unix:/run/clamav/clamd.sock
38 -
39 +ClamdSocket unix:/var/lib/clamav/clamd.socket
40  
41  ##
42  ## Exclusions
43 @@ -243,13 +245,13 @@
44  # Use system logger (can work together with LogFile).
45  #
46  # Default: no
47 -#LogSyslog yes
48 +LogSyslog yes
49  
50  # Specify the type of syslog messages - please refer to 'man syslog'
51  # for facility names.
52  #
53  # Default: LOG_LOCAL6
54 -#LogFacility LOG_MAIL
55 +LogFacility LOG_MAIL
56  
57  # Enable verbose logging.
58  #
59 Only in clamav-1.2.0/etc: clamav-milter.conf.sample~
60 Only in clamav-1.2.0/etc: clamav-milter.conf.sample.orig
61 Only in clamav-1.2.0/etc: clamav-milter.conf.sample.rej
62 diff -ur clamav-1.2.0.org/etc/clamd.conf.sample clamav-1.2.0/etc/clamd.conf.sample
63 --- clamav-1.2.0.org/etc/clamd.conf.sample      2023-08-27 00:00:24.000000000 +0200
64 +++ clamav-1.2.0/etc/clamd.conf.sample  2023-09-05 10:48:39.263332082 +0200
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 @@ -75,6 +75,7 @@
97  # also owned by root to keep other users from tampering with it.
98  # Default: disabled
99  #PidFile /run/clamav/clamd.pid
100 +PidFile /var/run/clamav/clamd.pid
101  
102  # Optional path to the global temporary directory.
103  # Default: system specific (usually /tmp or /var/tmp).
104 @@ -100,10 +101,11 @@
105  # Default: disabled (must be specified by a user)
106  #LocalSocket /run/clamav/clamd.sock
107  #LocalSocket /tmp/clamd.sock
108 +LocalSocket /var/lib/clamav/clamd.socket
109  
110  # Sets the group ownership on the unix socket.
111  # Default: disabled (the primary group of the user running clamd)
112 -#LocalSocketGroup virusgroup
113 +#LocalSocketGroup clamav
114  
115  # Sets the permissions on the unix socket to the specified mode.
116  # Default: disabled (socket is world accessible)
117 @@ -224,7 +226,7 @@
118  
119  # Run as another user (clamd must be started by root for this option to work)
120  # Default: don't drop privileges
121 -#User clamav
122 +User clamav
123  
124  # Stop daemon when libclamav reports out of memory condition.
125  #ExitOnOOM yes
126 Only in clamav-1.2.0/etc: clamd.conf.sample.orig
127 Only in clamav-1.2.0/etc: clamd.conf.sample.rej
128 diff -ur clamav-1.2.0.org/etc/freshclam.conf.sample clamav-1.2.0/etc/freshclam.conf.sample
129 --- clamav-1.2.0.org/etc/freshclam.conf.sample  2023-08-27 00:00:24.000000000 +0200
130 +++ clamav-1.2.0/etc/freshclam.conf.sample      2023-09-05 10:47:06.513332122 +0200
131 @@ -3,9 +3,14 @@
132  ## Please read the freshclam.conf(5) manual before editing this file.
133  ##
134  
135 +## PLD NOTE: Note that freshclam is called periodically via cron
136 +## Check /etc/sysconfig/clamd for details
137 +## Seems better to run task once per period than keep daemon running
138 +## only for that.
139 +## But if you have arguments please tell us.
140  
141  # Comment or remove the line below.
142 -Example
143 +#Example
144  
145  # Path to the database directory.
146  # WARNING: It must match clamd.conf's directive!
147 @@ -35,7 +40,7 @@
148  
149  # Use system logger (can work together with UpdateLogFile).
150  # Default: no
151 -#LogSyslog yes
152 +LogSyslog yes
153  
154  # Specify the type of syslog messages - please refer to 'man syslog'
155  # for facility names.
156 @@ -57,7 +62,7 @@
157  # By default when started freshclam drops privileges and switches to the
158  # "clamav" user. This directive allows you to change the database owner.
159  # Default: clamav (may depend on installation options)
160 -#DatabaseOwner clamav
161 +DatabaseOwner clamav
162  
163  # Use DNS to verify virus database version. FreshClam uses DNS TXT records
164  # to verify database and software versions. With this directive you can change
165 @@ -116,7 +121,7 @@
166  
167  # Number of database checks per day.
168  # Default: 12 (every two hours)
169 -#Checks 24
170 +Checks 2
171  
172  # Proxy settings
173  # The HTTPProxyServer may be prefixed with [scheme]:// to specify which kind
174 @@ -148,7 +153,7 @@
175  
176  # Send the RELOAD command to clamd.
177  # Default: no
178 -#NotifyClamd /path/to/clamd.conf
179 +#NotifyClamd /etc/clamd.conf
180  
181  # Run command after successful database update.
182  # Use EXIT_1 to return 1 after successful database update.
183 Only in clamav-1.2.0/etc: freshclam.conf.sample.orig
This page took 0.099868 seconds and 4 git commands to generate.