diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2003-03-31 22:10:12 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2003-03-31 22:10:12 +0000 |
commit | 47e72898e40cc6645aea3805e78eae438a31b9d1 (patch) | |
tree | 9e79348fa0876fc5b5b56ed4add39f171c3e1de0 /misc/spamcalc | |
parent | New port: dwatch - A daemon watcher (diff) |
New port: misc/spamcalc
Spamcalc takes a hostname or a list of hostnames and
determines a dns spam score for each hostname. This value
is an indication for the spam-ness of the hostname. The
higher the score, the higher the chance that the hostname
is actually a dns spam hostname.
PR: ports/41625
Submitted by: Harold Gutch <logix@foobar.franken.de>
Notes
Notes:
svn path=/head/; revision=77852
Diffstat (limited to 'misc/spamcalc')
-rw-r--r-- | misc/spamcalc/Makefile | 43 | ||||
-rw-r--r-- | misc/spamcalc/distinfo | 1 | ||||
-rw-r--r-- | misc/spamcalc/pkg-descr | 14 | ||||
-rw-r--r-- | misc/spamcalc/pkg-plist | 28 |
4 files changed, 86 insertions, 0 deletions
diff --git a/misc/spamcalc/Makefile b/misc/spamcalc/Makefile new file mode 100644 index 000000000000..449bb34773c4 --- /dev/null +++ b/misc/spamcalc/Makefile @@ -0,0 +1,43 @@ +# New ports collection makefile for: spamcalc +# Date created: 13 August 2002 +# Whom: Harold Gutch <logix@foobar.franken.de> +# +# $FreeBSD$ + +PORTNAME= spamcalc +PORTVERSION= 0.5 +CATEGORIES= misc +MASTER_SITES= http://www.garion.org/spamcalc/ +DISTNAME= sc-0.5 +EXTRACT_SUFX= .tgz + +MAINTAINER= logix@foobar.franken.de +COMMENT= Calculates "DNS-spam"-values for hostnames + +USE_PERL5= YES + +do-build: + ${MV} ${WRKSRC}/sc.pl ${WRKSRC}/sc.pl.orig + ${SED} -e "s,sc.conf,${PREFIX}/etc/spamcalc.conf," < ${WRKSRC}/sc.pl.orig > ${WRKSRC}/sc.pl + ${MV} ${WRKSRC}/sc.conf ${WRKSRC}/sc.conf.orig + ${SED} -e "s,datafilesdir.*,datafilesdir = ${PREFIX}/share/spamcalc," < ${WRKSRC}/sc.conf.orig > ${WRKSRC}/sc.conf + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/sc.pl ${PREFIX}/bin/spamcalc + ${INSTALL_DATA} ${WRKSRC}/sc.conf ${PREFIX}/etc/spamcalc.conf + ${MKDIR} ${PREFIX}/share/spamcalc +.for i in words regexps domains + ${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/share/spamcalc +.endfor + ${MKDIR} ${PREFIX}/share/spamcalc/data +.for i in domains.blacklist domains.whitelist regexps.general regexps.nonspam spam.txt words.de words.it words.negative words.nl words.pl words.swear words.template words.uk + ${INSTALL_DATA} ${WRKSRC}/data/${i} ${PREFIX}/share/spamcalc/data +.endfor + ${MKDIR} ${PREFIX}/share/doc/spamcalc +.if !defined(NOPORTDOCS) +.for i in LICENSE algorithms arguments feedback files introduction todo + ${INSTALL_MAN} ${WRKSRC}/docs/${i} ${PREFIX}/share/doc/spamcalc +.endfor +.endif + +.include <bsd.port.mk> diff --git a/misc/spamcalc/distinfo b/misc/spamcalc/distinfo new file mode 100644 index 000000000000..e7bfe4b64f8c --- /dev/null +++ b/misc/spamcalc/distinfo @@ -0,0 +1 @@ +MD5 (sc-0.5.tgz) = af4810f5446c28615d0f30ece6393370 diff --git a/misc/spamcalc/pkg-descr b/misc/spamcalc/pkg-descr new file mode 100644 index 000000000000..ae9d9edc6c38 --- /dev/null +++ b/misc/spamcalc/pkg-descr @@ -0,0 +1,14 @@ +Spamcalc takes a hostname or a list of hostnames and determines a dns spam +score for each hostname. This value is an indication for the spam-ness of the +hostname. The higher the score, the higher the chance that the hostname is +actually a dns spam hostname. + +Hostnames that are considered dns spam are hostnames with (a part of) a +sentence in them (master.of.the.world.net), swearwords +(shittywhore.armaster.roadkill.net) and other forms of unwanted textual data +(666666666666666666666666666666666.sixtysix.org, 0-1-2-3-4-5.blah.com). + +WWW: http://www.garion.org/spamcalc.php + +- Harold Gutch + logix@foobar.franken.de diff --git a/misc/spamcalc/pkg-plist b/misc/spamcalc/pkg-plist new file mode 100644 index 000000000000..c66e9c6e4f89 --- /dev/null +++ b/misc/spamcalc/pkg-plist @@ -0,0 +1,28 @@ +bin/spamcalc +etc/spamcalc.conf +share/spamcalc/data/domains.blacklist +share/spamcalc/data/domains.whitelist +share/spamcalc/data/regexps.general +share/spamcalc/data/regexps.nonspam +share/spamcalc/data/spam.txt +share/spamcalc/data/words.de +share/spamcalc/data/words.it +share/spamcalc/data/words.negative +share/spamcalc/data/words.nl +share/spamcalc/data/words.pl +share/spamcalc/data/words.swear +share/spamcalc/data/words.template +share/spamcalc/data/words.uk +@dirrm share/spamcalc/data +%%PORTDOCS%%share/doc/spamcalc/LICENSE +%%PORTDOCS%%share/doc/spamcalc/algorithms +%%PORTDOCS%%share/doc/spamcalc/arguments +%%PORTDOCS%%share/doc/spamcalc/feedback +%%PORTDOCS%%share/doc/spamcalc/files +%%PORTDOCS%%share/doc/spamcalc/introduction +%%PORTDOCS%%share/doc/spamcalc/todo +%%PORTDOCS%%@dirrm share/doc/spamcalc +share/spamcalc/words +share/spamcalc/regexps +share/spamcalc/domains +@dirrm share/spamcalc |