[arch-commits] Commit in bogofilter/repos (6 files)

Antonio Rojas arojas at archlinux.org
Sun Jun 25 10:14:33 UTC 2017


    Date: Sunday, June 25, 2017 @ 10:14:32
  Author: arojas
Revision: 299214

archrelease: copy trunk to staging-i686, staging-x86_64

Added:
  bogofilter/repos/staging-i686/
  bogofilter/repos/staging-i686/PKGBUILD
    (from rev 299213, bogofilter/trunk/PKGBUILD)
  bogofilter/repos/staging-i686/bogofilter-1.2.4-test-env.patch
    (from rev 299213, bogofilter/trunk/bogofilter-1.2.4-test-env.patch)
  bogofilter/repos/staging-x86_64/
  bogofilter/repos/staging-x86_64/PKGBUILD
    (from rev 299213, bogofilter/trunk/PKGBUILD)
  bogofilter/repos/staging-x86_64/bogofilter-1.2.4-test-env.patch
    (from rev 299213, bogofilter/trunk/bogofilter-1.2.4-test-env.patch)

------------------------------------------------+
 staging-i686/PKGBUILD                          |   59 +++++++++++++++++++++++
 staging-i686/bogofilter-1.2.4-test-env.patch   |   11 ++++
 staging-x86_64/PKGBUILD                        |   59 +++++++++++++++++++++++
 staging-x86_64/bogofilter-1.2.4-test-env.patch |   11 ++++
 4 files changed, 140 insertions(+)

