~ubuntu-branches/ubuntu/raring/clamav/raring

« back to all changes in this revision

Viewing changes to debian/clamav-base.postinst.in

  • Committer: Bazaar Package Importer
  • Author(s): Stephen Gran
  • Date: 2008-09-05 17:25:34 UTC
  • mfrom: (0.35.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080905172534-yi3f8fkye1o7u1r3
* New upstream version (closes: #497662, #497773)
  - lots of new options for clamd.conf
  - fixes CVEs CVE-2008-3912, CVE-2008-3913, CVE-2008-3914, and
    CVE-2008-1389
* No longer supports --unzip option, so typo is gone (closes: #496276)
* Translations:
  - sv (thanks Martin Bagge <brother@bsnet.se>) (closes: #491760)

Show diffs side-by-side

added added

removed removed

Lines of Context:
227
227
    [ -z "$IdleTimeout" ] && IdleTimeout=30
228
228
    [ -z "$PhishingSignatures" ] && PhishingSignatures=true
229
229
    [ -z "$PhishingScanURLs" ] && PhishingScanURLs=true
230
 
    [ -z "$PhishingRestrictedScan" ] && PhishingRestrictedScan=true
231
230
    [ -z "$PhishingAlwaysBlockSSLMismatch" ] && PhishingAlwaysBlockSSLMismatch=false
232
231
    [ -z "$PhishingAlwaysBlockCloak" ] && PhishingAlwaysBlockCloak=false
233
232
    [ -z "$DetectPUA" ] && DetectPUA=false
235
234
    [ -z "$MaxFileSize" ] && MaxFileSize=25M
236
235
    [ -z "$MaxRecursion" ] && MaxRecursion=10
237
236
    [ -z "$MaxFiles" ] && MaxFiles=10000
238
 
 
 
237
    [ -z "$ExcludePUA" ] && ExcludePUA=
 
238
    [ -z "$IncludePUA" ] && IncludePUA=
 
239
    [ -z "$ScanPartialMessages" ] && ScanPartialMessages=false
 
240
    [ -z "$HeuristicScanPrecedence" ] && HeuristicScanPrecedence=false
 
241
    [ -z "$StructuredDataDetection" ] && StructuredDataDetection=false
239
242
 
240
243
    cat >> $DEBCONFFILE << EOF
241
244
User $user
273
276
IdleTimeout $IdleTimeout
274
277
PhishingSignatures $PhishingSignatures
275
278
PhishingScanURLs $PhishingScanURLs
276
 
PhishingRestrictedScan $PhishingRestrictedScan
277
279
PhishingAlwaysBlockSSLMismatch $PhishingAlwaysBlockSSLMismatch
278
280
PhishingAlwaysBlockCloak $PhishingAlwaysBlockCloak
279
281
DetectPUA $DetectPUA
280
 
EOF
281
 
 
 
282
ScanPartialMessages $ScanPartialMessages
 
283
HeuristicScanPrecedence $HeuristicScanPrecedence
 
284
StructuredDataDetection $StructuredDataDetection
 
285
EOF
 
286
 
 
287
    if is_true "$StructuredDataDetection"; then
 
288
      [ -z "$StructuredMinCreditCardCount" ] || StructuredMinCreditCardCount=3
 
289
      [ -z "$StructuredMinSSNCount" ] || StructuredMinSSNCount=3
 
290
      [ -z "$StructuredSSNFormatNormal" ] || StructuredSSNFormatNormal=true
 
291
      [ -z "$StructuredSSNFormatStripped" ] || StructuredSSNFormatStripped=false
 
292
      cat >> $DEBCONFFILE << EOF
 
293
StructuredMinCreditCardCount $StructuredMinCreditCardCount
 
294
StructuredMinSSNCount $StructuredMinSSNCount
 
295
StructuredSSNFormatNormal $StructuredSSNFormatNormal
 
296
StructuredSSNFormatStripped $StructuredSSNFormatStripped
 
297
EOF
 
298
    fi
 
299
 
 
300
    if [ -n "$IncludePUA" ]; then
 
301
      for i in $IncludePUA; do
 
302
        echo "IncludePUA $i" >> $DEBCONFFILE
 
303
      done
 
304
    fi
 
305
    if [ -n "$ExcludePUA" ]; then
 
306
      for e in $ExcludePUA; do
 
307
        echo "ExcludePUA $i" >> $DEBCONFFILE
 
308
      done
 
309
    fi
282
310
    if [ -n "$logfile" ]; then
283
311
      echo "LogFile $logfile" >> $DEBCONFFILE
284
312
      echo "LogTime $logtime" >> $DEBCONFFILE