diff options
author | edwin <edwin@FreeBSD.org> | 2003-03-31 22:10:12 +0000 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2003-03-31 22:10:12 +0000 |
commit | 32ef741d53f7c3edeaf77951b8f59270d4b4dc88 (patch) | |
tree | 627ef70ba111e99c87e48bf5c998b04ed140f92c /misc/spamcalc/Makefile | |
parent | 97f51ca7f074391d7835cabd2eabecffb55d79da (diff) | |
download | FreeBSD-ports-32ef741d53f7c3edeaf77951b8f59270d4b4dc88.zip FreeBSD-ports-32ef741d53f7c3edeaf77951b8f59270d4b4dc88.tar.gz |
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>
Diffstat (limited to 'misc/spamcalc/Makefile')
-rw-r--r-- | misc/spamcalc/Makefile | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/misc/spamcalc/Makefile b/misc/spamcalc/Makefile new file mode 100644 index 0000000..449bb34 --- /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> |