Copied: bogofilter/repos/staging-i686/PKGBUILD (from rev 299213, bogofilter/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD	                        (rev 0)
+++ staging-i686/PKGBUILD	2017-06-25 10:14:32 UTC (rev 299214)
@@ -0,0 +1,59 @@
+# $Id$
+# Maintainer: AndyRTR <andyrtr at archlinux.org>
+# Contributor: tobias <tobias at archlinux.org>
+# Contributor: Low Kian Seong <fastmail_low at speedymail.org>
+
+pkgname=bogofilter
+pkgver=1.2.4
+pkgrel=3
+pkgdesc="A fast Bayesian spam filtering tool"
+arch=('i686' 'x86_64')
+license=('GPL3')
+url="http://bogofilter.sourceforge.net"
+depends=('db' 'perl' 'gsl') # 'sqlite'
+makedepends=('valgrind' 'xmlto')
+backup=('etc/bogofilter/bogofilter.cf')
+source=(http://sourceforge.net/projects/${pkgname}/files/${pkgname}-current/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.bz2
+        bogofilter-1.2.4-test-env.patch)
+md5sums=('d0a5eebb3274b23ceabe766a6443a1c5'
+         'd01f23755ee9b4f5807b9feefea0b42d')
+
+# 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
+
+prepare() {
+  cd ${pkgname}-${pkgver}
+  # taken from Gentoo
+  patch -Np1 -i $srcdir/bogofilter-1.2.4-test-env.patch
+  chmod +x src/tests/t.{ctype,leakfind,lexer.qpcr,lexer.eoh,message_id,queue_id}
+  autoreconf -vfi
+}
+
+build() {
+  cd ${pkgname}-${pkgver}
+  ./configure --prefix=/usr \
+              --sysconfdir=/etc/bogofilter  \
+              --localstatedir=/var \
+              --enable-transactions \
+              --with-database=db  #--help
+  make
+}
+
+check() {
+  cd $pkgname-$pkgver
+  BF_RUN_VALGRIND=1 make -k -C src check || /bin/true
+}
+
+package() {
+  cd ${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/"
+}

Copied: bogofilter/repos/staging-i686/bogofilter-1.2.4-test-env.patch (from rev 299213, bogofilter/trunk/bogofilter-1.2.4-test-env.patch)
===================================================================
--- staging-i686/bogofilter-1.2.4-test-env.patch	                        (rev 0)
+++ staging-i686/bogofilter-1.2.4-test-env.patch	2017-06-25 10:14:32 UTC (rev 299214)
@@ -0,0 +1,11 @@
+--- a/src/tests/Makefile.am
++++ b/src/tests/Makefile.am
+@@ -67,7 +67,7 @@
+ 
+ TESTS=$(BUILT_TESTS) $(TESTSCRIPTS)
+ 
+-TESTS_ENVIRONMENT=RUN_FROM_MAKE=1 AWK=$(AWK) srcdir=$(srcdir) SHELL="$(SHELL)" $(SHELL) $(VERBOSE)
++TESTS_ENVIRONMENT=RUN_FROM_MAKE=1 AWK=$(AWK) srcdir=$(srcdir) SHELL="$(SHELL)" $(VERBOSE)
+ 
+ EXTRA_DIST=$(TESTSCRIPTS) t.frame t.save t.skel \
+ 	printcore t._abort unsort.pl \

Copied: bogofilter/repos/staging-x86_64/PKGBUILD (from rev 299213, bogofilter/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2017-06-25 10:14:32 UTC (rev 299214)
@@ -0,0 +1,59 @@
+# $Id$
+# Maintainer: AndyRTR <andyrtr at archlinux.org>
+# Contributor: tobias <tobias at archlinux.org>
+# Contributor: Low Kian Seong <fastmail_low at speedymail.org>
+
+pkgname=bogofilter
+pkgver=1.2.4
+pkgrel=3
+pkgdesc="A fast Bayesian spam filtering tool"
+arch=('i686' 'x86_64')
+license=('GPL3')
+url="http://bogofilter.sourceforge.net"
+depends=('db' 'perl' 'gsl') # 'sqlite'
+makedepends=('valgrind' 'xmlto')
+backup=('etc/bogofilter/bogofilter.cf')
+source=(http://sourceforge.net/projects/${pkgname}/files/${pkgname}-current/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.bz2
+        bogofilter-1.2.4-test-env.patch)
+md5sums=('d0a5eebb3274b23ceabe766a6443a1c5'
+         'd01f23755ee9b4f5807b9feefea0b42d')
+
+# 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
+
+prepare() {
+  cd ${pkgname}-${pkgver}
+  # taken from Gentoo
+  patch -Np1 -i $srcdir/bogofilter-1.2.4-test-env.patch
+  chmod +x src/tests/t.{ctype,leakfind,lexer.qpcr,lexer.eoh,message_id,queue_id}
+  autoreconf -vfi
+}
+
+build() {
+  cd ${pkgname}-${pkgver}
+  ./configure --prefix=/usr \
+              --sysconfdir=/etc/bogofilter  \
+              --localstatedir=/var \
+              --enable-transactions \
+              --with-database=db  #--help
+  make
+}
+
+check() {
+  cd $pkgname-$pkgver
+  BF_RUN_VALGRIND=1 make -k -C src check || /bin/true
+}
+
+package() {
+  cd ${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/"
+}

Copied: bogofilter/repos/staging-x86_64/bogofilter-1.2.4-test-env.patch (from rev 299213, bogofilter/trunk/bogofilter-1.2.4-test-env.patch)
===================================================================
--- staging-x86_64/bogofilter-1.2.4-test-env.patch	                        (rev 0)
+++ staging-x86_64/bogofilter-1.2.4-test-env.patch	2017-06-25 10:14:32 UTC (rev 299214)
@@ -0,0 +1,11 @@
+--- a/src/tests/Makefile.am
++++ b/src/tests/Makefile.am
+@@ -67,7 +67,7 @@
+ 
+ TESTS=$(BUILT_TESTS) $(TESTSCRIPTS)
+ 
+-TESTS_ENVIRONMENT=RUN_FROM_MAKE=1 AWK=$(AWK) srcdir=$(srcdir) SHELL="$(SHELL)" $(SHELL) $(VERBOSE)
++TESTS_ENVIRONMENT=RUN_FROM_MAKE=1 AWK=$(AWK) srcdir=$(srcdir) SHELL="$(SHELL)" $(VERBOSE)
+ 
+ EXTRA_DIST=$(TESTSCRIPTS) t.frame t.save t.skel \
+ 	printcore t._abort unsort.pl \



More information about the arch-commits mailing list