I also modified the  PKGBUILDs to update to clamav-0.88.2 and 
imagemagick-6.2.7-2
 I haven't tested imagemagick yet.
but I installed clamav 0.88.2 and rebooted and to start clamd and freshclam 
services. I also did a clamscan of all my hard disks so this one is very 
stable. Here is the modified PKGBUILD with corrected source link and md5sum

# $Id: PKGBUILD,v 1.29 2006/04/11 15:19:09 dale Exp $
# Maintainer: dale <[EMAIL PROTECTED]>
# Contributor: Gregor Ibic <[EMAIL PROTECTED]>

pkgname=clamav
pkgver=0.88.2
pkgrel=1
pkgdesc="Anti-virus toolkit for Unix."
depends=('bzip2' 'zlib' 'gmp' 'curl' 'perl')
install="$pkgname.install"
backup=(etc/clamav/clamav.conf etc/clamav/clamd.conf etc/clamav/freshclam.conf 
etc/conf.d/clamav)
url="http://www.clamav.net";
source=(http://easynews.dl.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz
 
\
        clamav \
        clamav.confd \
        clamav.logrotate \
        clamav.install)
md5sums=('f0a1c610a1fb70bd748a08bea69c736c' '338db2f3fbca9d5747ba635d576d8739'\
         'f1fd8e736f808da0487928274f585851' 'a7a4d527ba80ec9d4811e2264e9fab9e'\
         '62a8c099244c329c10b045bac2b18da2')
build() {
        cd $startdir/src/$pkgname-$pkgver
        ./configure --prefix=/usr --sysconfdir=/etc/clamav \
                --with-dbdir=/var/lib/clamav --disable-clamav
        # will add clamav user with clamav.install
        make || return 1
        make DESTDIR=$startdir/pkg install || return 1

        # make sure conf files get installed, cause make install
        # doesn't do that if clamav is already installed upon building.
        for i in clamd freshclam; do
                install -D -m644 etc/$i.conf $startdir/pkg/etc/clamav/$i.conf
        done
        
        install -D -m644 $startdir/src/clamav.confd 
$startdir/pkg/etc/conf.d/clamav
        install -D -m755 $startdir/src/clamav $startdir/pkg/etc/rc.d/clamav
        install -D -m644 $startdir/src/clamav.logrotate 
$startdir/pkg/etc/logrotate.d/clamav

        # create log dirs/files & fix conf files.
        mkdir -p $startdir/pkg/var/log/clamav/
        mkdir -p $startdir/pkg/var/run/clamav/
        chown 64.root $startdir/pkg/var/log/clamav/
        chown 64.root $startdir/pkg/var/run/clamav/

        sed -i -e "s:\#LogFile /tmp/clamd.log:LogFile 
/var/log/clamav/clamd.log:" \
                -e "s:\#PidFile /var/run/clamd.pid:PidFile 
/var/run/clamav/clamd.pid:" \
                -e "s:\#User clamav:User clamav:" \
                -e "s:\#LogTime:LogTime:" \
                -e "s:\#TemporaryDirectory /var/tmp:TemporaryDirectory /tmp:" \
                -e "s:\LocalSocket /tmp/clamd:LocalSocket 
/var/lib/clamav/clamd.sock:" \
                $startdir/pkg/etc/clamav/clamd.conf || return 1

        sed -i -e "s:
\#UpdateLogFile /var/log/freshclam.log:UpdateLogFile 
/var/log/clamav/freshclam.log:" 
\
                -e "s:\#NotifyClamd$:NotifyClamd:" \
                $startdir/pkg/etc/clamav/freshclam.conf || return 1

        # fix perms on virus databases.
        chown 64:64 -R $startdir/pkg/var/lib/clamav/

        # install clamdwatch
        cd $startdir/src/$pkgname-$pkgver/contrib/clamdwatch
        tar zxf clamdwatch.tar.gz
        sed -i -e 's@/var/run/clamd.ctl@/var/lib/clamav/clamd.sock@' \
               -e 's@/var/lock/subsys/clamd@/var/run/clamav/clamd.pid@' \
               -e '[EMAIL PROTECTED]( "/tmp/clamdwatch-XXXXXXXXXXXXXXXX" 
);@mkstemp( "/tmp/clamdwatch-XXXXXXXXXXXXXXXX" );
\nchmod 0644, "$tempFile";@' clamdwatch

        install -D -m755 clamdwatch $startdir/pkg/usr/sbin/clamdwatch.pl
        find $startdir/pkg -name '*.la' -exec rm {} \;
}

Attachment: pgpc2LnOdsSHD.pgp
Description: PGP signature

_______________________________________________
arch mailing list
[email protected]
http://www.archlinux.org/mailman/listinfo/arch

Reply via email to