From owner-freebsd-ports Tue Aug 13 10: 0:39 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AFCA537B625 for ; Tue, 13 Aug 2002 10:00:15 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A216C43E72 for ; Tue, 13 Aug 2002 10:00:14 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7DH0EJU031229 for ; Tue, 13 Aug 2002 10:00:14 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7DH0EDm031228; Tue, 13 Aug 2002 10:00:14 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 59E3537B400 for ; Tue, 13 Aug 2002 09:51:41 -0700 (PDT) Received: from mailout04.sul.t-online.com (mailout04.sul.t-online.com [194.25.134.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id 603F043E70 for ; Tue, 13 Aug 2002 09:51:40 -0700 (PDT) (envelope-from logix@foobar.franken.de) Received: from fwd00.sul.t-online.de by mailout04.sul.t-online.com with smtp id 17eetO-00017M-02; Tue, 13 Aug 2002 18:51:38 +0200 Received: from foobar.franken.de (520066542279-0001@[217.229.168.3]) by fmrl00.sul.t-online.com with esmtp id 17eetE-0QPWF6C; Tue, 13 Aug 2002 18:51:28 +0200 Received: from foobar.franken.de (localhost [127.0.0.1]) by foobar.franken.de (8.12.5/8.12.5) with ESMTP id g7DGpRNr076173 for ; Tue, 13 Aug 2002 18:51:27 +0200 (CEST) (envelope-from logix@foobar.franken.de) Received: (from logix@localhost) by foobar.franken.de (8.12.5/8.12.5/Submit) id g7DGpQ8Y076172; Tue, 13 Aug 2002 18:51:26 +0200 (CEST) Message-Id: <200208131651.g7DGpQ8Y076172@foobar.franken.de> Date: Tue, 13 Aug 2002 18:51:26 +0200 (CEST) From: Harold Gutch Reply-To: Harold Gutch To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/41625: New port: misc/spamcalc Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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 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 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