git: df1a720dcb82 - main - mail/bogofilter-bdb: Remove expired port

From: Rene Ladan <rene_at_FreeBSD.org>
Date: Mon, 30 Jun 2025 11:30:59 UTC
The branch main has been updated by rene:

URL: https://cgit.FreeBSD.org/ports/commit/?id=df1a720dcb82a63e23e01373762e01f0686d2891

commit df1a720dcb82a63e23e01373762e01f0686d2891
Author:     Rene Ladan <rene@FreeBSD.org>
AuthorDate: 2025-06-30 11:30:49 +0000
Commit:     Rene Ladan <rene@FreeBSD.org>
CommitDate: 2025-06-30 11:30:49 +0000

    mail/bogofilter-bdb: Remove expired port
    
    2025-06-30 mail/bogofilter-bdb: The Berkeley DB database interface is obsolescent.
---
 MOVED                                              |   1 +
 mail/Makefile                                      |   1 -
 mail/bogofilter-bdb/Makefile                       | 102 ---------------------
 mail/bogofilter-bdb/distinfo                       |   3 -
 .../files/patch-contrib__trainbogo.sh              |  11 ---
 mail/bogofilter-bdb/pkg-descr                      |  12 ---
 mail/bogofilter-bdb/pkg-install                    |  15 ---
 mail/bogofilter-bdb/pkg-plist                      |  18 ----
 8 files changed, 1 insertion(+), 162 deletions(-)

diff --git a/MOVED b/MOVED
index df60f91ef504..98ce0b682733 100644
--- a/MOVED
+++ b/MOVED
@@ -4614,3 +4614,4 @@ devel/kyra||2025-06-30|Has expired: Abandonware, last release in 2006 and depden
 devel/libmimedir||2025-06-30|Has expired: Last release in 2008, no consumers in tree and unmaintained for years
 devel/py-openapi-codec|devel/py-openapi-core|2025-06-30|Has expired: Upstream archived the repository. Please use devel/py-openapi-core instead
 devel/linenoise-ng||2025-06-30|Has expired: Upstream repo archived Oct 28, 2020
+mail/bogofilter-bdb||2025-06-30|Has expired: The Berkeley DB database interface is obsolescent
diff --git a/mail/Makefile b/mail/Makefile
index 6f131336d2d5..ca02b3d15a74 100644
--- a/mail/Makefile
+++ b/mail/Makefile
@@ -29,7 +29,6 @@
     SUBDIR += bincimap
     SUBDIR += bmf
     SUBDIR += bogofilter
-    SUBDIR += bogofilter-bdb
     SUBDIR += bogofilter-kc
     SUBDIR += bogofilter-sqlite
     SUBDIR += bsd-vacation
