mirror of https://github.com/Cisco-Talos/clamav
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
689 B
19 lines
689 B
#!/bin/sh
|
|
export DBLOCATION=/usr/local/share/clamav
|
|
export OUTDIR=db_temp
|
|
|
|
mkdir -p /tmp/$OUTDIR
|
|
(
|
|
cd /tmp/$OUTDIR
|
|
sigtool --unpack $DBLOCATION/main.cvd 2>/tmp/$OUTDIR/errlog
|
|
sigtool --unpack $DBLOCATIOn/daily.cvd 2>>/tmp/$OUTDIR/errlog
|
|
cp $DBLOCATION/daily.inc/* . 2>>/tmp/$OUTDIR/errlog
|
|
cp $DBLOCATION/main.inc/* . 2>>/tmp/$OUTDIR/errlog
|
|
)
|
|
|
|
./fixdb </tmp/$OUTDIR/main.ndb >/tmp/$OUTDIR/fixed_db 2>/tmp/$OUTDIR/errlog
|
|
./fixdb </tmp/$OUTDIR/daily.ndb >>/tmp/$OUTDIR/fixed_db 2>>/tmp/$OUTDIR/errlog
|
|
cat /tmp/$OUTDIR/fixed_db |./postprocessdb 1 > /tmp/$OUTDIR/fixed_db_p
|
|
cat /tmp/$OUTDIR/fixed_db_p|./postprocessdb nocolor >/tmp/$OUTDIR/fixed.ndb
|
|
|
|
echo /tmp/$OUTDIR/fixed.ndb "created"
|
|
|