Date: Tue, 13 Aug 2002 18:51:26 +0200 (CEST) From: Harold Gutch <logix@foobar.franken.de> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/41625: New port: misc/spamcalc Message-ID: <200208131651.g7DGpQ8Y076172@foobar.franken.de>
next in thread | raw e-mail | index | archive | help
>Number: 41625 >Category: ports >Synopsis: New port: misc/spamcalc >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Aug 13 10:00:13 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Harold Gutch >Release: FreeBSD 4.6-STABLE i386 >Organization: >Environment: System: FreeBSD foobar.franken.de 4.6-STABLE FreeBSD 4.6-STABLE #3: Wed Aug 7 01:01:01 CEST 2002 logix@foobar.franken.de:/usr/obj/usr/src/sys/FOOBAR i386 >Description: 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 >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # spamcalc # spamcalc/pkg-comment # spamcalc/Makefile # spamcalc/distinfo # spamcalc/pkg-descr # spamcalc/pkg-plist # echo c - spamcalc mkdir -p spamcalc > /dev/null 2>&1 echo x - spamcalc/pkg-comment sed 's/^X//' >spamcalc/pkg-comment << 'END-of-spamcalc/pkg-comment' XCalculates "DNS-spam"-values for hostnames END-of-spamcalc/pkg-comment echo x - spamcalc/Makefile sed 's/^X//' >spamcalc/Makefile << 'END-of-spamcalc/Makefile' X# New ports collection makefile for: spamcalc X# Date created: 13 August 2002 X# Whom: Harold Gutch <logix@foobar.franken.de> X# X# $FreeBSD$ X XPORTNAME= spamcalc XPORTVERSION= 0.5 XCATEGORIES= misc XMASTER_SITES= http://www.garion.org/spamcalc/ XDISTNAME= sc-0.5 XEXTRACT_SUFX= .tgz X XMAINTAINER= logix@foobar.franken.de X XUSE_PERL5= YES X Xdo-build: X ${MV} ${WRKSRC}/sc.pl ${WRKSRC}/sc.pl.orig X ${SED} -e "s,sc.conf,${PREFIX}/etc/spamcalc.conf," < ${WRKSRC}/sc.pl.orig > ${WRKSRC}/sc.pl X ${MV} ${WRKSRC}/sc.conf ${WRKSRC}/sc.conf.orig X ${SED} -e "s,datafilesdir.*,datafilesdir = ${PREFIX}/share/spamcalc," < ${WRKSRC}/sc.conf.orig > ${WRKSRC}/sc.conf X Xdo-install: X ${INSTALL_SCRIPT} ${WRKSRC}/sc.pl ${PREFIX}/bin/spamcalc X ${INSTALL_DATA} ${WRKSRC}/sc.conf ${PREFIX}/etc/spamcalc.conf X ${MKDIR} ${PREFIX}/share/spamcalc X.for i in words regexps domains X ${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/share/spamcalc X.endfor X ${MKDIR} ${PREFIX}/share/spamcalc/data X.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 X ${INSTALL_DATA} ${WRKSRC}/data/${i} ${PREFIX}/share/spamcalc/data X.endfor X ${MKDIR} ${PREFIX}/share/doc/spamcalc X.if !defined(NOPORTDOCS) X.for i in LICENSE algorithms arguments feedback files introduction todo X ${INSTALL_MAN} ${WRKSRC}/docs/${i} ${PREFIX}/share/doc/spamcalc X.endfor X.endif X X.include <bsd.port.mk> END-of-spamcalc/Makefile echo x - spamcalc/distinfo sed 's/^X//' >spamcalc/distinfo << 'END-of-spamcalc/distinfo' XMD5 (sc-0.5.tgz) = af4810f5446c28615d0f30ece6393370 END-of-spamcalc/distinfo echo x - spamcalc/pkg-descr sed 's/^X//' >spamcalc/pkg-descr << 'END-of-spamcalc/pkg-descr' XSpamcalc takes a hostname or a list of hostnames and determines a dns spam Xscore for each hostname. This value is an indication for the spam-ness of the Xhostname. The higher the score, the higher the chance that the hostname is Xactually a dns spam hostname. X XHostnames that are considered dns spam are hostnames with (a part of) a Xsentence in them (master.of.the.world.net), swearwords X(shittywhore.armaster.roadkill.net) and other forms of unwanted textual data X(666666666666666666666666666666666.sixtysix.org, 0-1-2-3-4-5.blah.com). X XWWW: http://www.garion.org/spamcalc.php X X- Harold Gutch X logix@foobar.franken.de END-of-spamcalc/pkg-descr echo x - spamcalc/pkg-plist sed 's/^X//' >spamcalc/pkg-plist << 'END-of-spamcalc/pkg-plist' Xbin/spamcalc Xetc/spamcalc.conf Xshare/spamcalc/data/domains.blacklist Xshare/spamcalc/data/domains.whitelist Xshare/spamcalc/data/regexps.general Xshare/spamcalc/data/regexps.nonspam Xshare/spamcalc/data/spam.txt Xshare/spamcalc/data/words.de Xshare/spamcalc/data/words.it Xshare/spamcalc/data/words.negative Xshare/spamcalc/data/words.nl Xshare/spamcalc/data/words.pl Xshare/spamcalc/data/words.swear Xshare/spamcalc/data/words.template Xshare/spamcalc/data/words.uk X@dirrm share/spamcalc/data X%%PORTDOCS%%share/doc/spamcalc/LICENSE X%%PORTDOCS%%share/doc/spamcalc/algorithms X%%PORTDOCS%%share/doc/spamcalc/arguments X%%PORTDOCS%%share/doc/spamcalc/feedback X%%PORTDOCS%%share/doc/spamcalc/files X%%PORTDOCS%%share/doc/spamcalc/introduction X%%PORTDOCS%%share/doc/spamcalc/todo X%%PORTDOCS%%@dirrm share/doc/spamcalc Xshare/spamcalc/words Xshare/spamcalc/regexps Xshare/spamcalc/domains X@dirrm share/spamcalc END-of-spamcalc/pkg-plist exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200208131651.g7DGpQ8Y076172>