1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/qmail-scanner/qmail-scanner.conf
3 # Copyright (C) 2005 - 2022 The T2 SDE Project
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License version 2.
10 # --- T2-COPYRIGHT-NOTE-END ---
12 # remove not applying part of the patch
15 $compressor -d < $(match_source_file -p 'st.*patch') |
16 sed -e '/^--- .*qmail-scanner-queue.template.orig/,/^--- / {/^--- .*qmail-scanner-queue.template.orig/d;/^--- /b' \
18 hook_add preconf 5 'rm -vf qmail-scanner-queue.template.orig'
20 var_append patchfiles ' ' $tmppatch
21 var_append patchfiles ' ' $confdir/head-1-postst.diff
22 #var_append patchfiles ' ' $confdir/no_magic.diff
23 var_append patchfiles ' ' $confdir/configure_no_exit_on_fail.diff
26 var_append confopt ' ' '--log-details yes'
27 var_append confopt ' ' '--debug yes'
28 var_append confopt ' ' '--virus-to-delete yes'
31 pkginstalled clamav &&
32 var_append scanners ',' clamdscan
33 pkginstalled spamassassin &&
34 var_append scanners ',' fast_spamassassin
36 var_append confopt ' ' '--scanners ${scanners:-auto}'
39 var_append confopt ' ' '--notify $notify'
43 eval "./configure $confopt"
46 qscandir=$root/var/spool/qmailscan
47 mkdir -pv $qscandir/{quarantine,working,archive}/{new,tmp,cur}
48 cp -vf quarantine-*.txt $qscandir
49 chown -R qscand:qscand $qscandir
51 mkdir -pv $root/var/qmail/bin
52 cp qmail-scanner-queue.pl $root/var/qmail/bin/qmail-scanner-queue.pl
53 chown qscand:qscand $root/var/qmail/bin/qmail-scanner-queue.pl
54 chmod 4755 $root/var/qmail/bin/qmail-scanner-queue.pl
58 hook_add postmake 5 "qscan_main"