]> git.pld-linux.org Git - packages/amavis.git/blob - amavis-config.patch
- drop obsolete and outdated manual inclusion of rpm macros
[packages/amavis.git] / amavis-config.patch
1 diff -Nur old/amavis/amavis.conf.in new/amavis/amavis.conf.in
2 --- old/amavis/amavis.conf.in   1970-01-01 00:00:00.000000000 +0000
3 +++ new/amavis/amavis.conf.in   2004-07-12 16:20:42.000000000 +0000
4 @@ -0,0 +1,218 @@
5 +################################################################################
6 +# Customisable variable from here on
7 +################################################################################
8 +
9 +#
10 +# Av scanners
11 +
12 +# NAI AntiVirus (uvscan)
13 +$uvscan = "@uvscan@";
14 +
15 +# H+BEDV AntiVir
16 +$antivir = "@antivir@";
17 +
18 +# Sophos Anti Virus (sweep)
19 +$sophos = "@sophos@";
20 +$sophos_ide_path = "@sophos_ide@";
21 +
22 +# KasperskyLab AntiViral Toolkit Pro (AVP)
23 +$avp = "@avp@";
24 +$AVPDIR = dirname($avp);
25 +
26 +# KasperskyLab AVPDaemon / AvpDaemonClient
27 +#
28 +# use AvpDaemon and AvpDaemonClient
29 +# Note: AvpDaemon must be started before amavisd!
30 +# AvpDaemon should be started at boot time as AvpDaemon -* /var/amavis
31 +$avpdc = "@avpdc@";
32 +
33 +# F-Secure Antivirus
34 +$fsav = "@fsav@";
35 +
36 +# Trend Micro FileScanner
37 +$vscan = "@vscan@";
38 +
39 +# CyberSoft VFind
40 +$vfind = "@vfind@";
41 +
42 +# CAI InoculateIT
43 +$inocucmd = "@inocucmd@";
44 +
45 +# GeCAD RAV Antivirus 8
46 +$rav = "@rav@";
47 +
48 +# ESET Software NOD32
49 +$nod32 = "@nod32@";
50 +
51 +# ESET Software NOD32 (Client/Server Version)
52 +$nod32cli = "@nod32cli@";
53 +
54 +# Command AntiVirus for Linux
55 +$csav = "@csav@";
56 +
57 +# VirusBuster (Daemon + Client)
58 +$vbengcl = "@vbengcl@";
59 +
60 +# Symantec CarrierScan via Symantec Command Line Scannner
61 +$cscmdline = "@cscmdline@";
62 +$scs_host = "@scs_host@";  # host/IP CarrierScan runs on
63 +$scs_port = "@scs_port@";  # port CarrierScan listens on
64 +
65 +# Sophie (Sophos SAVI)
66 +$sophie_sockname = "@sophie_sockname@";
67 +
68 +# Trophie (Trend API)
69 +$trophie_sockname = "@trophie_sockname@";
70 +
71 +# FRISK F-Prot
72 +$fprot = "@fprot@";
73 +
74 +# FRISK F-Prot Daemon
75 +$fprotd = "@fprotd@";
76 +
77 +# Panda Antivirus for Linux
78 +$panda = "@panda@";
79 +
80 +# CentralCommand Vexira
81 +$vexira = "@vexira@";
82 +
83 +# OpenAntiVirus ScannerDaemon
84 +$oav = "@oav@";
85 +
86 +# DrWeb Antivirus for Linux/FreeBSD/Solaris
87 +$drweb = "@drweb@";
88 +
89 +# MkS_Vir for Linux (beta)
90 +$mks = "@mks@";
91 +
92 +# MkS_Vir Daemon for Linux (beta)
93 +$mksd = "@mksd@";
94 +
95 +# Norman Virus Control 
96 +$norman = "@norman@";
97 +
98 +# Clam Antivirus
99 +$clamscan = "@clamscan@";
100 +
101 +$clamd = "@clamd@";
102 +
103 +# Ikarus AntiVirus
104 +$ikarus = "@ikarus@";
105 +
106 +# AVG Anti-Virus
107 +$avg = "@avg@";
108 +$avgd = "@avgd@";
109 +
110 +#
111 +# Logging
112 +
113 +# yes - syslog, no - file logging
114 +$do_syslog = "@do_syslog@";
115 +
116 +# Directory to put log entries (if not using syslog)
117 +$LOGDIR = "@logdir@";
118 +$LOGFILE = "amavis.log";
119 +
120 +# 0: default - startup/exit/failure messages
121 +# 1: args passed from client
122 +# 2: virus scanner output
123 +# 3: server client
124 +# 4: decompose parts
125 +$log_level = 0;
126 +
127 +#
128 +# Notification etc.
129 +
130 +# Notify admin/sender/recipient [yes/no]?
131 +$warnadmin = "@warnadmin@";
132 +$warnsender = "@warnsender@";
133 +$warnrecip = "@warnrecip@";
134 +
135 +# Notify off-site recipients?
136 +$warn_offsite = "no";
137 +
138 +# requeue if all virus scanners failed
139 +$requeue_on_scanner_errors = "yes";
140 +
141 +#
142 +$viruses_that_fake_sender_re = qr(/(?i)nimda|hybris|klez|bugbear|yaha|braid|sobig|fizzer|palyh|peido|holar|tanatos|lentin|bridex|mimail|trojan\.dropper|dumaru|parite|spaces|dloader|galil|gibe|swen|netwatch|bics|sbrowse|sober|rox|val(hal)?la|be?agle/);
143 +
144 +# List of local domains
145 +# e.g. @local_domains = qw( dom.ain other.dom.ain );
146 +@local_domains = qw();
147 +
148 +# Location to put infected mail - leave empty for not quarantining
149 +$QUARANTINEDIR = "@virusdir@";
150 +
151 +# Add X-Virus-Scanned line to mail?
152 +$X_HEADER_TAG = "X-Virus-Scanned";
153 +# Leave empty to add no header
154 +$X_HEADER_LINE = "by AMaViS @VERSION@";
155 +
156 +#
157 +# External programs
158 +
159 +$arc = "@arc@";
160 +$bunzip = "@bunzip2@";
161 +$file = "@file@";
162 +$lha = "@lha@";
163 +$unarj = "@unarj@";
164 +$uncompress = "@uncompress@";
165 +$unrar = "@unrar@";
166 +$zoo = "@zoo@";
167 +
168 +#
169 +# MTA specific stuff
170 +
171 +# Qmail-specific
172 +$QMAILDIR = "@qmaildir@";
173 +
174 +# postfix-specific
175 +$smtp_port = "@smtp_port@";
176 +$localhost_name = "localhost";
177 +$localhost_ip = "127.0.0.1";
178 +
179 +# sendmail-specific
180 +# Do we use amavis on a mail relay/gateway type setup?
181 +$enable_relay = "@enable_relay@";
182 +
183 +#
184 +$sendmail_cf_orig = "@sendmail_cf_orig@";
185 +
186 +# What sendmail wrapper to use
187 +$sendmail_wrapper = "@sendmail_wrapper@";
188 +$sendmail_wrapper_args = "@sendmail_wrapper_args@";
189 +
190 +#
191 +# Misc
192 +
193 +# The next three are resource limitations - exit with EX_TEMPFAIL if exceeded
194 +# Maximum overall recursion level for extraction/decoding
195 +# default: 20 - DO NOT SET THIS TO 0
196 +$MAXLEVELS = @maxlevel@;
197 +
198 +# Maximum nesting level for compressing archive formats
199 +# default: 3. If set to 0, feature is disabled
200 +$MAX_ARCHIVE_NESTING = @maxdepth@;
201 +
202 +# Maximum number of extracted files
203 +# default: 500. If set to 0, feature is disabled
204 +$MAXFILES =  @maxfiles@;
205 +
206 +# Magic number to detect DoS attacks
207 +# default: 14. if set to 0, feature is disabled (change with care!)
208 +$threshold = 14;
209 +
210 +# Who reports are sent from
211 +$mailfrom = '@mailfrom@';
212 +
213 +# Where to send virus reports
214 +$mailto = '@mailto@';
215 +
216 +# Display AMaViS credits to users [yes/no]
217 +$credits = "@credits@";
218 +
219 +################################################################################
220 +# End of customisation section
221 +################################################################################
222 +1; # this must be the last line
223 \ Brak znaku nowej linii na koƱcu pliku
224 diff -Nur old/amavis/amavis.in new/amavis/amavis.in
225 --- old/amavis/amavis.in        2004-01-26 17:24:59.000000000 +0000
226 +++ new/amavis/amavis.in        2004-07-12 16:21:33.000000000 +0000
227 @@ -103,223 +103,8 @@
228  $pkg_home_url = "@PKG_HOME_URL@";
229  @untaint_ARGV = ();
230  
231 -################################################################################
232 -# Customisable variable from here on
233 -################################################################################
234 -
235 -#
236 -# Av scanners
237 -
238 -# NAI AntiVirus (uvscan)
239 -$uvscan = "@uvscan@";
240 -
241 -# H+BEDV AntiVir
242 -$antivir = "@antivir@";
243 -
244 -# Sophos Anti Virus (sweep)
245 -$sophos = "@sophos@";
246 -$sophos_ide_path = "@sophos_ide@";
247 -
248 -# KasperskyLab AntiViral Toolkit Pro (AVP)
249 -$avp = "@avp@";
250 -$AVPDIR = dirname($avp);
251 -
252 -# KasperskyLab AVPDaemon / AvpDaemonClient
253 -#
254 -# use AvpDaemon and AvpDaemonClient
255 -# Note: AvpDaemon must be started before amavisd!
256 -# AvpDaemon should be started at boot time as AvpDaemon -* /var/amavis
257 -$avpdc = "@avpdc@";
258 -
259 -# F-Secure Antivirus
260 -$fsav = "@fsav@";
261 -
262 -# Trend Micro FileScanner
263 -$vscan = "@vscan@";
264 -
265 -# CyberSoft VFind
266 -$vfind = "@vfind@";
267 -
268 -# CAI InoculateIT
269 -$inocucmd = "@inocucmd@";
270 -
271 -# GeCAD RAV Antivirus 8
272 -$rav = "@rav@";
273 -
274 -# ESET Software NOD32
275 -$nod32 = "@nod32@";
276 -
277 -# ESET Software NOD32 (Client/Server Version)
278 -$nod32cli = "@nod32cli@";
279 -
280 -# Command AntiVirus for Linux
281 -$csav = "@csav@";
282 -
283 -# VirusBuster (Daemon + Client)
284 -$vbengcl = "@vbengcl@";
285 -
286 -# Symantec CarrierScan via Symantec Command Line Scannner
287 -$cscmdline = "@cscmdline@";
288 -$scs_host = "@scs_host@";  # host/IP CarrierScan runs on
289 -$scs_port = "@scs_port@";  # port CarrierScan listens on
290 -
291 -# Sophie (Sophos SAVI)
292 -$sophie_sockname = "@sophie_sockname@";
293 -
294 -# Trophie (Trend API)
295 -$trophie_sockname = "@trophie_sockname@";
296 -
297 -# FRISK F-Prot
298 -$fprot = "@fprot@";
299 -
300 -# FRISK F-Prot Daemon
301 -$fprotd = "@fprotd@";
302 -
303 -# Panda Antivirus for Linux
304 -$panda = "@panda@";
305 -
306 -# CentralCommand Vexira
307 -$vexira = "@vexira@";
308 -
309 -# OpenAntiVirus ScannerDaemon
310 -$oav = "@oav@";
311 -
312 -# DrWeb Antivirus for Linux/FreeBSD/Solaris
313 -$drweb = "@drweb@";
314 -
315 -# MkS_Vir for Linux (beta)
316 -$mks = "@mks@";
317 -
318 -# MkS_Vir Daemon for Linux (beta)
319 -$mksd = "@mksd@";
320 -
321 -# Norman Virus Control 
322 -$norman = "@norman@";
323 -
324 -# Clam Antivirus
325 -$clamscan = "@clamscan@";
326 -
327 -$clamd = "@clamd@";
328 -
329 -# Ikarus AntiVirus
330 -$ikarus = "@ikarus@";
331 -
332 -# AVG Anti-Virus
333 -$avg = "@avg@";
334 -$avgd = "@avgd@";
335 -
336 -#
337 -# Logging
338 -
339 -# yes - syslog, no - file logging
340 -$do_syslog = "@do_syslog@";
341 -
342 -# Directory to put log entries (if not using syslog)
343 -$LOGDIR = "@logdir@";
344 -$LOGFILE = "amavis.log";
345 -
346 -# 0: default - startup/exit/failure messages
347 -# 1: args passed from client
348 -# 2: virus scanner output
349 -# 3: server client
350 -# 4: decompose parts
351 -$log_level = 0;
352 -
353 -#
354 -# Notification etc.
355 -
356 -# Notify admin/sender/recipient [yes/no]?
357 -$warnadmin = "@warnadmin@";
358 -$warnsender = "@warnsender@";
359 -$warnrecip = "@warnrecip@";
360 -
361 -# Notify off-site recipients?
362 -$warn_offsite = "no";
363 -
364 -# requeue if all virus scanners failed
365 -$requeue_on_scanner_errors = "yes";
366 -
367 -#
368 -$viruses_that_fake_sender_re = qr(/(?i)nimda|hybris|klez|bugbear|yaha|braid|sobig|fizzer|palyh|peido|holar|tanatos|lentin|bridex|mimail|trojan\.dropper|dumaru|parite|spaces|dloader|galil|gibe|swen|netwatch|bics|sbrowse|sober|rox|val(hal)?la|be?agle/);
369 -
370 -# List of local domains
371 -# e.g. @local_domains = qw( dom.ain other.dom.ain );
372 -@local_domains = qw();
373 -
374 -# Location to put infected mail - leave empty for not quarantining
375 -$QUARANTINEDIR = "@virusdir@";
376 -
377 -# Add X-Virus-Scanned line to mail?
378 -$X_HEADER_TAG = "X-Virus-Scanned";
379 -# Leave empty to add no header
380 -$X_HEADER_LINE = "by AMaViS @VERSION@";
381 -
382 -#
383 -# External programs
384 -
385 -$arc = "@arc@";
386 -$bunzip = "@bunzip2@";
387 -$file = "@file@";
388 -$lha = "@lha@";
389 -$unarj = "@unarj@";
390 -$uncompress = "@uncompress@";
391 -$unrar = "@unrar@";
392 -$zoo = "@zoo@";
393 -
394 -#
395 -# MTA specific stuff
396 -
397 -# Qmail-specific
398 -$QMAILDIR = "@qmaildir@";
399 -
400 -# postfix-specific
401 -$smtp_port = "@smtp_port@";
402 -$localhost_name = "localhost";
403 -$localhost_ip = "127.0.0.1";
404 -
405 -# sendmail-specific
406 -# Do we use amavis on a mail relay/gateway type setup?
407 -$enable_relay = "@enable_relay@";
408 -
409 -#
410 -$sendmail_cf_orig = "@sendmail_cf_orig@";
411 -
412 -# What sendmail wrapper to use
413 -$sendmail_wrapper = "@sendmail_wrapper@";
414 -$sendmail_wrapper_args = "@sendmail_wrapper_args@";
415 -
416 -#
417 -# Misc
418 -
419 -# The next three are resource limitations - exit with EX_TEMPFAIL if exceeded
420 -# Maximum overall recursion level for extraction/decoding
421 -# default: 20 - DO NOT SET THIS TO 0
422 -$MAXLEVELS = @maxlevel@;
423 -
424 -# Maximum nesting level for compressing archive formats
425 -# default: 3. If set to 0, feature is disabled
426 -$MAX_ARCHIVE_NESTING = @maxdepth@;
427 -
428 -# Maximum number of extracted files
429 -# default: 500. If set to 0, feature is disabled
430 -$MAXFILES =  @maxfiles@;
431 -
432 -# Magic number to detect DoS attacks
433 -# default: 14. if set to 0, feature is disabled (change with care!)
434 -$threshold = 14;
435 -
436 -# Who reports are sent from
437 -$mailfrom = '@mailfrom@';
438 -
439 -# Where to send virus reports
440 -$mailto = '@mailto@';
441 -
442 -# Display AMaViS credits to users [yes/no]
443 -$credits = "@credits@";
444 -
445 -################################################################################
446 -# End of customisation section
447 -################################################################################
448 +# load config file
449 +do '/etc/amavis.conf';
450  
451  #
452  # MTA init section
453 diff -Nur old/configure.in new/configure.in
454 --- old/configure.in    2004-01-22 12:25:38.000000000 +0000
455 +++ new/configure.in    2004-07-12 11:09:48.000000000 +0000
456 @@ -1056,6 +1056,7 @@
457              amavis/checkaccount \
458              amavis/amavis       \
459              tests/Makefile      \
460 +           amavis/amavis.conf
461            ],
462  [
463      test -f amavis/amavis && chmod 755 amavis/amavis
This page took 0.116991 seconds and 3 git commands to generate.