diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /extra/razor |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'extra/razor')
-rw-r--r-- | extra/razor/PKGBUILD | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/extra/razor/PKGBUILD b/extra/razor/PKGBUILD new file mode 100644 index 000000000..3f596706d --- /dev/null +++ b/extra/razor/PKGBUILD @@ -0,0 +1,40 @@ +# $Id: PKGBUILD 101393 2010-11-29 01:47:33Z kevin $ +# Maintainer: Dale Blount <dale@archlinux.org> +# Contributor: Manolis Tzanidakis + +pkgname=razor +pkgver=2.84 +pkgrel=4 +pkgdesc="A distributed, collaborative, spam detection and filtering network." +arch=(i686 x86_64) +url="http://razor.sourceforge.net" +license=('PerlArtistic') +depends=('glibc' 'perl-net-dns' 'perl-digest-sha1' 'perl-uri' 'perl-digest-nilsimsa' 'perl>=5.10.0') +source=(http://downloads.sourceforge.net/sourceforge/razor/${pkgname}-agents-${pkgver}.tar.bz2) +md5sums=('8b9a11a6ce020383c32c45d1530d77c2') +options=(!emptydirs) + +build() { + cd ${srcdir}/${pkgname}-agents-${pkgver} + + # skip install_razor_agents (we'll do the linking later) + # /bin/sed -i "s|install :: all pure_install doc_install install_razor_agents|install :: all pure_install doc_install|g" Makefile + + perl Makefile.PL INSTALLDIRS=vendor + make + make test +} + +package() { + cd ${srcdir}/${pkgname}-agents-${pkgver} + make DESTDIR=${pkgdir} install + + # remove perllocal.pod and .packlist + find ${pkgdir} -name perllocal.pod -delete + find ${pkgdir} -name .packlist -delete + + # cd ${pkgdir}/usr/bin + # for i in razor-check razor-report razor-revoke razor-admin; do + # /bin/ln -sf razor-client $i; + # done +} |