diff --git a/mail/bogofilter-bdb/Makefile b/mail/bogofilter-bdb/Makefile
deleted file mode 100644
index 154b5bb2dc6e..000000000000
--- a/mail/bogofilter-bdb/Makefile
+++ /dev/null
@@ -1,102 +0,0 @@
-PORTNAME=	bogofilter
-DISTVERSION=	1.3.0.rc1
-PORTREVISION?=	0
-CATEGORIES?=	mail
-MASTER_SITES=	SF/bogofilter/bogofilter-current/bogofilter-1.3.0.beta/ \
-		https://gitlab.com/-/project/12408342/uploads/647db3bd2f28a1f91bdd3bb1945d91fe/
-PKGNAMESUFFIX?=	-bdb
-
-MAINTAINER?=	mandree@FreeBSD.org
-COMMENT=	Fast, teachable, learning spam detector
-WWW=		https://bogofilter.sourceforge.io/
-
-LICENSE=	GPLv2
-
-.if !defined(MASTERDIR) || ${MASTERDIR} == ${.CURDIR}
-# building master port
-USES+=		bdb:5+
-DEPRECATED=	The Berkeley DB database interface is obsolescent.
-EXPIRATION_DATE=2025-06-30
-.endif
-
-OPTIONS_DEFINE=		GSL UNICODE DOCS
-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 bogofilter bogofilter-kc
-
-USES+=		cpe perl5 shebangfix tar:xz
-SHEBANG_FILES=	contrib/randomtrain.sh contrib/scramble.sh \
-		src/tests/unsort.pl contrib/*.pl
-USE_PERL5=	run
-GNU_CONFIGURE=	yes
-
-CPE_VENDOR=	bogofilter_project
-
-UNICODE_USES=	iconv
-UNICODE_CONFIGURE_ENABLE=	unicode
-GSL_LIB_DEPENDS=	libgsl.so:math/gsl
-GSL_CONFIGURE_OFF=	--with-included-gsl
-
-PORTDOCS=	*
-
-TEST_TARGET=	check
-
-.include <bsd.port.pre.mk>
-
-BF_LIBS?=		-l${BDB_LIB_NAME}
-BF_CPPFLAGS?=		-I${BDB_INCLUDE_DIR} -I${LOCALBASE}/include
-CONFIGURE_ARGS+=	--sysconfdir=${PREFIX}/etc
-.if !defined(MASTERDIR) || ${MASTERDIR} == ${.CURDIR}
-CONFIGURE_ARGS+=	--with-database=db
-.endif
-.if ${PORT_OPTIONS:MUNICODE}
-BF_LIBS+=		${ICONV_LIB}
-.endif
-CPPFLAGS+=	${BF_CPPFLAGS}
-LIBS+=		-L${LOCALBASE}/lib ${BF_LIBS}
-CONFIGURE_ENV+=	PERL="${PERL}"
-INSTALL_TARGET=	install-strip prefix=${PREFIX} mandir=${PREFIX}/share/man
-
-post-patch:
-	${REINPLACE_CMD} -e 's/INTEGRITY_TESTS = t.lock1 t.lock3 t.valgrind/INTEGRITY_TESTS = t.lock1/' \
-		-e 's/ENVIRON_TESTS = t.abort/ENVIRON_TESTS =/' \
-		${WRKSRC}/src/tests/Makefile.in
-
-post-build:
-	cd ${WRKSRC}/src && ${SETENVI} SHELL=${SH} ${MAKE_CMD} ${TEST_TARGET} ${_MAKE_JOBS} SHELL=${SH} \
-		|| { r=$$? ; head -n30000 ${WRKSRC}/src/tests/test-suite.log ; exit $$r ; }
-
-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.git \
-	doc/README.validation TODO GETTING.STARTED \
-	RELEASE.NOTES doc/README.db doc/README.sqlite \
-	doc/integrating-with-postfix doc/integrating-with-qmail \
-	doc/bogofilter-tuning.HOWTO.html doc/bogofilter-SA-* \
-	doc/bogofilter-faq.html doc/bogofilter-faq-fr.html
-	  ${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
-.endfor
-.for i in README.randomtrain README.contrib
-	${INSTALL_DATA} ${WRKSRC}/contrib/${i} ${STAGEDIR}${DOCSDIR}/contrib/${i}
-.endfor
-	${INSTALL_DATA} ${WRKSRC}/doc/*.html ${STAGEDIR}${DOCSDIR}/html
-	${INSTALL_DATA} ${WRKSRC}/doc/*.xml ${STAGEDIR}${DOCSDIR}/xml
-	${INSTALL_DATA} ${WRKSRC}/doc/programmer/README.freebsd ${STAGEDIR}${DOCSDIR}/programmer
-	${INSTALL_PROGRAM} ${WRKSRC}/bogogrep ${STAGEDIR}${PREFIX}/bin/
-.for i in bfproxy.pl bogofilter-milter.pl bogo.R bogofilter-qfe.sh \
-		mime.get.rfc822.pl parmtest.sh printmaildir.pl \
-		bogominitrain.pl \
-		randomtrain.sh scramble.sh spamitarium.pl stripsearch.pl trainbogo.sh
-	  ${INSTALL_SCRIPT} ${WRKSRC}/contrib/${i} ${STAGEDIR}${DOCSDIR}/contrib/${i}
-.endfor
-.for i in dot-qmail-bogofilter-default \
-	mailfilter.example vm-bogofilter.el
-	${INSTALL_DATA} ${WRKSRC}/contrib/${i} ${STAGEDIR}${DOCSDIR}/contrib/${i}
-.endfor
-
-.include <bsd.port.post.mk>
diff --git a/mail/bogofilter-bdb/distinfo b/mail/bogofilter-bdb/distinfo
deleted file mode 100644
index eacda71cdf59..000000000000
--- a/mail/bogofilter-bdb/distinfo
+++ /dev/null
@@ -1,3 +0,0 @@
-TIMESTAMP = 1744986765
-SHA256 (bogofilter-1.3.0.rc1.tar.xz) = 0bc4b8300a106e7c5a4110c052272cfe64bb096ec5e7f552a44c3f41b574b29b
-SIZE (bogofilter-1.3.0.rc1.tar.xz) = 764724
diff --git a/mail/bogofilter-bdb/files/patch-contrib__trainbogo.sh b/mail/bogofilter-bdb/files/patch-contrib__trainbogo.sh
deleted file mode 100644
index 0d7cd5742567..000000000000
--- a/mail/bogofilter-bdb/files/patch-contrib__trainbogo.sh
+++ /dev/null
@@ -1,11 +0,0 @@
---- ./contrib/trainbogo.sh.orig	2007-07-24 00:44:06.000000000 +0200
-+++ ./contrib/trainbogo.sh	2011-08-31 12:15:20.000000000 +0200
-@@ -181,7 +181,7 @@
-     for i in "${hamdir}"/* "${spamdir}"/*
-       do
-       [ ! -f "${i}" ] && continue
--      md5=$(printf "%s" "${rndseed}${i}" | md5sum | sed "s/  -//")
-+      md5=$(printf "%s" "${rndseed}${i}" | md5)
-       echo "${md5}  ${i}" >> "${list}"
-     done
- 
diff --git a/mail/bogofilter-bdb/pkg-descr b/mail/bogofilter-bdb/pkg-descr
deleted file mode 100644
index 57fdfdc865d7..000000000000
--- a/mail/bogofilter-bdb/pkg-descr
+++ /dev/null
@@ -1,12 +0,0 @@
-Bogofilter is a trainable email spam detector.
-
-Bogofilter takes an email message or other text on standard input, parses it
-into words, does a statistical check against databases of "good" and "bad"
-words, and returns a status code indicating whether or not the message is spam.
-Bogofilter decodes base64 or quoted-printable encoded texts and ignores non-text
-attachments and HTML comments.
-
-The supported database backends are LMDB, Kyoto Cabinet and SQLite3, and
-for a while still Berkeley DB.  The upstream version would theoretically 
-also support QDBM and Tokyo Cabinet, but these are not currently available
-as FreeBSD ports.
diff --git a/mail/bogofilter-bdb/pkg-install b/mail/bogofilter-bdb/pkg-install
deleted file mode 100644
index 8da3d8915d7e..000000000000
--- a/mail/bogofilter-bdb/pkg-install
+++ /dev/null
@@ -1,15 +0,0 @@
-if [ "$2" = "POST-INSTALL" ] && [ -e ${PKG_PREFIX}/etc/bogofilter.cf ] ; then
-cat - <<_EOF
-
---------------------------------------------------------------------------
-The recent bogofilter versions have undergone substantial changes that can
-affect compatibility and may require that you change your configuration.
-
-See the RELEASE.NOTES file that shipped with bogofilter for details,
-particularly the sections with headings [Incompat ...] and [Major ...]!
-
-It is also advisable to check the README.* file for your database driver.
---------------------------------------------------------------------------
-
-_EOF
-fi
diff --git a/mail/bogofilter-bdb/pkg-plist b/mail/bogofilter-bdb/pkg-plist
deleted file mode 100644
index 19bc4ad38576..000000000000
--- a/mail/bogofilter-bdb/pkg-plist
+++ /dev/null
@@ -1,18 +0,0 @@
-bin/bf_compact
-bin/bf_copy
-bin/bf_tar
-bin/bogofilter
-bin/bogogrep
-bin/bogolexer
-bin/bogotune
-bin/bogoutil
-bin/bogoupgrade
-etc/bogofilter.cf.example
-share/man/man1/bf_compact.1.gz
-share/man/man1/bf_copy.1.gz
-share/man/man1/bf_tar.1.gz
-share/man/man1/bogofilter.1.gz
-share/man/man1/bogolexer.1.gz
-share/man/man1/bogotune.1.gz
-share/man/man1/bogoupgrade.1.gz
-share/man/man1/bogoutil.1.gz