aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorleeym <leeym@FreeBSD.org>2003-04-07 14:51:44 +0800
committerleeym <leeym@FreeBSD.org>2003-04-07 14:51:44 +0800
commit9b10b44668e9db6dd62cab2084564da8d357b59e (patch)
tree53587db5bc2116f00a37cf90621943200c4a5ade
parent89620e7ada0da5cefcb64f1c2dd7e148136f7d1c (diff)
downloadfreebsd-ports-gnome-9b10b44668e9db6dd62cab2084564da8d357b59e.tar.gz
freebsd-ports-gnome-9b10b44668e9db6dd62cab2084564da8d357b59e.tar.zst
freebsd-ports-gnome-9b10b44668e9db6dd62cab2084564da8d357b59e.zip
add spamstats-0.4b
a tool to generate statistics on a {exim/postfix/sendmail}/spamd system.
-rw-r--r--mail/Makefile1
-rw-r--r--mail/spamstats/Makefile33
-rw-r--r--mail/spamstats/distinfo1
-rw-r--r--mail/spamstats/pkg-descr8
-rw-r--r--mail/spamstats/pkg-plist5
5 files changed, 48 insertions, 0 deletions
diff --git a/mail/Makefile b/mail/Makefile
index 621afc5b8d35..a45c23b21a1b 100644
--- a/mail/Makefile
+++ b/mail/Makefile
@@ -278,6 +278,7 @@
SUBDIR += spambnc
SUBDIR += spamoracle
SUBDIR += spamprobe
+ SUBDIR += spamstats
SUBDIR += spruce
SUBDIR += squirrelmail
SUBDIR += sqwebmail
diff --git a/mail/spamstats/Makefile b/mail/spamstats/Makefile
new file mode 100644
index 000000000000..d3318659e6bd
--- /dev/null
+++ b/mail/spamstats/Makefile
@@ -0,0 +1,33 @@
+# New ports collection makefile for: spamstats
+# Date created: 14 March 2003
+# Whom: Yen-Ming Lee <leeym@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= spamstats
+PORTVERSION= 0.4b
+CATEGORIES= mail
+MASTER_SITES= http://www.gryzor.com/tools/
+
+MAINTAINER= leeym@FreeBSD.org
+COMMENT= A tool to generate statistics for spamd of Mail::SpamAssassin
+
+RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Compress/Zlib.pm:${PORTSDIR}/archivers/p5-Compress-Zlib
+
+USE_PERL5= yes
+NO_BUILD= yes
+
+post-patch:
+ @${PERL} -pi -e 's,/mail.log,/maillog,g' ${WRKSRC}/${PORTNAME}${PORTVERSION}.pl
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}${PORTVERSION}.pl ${PREFIX}/bin/${PORTNAME}.pl
+.ifndef (NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+.for file in QUICK README copyright
+ ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
+.endfor
+.endif
+
+.include <bsd.port.mk>
diff --git a/mail/spamstats/distinfo b/mail/spamstats/distinfo
new file mode 100644
index 000000000000..6e0a385387e9
--- /dev/null
+++ b/mail/spamstats/distinfo
@@ -0,0 +1 @@
+MD5 (spamstats-0.4b.tar.gz) = 2087f4f58af845d98fdabaf404d499d2
diff --git a/mail/spamstats/pkg-descr b/mail/spamstats/pkg-descr
new file mode 100644
index 000000000000..b48fc15a1c51
--- /dev/null
+++ b/mail/spamstats/pkg-descr
@@ -0,0 +1,8 @@
+A script that generates statistics about spam you receive at your site.
+
+The script parses maillog file, generated by exim/postfix/sendmail and spamd.
+
+The script will currently not work with other mailers than exim, postfix or
+sendmail (contributions will be welcome) or if you do not use spamd.
+
+WWW: http://www.gryzor.com/tools/#spamstats
diff --git a/mail/spamstats/pkg-plist b/mail/spamstats/pkg-plist
new file mode 100644
index 000000000000..5fd3cbe88ea2
--- /dev/null
+++ b/mail/spamstats/pkg-plist
@@ -0,0 +1,5 @@
+bin/spamstats.pl
+%%PORTDOCS%%share/doc/spamstats/QUICK
+%%PORTDOCS%%share/doc/spamstats/README
+%%PORTDOCS%%share/doc/spamstats/copyright
+%%PORTDOCS%%@dirrm share/doc/spamstats