[Midnightbsd-cvs] mports: mports/mail:
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Thu Nov 8 11:33:41 EST 2007
Log Message:
-----------
Modified Files:
--------------
mports/mail:
Makefile (r1.36 -> r1.37)
Added Files:
-----------
mports/mail/p5-FuzzyOcr:
Makefile (r1.1)
distinfo (r1.1)
pkg-descr (r1.1)
mports/mail/p5-FuzzyOcr/files:
pkg-message.in (r1.1)
-------------- next part --------------
Index: Makefile
===================================================================
RCS file: /home/cvs/mports/mail/Makefile,v
retrieving revision 1.36
retrieving revision 1.37
diff -L mail/Makefile -L mail/Makefile -u -r1.36 -r1.37
--- mail/Makefile
+++ mail/Makefile
@@ -22,6 +22,7 @@
SUBDIR += mutt
SUBDIR += mutt-devel
SUBDIR += p5-Email-Address
+ SUBDIR += p5-FuzzyOcr
SUBDIR += p5-MIME-Tools
SUBDIR += p5-MIME-Types
SUBDIR += p5-Mail-DKIM
--- /dev/null
+++ mail/p5-FuzzyOcr/pkg-descr
@@ -0,0 +1,12 @@
+FuzzyOcr is a plugin for SpamAssassin which scans image attachments for
+spam keywords, using an Optical Character Recognition program.
+
+This plugin can be used to detect spam that puts all the real spam
+content in an attached image. The mail itself only random text and
+random html, without any URLs or identifiable information.
+
+It is also able to do approximate matches on words, so errors in
+recognition or attempts to obfuscate the text inside the image will not
+cause the detection to fail.
+
+WWW: http://wiki.apache.org/spamassassin/FuzzyOcrPlugin
--- /dev/null
+++ mail/p5-FuzzyOcr/Makefile
@@ -0,0 +1,83 @@
+# New ports collection makefile for: FuzzyOcr
+# Date Created: 8 Nov 2007
+# Whom: Lucas Holt <luke at midnightbsd.org>
+#
+# $MidnightBSD: mports/mail/p5-FuzzyOcr/Makefile,v 1.1 2007/11/08 16:33:38 laffer1 Exp $
+#
+
+PORTNAME= FuzzyOcr
+DISTVERSION= 2.3b
+PORTEPOCH= 1
+CATEGORIES= mail perl5
+MASTER_SITES= http://users.own-hero.net/~decoder/${PORTNAME:L}/ \
+ http://mirror.inerd.com/FreeBSD/distfiles/${PORTNAME}/
+PKGNAMEPREFIX= p5-
+DISTNAME= ${PORTNAME:L}-${DISTVERSION}
+
+MAINTAINER= ports at MidnightBSD.org
+COMMENT= Plugin for SpamAssassin which scans image attachments for spam
+
+RUN_DEPENDS= giftopnm:${PORTSDIR}/graphics/netpbm \
+ import:${PORTSDIR}/graphics/ImageMagick \
+ gocr:${PORTSDIR}/graphics/gocr \
+ gif2ps:${PORTSDIR}/graphics/libungif \
+ spamassassin:${PORTSDIR}/mail/p5-Mail-SpamAssassin \
+ ${SITE_PERL}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5 \
+ ${SITE_PERL}/${PERL_ARCH}/String/Approx.pm:${PORTSDIR}/devel/p5-String-Approx
+
+USE_PERL5= yes
+WANT_PERL= yes
+NO_BUILD= yes
+
+WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION}
+
+PORTDOCS= FAQ samples
+PORTDOCS_F= FAQ samples/README samples/animated-gif.eml \
+ samples/corrupted-gif.eml samples/jpeg.eml samples/png.eml
+
+SUB_FILES= pkg-message
+
+#-----------------------------------------------------------------------
+# The plugin is installed twice: once where it should go, and once where
+# it actually works from. This will hopefully be fixed at some point.
+#-----------------------------------------------------------------------
+
+SA_PLUGINDIR?= Mail/SpamAssassin/Plugin
+SA_CONFIGDIR?= etc/mail/spamassassin
+
+PLIST_FILES= ${SA_CONFIGDIR}/FuzzyOcr.pm \
+ %%SITE_PERL%%/${SA_PLUGINDIR}/FuzzyOcr.pm \
+ %%EXAMPLESDIR%%/FuzzyOcr.cf %%EXAMPLESDIR%%/FuzzyOcr.words
+PLIST_DIRS= %%EXAMPLESDIR%% \
+ %%SITE_PERL%%/${SA_PLUGINDIR} \
+ %%SITE_PERL%% \
+ ${SA_CONFIGDIR}
+
+post-patch:
+ @${REINPLACE_CMD} -e 's,/usr/bin,${LOCALBASE}/bin,g' \
+ -e 's,/bin/grep,/usr/bin/grep,g' \
+ -e 's,/etc/mail,${LOCALBASE}/etc/mail,g' \
+ ${WRKSRC}/FuzzyOcr.??
+ @${REINPLACE_CMD} -e 's,package FuzzyOcr;,package Mail::SpamAssassin::Plugin::FuzzyOcr;,' \
+ ${WRKSRC}/FuzzyOcr.pm
+ @${REINPLACE_CMD} -e 's,loadplugin FuzzyOcr FuzzyOcr\.pm,loadplugin Mail::SpamAssassin::Plugin::FuzzyOcr,' \
+ ${WRKSRC}/FuzzyOcr.cf
+
+do-install:
+ ${MKDIR} ${EXAMPLESDIR}
+ ${MKDIR} ${FAKE_DESTDIR}${SITE_PERL}/${SA_PLUGINDIR}
+ ${MKDIR} ${PREFIX}/${SA_CONFIGDIR}
+ ${INSTALL_DATA} ${WRKSRC}/FuzzyOcr.pm ${FAKE_DESTDIR}${SITE_PERL}/${SA_PLUGINDIR}
+ ${INSTALL_DATA} ${WRKSRC}/FuzzyOcr.pm ${PREFIX}/${SA_CONFIGDIR}
+ ${INSTALL_DATA} ${WRKSRC}/FuzzyOcr.cf ${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/FuzzyOcr.words.sample ${EXAMPLESDIR}/FuzzyOcr.words
+
+post-install:
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}/samples
+. for f in ${PORTDOCS_F}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/${f}
+. endfor
+.endif
+
+.include <bsd.port.mk>
--- /dev/null
+++ mail/p5-FuzzyOcr/distinfo
@@ -0,0 +1,3 @@
+MD5 (fuzzyocr-2.3b.tar.gz) = 51edf3fa63a4438ce26b2fc15f28ff00
+SHA256 (fuzzyocr-2.3b.tar.gz) = 10db14b33a42249de40e347a8ad26cff150c2a6f6580246bce8689d8f1dc0a82
+SIZE (fuzzyocr-2.3b.tar.gz) = 76411
--- /dev/null
+++ mail/p5-FuzzyOcr/files/pkg-message.in
@@ -0,0 +1,3 @@
+ To complete the install of FuzzyOcr, copy FuzzyOcr.cf and
+ FuzzyOcr.words from %%EXAMPLESDIR%% into your
+ SpamAssassin configuration directory.
More information about the Midnightbsd-cvs
mailing list