Date: Tuesday, December 13, 2022 @ 15:01:48
Author: freswa
Revision: 464247
archrelease: copy trunk to staging-x86_64
Added:
bogofilter/repos/staging-x86_64/PKGBUILD
(from rev 464246, bogofilter/trunk/PKGBUILD)
bogofilter/repos/staging-x86_64/bdb_5.3.patch
(from rev 464246, bogofilter/trunk/bdb_5.3.patch)
bogofilter/repos/staging-x86_64/keys/
Deleted:
bogofilter/repos/staging-x86_64/PKGBUILD
bogofilter/repos/staging-x86_64/keys/
---------------+
PKGBUILD | 129 +++++++++++++++++++++++++++++---------------------------
bdb_5.3.patch | 16 ++++++
2 files changed, 83 insertions(+), 62 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-12-13 15:01:44 UTC (rev 464246)
+++ PKGBUILD 2022-12-13 15:01:48 UTC (rev 464247)
@@ -1,62 +0,0 @@
-# Maintainer: AndyRTR <[email protected]>
-# Contributor: tobias <[email protected]>
-# Contributor: Low Kian Seong <[email protected]>
-
-pkgname=bogofilter
-pkgver=1.2.5
-pkgrel=6
-pkgdesc="A fast Bayesian spam filtering tool"
-arch=('x86_64')
-license=('GPL3')
-url="https://bogofilter.sourceforge.io/"
-depends=('db' 'perl' 'gsl') # 'sqlite'
-makedepends=('valgrind' 'xmlto')
-backup=('etc/bogofilter/bogofilter.cf')
-options=('debug')
-source=(https://downloads.sourceforge.net/project/${pkgname}/${pkgname}-stable/${pkgname}-${pkgver}.tar.xz{,.asc})
# asc file doesn't work with pacman
-sha1sums=('c779c3afb3e57ae0208ee503a854aff716b0cafd'
- 'SKIP')
-sha256sums=('3248a1373bff552c500834adbea4b6caee04224516ae581fb25a4c6a6dee89ea'
- 'SKIP')
-validpgpkeys=('DC4A655BD993CD4871FA8210E412B156EFF3855A') # "Matthias Andree
<[email protected]>"
-
-# note: build system doesn't allow easy overlinking prevention - no libtool
hack possible
-
-prepare() {
- cd "$pkgname-$pkgver"
- autoreconf -vfi
-}
-
-# 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
-# as of 1.2.5 new backend can be KyotoCabinet and lmdb
-
-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/"
- rm "${pkgdir}"/usr/share/${pkgname}/contrib/bogogrep.o
-}
Copied: bogofilter/repos/staging-x86_64/PKGBUILD (from rev 464246,
bogofilter/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-12-13 15:01:48 UTC (rev 464247)
@@ -0,0 +1,67 @@
+# Maintainer: AndyRTR <[email protected]>
+# Contributor: tobias <[email protected]>
+# Contributor: Low Kian Seong <[email protected]>
+
+pkgname=bogofilter
+pkgver=1.2.5
+pkgrel=7
+pkgdesc="A fast Bayesian spam filtering tool"
+arch=('x86_64')
+license=('GPL3')
+url="https://bogofilter.sourceforge.io/"
+depends=('db5.3' 'perl' 'gsl') # 'sqlite'
+makedepends=('valgrind' 'xmlto')
+backup=('etc/bogofilter/bogofilter.cf')
+options=('debug')
+source=(https://downloads.sourceforge.net/project/${pkgname}/${pkgname}-stable/${pkgname}-${pkgver}.tar.xz{,.asc}
+ bdb_5.3.patch) # asc file doesn't work with pacman
+sha1sums=('c779c3afb3e57ae0208ee503a854aff716b0cafd'
+ 'SKIP'
+ 'd42a6517a4d90835f1d54517056e704f7c01ea19')
+sha256sums=('3248a1373bff552c500834adbea4b6caee04224516ae581fb25a4c6a6dee89ea'
+ 'SKIP'
+ '5adb184d81a302ec13cf6320ce30ef177432ba346373b56febf5ab9b1f449999')
+validpgpkeys=('DC4A655BD993CD4871FA8210E412B156EFF3855A') # "Matthias Andree
<[email protected]>"
+
+# note: build system doesn't allow easy overlinking prevention - no libtool
hack possible
+
+prepare() {
+ cd "$pkgname-$pkgver"
+ patch -Np1 -i ../bdb_5.3.patch
+ autoreconf -vfi
+}
+
+# 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
+# as of 1.2.5 new backend can be KyotoCabinet and lmdb
+
+build() {
+ cd "${pkgname}"-${pkgver}
+ ./configure CFLAGS="$CFLAGS -I/usr/include/db5.3" \
+ --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/"
+ rm "${pkgdir}"/usr/share/${pkgname}/contrib/bogogrep.o
+}
Copied: bogofilter/repos/staging-x86_64/bdb_5.3.patch (from rev 464246,
bogofilter/trunk/bdb_5.3.patch)
===================================================================
--- bdb_5.3.patch (rev 0)
+++ bdb_5.3.patch 2022-12-13 15:01:48 UTC (rev 464247)
@@ -0,0 +1,16 @@
+--- aaa/configure.ac 2022-12-13 15:57:38.070520834 +0100
++++ bbb/configure.ac 2022-12-13 15:58:06.100487616 +0100
+@@ -538,11 +538,11 @@
+ dnl and try to guess if we need -lpthread or -lthread
+ DB_TYPE=db
+ DB_EXT=.db
+- AC_LIB_LINKFLAGS([db])
++ AC_LIB_LINKFLAGS([db-5.3])
+ AC_MSG_CHECKING(db and dependent libraries)
+ saveLIBS="$LIBS"
+ havelib=0
+- for dblibs in "" "$LIBDB" ; do
++ for dblibs in "" "$LIBDB_5_3" ; do
+ for addlibs in "" -lpthread -lthread ; do
+ LIBDB="$dblibs $addlibs"
+ export LIBDB