aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleksii Samorukov <samm@FreeBSD.org>2024-01-09 09:25:37 +0000
committerOleksii Samorukov <samm@FreeBSD.org>2024-01-09 09:27:13 +0000
commit34fdd68f8580ffd2bdb6a83a28eedd4d1db85ed4 (patch)
tree906339a8acd55ea770ddd63c66f1b9d15a0c3cc7
parent1558a912b793717f951151974b67345dba2f8b57 (diff)
downloadports-34fdd68f8580ffd2bdb6a83a28eedd4d1db85ed4.tar.gz
ports-34fdd68f8580ffd2bdb6a83a28eedd4d1db85ed4.zip
www/trac-spamfilter: add new port
This trac plugin allows different ways to reject contributions that contain spam.
-rw-r--r--www/Makefile1
-rw-r--r--www/trac-spamfilter/Makefile30
-rw-r--r--www/trac-spamfilter/distinfo3
-rw-r--r--www/trac-spamfilter/pkg-descr2
4 files changed, 36 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index c21660b5fa7b..ceeacc82de6d 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -2361,6 +2361,7 @@
SUBDIR += tor-browser
SUBDIR += trac
SUBDIR += trac-accountmanager
+ SUBDIT += trac-spamfilter
SUBDIR += trafficserver
SUBDIR += transproxy
SUBDIR += trunk
diff --git a/www/trac-spamfilter/Makefile b/www/trac-spamfilter/Makefile
new file mode 100644
index 000000000000..5e91fbb0e87c
--- /dev/null
+++ b/www/trac-spamfilter/Makefile
@@ -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>
diff --git a/www/trac-spamfilter/distinfo b/www/trac-spamfilter/distinfo
new file mode 100644
index 000000000000..d84c7113214e
--- /dev/null
+++ b/www/trac-spamfilter/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1704791598
+SHA256 (spamfilter-1.5.1r17763.zip) = 0be8d8f2ad8db198d90526ab79b4183c2608779bfc4e428031c3aa077fb6c85c
+SIZE (spamfilter-1.5.1r17763.zip) = 312202
diff --git a/www/trac-spamfilter/pkg-descr b/www/trac-spamfilter/pkg-descr
new file mode 100644
index 000000000000..2313416c7140
--- /dev/null
+++ b/www/trac-spamfilter/pkg-descr
@@ -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.