www/trac-spamfilter: add new port

This trac plugin allows different ways to reject contributions that
contain spam.
This commit is contained in:
Oleksii Samorukov 2024-01-09 10:25:37 +01:00
parent 1558a912b7
commit 34fdd68f85
4 changed files with 36 additions and 0 deletions

View file

@ -2361,6 +2361,7 @@
SUBDIR += tor-browser
SUBDIR += trac
SUBDIR += trac-accountmanager
SUBDIT += trac-spamfilter
SUBDIR += trafficserver
SUBDIR += transproxy
SUBDIR += trunk

View file

@ -0,0 +1,30 @@
PORTNAME= spamfilter
PORTVERSION= 1.5.1r${REV}
CATEGORIES= www devel python
MASTER_SITES= https://trac.edgewall.org/browser/plugins/trunk/
PKGNAMEPREFIX= trac-
MAINTAINER= samm@FreeBSD.org
COMMENT= Trac Spam Filtering Plugin
WWW= https://trac.edgewall.org/wiki/SpamFilter
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYING
RUN_DEPENDS= tracd:www/trac
FETCH_BEFORE_ARGS= -o ${DISTFILES}
REV= 17763
WRKSRC= ${WRKDIR}/spam-filter
USES= python zip
USE_PYTHON= distutils autoplist
NO_ARCH= yes
do-fetch:
@if [ ! -f ${DISTDIR}/${DISTFILES} ]; then \
cd ${DISTDIR} && \
${FETCH_CMD} ${FETCH_BEFORE_ARGS} \
'${MASTER_SITES}spam-filter?rev=${REV}&format=zip'; \
fi
.include <bsd.port.mk>

View file

@ -0,0 +1,3 @@
TIMESTAMP = 1704791598
SHA256 (spamfilter-1.5.1r17763.zip) = 0be8d8f2ad8db198d90526ab79b4183c2608779bfc4e428031c3aa077fb6c85c
SIZE (spamfilter-1.5.1r17763.zip) = 312202

View file

@ -0,0 +1,2 @@
Trac plugin that allows different ways to reject contributions that contain
spam. Bayes database, regexp, RBL, Captcha and other options are supported.