diff options
-rw-r--r-- | mail/Makefile | 1 | ||||
-rw-r--r-- | mail/popfile/Makefile | 64 | ||||
-rw-r--r-- | mail/popfile/distinfo | 8 | ||||
-rw-r--r-- | mail/popfile/files/setup-popfile.sh | 31 | ||||
-rw-r--r-- | mail/popfile/pkg-descr | 13 | ||||
-rw-r--r-- | mail/popfile/pkg-plist | 163 |
6 files changed, 280 insertions, 0 deletions
diff --git a/mail/Makefile b/mail/Makefile index cfb85d6cd7d8..5cf4f80e2b9b 100644 --- a/mail/Makefile +++ b/mail/Makefile @@ -277,6 +277,7 @@ SUBDIR += popa3d-before-sendmail SUBDIR += popcheck SUBDIR += popd + SUBDIR += popfile SUBDIR += poppassd SUBDIR += popper SUBDIR += poppwd diff --git a/mail/popfile/Makefile b/mail/popfile/Makefile new file mode 100644 index 000000000000..5237988510d5 --- /dev/null +++ b/mail/popfile/Makefile @@ -0,0 +1,64 @@ +# New ports collection makefile for: popfile +# Date created: 22 Feb 2004 +# Whom: matusita@FreeBSD.org +# +# $FreeBSD$ +# + +PORTNAME= popfile +PORTVERSION= 0.20.1 +CATEGORIES= mail +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}:sf \ + ${MASTER_SITE_SOURCEFORGE_JP}:sfjp +MASTER_SITE_SUBDIR= ${PORTNAME}/:sf ${PORTNAME}/6747/:sfjp +DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:sf \ + ${PORTNAME}_jpn.zip:sfjp +DIST_SUBDIR= ${PORTNAME} + +PATCH_SITES= http://home.jp.FreeBSD.org/~matusita/distfiles/ +PATCHFILES= popfile-0.20.0rc5-apop.patch + +MAINTAINER= matusita@FreeBSD.org +COMMENT=Automatic mail classification tool, acts as a POP3 proxy + +RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/BerkeleyDB.pm:${PORTSDIR}/databases/p5-BerkeleyDB + +NO_BUILD= yes +NO_WRKSUBDIR= yes +USE_REINPLACE= yes + +USE_ZIP= yes +USE_PERL5_RUN= yes + +.include <bsd.port.pre.mk> + +.if defined(WITH_JAPANESE) +RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/Text/Kakasi.pm:${PORTSDIR}/japanese/p5-Text-Kakasi +.endif + +.if ${PERL_LEVEL} < 500800 +RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/MIME/Base64.pm:${PORTSDIR}/converters/p5-MIME-Base64 \ + ${SITE_PERL}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5 +.if defined(WITH_JAPANESE) +RUN_DEPENDS+= ${SITE_PERL}/jcode.pl:${PORTSDIR}/japanese/p5-jcode.pl +PATCHFILES+= popfile-0.20.1-use-jcode.pl.patch +.endif +.endif + +post-extract: + ${INSTALL_SCRIPT} ${FILESDIR}/setup-popfile.sh ${WRKSRC} + ${CP} ${WRKDIR}/0_20_1_1/POPFile/0.20.1/Classifier/Bayes.pm \ + ${WRKSRC}/Classifier/Bayes.pm + +post-patch: + ${REINPLACE_CMD} -e "s|__DATADIR__|${DATADIR}|" \ + ${WRKSRC}/setup-popfile.sh + ${RM} -f ${WRKSRC}/setup-popfile.sh.bak + ${CHMOD} +x ${WRKSRC}/popfile.pl + ${FIND} ${PATCH_WRKSRC} -name '*.orig' -delete + +do-install: + ${MKDIR} ${DATADIR} + ${CP} -R ${WRKSRC}/* ${DATADIR} + +.include <bsd.port.post.mk> diff --git a/mail/popfile/distinfo b/mail/popfile/distinfo new file mode 100644 index 000000000000..00afc5778306 --- /dev/null +++ b/mail/popfile/distinfo @@ -0,0 +1,8 @@ +MD5 (popfile/popfile-0.20.1.zip) = f37bbd25aa81e98f3846389b26390062 +SIZE (popfile/popfile-0.20.1.zip) = 1912427 +MD5 (popfile/popfile_jpn.zip) = f821a1e8cd06ca987ff5db4dafe9a85f +SIZE (popfile/popfile_jpn.zip) = 44725 +MD5 (popfile/popfile-0.20.0rc5-apop.patch) = b378d3d3957ddc7e80e8e1e804eac9ad +SIZE (popfile/popfile-0.20.0rc5-apop.patch) = 6477 +MD5 (popfile/popfile-0.20.1-use-jcode.pl.patch) = 544ccccaec1c386f2fa043d4c7460c04 +SIZE (popfile/popfile-0.20.1-use-jcode.pl.patch) = 1148 diff --git a/mail/popfile/files/setup-popfile.sh b/mail/popfile/files/setup-popfile.sh new file mode 100644 index 000000000000..aa0fce9e9483 --- /dev/null +++ b/mail/popfile/files/setup-popfile.sh @@ -0,0 +1,31 @@ +#!/bin/sh +# +# setup-popfile.sh: a script for setup popfile instance +# $FreeBSD$ +# + +ask_noyes() +{ + local key + + echo -n "$1 [y/N]: " + read key + case "$key" in + [Yy]*) + return 0;; + *) + return 1;; + esac +} + +echo "This script will 1) create 'popfile' directory and 2) setup 'popfile' directory for your popfile instance." +if ask_noyes "Are you ready?"; then + mkdir ./popfile + if [ -d ./popfile ]; then + cp -R __DATADIR__/* ./popfile + fi + echo "done." +else + echo "Stopped." + exit 1 +fi diff --git a/mail/popfile/pkg-descr b/mail/popfile/pkg-descr new file mode 100644 index 000000000000..784b11f852c0 --- /dev/null +++ b/mail/popfile/pkg-descr @@ -0,0 +1,13 @@ +POPFile is an automatic mail classification tool. Once properly set up and +trained, it will scan all email as it arrives and classify it based on your +training. You can give it a simple job, like separating out junk e-mail, or +a complicated one -- like filing mail into a dozen folders. Think of it as a +personal assistant for your inbox. + +Before using this ports, use ${LOCALDIR}/share/popfile/popfile-setup.sh +script to create _your_ own popfile instance. + +For 'Nihongo' users: this ports also imports the bugfix of Japanese +character parsing, versioned as 0.20.1.1. + +WWW: http://popfile.sourceforge.net/ diff --git a/mail/popfile/pkg-plist b/mail/popfile/pkg-plist new file mode 100644 index 000000000000..b1355096c729 --- /dev/null +++ b/mail/popfile/pkg-plist @@ -0,0 +1,163 @@ +%%DATADIR%%/0_20_1_1/POPFile/0.20.0/Classifier/Bayes.pm +%%DATADIR%%/0_20_1_1/POPFile/0.20.1/Classifier/Bayes.pm +%%DATADIR%%/0_20_1_1/README_euc +%%DATADIR%%/0_20_1_1/README_sjis +%%DATADIR%%/0_20_1_1/license +%%DATADIR%%/0_20_1_1/popfile_jpn.nsi +%%DATADIR%%/Classifier/Bayes.pm +%%DATADIR%%/Classifier/MailParse.pm +%%DATADIR%%/Classifier/WordMangle.pm +%%DATADIR%%/POPFile/Configuration.pm +%%DATADIR%%/POPFile/Loader.pm +%%DATADIR%%/POPFile/Logger.pm +%%DATADIR%%/POPFile/MQ.pm +%%DATADIR%%/POPFile/Module.pm +%%DATADIR%%/Proxy/POP3.pm +%%DATADIR%%/Proxy/Proxy.pm +%%DATADIR%%/UI/HTML.pm +%%DATADIR%%/UI/HTTP.pm +%%DATADIR%%/bayes.pl +%%DATADIR%%/black.gif +%%DATADIR%%/favicon.ico +%%DATADIR%%/insert.pl +%%DATADIR%%/languages/Bulgarian.msg +%%DATADIR%%/languages/Chinese-Simplified.msg +%%DATADIR%%/languages/Chinese-Traditional.msg +%%DATADIR%%/languages/Czech.msg +%%DATADIR%%/languages/Dansk.msg +%%DATADIR%%/languages/Deutsch.msg +%%DATADIR%%/languages/English-UK.msg +%%DATADIR%%/languages/English.msg +%%DATADIR%%/languages/Espanol.msg +%%DATADIR%%/languages/Francais.msg +%%DATADIR%%/languages/Hebrew.msg +%%DATADIR%%/languages/Hellenic.msg +%%DATADIR%%/languages/Hungarian.msg +%%DATADIR%%/languages/Italiano.msg +%%DATADIR%%/languages/Korean.msg +%%DATADIR%%/languages/Nederlands.msg +%%DATADIR%%/languages/Nihongo.msg +%%DATADIR%%/languages/Norsk.msg +%%DATADIR%%/languages/Polish.msg +%%DATADIR%%/languages/Portugues.msg +%%DATADIR%%/languages/Russian.msg +%%DATADIR%%/languages/Slovak.msg +%%DATADIR%%/languages/Suomi.msg +%%DATADIR%%/languages/Svenska.msg +%%DATADIR%%/languages/Turkce.msg +%%DATADIR%%/languages/Ukrainian.msg +%%DATADIR%%/license +%%DATADIR%%/manual/e_filter1.gif +%%DATADIR%%/manual/e_filter2.gif +%%DATADIR%%/manual/e_filter3.gif +%%DATADIR%%/manual/e_filter4.gif +%%DATADIR%%/manual/e_popfile1.gif +%%DATADIR%%/manual/e_popfile2.gif +%%DATADIR%%/manual/e_popfile3.gif +%%DATADIR%%/manual/en/email.html +%%DATADIR%%/manual/en/firewalls.html +%%DATADIR%%/manual/en/firsttime.html +%%DATADIR%%/manual/en/installing.html +%%DATADIR%%/manual/en/manual.html +%%DATADIR%%/manual/en/multiple.html +%%DATADIR%%/manual/en/proxies.html +%%DATADIR%%/manual/en/spa.html +%%DATADIR%%/manual/en/training.html +%%DATADIR%%/manual/o_filter1.gif +%%DATADIR%%/manual/o_filter2.gif +%%DATADIR%%/manual/o_filter3.gif +%%DATADIR%%/manual/o_filter4.gif +%%DATADIR%%/manual/o_filter5.gif +%%DATADIR%%/manual/o_filter6.gif +%%DATADIR%%/manual/o_popfile1.gif +%%DATADIR%%/manual/o_popfile2.gif +%%DATADIR%%/manual/o_popfile3.gif +%%DATADIR%%/manual/oe_filter1.gif +%%DATADIR%%/manual/oe_filter2.gif +%%DATADIR%%/manual/oe_filter3.gif +%%DATADIR%%/manual/oe_filter4.gif +%%DATADIR%%/manual/oe_filter5.gif +%%DATADIR%%/manual/oe_popfile1.gif +%%DATADIR%%/manual/oe_popfile2.gif +%%DATADIR%%/manual/oe_popfile3.gif +%%DATADIR%%/manual/oe_popfile4.gif +%%DATADIR%%/manual/p_filter1.gif +%%DATADIR%%/manual/p_filter2.gif +%%DATADIR%%/manual/p_filter3.gif +%%DATADIR%%/manual/p_filter4.gif +%%DATADIR%%/manual/p_popfile1.gif +%%DATADIR%%/manual/p_popfile2.gif +%%DATADIR%%/manual/p_popfile3.gif +%%DATADIR%%/manual/zonealaram.gif +%%DATADIR%%/otto.gif +%%DATADIR%%/pipe.pl +%%DATADIR%%/pix.gif +%%DATADIR%%/popfile.pl +%%DATADIR%%/setup-popfile.sh +%%DATADIR%%/skins/CoolBlue.css +%%DATADIR%%/skins/CoolBrown.css +%%DATADIR%%/skins/CoolGreen.css +%%DATADIR%%/skins/CoolOrange.css +%%DATADIR%%/skins/CoolYellow.css +%%DATADIR%%/skins/LRCLaptop.css +%%DATADIR%%/skins/Lavish.css +%%DATADIR%%/skins/PRJBlueGrey.css +%%DATADIR%%/skins/PRJSteelBeach.css +%%DATADIR%%/skins/SimplyBlue.css +%%DATADIR%%/skins/Sleet.css +%%DATADIR%%/skins/StrawberryRose.css +%%DATADIR%%/skins/blue.css +%%DATADIR%%/skins/chipped_obsidian.gif +%%DATADIR%%/skins/default.css +%%DATADIR%%/skins/glassblue.css +%%DATADIR%%/skins/green.css +%%DATADIR%%/skins/lavishImages/bottom.gif +%%DATADIR%%/skins/lavishImages/bottomLeft.gif +%%DATADIR%%/skins/lavishImages/bottomRight.gif +%%DATADIR%%/skins/lavishImages/buttonSelected.gif +%%DATADIR%%/skins/lavishImages/buttonUnselected.gif +%%DATADIR%%/skins/lavishImages/left.gif +%%DATADIR%%/skins/lavishImages/right.gif +%%DATADIR%%/skins/lavishImages/top.gif +%%DATADIR%%/skins/lavishImages/topLeft.gif +%%DATADIR%%/skins/lavishImages/topRight.gif +%%DATADIR%%/skins/metalback.gif +%%DATADIR%%/skins/orange.css +%%DATADIR%%/skins/orangeCream.css +%%DATADIR%%/skins/outlook.css +%%DATADIR%%/skins/sleetImages/bottom.gif +%%DATADIR%%/skins/sleetImages/bottomLeft.gif +%%DATADIR%%/skins/sleetImages/bottomRight.gif +%%DATADIR%%/skins/sleetImages/button.gif +%%DATADIR%%/skins/sleetImages/left.gif +%%DATADIR%%/skins/sleetImages/menu.gif +%%DATADIR%%/skins/sleetImages/menuButton.gif +%%DATADIR%%/skins/sleetImages/right.gif +%%DATADIR%%/skins/sleetImages/top.gif +%%DATADIR%%/skins/sleetImages/topLeft.gif +%%DATADIR%%/skins/sleetImages/topRight.gif +%%DATADIR%%/skins/smalldefault.css +%%DATADIR%%/skins/smallgrey.css +%%DATADIR%%/skins/tinydefault.css +%%DATADIR%%/skins/tinygrey.css +%%DATADIR%%/skins/white.css +%%DATADIR%%/skins/windows.css +%%DATADIR%%/stopwords +%%DATADIR%%/v0.20.1.change +@dirrm %%DATADIR%%/0_20_1_1/POPFile/0.20.0/Classifier +@dirrm %%DATADIR%%/0_20_1_1/POPFile/0.20.0 +@dirrm %%DATADIR%%/0_20_1_1/POPFile/0.20.1/Classifier +@dirrm %%DATADIR%%/0_20_1_1/POPFile/0.20.1 +@dirrm %%DATADIR%%/0_20_1_1/POPFile +@dirrm %%DATADIR%%/0_20_1_1 +@dirrm %%DATADIR%%/Classifier +@dirrm %%DATADIR%%/POPFile +@dirrm %%DATADIR%%/Proxy +@dirrm %%DATADIR%%/UI +@dirrm %%DATADIR%%/manual/en +@dirrm %%DATADIR%%/manual +@dirrm %%DATADIR%%/languages +@dirrm %%DATADIR%%/skins/lavishImages +@dirrm %%DATADIR%%/skins/sleetImages +@dirrm %%DATADIR%%/skins +@dirrm %%DATADIR%% |