diff options
author | kim <kim@pkgsrc.org> | 2002-07-20 20:28:22 +0000 |
---|---|---|
committer | kim <kim@pkgsrc.org> | 2002-07-20 20:28:22 +0000 |
commit | 7af5e8ab943fd8928f48af0f30835973cbbec290 (patch) | |
tree | c0300a8a0152b3fedaf0454261194d6618cabc08 /mail/anomy-sanitizer | |
parent | 18dc27c59307ef05aaa17ba8ddbb66f8208bbe7f (diff) | |
download | pkgsrc-7af5e8ab943fd8928f48af0f30835973cbbec290.tar.gz |
Import mail/anomy-sanitizer-1.49:
Anomy Sanitizer filters mail messages checking for common exploits and
hostile file attachments. For instance: it can remove attachments,
rename unknown file types, "defang" HTML messages, fix MIME headers,
and call external virus scanners to scan email attachments.
Diffstat (limited to 'mail/anomy-sanitizer')
-rw-r--r-- | mail/anomy-sanitizer/DESCR | 4 | ||||
-rw-r--r-- | mail/anomy-sanitizer/Makefile | 65 | ||||
-rw-r--r-- | mail/anomy-sanitizer/PLIST | 60 | ||||
-rw-r--r-- | mail/anomy-sanitizer/distinfo | 4 |
4 files changed, 133 insertions, 0 deletions
diff --git a/mail/anomy-sanitizer/DESCR b/mail/anomy-sanitizer/DESCR new file mode 100644 index 00000000000..6fbf26a9e8d --- /dev/null +++ b/mail/anomy-sanitizer/DESCR @@ -0,0 +1,4 @@ +Anomy Sanitizer filters mail messages checking for common exploits and +hostile file attachments. For instance: it can remove attachments, +rename unknown file types, "defang" HTML messages, fix MIME headers, +and call external virus scanners to scan email attachments. diff --git a/mail/anomy-sanitizer/Makefile b/mail/anomy-sanitizer/Makefile new file mode 100644 index 00000000000..6524f8859fe --- /dev/null +++ b/mail/anomy-sanitizer/Makefile @@ -0,0 +1,65 @@ +# $NetBSD: Makefile,v 1.1.1.1 2002/07/20 20:28:23 kim Exp $ +# + +DISTNAME= anomy-sanitizer-1.49 +CATEGORIES= mail +MASTER_SITES= http://mailtools.anomy.net/dist/ + +MAINTAINER= kim@tac.nyc.ny.us +HOMEPAGE= http://mailtools.anomy.net/ +COMMENT= Mail message filter and sanitizer + +DEPENDS+= p5-MIME-Base64-[0-9]*:../../converters/p5-MIME-Base64 + +.include "../../mk/bsd.prefs.mk" + +NO_CONFIGURE= # defined +NO_PATCH= # defined +USE_PERL5= # defined + +WRKSRC= ${WRKDIR}/anomy + +ANOMYLIB= ${PREFIX}/lib/anomy-sanitizer +ANOMYDOC= ${PREFIX}/share/doc/anomy-sanitizer + +do-build: + cd ${WRKSRC} && ( \ + for i in sanitizer simplify; do \ + ( \ + cd bin && ${MV} -f $$i.pl $$i.pl.orig && \ + ${SED} 's;/usr/bin/perl;${PERL5};' $$i.pl.orig > $$i.pl; \ + ); \ + ( \ + ${ECHO} '#!${SH}'; \ + ${ECHO} 'export ANOMY'; \ + ${ECHO} 'ANOMY=${ANOMYLIB}'; \ + ${ECHO} 'exec $${ANOMY}/bin/'$$i'.pl "$$@"'; \ + ) > $$i; \ + done; \ + ) + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/sanitizer ${PREFIX}/sbin + ${INSTALL_SCRIPT} ${WRKSRC}/simplify ${PREFIX}/sbin + ${INSTALL_DATA_DIR} ${ANOMYDOC} + cd ${WRKSRC} && ${PAX} -rw \ + CHANGELOG.sanitizer \ + CREDITS \ + README.sanitizer \ + contrib \ + sanitizer.html \ + testcases \ + ${ANOMYDOC} + ${CHMOD} -R u=rw,go=r ${ANOMYDOC} + ${CHMOD} -R a+X ${ANOMYDOC} + ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${ANOMYDOC} + ${INSTALL_DATA_DIR} ${ANOMYLIB} + ${INSTALL_DATA_DIR} ${ANOMYLIB}/bin + ${INSTALL_SCRIPT} ${WRKSRC}/bin/sanitizer.pl ${ANOMYLIB}/bin + ${INSTALL_SCRIPT} ${WRKSRC}/bin/simplify.pl ${ANOMYLIB}/bin + cd ${WRKSRC}/bin && ${PAX} -rw Anomy ${ANOMYLIB}/bin + ${CHMOD} -R u=rw,go=r ${ANOMYLIB}/bin/Anomy + ${CHMOD} -R a+X ${ANOMYLIB}/bin/Anomy + ${CHOWN} -R ${LIBOWN}:${LIBGRP} ${ANOMYLIB} + +.include "../../mk/bsd.pkg.mk" diff --git a/mail/anomy-sanitizer/PLIST b/mail/anomy-sanitizer/PLIST new file mode 100644 index 00000000000..cbd905bcd74 --- /dev/null +++ b/mail/anomy-sanitizer/PLIST @@ -0,0 +1,60 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2002/07/20 20:28:22 kim Exp $ +lib/anomy-sanitizer/bin/Anomy/HTMLCleaner.pm +lib/anomy-sanitizer/bin/Anomy/Log.pm +lib/anomy-sanitizer/bin/Anomy/MIMEStream.pm +lib/anomy-sanitizer/bin/Anomy/Sanitizer.pm +lib/anomy-sanitizer/bin/Anomy/Sanitizer/MacroScanner.pm +lib/anomy-sanitizer/bin/Anomy/Sanitizer/Scoring.pm +lib/anomy-sanitizer/bin/sanitizer.pl +lib/anomy-sanitizer/bin/simplify.pl +@dirrm lib/anomy-sanitizer/bin/Anomy/Sanitizer +@dirrm lib/anomy-sanitizer/bin/Anomy +@dirrm lib/anomy-sanitizer/bin +@dirrm lib/anomy-sanitizer +sbin/sanitizer +sbin/simplify +share/doc/anomy-sanitizer/CHANGELOG.sanitizer +share/doc/anomy-sanitizer/CREDITS +share/doc/anomy-sanitizer/README.sanitizer +share/doc/anomy-sanitizer/contrib/anomy.m4 +share/doc/anomy-sanitizer/contrib/check_for_virus +share/doc/anomy-sanitizer/contrib/postfix.txt +share/doc/anomy-sanitizer/contrib/sendmail-m4.txt +share/doc/anomy-sanitizer/sanitizer.html +share/doc/anomy-sanitizer/testcases/README +share/doc/anomy-sanitizer/testcases/results.def/sanitizer.appledouble.ok +share/doc/anomy-sanitizer/testcases/results.def/sanitizer.bad_html.ok +share/doc/anomy-sanitizer/testcases/results.def/sanitizer.base64.ok +share/doc/anomy-sanitizer/testcases/results.def/sanitizer.boundary.ok +share/doc/anomy-sanitizer/testcases/results.def/sanitizer.defaults.ok +share/doc/anomy-sanitizer/testcases/results.def/sanitizer.exchange.ok +share/doc/anomy-sanitizer/testcases/results.def/sanitizer.filenames.ok +share/doc/anomy-sanitizer/testcases/results.def/sanitizer.force_hdr.ok +share/doc/anomy-sanitizer/testcases/results.def/sanitizer.forwarded.ok +share/doc/anomy-sanitizer/testcases/results.def/sanitizer.logging.ok +share/doc/anomy-sanitizer/testcases/results.def/sanitizer.msg-crlf.ok +share/doc/anomy-sanitizer/testcases/results.def/sanitizer.plugin.ok +share/doc/anomy-sanitizer/testcases/results.def/sanitizer.rfc822.ok +share/doc/anomy-sanitizer/testcases/results.def/sanitizer.uu-rfc822.ok +share/doc/anomy-sanitizer/testcases/results.def/simplify.multipart.ok +share/doc/anomy-sanitizer/testcases/sanitizer.appledouble.t +share/doc/anomy-sanitizer/testcases/sanitizer.bad_html.t +share/doc/anomy-sanitizer/testcases/sanitizer.base64.t +share/doc/anomy-sanitizer/testcases/sanitizer.boundary.t +share/doc/anomy-sanitizer/testcases/sanitizer.defaults.t +share/doc/anomy-sanitizer/testcases/sanitizer.exchange.t +share/doc/anomy-sanitizer/testcases/sanitizer.filenames.t +share/doc/anomy-sanitizer/testcases/sanitizer.force_hdr.t +share/doc/anomy-sanitizer/testcases/sanitizer.forwarded.t +share/doc/anomy-sanitizer/testcases/sanitizer.logging.t +share/doc/anomy-sanitizer/testcases/sanitizer.msg-crlf.t +share/doc/anomy-sanitizer/testcases/sanitizer.plugin.t +share/doc/anomy-sanitizer/testcases/sanitizer.rfc822.t +share/doc/anomy-sanitizer/testcases/sanitizer.uu-rfc822.t +share/doc/anomy-sanitizer/testcases/simplify.multipart.t +share/doc/anomy-sanitizer/testcases/testall.sh +share/doc/anomy-sanitizer/testcases/tests.conf.SAMPLE +@dirrm share/doc/anomy-sanitizer/testcases/results.def +@dirrm share/doc/anomy-sanitizer/testcases/ +@dirrm share/doc/anomy-sanitizer/contrib +@dirrm share/doc/anomy-sanitizer diff --git a/mail/anomy-sanitizer/distinfo b/mail/anomy-sanitizer/distinfo new file mode 100644 index 00000000000..48d268ef530 --- /dev/null +++ b/mail/anomy-sanitizer/distinfo @@ -0,0 +1,4 @@ +$NetBSD: distinfo,v 1.1.1.1 2002/07/20 20:28:22 kim Exp $ + +SHA1 (anomy-sanitizer-1.49.tar.gz) = 7406c26db6d6e393c38369f535f09994002dfb45 +Size (anomy-sanitizer-1.49.tar.gz) = 113648 bytes |