Updating The ClamAV Daemon on OpenBSD 3.7

25 10 2006

Introduction

This post is now pretty pointless. The OpenBSD 3.7 ports tree is no longer maintained so you’ll only get up to clamav 0.88.3 (I think). Take a look at this post on compiling clamav from source.

This reference document describes the process for updating
ClamAV on OpenBSD 3.7 Release via the ports system.

Requirements

  • OpenBSD 3.7 Release (Although these intuctions will work on
    any version of OpenBSD with a little alteration)
  • A local copy of the OpenBSD Ports tree
  • This document assumes you already have a working (But out of date) copy of ClamAV installed.

Instructions

I use tcsh for my shell so you may need to alter the syntax for setting the
CVSROOT environment variable:

Update the Ports tree

Make sure you pick a cvs mirror close to you.

host: su
root# tcsh
root# setenv CVSROOT anoncvs@anoncvs.de.openbsd.org:/cvs
root# cd /usr/ports
root# cvs -q up -rOPENBSD_3_7 -Pd

Find and remove the clamav package

root# kill -s QUIT `cat /path/to/clamd.pid`
root# pkg_info -a | grep clamav
clamav-0.88.2       free virus scanner
root# pkg_delete clamav-0.88.2

Make and install the updated package and start the ClamAV daemon

root# cd /usr/ports/security/clamav
root# make install
(… Screenfulls of output ….)
root# freshclam
root# /usr/local/sbin/clamd

Actions

Informations

Leave a comment

You must be logged in to post a comment