Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 123578 | Differences between
and this patch

Collapse All | Expand All

(-)clapf-0.3.23.orig/example.conf (-3 / +3 lines)
Lines 29-41 Link Here
29
backlog=30
29
backlog=30
30
30
31
; clapf puts its temporary files here
31
; clapf puts its temporary files here
32
workdir=/opt/av
32
workdir=/var/lib/clapf
33
33
34
; enable the quarantine function (1) or not (0)
34
; enable the quarantine function (1) or not (0)
35
use_quarantine=0
35
use_quarantine=0
36
36
37
; put virus infected files here if the quarantine function is enabled
37
; put virus infected files here if the quarantine function is enabled
38
quarantine_dir=/opt/av/quarantine
38
quarantine_dir=/var/lib/clapf/quarantine
39
39
40
; enable the blackhole feature (1) or not (0) - of course only if you have compiled it in
40
; enable the blackhole feature (1) or not (0) - of course only if you have compiled it in
41
use_blackhole=0
41
use_blackhole=0
Lines 67-73 Link Here
67
spam_to_train_dir=
67
spam_to_train_dir=
68
68
69
; token spamicity cdb database
69
; token spamicity cdb database
70
tokensfile=/opt/av/tokens.cdb
70
tokensfile=/var/lib/clapf/tokens.cdb
71
71
72
; skip spam test if the message size is greater than this value (in bytes)
72
; skip spam test if the message size is greater than this value (in bytes)
73
; the default (0) means no such a limit
73
; the default (0) means no such a limit
(-)clapf-0.3.23.orig/stat/clapf-rrd-create.sh (-1 / +1 lines)
Lines 1-6 Link Here
1
#!/bin/sh
1
#!/bin/sh
2
2
3
RRDTOOL=/usr/local/bin/rrdtool
3
RRDTOOL=/usr/bin/rrdtool
4
4
5
if [ $# -ne 2 ]; then echo "usage: $0 <rrd file> <start timestamp>"; exit; fi
5
if [ $# -ne 2 ]; then echo "usage: $0 <rrd file> <start timestamp>"; exit; fi
6
6
(-)clapf-0.3.23.orig/stat/clapf-rrd-graph-oneline.sh (-1 / +1 lines)
Lines 1-6 Link Here
1
#!/bin/sh
1
#!/bin/sh
2
2
3
RRDTOOL=/usr/local/bin/rrdtool
3
RRDTOOL=/usr/bin/rrdtool
4
ONEMONTH=2678400
4
ONEMONTH=2678400
5
ONEWEEK=604800
5
ONEWEEK=604800
6
ONEDAY=86400
6
ONEDAY=86400
(-)clapf-0.3.23.orig/stat/clapf-rrd-graph.sh (-1 / +1 lines)
Lines 1-6 Link Here
1
#!/bin/sh
1
#!/bin/sh
2
2
3
RRDTOOL=/usr/local/bin/rrdtool
3
RRDTOOL=/usr/bin/rrdtool
4
ONEMONTH=2678400
4
ONEMONTH=2678400
5
ONEWEEK=604800
5
ONEWEEK=604800
6
ONEDAY=86400
6
ONEDAY=86400
(-)clapf-0.3.23.orig/stat/clapf-rrd-update.sh (-1 / +1 lines)
Lines 1-6 Link Here
1
#!/bin/sh
1
#!/bin/sh
2
2
3
RRDTOOL=/usr/local/bin/rrdtool
3
RRDTOOL=/usr/bin/rrdtool
4
4
5
if [ $# -ne 2 ]; then echo "usage: $0 <rrd file> <timestamp>:<ham>:<spam>"; exit; fi
5
if [ $# -ne 2 ]; then echo "usage: $0 <rrd file> <timestamp>:<ham>:<spam>"; exit; fi
6
6
(-)clapf-0.3.23.orig/util/check_clapf.sh (-1 / +1 lines)
Lines 6-10 Link Here
6
6
7
NUM=`ps uaxw | grep clapf | grep -c ^av`
7
NUM=`ps uaxw | grep clapf | grep -c ^av`
8
8
9
if [ $NUM -eq 0 ]; then /bin/su av -c 'export TMPDIR=/opt/av; /usr/local/bin/clapf -c /usr/local/etc/clapf.conf &' ; fi
9
if [ $NUM -eq 0 ]; then /bin/su av -c 'export TMPDIR=/var/lib/clapf; /usr/sbin/clapf -c /etc/clapf.conf &' ; fi
10
10

Return to bug 123578