FreeBSD FuzzyOCR SA Plugin for FreeBSD
Required ports to install are netpbm, gocr, imagemagick, giflib and the String::Approx Perl module.
# cd /usr/ports/graphics/netpbm && make install clean
# cd /usr/ports/graphics/gocr && make install clean
# cd /usr/ports/graphics/ImageMagick && make install clean
# cd /usr/ports/devel/p5-String-Approx && make install clean
# cd /usr/local/etc/mail/spamassassin
# fetch http://users.own-hero.net/~decoder/fuzzyocr/fuzzyocr-latest.tar.gz
# tar zxvf fuzzyocr-latest.tar.gz
# cd FuzzyOcr-version
edit FuzzyOcr.cf and change all "/etc/mail/spamassassin/" to "/usr/local/etc/mail/spamassassin/"
I set my focr_logfile to /var/log/FuzzyOcr.log
also edit the FuzzyOcr.pm file. Search for "$logfile", and you will notice a line calling the log file again. I just pointed it to the same location. Not sure why it's called twice.
Now we finish up.
also in the FuzzyOcr.cf file you will need to change the paths of the "Helper Applications" located around line 41. Change them to the following unless you installed them to /usr/bin/.
Be sure they are all uncommented.
# cp FuzzyOcr.* /usr/local/etc/mail/spamassassin/
# cd /usr/local/etc/mail/spamassassin/
# mv FuzzyOcr.words.sample FuzzyOcr.words
# /usr/local/etc/rc.d/sa-spamd.sh restart
If you are using w0ls0n's cfupdates script, you should remove the rm *.* or otherwise your Fuzzy confs will go bye bye.
#* Writen By mintee 10/17/2007 *