git: 34fdd68f8580 - main - www/trac-spamfilter: add new port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 09 Jan 2024 09:27:58 UTC
The branch main has been updated by samm:
URL: https://cgit.FreeBSD.org/ports/commit/?id=34fdd68f8580ffd2bdb6a83a28eedd4d1db85ed4
commit 34fdd68f8580ffd2bdb6a83a28eedd4d1db85ed4
Author: Oleksii Samorukov <samm@FreeBSD.org>
AuthorDate: 2024-01-09 09:25:37 +0000
Commit: Oleksii Samorukov <samm@FreeBSD.org>
CommitDate: 2024-01-09 09:27:13 +0000
www/trac-spamfilter: add new port
This trac plugin allows different ways to reject contributions that
contain spam.
---
www/Makefile | 1 +
www/trac-spamfilter/Makefile | 30 ++++++++++++++++++++++++++++++
www/trac-spamfilter/distinfo | 3 +++
www/trac-spamfilter/pkg-descr | 2 ++
4 files changed, 36 insertions(+)
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.