summaryrefslogtreecommitdiff
path: root/staging/razor
diff options
context:
space:
mode:
authorroot <root@rshg047.dnsready.net>2011-05-23 22:47:30 +0000
committerroot <root@rshg047.dnsready.net>2011-05-23 22:47:30 +0000
commit87e20a64534e8f58ca4a4f84000b629e48569a98 (patch)
tree8c4b498a38d72459c7bc88bc02719b4849159d0f /staging/razor
parent3837a11a2a471b9db222d8eb6ed7d2fb9d1778c6 (diff)
Mon May 23 22:47:30 UTC 2011
Diffstat (limited to 'staging/razor')
-rw-r--r--staging/razor/PKGBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/staging/razor/PKGBUILD b/staging/razor/PKGBUILD
new file mode 100644
index 000000000..87905b577
--- /dev/null
+++ b/staging/razor/PKGBUILD
@@ -0,0 +1,41 @@
+# $Id: PKGBUILD 124559 2011-05-22 23:44:08Z andrea $
+# Maintainer:
+# Contributor: Dale Blount <dale@archlinux.org>
+# Contributor: Manolis Tzanidakis
+
+pkgname=razor
+pkgver=2.84
+pkgrel=5
+pkgdesc="A distributed, collaborative, spam detection and filtering network"
+arch=('i686' 'x86_64')
+url="http://razor.sourceforge.net"
+license=('PerlArtistic')
+depends=('perl-net-dns' 'perl-digest-sha1' 'perl-uri' 'perl-digest-nilsimsa' 'perl>=5.14.0')
+source=(http://downloads.sourceforge.net/${pkgname}/${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
+}