# F-Prot for Linux Workstations 4.6.8
# ===================================
# This is free for personal use on a personal workstation. To buy it
# or another F-Prot product, go to http://www.f-prot.com/
cd
test -f installed/fp-linux-ws-4.6.8.tar.gz &&
mv installed/fp-linux-ws-4.6.8.tar.gz .
test ! -f fp-linux-ws-4.6.8.tar.gz &&
wget http://files.f-prot.com/files/linux-x86/fp-linux-ws-4.6.8.tar.gz
# Verify tarball w/ sha1sum:
# (this is from my copy, couldn't find one elsewhere)
echo "8c10ccef0f574062f2e2b84d7366cf9904a07213 fp-linux-ws-4.6.8.tar.gz" | \
sha1sum -c
# Run this if you only want root to be able to run f-prot. If you want it
# to be runnable by one non-root user, run 'chown -R username .' after that
# and also add that to /etc/cron.daily/f-prot (see below).
chmod -R go-rwx .
# Create symlinks so f-prot can be run and the man pages can be viewed
# without their full path:
ln -sf /usr/local/f-prot/f-prot.sh /usr/local/bin/f-prot
ln -sf /usr/local/f-prot/man_pages/check-updates.pl.8 /usr/local/man/man8/
ln -sf /usr/local/f-prot/man_pages/f-prot.1 /usr/local/man/man1/
ln -sf /usr/local/f-prot/man_pages/f-prot.conf.5 /usr/local/man/man5/
# To set up automatic updates, make sure perl's HTTP::Request module is
# installed:
perl -MCPAN -e shell
o conf make_install_arg UNINST=1
o conf prerequisites_policy follow
install Bundle::CPAN
install HTTP::Request
exit
# If you have the /etc/cron.(daily|hourly|monthly) directories set up, do
# this to update the virus signatures at 4:40am (along with everything else
# in /etc/cron.daily/):
cat << EOF > /etc/cron.daily/f-prot
#!/bin/sh
# Update f-prot virus signatures
/usr/local/f-prot/tools/check-updates.pl -cron -quiet
chmod -x /usr/local/f-prot/SIGN*.DEF
EOF
chmod 700 /etc/cron.daily/f-prot
#
## ...and if you don't have those set up, add a cron job like this to root's
## crontab to update the virus signatures at 4:40am every day:
# 40 4 * * * /usr/local/f-prot/tools/check-updates.pl -cron -quiet