diff options
author | root <root@rshg047.dnsready.net> | 2011-07-03 23:10:20 +0000 |
---|---|---|
committer | root <root@rshg047.dnsready.net> | 2011-07-03 23:10:20 +0000 |
commit | 067b127a853780b2b4ae7236dcdaaf72396dfa86 (patch) | |
tree | ec55d0d4115d7c9fc0eb9e1a82a2553f4e0cd3aa /testing/bogofilter | |
parent | 1732308adb7885b00fc388f978e65b3ad15aa067 (diff) |
Sun Jul 3 23:10:20 UTC 2011
Diffstat (limited to 'testing/bogofilter')
-rw-r--r-- | testing/bogofilter/PKGBUILD | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/testing/bogofilter/PKGBUILD b/testing/bogofilter/PKGBUILD new file mode 100644 index 000000000..860895cf9 --- /dev/null +++ b/testing/bogofilter/PKGBUILD @@ -0,0 +1,34 @@ +# $Id: PKGBUILD 127873 2011-06-19 06:22:51Z eric $ +# Maintainer: tobias <tobias@archlinux.org> +# Contributor: Low Kian Seong <fastmail_low@speedymail.org> + +pkgname=bogofilter +pkgver=1.2.2 +pkgrel=3 +pkgdesc="A fast Bayesian spam filtering tool" +arch=('i686' 'x86_64') +license=('GPL3') +url="http://bogofilter.sourceforge.net" +depends=('db' 'perl' 'gsl') +backup=('etc/bogofilter/bogofilter.cf') +source=(http://sourceforge.net/projects/${pkgname}/files/${pkgname}-current/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.bz2) +md5sums=('4bcabdf8c5e7efefcb508eda7e80eebc') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + ./configure --prefix=/usr \ + --sysconfdir=/etc/bogofilter \ + --localstatedir=/var \ + --enable-transactions + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install + + mv "${pkgdir}/etc/bogofilter/bogofilter.cf.example" "${pkgdir}/etc/bogofilter/bogofilter.cf" + + install -dm755 "${pkgdir}/usr/share/${pkgname}/contrib" + install -m644 contrib/* "${pkgdir}/usr/share/${pkgname}/contrib/" +} |