Update bogofilter to 1.2.5.r1, add new database variants.
There are now -kc and -lmdb slave ports that use KyotoCabinet and LMDB databases. Since KyotoCabinet is supposed to relieve TokyoCabinet from duty, sunset the -tc port some 15 months from now. Clean up CONFLICTS. Run self-tests in post-build. This reveals Berkeley DB issues on the various RISC architectures (mips64, aarch64).
This commit is contained in:
parent
1da1b1f812
commit
1f37352beb
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=511600
7 changed files with 66 additions and 16 deletions
|
@ -36,6 +36,8 @@
|
|||
SUBDIR += bincimap
|
||||
SUBDIR += bmf
|
||||
SUBDIR += bogofilter
|
||||
SUBDIR += bogofilter-kc
|
||||
SUBDIR += bogofilter-lmdb
|
||||
SUBDIR += bogofilter-sqlite
|
||||
SUBDIR += bogofilter-tc
|
||||
SUBDIR += bsfilter
|
||||
|
|
21
mail/bogofilter-kc/Makefile
Normal file
21
mail/bogofilter-kc/Makefile
Normal file
|
@ -0,0 +1,21 @@
|
|||
# $FreeBSD$
|
||||
|
||||
PORTNAME= bogofilter
|
||||
PORTREVISION= 0
|
||||
CATEGORIES= mail
|
||||
PKGNAMESUFFIX= -kc
|
||||
|
||||
MAINTAINER= mandree@FreeBSD.org
|
||||
|
||||
LIB_DEPENDS= libkyotocabinet.so:databases/kyotocabinet
|
||||
|
||||
CONFLICTS_INSTALL= bogofilter-[0-9]* bogofilter-lmdb-[0-9]* bogofilter-sqlite-[0-9]* bogofilter-tc-[0-9]*
|
||||
|
||||
CONFIGURE_ARGS= --with-database=kyotocabinet
|
||||
BF_CPPFLAGS= -I${LOCALBASE}/include
|
||||
BF_LIBS=
|
||||
DESCR= ${PKGDIR}/pkg-descr
|
||||
|
||||
MASTERDIR= ${.CURDIR}/../bogofilter
|
||||
|
||||
.include "${MASTERDIR}/Makefile"
|
21
mail/bogofilter-lmdb/Makefile
Normal file
21
mail/bogofilter-lmdb/Makefile
Normal file
|
@ -0,0 +1,21 @@
|
|||
# $FreeBSD$
|
||||
|
||||
PORTNAME= bogofilter
|
||||
PORTREVISION= 0
|
||||
CATEGORIES= mail
|
||||
PKGNAMESUFFIX= -lmdb
|
||||
|
||||
MAINTAINER= mandree@FreeBSD.org
|
||||
|
||||
LIB_DEPENDS= liblmdb.so:databases/lmdb
|
||||
|
||||
CONFLICTS_INSTALL= bogofilter-[0-9]* bogofilter-kc-[0-9]* bogofilter-sqlite-[0-9]* *bogofilter-tc-[0-9]*
|
||||
|
||||
CONFIGURE_ARGS= --with-database=lmdb
|
||||
BF_CPPFLAGS= -I${LOCALBASE}/include
|
||||
BF_LIBS=
|
||||
DESCR= ${PKGDIR}/pkg-descr
|
||||
|
||||
MASTERDIR= ${.CURDIR}/../bogofilter
|
||||
|
||||
.include "${MASTERDIR}/Makefile"
|
|
@ -2,14 +2,13 @@
|
|||
# $FreeBSD$
|
||||
|
||||
PORTNAME= bogofilter
|
||||
PORTREVISION= 4
|
||||
CATEGORIES= mail
|
||||
PKGNAMESUFFIX= -sqlite
|
||||
|
||||
MAINTAINER= mandree@FreeBSD.org
|
||||
|
||||
USES= sqlite
|
||||
CONFLICTS_INSTALL= bogofilter-[0-9]* bogofilter-qdbm-[0-9]* bogofilter-tc-[0-9]* [a-z][a-z]-bogofilter-[0-9]*
|
||||
CONFLICTS_INSTALL= bogofilter-[0-9]* bogofilter-lmdb-[0-9]* bogofilter-kc-[0-9]* bogofilter-tc-[0-9]*
|
||||
|
||||
CONFIGURE_ARGS= --with-database=sqlite
|
||||
BF_CPPFLAGS= -I${LOCALBASE}/include
|
||||
|
|
|
@ -2,16 +2,18 @@
|
|||
# $FreeBSD$
|
||||
|
||||
PORTNAME= bogofilter
|
||||
PORTREVISION= 3
|
||||
CATEGORIES= mail
|
||||
PKGNAMESUFFIX= -tc
|
||||
|
||||
DEPRECATED= TokyoCabinet is being phased out in favor of KyotoCabinet.
|
||||
EXPIRATION_DATE=2020-12-31
|
||||
|
||||
MAINTAINER= mandree@FreeBSD.org
|
||||
# Blanket approval for changes by Zach Thompson (address above)
|
||||
|
||||
LIB_DEPENDS= libtokyocabinet.so:databases/tokyocabinet
|
||||
|
||||
CONFLICTS_INSTALL= bogofilter-[0-9]* [a-z][a-z]-bogofilter-[1-9]* bogofilter-sqlite-[0-9]* bogofilter-qdbm-[0-9]*
|
||||
CONFLICTS_INSTALL= bogofilter-[0-9]* bogofilter-sqlite-[0-9]* bogofilter-kc-[0-9]* bogofilter-lmdb-[0-9]*
|
||||
|
||||
CONFIGURE_ARGS= --with-database=tokyocabinet
|
||||
BF_CPPFLAGS= -I${LOCALBASE}/include
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
# $FreeBSD$
|
||||
|
||||
PORTNAME= bogofilter
|
||||
PORTVERSION= 1.2.4
|
||||
PORTREVISION?= 8
|
||||
DISTVERSION= 1.2.5.rc1
|
||||
PORTREVISION?= 0
|
||||
CATEGORIES?= mail
|
||||
MASTER_SITES= SF/bogofilter/bogofilter-current/bogofilter-${PORTVERSION}
|
||||
MASTER_SITES= SF/bogofilter/bogofilter-current/bogofilter-1.2.5/
|
||||
|
||||
MAINTAINER?= mandree@FreeBSD.org
|
||||
COMMENT= Fast, teachable, learning spam detector
|
||||
|
@ -22,9 +22,13 @@ OPTIONS_DEFAULT= GSL UNICODE
|
|||
GSL_DESC= Link with system-wide GSL dynamically (recommended)
|
||||
UNICODE_DESC= Normalize tokens to Unicode (UTF-8) (recommended)
|
||||
|
||||
CONFLICTS_INSTALL?= bogofilter-sqlite-[0-9]* bogofilter-qdbm-[0-9]* bogofilter-tc-[0-9]* [a-z][a-z]-bogofilter-[0-9]*
|
||||
CONFLICTS_INSTALL?= bogofilter-sqlite-[0-9]* bogofilter-tc-[0-9]* bogofilter-lmdb-[0-9]* \
|
||||
bogofilter-kc-[0-9]*
|
||||
|
||||
USES+= cpe perl5 shebangfix tar:bzip2
|
||||
# XXX FIXME: autoreconf:build should not be required,
|
||||
# but something hoses timestamps on src/tests/Makefile.am
|
||||
# but not src/tests/Makefile.in.
|
||||
USES+= autoreconf:build cpe perl5 shebangfix tar:xz
|
||||
SHEBANG_FILES= contrib/randomtrain.sh contrib/scramble.sh \
|
||||
src/tests/unsort.pl contrib/*.pl
|
||||
USE_PERL5= run
|
||||
|
@ -59,16 +63,16 @@ post-patch:
|
|||
-e 's/ENVIRON_TESTS = t.abort/ENVIRON_TESTS =/' \
|
||||
${WRKSRC}/src/tests/Makefile.am
|
||||
|
||||
# XXX: disable self-tests until issue with automake-1.13 is sorted out
|
||||
# post-build::
|
||||
# cd ${WRKSRC}/src && make check SHELL=${SH}
|
||||
post-build:
|
||||
cd ${WRKSRC}/src && ${SETENV} SHELL=${SH} ${MAKE_CMD} ${TEST_TARGET} ${_MAKE_JOBS} SHELL=${SH} \
|
||||
|| { r=$$? ; head -n30000 ${WRKSRC}/src/tests/test-suite.log ; exit $$r ; }
|
||||
|
||||
post-install::
|
||||
post-install:
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}/contrib
|
||||
.for i in html programmer xml
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}/${i}
|
||||
.endfor
|
||||
.for i in AUTHORS COPYING INSTALL NEWS README README.svn \
|
||||
.for i in AUTHORS COPYING INSTALL NEWS README README.git \
|
||||
doc/README.validation TODO GETTING.STARTED \
|
||||
RELEASE.NOTES doc/README.db doc/README.sqlite \
|
||||
doc/integrating-with-postfix doc/integrating-with-qmail \
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
SHA256 (bogofilter-1.2.4.tar.bz2) = e10287a58d135feaea26880ce7d4b9fa2841fb114a2154bf7da8da98aab0a6b4
|
||||
SIZE (bogofilter-1.2.4.tar.bz2) = 887848
|
||||
TIMESTAMP = 1567975270
|
||||
SHA256 (bogofilter-1.2.5.rc1.tar.xz) = 62a9a00ca575b1253bafd5ae308049cbf388816e5ef0a9a18ee8167cf6c42680
|
||||
SIZE (bogofilter-1.2.5.rc1.tar.xz) = 802008
|
||||
|
|
Loading…
Reference in a new issue