# Depends on: perl perl-net-dns perl-digest-sha1 perl-uri perl-digest-nilsimsa 

description="A distributed, collaborative, spam detection and filtering network"
url="http://search.cpan.org/"
packager="tnut <tnut@nutyx.org>"
contributors="Pierre B"

name=razor
version=2.85
release=2

unset MAKEFLAGS
source=(http://sourceforge.net/projects/razor/files/razor-agents/$version/razor-agents-$version.tar.bz2
	$name-$version-cosmetic-pv-fix.patch
	$name-$version-makefile-quoting-fix.patch )

build() {
cd razor-agents-$version

patch -p1 -i $SRC/$name-$version-cosmetic-pv-fix.patch
patch -p1 -i $SRC/$name-$version-makefile-quoting-fix.patch

perl Makefile.PL INSTALLDIRS=vendor
make
make DESTDIR=$PKG install
find $PKG \
         -name '*.bs' -or \
         -name '.packlist' -or \
         -name 'perllocal.pod' | xargs rm
}
