[arch-commits] Commit in bogofilter/trunk (PKGBUILD)
Andreas Radke
andyrtr at nymeria.archlinux.org
Tue Oct 22 16:14:52 UTC 2013
Date: Tuesday, October 22, 2013 @ 18:14:52
Author: andyrtr
Revision: 197136
add check function, pkg tested to drop berkeley db and replace it sqlite but this would lead to some important features missing, not yet an option
Modified:
bogofilter/trunk/PKGBUILD
----------+
PKGBUILD | 18 ++++++++++++++++--
1 file changed, 16 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2013-10-22 15:36:19 UTC (rev 197135)
+++ PKGBUILD 2013-10-22 16:14:52 UTC (rev 197136)
@@ -10,20 +10,34 @@
arch=('i686' 'x86_64')
license=('GPL3')
url="http://bogofilter.sourceforge.net"
-depends=('db' 'perl' 'gsl')
+depends=('db' 'perl' 'gsl') # 'sqlite'
+makedepends=('valgrind')
backup=('etc/bogofilter/bogofilter.cf')
source=(http://sourceforge.net/projects/${pkgname}/files/${pkgname}-current/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.bz2)
md5sums=('d0a5eebb3274b23ceabe766a6443a1c5')
+# keep Berkeley DB as backend for now
+# sqlite3 based backend doesn't allow
+# to use db-transaction option that is
+# used to bf_compact the wordlist.db
+# other backend aren't available
+# currently in Arch repos
+
build() {
cd ${pkgname}-${pkgver}
./configure --prefix=/usr \
--sysconfdir=/etc/bogofilter \
--localstatedir=/var \
- --enable-transactions
+ --enable-transactions \
+ --with-database=db #--help
make
}
+check() {
+ cd $pkgname-$pkgver
+ BF_RUN_VALGRIND=1 make -k check
+}
+
package() {
cd ${pkgname}-${pkgver}
make DESTDIR="${pkgdir}" install
More information about the arch-commits
mailing list