Lines 51-57
Link Here
|
51 |
|
51 |
|
52 |
EXTRA_VIRII="bagle,beagle,mydoom,sco,maldal,mimail,novarg,shimg,bugler,cissi,cissy,dloade,netsky,qizy" |
52 |
EXTRA_VIRII="bagle,beagle,mydoom,sco,maldal,mimail,novarg,shimg,bugler,cissi,cissy,dloade,netsky,qizy" |
53 |
einfo "Adding items to the SILENT_VIRUSES list (${EXTRA_VIRII})" |
53 |
einfo "Adding items to the SILENT_VIRUSES list (${EXTRA_VIRII})" |
54 |
sed -e "/^SILENT_VIRUSES/s/\"$/,${EXTRA_VIRII}\"/g" -i configure |
54 |
# sed -e "/^SILENT_VIRUSES/s/\"$/,${EXTRA_VIRII}\"/g" -i configure |
|
|
55 |
ebegin "fixing bad configure values" |
56 |
sed -i -e "s:/var/spool/qscan:/var/spool/qmailscan:" \ |
57 |
-e "/^SILENT_VIRUSES/s/\"$/,${EXTRA_VIRII}\"/g" \ |
58 |
configure || die "error seeding configure" |
59 |
eend $? |
55 |
} |
60 |
} |
56 |
|
61 |
|
57 |
src_compile () { |
62 |
src_compile () { |
Lines 95-100
Link Here
|
95 |
insinto /var/spool/qmailscan |
100 |
insinto /var/spool/qmailscan |
96 |
insopts -m 644 -o qscand -g qscand |
101 |
insopts -m 644 -o qscand -g qscand |
97 |
doins quarantine-attachments.txt |
102 |
doins quarantine-attachments.txt |
|
|
103 |
doins quarantine-events.txt |
98 |
|
104 |
|
99 |
# create quarantine.log and viruses.log |
105 |
# create quarantine.log and viruses.log |
100 |
touch quarantine.log |
106 |
touch quarantine.log |
Lines 115-121
Link Here
|
115 |
|
121 |
|
116 |
insinto /etc/logrotate.d/ |
122 |
insinto /etc/logrotate.d/ |
117 |
insopts -m 644 -o root -g root |
123 |
insopts -m 644 -o root -g root |
118 |
newins ${FILESDIR}/qmailscanner.logrotate qmail-scanner |
124 |
newins contrib/qmailscanner.logrotate qmail-scanner |
119 |
|
125 |
|
120 |
exeinto /etc/cron.daily/ |
126 |
exeinto /etc/cron.daily/ |
121 |
newexe ${FILESDIR}/qmailscanner.cronjob qmail-scanner |
127 |
newexe ${FILESDIR}/qmailscanner.cronjob qmail-scanner |
Lines 145-151
Link Here
|
145 |
|
151 |
|
146 |
pkg_postinst () { |
152 |
pkg_postinst () { |
147 |
einfo "Fixing ownerships" |
153 |
einfo "Fixing ownerships" |
148 |
chown -R qscand:qscand /var/spool/qmailscan/tmp /var/spool/qmailscan/working /var/spool/qmailscan/quarantine* /var/spool/qmailscan/archive /var/spool/qmailscan/qmail* |
154 |
chown -R qscand:qscand /var/spool/qmailscan/tmp /var/spool/qmailscan/working /var/spool/qmailscan/quarantine* /var/spool/qmailscan/archive |
149 |
touch /var/qmail/bin/qmail-scanner-queue.pl |
155 |
touch /var/qmail/bin/qmail-scanner-queue.pl |
150 |
|
156 |
|
151 |
# Setup perlscanner + Version Info |
157 |
# Setup perlscanner + Version Info |