summaryrefslogtreecommitdiff
path: root/libre/bogofilter
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2014-09-03 19:24:29 -0300
committercoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2014-09-03 19:24:29 -0300
commitee568468630d48fc3ee0657c91477cbb97517a02 (patch)
tree2e0ea78c49e10df42ec39d0fedee6d5a408d2448 /libre/bogofilter
parent07625166ab46f6fe5dc88d27ec77987fdd7be9dc (diff)
downloadabslibre-ee568468630d48fc3ee0657c91477cbb97517a02.tar.gz
abslibre-ee568468630d48fc3ee0657c91477cbb97517a02.tar.bz2
abslibre-ee568468630d48fc3ee0657c91477cbb97517a02.zip
rename to bogofilter
Diffstat (limited to 'libre/bogofilter')
-rw-r--r--libre/bogofilter/PKGBUILD49
1 files changed, 49 insertions, 0 deletions
diff --git a/libre/bogofilter/PKGBUILD b/libre/bogofilter/PKGBUILD
new file mode 100644
index 000000000..4ab5f7c66
--- /dev/null
+++ b/libre/bogofilter/PKGBUILD
@@ -0,0 +1,49 @@
+# $Id: PKGBUILD 196818 2013-10-20 08:27:26Z andyrtr $
+# Maintainer (Arch): AndyRTR <andyrtr@archlinux.org>
+# Contributor (Arch): tobias <tobias@archlinux.org>
+# Contributor (Arch): Low Kian Seong <fastmail_low@speedymail.org>
+# Maintainer: Márcio Silva <marcio@parabola.nu>
+
+pkgname=bogofilter
+_pkgname=$pkgname-libre
+pkgver=1.2.4
+pkgrel=1.parabola1
+pkgdesc="A fast Bayesian spam filtering tool, without noncommercial files"
+arch=('i686' 'x86_64' 'mips64el')
+license=('GPL3')
+url="http://$pkgname.sourceforge.net"
+depends=('db' 'perl' 'gsl')
+backup=("etc/$pkgname/$pkgname.cf")
+mksource=(http://sourceforge.net/projects/${pkgname}/files/${pkgname}-current/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.bz2)
+source=(https://repo.parabolagnulinux.org/other/${_pkgname}/${_pkgname}-${pkgver}.tar.bz2)
+mkmd5sums=('d0a5eebb3274b23ceabe766a6443a1c5')
+md5sums=('cce573e059d39a68cf78097dbfaa5b2d')
+replaces=("${_pkgname}")
+conflicts=("${_pkgname}")
+
+mksource() {
+ cd ${pkgname}-${pkgver}
+
+ # Remove noncommercial files.
+ rm doc/$pkgname-SA-{2005-0{1,2},2010-01}
+}
+
+build() {
+ cd ${_pkgname}-${pkgver}
+
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc/$pkgname \
+ --localstatedir=/var \
+ --enable-transactions
+ make
+}
+
+package() {
+ cd ${_pkgname}-${pkgver}
+ make DESTDIR="${pkgdir}" install
+
+ mv "${pkgdir}/etc/$pkgname/$pkgname.cf.example" "${pkgdir}/etc/$pkgname/$pkgname.cf"
+
+ install -dm755 "${pkgdir}/usr/share/${pkgname}/contrib"
+ install -m644 contrib/* "${pkgdir}/usr/share/${pkgname}/contrib/"
+}