summaryrefslogtreecommitdiff
path: root/extra/razor/PKGBUILD
blob: cc8afee2a2269e337207bfee1696d70a4e25e874 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# $Id: PKGBUILD 160573 2012-06-02 10:28:53Z bluewind $
# Maintainer:
# Contributor: Dale Blount <dale@archlinux.org>
# Contributor: Manolis Tzanidakis

pkgname=razor
pkgver=2.84
pkgrel=7
pkgdesc="A distributed, collaborative, spam detection and filtering network"
arch=('i686' 'x86_64' 'mips64el')
url="http://razor.sourceforge.net"
license=('PerlArtistic')
depends=('perl-net-dns' 'perl-digest-sha1' 'perl-uri' 'perl-digest-nilsimsa' 'perl')
options=('!emptydirs')
source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-agents-${pkgver}.tar.bz2")
md5sums=('8b9a11a6ce020383c32c45d1530d77c2')

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
}

check() {
  cd "${srcdir}"/${pkgname}-agents-${pkgver}
  make test
}

package() {
  cd "${srcdir}"/${pkgname}-agents-${pkgver}
  make DESTDIR="${pkgdir}" install

  # cd ${pkgdir}/usr/bin
  # for i in razor-check razor-report razor-revoke razor-admin; do 
  #  /bin/ln -sf razor-client $i; 
  # done
}