diff options
author | martti <martti@pkgsrc.org> | 2001-10-22 06:57:10 +0000 |
---|---|---|
committer | martti <martti@pkgsrc.org> | 2001-10-22 06:57:10 +0000 |
commit | a8a505fac6f1aa32f6a12ce930a95aa57f862984 (patch) | |
tree | 0a7de2e7a51c61a5c784d2af2e1bc6d7510e2da5 /security/amavis-perl | |
parent | c756eb40fab57cc77ab2a6dc3e0fcd1bfa10d0e1 (diff) | |
download | pkgsrc-a8a505fac6f1aa32f6a12ce930a95aa57f862984.tar.gz |
This is amavis-perl (a.k.a. amavisd), a virus scanning script written in perl.
The currently supported MTAs are exim, qmail, postfix, and sendmail.
Please refer to the corresponding README.mta file for further
documentation.
Diffstat (limited to 'security/amavis-perl')
-rw-r--r-- | security/amavis-perl/Makefile | 76 | ||||
-rw-r--r-- | security/amavis-perl/distinfo | 4 | ||||
-rw-r--r-- | security/amavis-perl/files/LICENSE.sendmail | 79 | ||||
-rw-r--r-- | security/amavis-perl/files/amavis.m4 | 40 | ||||
-rw-r--r-- | security/amavis-perl/pkg/DESCR | 5 | ||||
-rw-r--r-- | security/amavis-perl/pkg/PLIST | 18 |
6 files changed, 222 insertions, 0 deletions
diff --git a/security/amavis-perl/Makefile b/security/amavis-perl/Makefile new file mode 100644 index 00000000000..9843ef7cc47 --- /dev/null +++ b/security/amavis-perl/Makefile @@ -0,0 +1,76 @@ +# $NetBSD: Makefile,v 1.1.1.1 2001/10/22 06:57:10 martti Exp $ +# + +DISTNAME= amavisd-snapshot-${VERSION} +PKGNAME= amavis-perl-${VERSION} +CATEGORIES= security mail +MASTER_SITES= http://www.amavis.org/dist/ \ + http://aachalon.de/AMaViS/ + +MAINTAINER= packages@netbsd.org +HOMEPAGE= http://www.amavis.org/ +COMMENT= Mail virus scanner + +CONFLICTS+= amavis-[0-9]* + +DEPENDS+= uvscan-[0-9]*:../../security/uvscan +DEPENDS+= maildrop-[0-9]*:../../mail/maildrop +DEPENDS+= tnef-[0-9]*:../../mail/tnef +DEPENDS+= unzip-[0-9]*:../../archivers/unzip +DEPENDS+= unarj-[0-9]*:../../archivers/unarj +DEPENDS+= unrar-[0-9]*:../../archivers/unrar +DEPENDS+= xbin-[0-9]*:../../archivers/xbin +DEPENDS+= lha-[0-9]*:../../archivers/lha +DEPENDS+= zoo-[0-9]*:../../archivers/zoo +DEPENDS+= freeze-[0-9]*:../../archivers/freeze +DEPENDS+= arc-[0-9]*:../../archivers/arc +DEPENDS+= p5-Archive-Tar-[0-9]*:../../archivers/p5-Archive-Tar +DEPENDS+= p5-Archive-Zip-[0-9]*:../../archivers/p5-Archive-Zip +DEPENDS+= p5-Compress-Zlib-[0-9]*:../../devel/p5-Compress-Zlib +DEPENDS+= p5-Convert-TNEF-[0-9]*:../../converters/p5-Convert-TNEF +DEPENDS+= p5-Convert-UUlib-[0-9]*:../../converters/p5-Convert-UUlib +DEPENDS+= p5-MIME-tools>=5.313:../../mail/p5-MIME-tools +DEPENDS+= p5-Net-[0-9]*:../../net/p5-Net +DEPENDS+= p5-Unix-Syslog-[0-9]*:../../sysutils/p5-Unix-Syslog + +VERSION= 20010714 + +SMTPPORT?= 10025 # target port for scanned mails +VIRUSDIR?= /var/log/virusmails # where to put contaminated mails +VIRUSMAILTO?= security # whom to notify about viruses + +GNU_CONFIGURE= YES + +CONFIGURE_ENV+= procmail="/usr/libexec/mail.local" + +CONFIGURE_ARGS+=--sysconfdir=${PREFIX}/etc/amavis +CONFIGURE_ARGS+=--with-virusdir=${VIRUSDIR} +CONFIGURE_ARGS+=--with-mailto=${VIRUSMAILTO} +CONFIGURE_ARGS+=--enable-all +CONFIGURE_ARGS+=--enable-smtp --with-smtp-port=${SMTPPORT} + +do-install: + # Program files + ${INSTALL_PROGRAM} ${WRKSRC}/amavis/amavis ${PREFIX}/sbin + ${INSTALL_SCRIPT} ${WRKSRC}/amavis/amavisd ${PREFIX}/sbin + # Documents + ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/amavis + ${INSTALL_DATA} ${WRKSRC}/doc/amavis.html ${PREFIX}/share/doc/amavis + ${INSTALL_DATA} ${WRKSRC}/doc/amavis.png ${PREFIX}/share/doc/amavis + ${INSTALL_DATA} ${WRKSRC}/doc/amavis.txt ${PREFIX}/share/doc/amavis + ${INSTALL_DATA} ${FILESDIR}/LICENSE.sendmail ${PREFIX}/share/doc/amavis + ${INSTALL_DATA} ${WRKSRC}/FAQ ${PREFIX}/share/doc/amavis + ${INSTALL_DATA} ${WRKSRC}/NEWS ${PREFIX}/share/doc/amavis + ${INSTALL_DATA} ${WRKSRC}/README.exim ${PREFIX}/share/doc/amavis + ${INSTALL_DATA} ${WRKSRC}/README.milter ${PREFIX}/share/doc/amavis + ${INSTALL_DATA} ${WRKSRC}/README.postfix ${PREFIX}/share/doc/amavis + ${INSTALL_DATA} ${WRKSRC}/README.qmail ${PREFIX}/share/doc/amavis + ${INSTALL_DATA} ${WRKSRC}/README.scanners ${PREFIX}/share/doc/amavis + ${INSTALL_DATA} ${WRKSRC}/README.sendmail ${PREFIX}/share/doc/amavis + ${INSTALL_DATA} ${WRKSRC}/amavis/amavisd.conf \ + ${PREFIX}/share/doc/amavis + ${SED} "s+@PREFIX@+${PREFIX}+g" < ${FILESDIR}/amavis.m4 \ + > ${WRKDIR}/amavis.m4 + ${INSTALL_DATA} ${WRKDIR}/amavis.m4 ${PREFIX}/share/doc/amavis + +.include "../../mk/bsd.pkg.mk" diff --git a/security/amavis-perl/distinfo b/security/amavis-perl/distinfo new file mode 100644 index 00000000000..8ac32cf00f9 --- /dev/null +++ b/security/amavis-perl/distinfo @@ -0,0 +1,4 @@ +$NetBSD: distinfo,v 1.1.1.1 2001/10/22 06:57:10 martti Exp $ + +SHA1 (amavisd-snapshot-20010714.tar.gz) = 2099c9e57ed05de30b5d2218c7deb56ba3230b33 +Size (amavisd-snapshot-20010714.tar.gz) = 290862 bytes diff --git a/security/amavis-perl/files/LICENSE.sendmail b/security/amavis-perl/files/LICENSE.sendmail new file mode 100644 index 00000000000..30c49986fbd --- /dev/null +++ b/security/amavis-perl/files/LICENSE.sendmail @@ -0,0 +1,79 @@ + SENDMAIL LICENSE + +The following license terms and conditions apply, unless a different +license is obtained from Sendmail, Inc., 6425 Christie Ave, Fourth Floor, +Emeryville, CA 94608, or by electronic mail at license@sendmail.com. + +License Terms: + +Use, Modification and Redistribution (including distribution of any +modified or derived work) in source and binary forms is permitted only if +each of the following conditions is met: + +1. Redistributions qualify as "freeware" or "Open Source Software" under + one of the following terms: + + (a) Redistributions are made at no charge beyond the reasonable cost of + materials and delivery. + + (b) Redistributions are accompanied by a copy of the Source Code or by an + irrevocable offer to provide a copy of the Source Code for up to three + years at the cost of materials and delivery. Such redistributions + must allow further use, modification, and redistribution of the Source + Code under substantially the same terms as this license. For the + purposes of redistribution "Source Code" means the complete compilable + and linkable source code of sendmail including all modifications. + +2. Redistributions of source code must retain the copyright notices as they + appear in each source code file, these license terms, and the + disclaimer/limitation of liability set forth as paragraph 6 below. + +3. Redistributions in binary form must reproduce the Copyright Notice, + these license terms, and the disclaimer/limitation of liability set + forth as paragraph 6 below, in the documentation and/or other materials + provided with the distribution. For the purposes of binary distribution + the "Copyright Notice" refers to the following language: + "Copyright (c) 1998-2000 Sendmail, Inc. All rights reserved." + +4. Neither the name of Sendmail, Inc. nor the University of California nor + the names of their contributors may be used to endorse or promote + products derived from this software without specific prior written + permission. The name "sendmail" is a trademark of Sendmail, Inc. + +5. All redistributions must comply with the conditions imposed by the + University of California on certain embedded code, whose copyright + notice and conditions for redistribution are as follows: + + (a) Copyright (c) 1988, 1993 The Regents of the University of + California. All rights reserved. + + (b) Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + (i) Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + (ii) Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + + (iii) Neither the name of the University nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + +6. Disclaimer/Limitation of Liability: THIS SOFTWARE IS PROVIDED BY + SENDMAIL, INC. AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED + WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN + NO EVENT SHALL SENDMAIL, INC., THE REGENTS OF THE UNIVERSITY OF + CALIFORNIA OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT + NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF + USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON + ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF + THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. + +Revision: 8.9, Last updated Date: 2000/03/03 19:24:11 diff --git a/security/amavis-perl/files/amavis.m4 b/security/amavis-perl/files/amavis.m4 new file mode 100644 index 00000000000..ed17c900105 --- /dev/null +++ b/security/amavis-perl/files/amavis.m4 @@ -0,0 +1,40 @@ +PUSHDIVERT(-1) +# +# amavis mailer definition for amavis-perl (http://www.amavis.org) +# +# Copyright (c) 2000 Yan Seiner +# GPL distribution - all disclaimers apply. +# +# Adopted & extented by Rainer Link, SuSE GmbH, <link@suse.de>, 03/02/2001 +# +# Currently UNTESTED +# USE AT YOUR OWN RISK +# + +ifdef(`AMAVIS_MAILER_ARGS',, + `define(`AMAVIS_MAILER_ARGS', amavis $f $u)') +ifdef(`AMAVIS_MAILER_PATH',, + `define(`AMAVIS_MAILER_PATH', @PREFIX@/sbin/amavis)') +ifdef(`AMAVIS_MAILER_FLAGS',, + `define(`AMAVIS_MAILER_FLAGS', `mlsACDFMS5:/|@qhP')') +ifdef(`AMAVIS_MAILER_USER',, + `define(`AMAVIS_MAILER_USER', amavis)') +ifdef(`AMAVIS_MAILER_GROUP',, + `define(`AMAVIS_MAILER_GROUP', amavis)') + + +POPDIVERT +####################################### +### AMAVIS Mailer specification ### +####################################### + +VERSIONID(`@(#)amavis.m4 03/02/2001') + +Mamavis, P=AMAVIS_MAILER_PATH, F=AMAVIS_MAILER_FLAGS, S=0, R=0, + T=DNS/RFC822/X-Unix, + ifdef(`AMAVIS_MAILER_MAX', `M=AMAVIS_MAILER_MAX, ')A=AMAVIS_MAILER_ARGS, + U=AMAVIS_MAILER_USER:AMAVIS_MAILER_GROUP + +LOCAL_RULE_0 +R$* $#amavis $:$1 + diff --git a/security/amavis-perl/pkg/DESCR b/security/amavis-perl/pkg/DESCR new file mode 100644 index 00000000000..52f54252074 --- /dev/null +++ b/security/amavis-perl/pkg/DESCR @@ -0,0 +1,5 @@ +AMaViS (A Mail Virus Scanner) scans e-mail attachments for viruses +using third-party virus scanners available for UNIX environments. +It resides on a UNIX machine and looks through the attached files +arriving via e-mail, generates reports when a virus is found, and +sets the delivery on hold. diff --git a/security/amavis-perl/pkg/PLIST b/security/amavis-perl/pkg/PLIST new file mode 100644 index 00000000000..9e878c5837b --- /dev/null +++ b/security/amavis-perl/pkg/PLIST @@ -0,0 +1,18 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2001/10/22 06:57:10 martti Exp $ +sbin/amavis +sbin/amavisd +share/doc/amavis/FAQ +share/doc/amavis/LICENSE.sendmail +share/doc/amavis/NEWS +share/doc/amavis/README.exim +share/doc/amavis/README.milter +share/doc/amavis/README.postfix +share/doc/amavis/README.qmail +share/doc/amavis/README.scanners +share/doc/amavis/README.sendmail +share/doc/amavis/amavis.html +share/doc/amavis/amavis.m4 +share/doc/amavis/amavis.png +share/doc/amavis/amavis.txt +share/doc/amavis/amavisd.conf +@dirrm share/doc/amavis |