diff options
author | kefren <kefren@pkgsrc.org> | 2010-12-24 07:23:35 +0000 |
---|---|---|
committer | kefren <kefren@pkgsrc.org> | 2010-12-24 07:23:35 +0000 |
commit | c2af6baed7687a4e0805315ffbd93edeb36cf333 (patch) | |
tree | d40948b8a307c6028dda0ff37358ef0f9c2166c5 | |
parent | a1f7aa9f422527d73c7bce52345a0c23d6fea092 (diff) | |
download | pkgsrc-c2af6baed7687a4e0805315ffbd93edeb36cf333.tar.gz |
Remove amavis-perl and amavisd-new from security/. They are now moved
into pkgsrc/mail. Part of PR/32554
-rw-r--r-- | security/amavis-perl/DESCR | 5 | ||||
-rw-r--r-- | security/amavis-perl/Makefile | 103 | ||||
-rw-r--r-- | security/amavis-perl/PLIST | 21 | ||||
-rw-r--r-- | security/amavis-perl/PLIST.nomilter | 3 | ||||
-rw-r--r-- | security/amavis-perl/distinfo | 5 | ||||
-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/options.mk | 22 | ||||
-rw-r--r-- | security/amavisd-new/DESCR | 11 | ||||
-rw-r--r-- | security/amavisd-new/MESSAGE | 21 | ||||
-rw-r--r-- | security/amavisd-new/MESSAGE.milter | 24 | ||||
-rw-r--r-- | security/amavisd-new/Makefile | 138 | ||||
-rw-r--r-- | security/amavisd-new/PLIST | 45 | ||||
-rw-r--r-- | security/amavisd-new/distinfo | 6 | ||||
-rw-r--r-- | security/amavisd-new/files/amavisd.sh | 77 | ||||
-rw-r--r-- | security/amavisd-new/files/amavismilter.sh | 57 | ||||
-rw-r--r-- | security/amavisd-new/patches/patch-aa | 33 |
17 files changed, 0 insertions, 690 deletions
diff --git a/security/amavis-perl/DESCR b/security/amavis-perl/DESCR deleted file mode 100644 index 52f54252074..00000000000 --- a/security/amavis-perl/DESCR +++ /dev/null @@ -1,5 +0,0 @@ -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/Makefile b/security/amavis-perl/Makefile deleted file mode 100644 index 32687c2428f..00000000000 --- a/security/amavis-perl/Makefile +++ /dev/null @@ -1,103 +0,0 @@ -# $NetBSD: Makefile,v 1.28 2009/06/01 19:38:57 sno Exp $ - -DISTNAME= amavisd-${VERSION} -PKGNAME= amavis-perl-${VERSION} -PKGREVISION= 7 -CATEGORIES= security mail -MASTER_SITES= http://www.amavis.org/dist/perl/ \ - ${MASTER_SITE_SOURCEFORGE:=amavis/} - -MAINTAINER= pkgsrc-users@NetBSD.org -HOMEPAGE= http://www.amavis.org/ -COMMENT= Mail virus scanner - -PKG_DESTDIR_SUPPORT= user-destdir - -CONFLICTS+= amavis-[0-9]* -CONFLICTS+= amavis-perl-[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-IO-Compress-[0-9]*:../../devel/p5-IO-Compress -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+= {perl>=5.10,p5-Net-[0-9]*}:../../net/p5-Net -DEPENDS+= p5-Unix-Syslog-[0-9]*:../../sysutils/p5-Unix-Syslog - -.include "options.mk" - -.include "../../mk/bsd.prefs.mk" - -VERSION= 0.1 - -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 -PLIST_SRC= ${PKGDIR}/PLIST - -USE_TOOLS+= file perl:run -CONFIGURE_ENV+= file=${TOOLS_FILE_CMD:Q} - -CONFIGURE_ENV+= procmail="/usr/libexec/mail.local" - -CONFIGURE_ARGS+=--sysconfdir=${PREFIX}/etc/amavis -CONFIGURE_ARGS+=--with-virusdir=${VIRUSDIR:Q} -CONFIGURE_ARGS+=--with-mailto=${VIRUSMAILTO:Q} -CONFIGURE_ARGS+=--enable-all -CONFIGURE_ARGS+=--with-amavisuser=amavis -CONFIGURE_ARGS+=--with-perl=${PERL5} - -INSTALLATION_DIRS= sbin ${PKGMANDIR}/man1 ${PKGMANDIR}/man5 \ - ${PKGMANDIR}/man8 share/doc/amavis - -post-build: - ${SED} -e "s|/etc/amavisd.conf|${PREFIX}/etc/amavis/amavisd.conf|" \ - ${WRKSRC}/amavis/amavisd > ${WRKDIR}/amavisd - -do-install: - # Program files -.if empty(PKG_OPTIONS:Mmilter) - ${INSTALL_PROGRAM} ${WRKSRC}/amavis/amavis ${DESTDIR}${PREFIX}/sbin -.endif - ${INSTALL_SCRIPT} ${WRKDIR}/amavisd ${DESTDIR}${PREFIX}/sbin - # Documents - ${INSTALL_DATA} ${WRKSRC}/doc/amavis.html ${DESTDIR}${PREFIX}/share/doc/amavis - ${INSTALL_DATA} ${WRKSRC}/doc/amavis.png ${DESTDIR}${PREFIX}/share/doc/amavis - ${INSTALL_DATA} ${WRKSRC}/doc/amavis.txt ${DESTDIR}${PREFIX}/share/doc/amavis - ${INSTALL_DATA} ${FILESDIR}/LICENSE.sendmail ${DESTDIR}${PREFIX}/share/doc/amavis - ${INSTALL_DATA} ${WRKSRC}/FAQ ${DESTDIR}${PREFIX}/share/doc/amavis - ${INSTALL_DATA} ${WRKSRC}/NEWS ${DESTDIR}${PREFIX}/share/doc/amavis - ${INSTALL_DATA} ${WRKSRC}/README.exim ${DESTDIR}${PREFIX}/share/doc/amavis - ${INSTALL_DATA} ${WRKSRC}/README.milter ${DESTDIR}${PREFIX}/share/doc/amavis - ${INSTALL_DATA} ${WRKSRC}/README.postfix ${DESTDIR}${PREFIX}/share/doc/amavis - ${INSTALL_DATA} ${WRKSRC}/README.qmail ${DESTDIR}${PREFIX}/share/doc/amavis - ${INSTALL_DATA} ${WRKSRC}/README.scanners ${DESTDIR}${PREFIX}/share/doc/amavis - ${INSTALL_DATA} ${WRKSRC}/README.sendmail ${DESTDIR}${PREFIX}/share/doc/amavis - ${INSTALL_DATA} ${WRKSRC}/amavis/amavisd.conf \ - ${DESTDIR}${PREFIX}/share/doc/amavis - ${SED} "s+@PREFIX@+${PREFIX}+g" < ${FILESDIR}/amavis.m4 \ - > ${WRKDIR}/amavis.m4 - ${INSTALL_DATA} ${WRKDIR}/amavis.m4 ${DESTDIR}${PREFIX}/share/doc/amavis - # Man pages -.if empty(PKG_OPTIONS:Mmilter) - ${INSTALL_DATA} ${WRKSRC}/doc/amavis.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 -.endif - ${INSTALL_DATA} ${WRKSRC}/doc/amavis-milter.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 - ${INSTALL_DATA} ${WRKSRC}/doc/amavisd.conf.5 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man5 - ${INSTALL_DATA} ${WRKSRC}/doc/amavisd.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8 - -.include "../../mk/bsd.pkg.mk" diff --git a/security/amavis-perl/PLIST b/security/amavis-perl/PLIST deleted file mode 100644 index dd408565558..00000000000 --- a/security/amavis-perl/PLIST +++ /dev/null @@ -1,21 +0,0 @@ -@comment $NetBSD: PLIST,v 1.5 2009/06/14 18:13:26 joerg Exp $ -man/man1/amavis-milter.1 -man/man1/amavis.1 -man/man5/amavisd.conf.5 -man/man8/amavisd.8 -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 diff --git a/security/amavis-perl/PLIST.nomilter b/security/amavis-perl/PLIST.nomilter deleted file mode 100644 index e4984622cea..00000000000 --- a/security/amavis-perl/PLIST.nomilter +++ /dev/null @@ -1,3 +0,0 @@ -@comment $NetBSD: PLIST.nomilter,v 1.2 2005/08/01 12:15:40 wiz Exp $ -man/man1/amavis.1 -sbin/amavis diff --git a/security/amavis-perl/distinfo b/security/amavis-perl/distinfo deleted file mode 100644 index 19c2b58ac6c..00000000000 --- a/security/amavis-perl/distinfo +++ /dev/null @@ -1,5 +0,0 @@ -$NetBSD: distinfo,v 1.5 2005/02/24 13:10:05 agc Exp $ - -SHA1 (amavisd-0.1.tar.gz) = 0c8cfe497ee0e42c2f5ff5c958e47e8a0d08720b -RMD160 (amavisd-0.1.tar.gz) = d1688aa5a0a4df36e7d938f28d923b350302faa2 -Size (amavisd-0.1.tar.gz) = 329501 bytes diff --git a/security/amavis-perl/files/LICENSE.sendmail b/security/amavis-perl/files/LICENSE.sendmail deleted file mode 100644 index 30c49986fbd..00000000000 --- a/security/amavis-perl/files/LICENSE.sendmail +++ /dev/null @@ -1,79 +0,0 @@ - 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 deleted file mode 100644 index ed17c900105..00000000000 --- a/security/amavis-perl/files/amavis.m4 +++ /dev/null @@ -1,40 +0,0 @@ -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/options.mk b/security/amavis-perl/options.mk deleted file mode 100644 index decee369870..00000000000 --- a/security/amavis-perl/options.mk +++ /dev/null @@ -1,22 +0,0 @@ -# $NetBSD: options.mk,v 1.2 2005/12/05 23:55:16 rillig Exp $ - -PKG_OPTIONS_VAR= PKG_OPTIONS.amavis-perl -PKG_SUPPORTED_OPTIONS= milter - -.include "../../mk/bsd.options.mk" - -.if !empty(PKG_OPTIONS:Mmilter) -DEPENDS+= sendmail>=8.12.9nb1:../../mail/sendmail - -# XXX Milter needs pthreads, and configure fails looking for it -# because ${PREFIX}/include is not available in the include path. -CONFIGURE_ENV+= CFLAGS="-I${PREFIX}/include" -.include "../../mk/pthread.buildlink3.mk" - -CONFIGURE_ARGS+=--enable-milter -CONFIGURE_ARGS+=--with-milter-libs=${PREFIX}/lib -CONFIGURE_ARGS+=--with-milter-includes=${PREFIX}/include -.else -CONFIGURE_ARGS+=--enable-smtp --with-smtp-port=${SMTPPORT:Q} -PLIST_SRC+= ${PKGDIR}/PLIST.nomilter -.endif diff --git a/security/amavisd-new/DESCR b/security/amavisd-new/DESCR deleted file mode 100644 index 3180f61f143..00000000000 --- a/security/amavisd-new/DESCR +++ /dev/null @@ -1,11 +0,0 @@ -amavisd-new is an interface between message transfer agent (MTA) and -one or more content checkers, e.g. virus scanners, SpamAssassin, etc. -It is a performance-enhanced and feature-enriched version of amavisd -(which in turn is a daemonized version of AMaViS or amavis-perl). - -amavisd-new is normally positioned at or near a central mailer, not -necessarily where user's mailboxes and final delivery takes place. If -you are looking for fully per-user configurable and/or low-message-rate -solution to be placed at the final stage of mail delivery (e.g. called -from procmail), there may be other solutions more appropriate for your -needs. diff --git a/security/amavisd-new/MESSAGE b/security/amavisd-new/MESSAGE deleted file mode 100644 index 76d1d52591c..00000000000 --- a/security/amavisd-new/MESSAGE +++ /dev/null @@ -1,21 +0,0 @@ -=========================================================================== -$NetBSD: MESSAGE,v 1.1.1.1 2004/08/06 15:05:54 jlam Exp $ - -To use amavisd-new, you should install at least one content checker. -Examples of content checkers include the freely-available Clam Anti-Virus -(mail/p5-Mail-ClamAV) and SpamAssassin (mail/spamassassin). - -amavisd-new will only scan inside archives if the appropriate unarchiving -tools are available. You may choose to install the following tools to -scan the respective archive types: - - arc archivers/arc - freeze archivers/freeze - lha archivers/lha - lzop archivers/lzop - unarj archivers/unarj - unrar archivers/unrar - xbin archivers/xbin - zoo archivers/zoo - -=========================================================================== diff --git a/security/amavisd-new/MESSAGE.milter b/security/amavisd-new/MESSAGE.milter deleted file mode 100644 index 183c76cb539..00000000000 --- a/security/amavisd-new/MESSAGE.milter +++ /dev/null @@ -1,24 +0,0 @@ -=========================================================================== -$NetBSD: MESSAGE.milter,v 1.1.1.1 2004/08/06 15:05:53 jlam Exp $ - -Before using amavisd-new with Sendmail, you must configure Sendmail -properly. Please refer to the following documentation: - - ${PREFIX}/share/doc/amavisd-new/README.milter - ${PREFIX}/share/doc/amavisd-new/README.sendmail - ${PREFIX}/share/doc/amavisd-new/README.sendmail-dual - -There are several ways to configure Sendmail to pass mail through -amavisd-new depending on your resources and whether you wish to use -libmilter. - -If you choose to use libmilter, then you will need to add the following -line to /etc/rc.conf: - - amavismilter=YES - -Please refer to the comments at the top of the amavismilter rc.d script -for additional rc.conf settings to modify how libmilter and amavisd-new -communicate with each other. - -=========================================================================== diff --git a/security/amavisd-new/Makefile b/security/amavisd-new/Makefile deleted file mode 100644 index 35e24c73964..00000000000 --- a/security/amavisd-new/Makefile +++ /dev/null @@ -1,138 +0,0 @@ -# $NetBSD: Makefile,v 1.42 2010/11/08 18:06:57 adam Exp $ - -DISTNAME= amavisd-new-${VERSION}${PATCHLEVEL} -PKGNAME= amavisd-new-${VERSION}${PATCHLEVEL:S/-//} -CATEGORIES= security mail -MASTER_SITES= http://www.ijs.si/software/amavisd/ \ - http://mirrors.catpipe.net/amavisd-new/ \ - http://mirror.mainloop.se/amavisd/ \ - http://mirror.cedratnet.com/amavisd-new/ \ - http://mirror.omroep.nl/amavisd-new/ - -MAINTAINER= jdunn@aquezada.com -HOMEPAGE= http://www.ijs.si/software/amavisd/ -COMMENT= Daemonized interface between MTA and content checkers -LICENSE= gnu-gpl-v2 - -VERSION= 2.6.4 -PATCHLEVEL= # empty - -PKG_DESTDIR_SUPPORT= user-destdir - -DEPENDS+= p5-Archive-Tar-[0-9]*:../../archivers/p5-Archive-Tar -DEPENDS+= p5-Archive-Zip>=1.14:../../archivers/p5-Archive-Zip -DEPENDS+= p5-BerkeleyDB-[0-9]*:../../databases/p5-BerkeleyDB -DEPENDS+= p5-IO-Compress>=2.017:../../devel/p5-IO-Compress -DEPENDS+= p5-Convert-TNEF-[0-9]*:../../converters/p5-Convert-TNEF -DEPENDS+= p5-Convert-UUlib>=1.05:../../converters/p5-Convert-UUlib -DEPENDS+= p5-Digest-MD5>=2.22:../../security/p5-Digest-MD5 -DEPENDS+= p5-Mail-DKIM>=0.31:../../mail/p5-Mail-DKIM -DEPENDS+= p5-MIME-tools>=5.417:../../mail/p5-MIME-tools -DEPENDS+= p5-MailTools>=1.58:../../mail/p5-MailTools -DEPENDS+= p5-IO-stringy-[0-9]*:../../devel/p5-IO-stringy -DEPENDS+= p5-Net-Server>=0.88:../../net/p5-Net-Server -DEPENDS+= p5-Time-HiRes>=1.49:../../time/p5-Time-HiRes -DEPENDS+= p5-Unix-Syslog-[0-9]*:../../sysutils/p5-Unix-Syslog - -WRKSRC= ${WRKDIR}/amavisd-new-${VERSION} - -CONFLICTS+= amavis-[0-9]* -CONFLICTS+= amavis-perl-[0-9]* - -.include "../../mk/bsd.prefs.mk" - -USE_TOOLS+= perl:run -REPLACE_PERL+= amavisd amavisd-nanny amavisd-release amavisd-agent - -AMAVIS_USER?= vscan -AMAVIS_GROUP?= vscan -AMAVIS_DIR?= ${VARBASE}/amavis -AMAVIS_QUARANTINE?= ${VARBASE}/virusmails -DOCDIR= ${PREFIX}/share/doc/amavisd-new -EGDIR= ${PREFIX}/share/examples/amavisd-new -MESSAGE_SRC= ${PKGDIR}/MESSAGE - -PKG_GROUPS_VARS+= AMAVIS_GROUP -PKG_USERS_VARS+= AMAVIS_USER -BUILD_DEFS+= AMAVIS_DIR AMAVIS_QUARANTINE -FILES_SUBST+= AMAVIS_USER=${AMAVIS_USER} -FILES_SUBST+= AMAVIS_GROUP=${AMAVIS_GROUP} -FILES_SUBST+= AMAVIS_DIR=${AMAVIS_DIR} -FILES_SUBST+= AMAVIS_QUARANTINE=${AMAVIS_QUARANTINE:Q} - -PKG_GROUPS= ${AMAVIS_GROUP} -PKG_USERS= ${AMAVIS_USER}:${AMAVIS_GROUP} - -PKG_GECOS.${AMAVIS_USER}= AMaViS Virus Scanning Account -PKG_HOME.${AMAVIS_USER}= ${AMAVIS_DIR} -PKG_SHELL.${AMAVIS_USER}= ${SH} - -RCD_SCRIPTS= amavisd -CONF_FILES= ${EGDIR}/amavisd.conf-minimal ${PKG_SYSCONFDIR}/amavisd.conf - -PKG_OPTIONS_VAR= PKG_OPTIONS.amavisd-new -PKG_SUPPORTED_OPTIONS= milter - -.include "../../mk/bsd.options.mk" - -PLIST_VARS+= milter -.if !empty(PKG_OPTIONS:Mmilter) -GNU_CONFIGURE= yes -CONFIGURE_ARGS+= --with-runtime-dir=${AMAVIS_DIR} -CONFIGURE_ARGS+= --with-sockname=${AMAVIS_DIR}/amavisd.sock -CONFIGURE_ARGS+= --with-user=${AMAVIS_USER} -CONFIGURE_ARGS+= --with-milterinc=${BUILDLINK_PREFIX.libmilter}/include -CONFIGURE_ARGS+= --with-milterlib=${BUILDLINK_PREFIX.libmilter}/lib -CONFIGURE_DIRS= helper-progs -BUILD_DIRS= helper-progs -RCD_SCRIPTS+= amavismilter -MESSAGE_SRC+= ${PKGDIR}/MESSAGE.milter -PLIST.milter= yes - -PTHREAD_OPTS+= require native # doesn't work with pth -. include "../../mail/libmilter/buildlink3.mk" -. include "../../mk/pthread.buildlink3.mk" -.else -USE_LANGUAGES= # none, not even C - -do-build: replace-interpreter -.endif - -SUBST_CLASSES+= amavisd -SUBST_STAGE.amavisd= pre-build -SUBST_FILES.amavisd= amavisd amavisd.conf -SUBST_SED.amavisd= \ - -e "s|/etc/amavisd.conf|${PKG_SYSCONFDIR}/amavisd.conf|" \ - -e "s|@AMAVIS_DIR@|${AMAVIS_DIR}|g" \ - -e "s|@AMAVIS_USER@|${AMAVIS_USER}|g" \ - -e "s|@AMAVIS_GROUP@|${AMAVIS_GROUP}|g" \ - -e "s|@AMAVIS_QUARANTINE@|${AMAVIS_QUARANTINE}|g" \ - -e "s|@LOCALBASE@|${LOCALBASE}|g" \ - -e "s|@PREFIX@|${PREFIX}|g" - -INSTALLATION_DIRS= sbin ${DOCDIR} ${EGDIR} - -do-install: -.if !empty(PKG_OPTIONS:Mmilter) - ${INSTALL_PROGRAM} ${WRKSRC}/helper-progs/amavis ${DESTDIR}${PREFIX}/sbin - ${INSTALL_PROGRAM} ${WRKSRC}/helper-progs/amavis-milter ${DESTDIR}${PREFIX}/sbin -.endif - ${INSTALL_SCRIPT} ${WRKSRC}/amavisd ${DESTDIR}${PREFIX}/sbin/amavisd - ${INSTALL_SCRIPT} ${WRKSRC}/amavisd-nanny ${DESTDIR}${PREFIX}/sbin/amavisd-nanny - ${INSTALL_SCRIPT} ${WRKSRC}/amavisd-release ${DESTDIR}${PREFIX}/sbin/amavisd-release - ${INSTALL_SCRIPT} ${WRKSRC}/amavisd-agent ${DESTDIR}${PREFIX}/sbin/amavisd-agent - ${INSTALL_DATA} ${WRKSRC}/AAAREADME.first ${DESTDIR}${DOCDIR} - ${INSTALL_DATA} ${WRKSRC}/INSTALL ${DESTDIR}${DOCDIR} - ${INSTALL_DATA} ${WRKSRC}/LDAP.schema ${DESTDIR}${DOCDIR} - ${INSTALL_DATA} ${WRKSRC}/LICENSE ${DESTDIR}${DOCDIR} - ${INSTALL_DATA} ${WRKSRC}/MANIFEST ${DESTDIR}${DOCDIR} - ${INSTALL_DATA} ${WRKSRC}/RELEASE_NOTES ${DESTDIR}${DOCDIR} - ${INSTALL_DATA} ${WRKSRC}/README_FILES/amavisd-new-docs.html ${DESTDIR}${DOCDIR} - for file in README_FILES/README.*; do \ - ${INSTALL_DATA} ${WRKSRC}/$$file ${DESTDIR}${DOCDIR}; \ - done - ${INSTALL_DATA} ${WRKSRC}/amavisd.conf ${DESTDIR}${EGDIR}/amavisd.conf-minimal - ${INSTALL_DATA} ${WRKSRC}/amavisd.conf-default ${DESTDIR}${EGDIR} - ${INSTALL_DATA} ${WRKSRC}/amavisd.conf-sample ${DESTDIR}${EGDIR} - -.include "../../mk/bsd.pkg.mk" diff --git a/security/amavisd-new/PLIST b/security/amavisd-new/PLIST deleted file mode 100644 index 93931caff6e..00000000000 --- a/security/amavisd-new/PLIST +++ /dev/null @@ -1,45 +0,0 @@ -@comment $NetBSD: PLIST,v 1.14 2009/06/14 18:13:26 joerg Exp $ -${PLIST.milter}sbin/amavis -${PLIST.milter}sbin/amavis-milter -sbin/amavisd -sbin/amavisd-agent -sbin/amavisd-nanny -sbin/amavisd-release -share/doc/amavisd-new/AAAREADME.first -share/doc/amavisd-new/INSTALL -share/doc/amavisd-new/LDAP.schema -share/doc/amavisd-new/LICENSE -share/doc/amavisd-new/MANIFEST -share/doc/amavisd-new/README.banned -share/doc/amavisd-new/README.chroot -share/doc/amavisd-new/README.contributed -share/doc/amavisd-new/README.courier -share/doc/amavisd-new/README.courier-old -share/doc/amavisd-new/README.customize -share/doc/amavisd-new/README.exim_v3 -share/doc/amavisd-new/README.exim_v3_app -share/doc/amavisd-new/README.exim_v4 -share/doc/amavisd-new/README.exim_v4_app -share/doc/amavisd-new/README.exim_v4_app2 -share/doc/amavisd-new/README.ldap -share/doc/amavisd-new/README.lookups -share/doc/amavisd-new/README.milter -share/doc/amavisd-new/README.old.scanners -share/doc/amavisd-new/README.performance -share/doc/amavisd-new/README.policy-on-notifications -share/doc/amavisd-new/README.postfix -share/doc/amavisd-new/README.postfix.html -share/doc/amavisd-new/README.protocol -share/doc/amavisd-new/README.sendmail -share/doc/amavisd-new/README.sendmail-dual -share/doc/amavisd-new/README.sendmail-dual.old -share/doc/amavisd-new/README.sql -share/doc/amavisd-new/README.sql-mysql -share/doc/amavisd-new/README.sql-pg -share/doc/amavisd-new/RELEASE_NOTES -share/doc/amavisd-new/amavisd-new-docs.html -share/examples/amavisd-new/amavisd.conf-default -share/examples/amavisd-new/amavisd.conf-minimal -share/examples/amavisd-new/amavisd.conf-sample -share/examples/rc.d/amavisd -${PLIST.milter}share/examples/rc.d/amavismilter diff --git a/security/amavisd-new/distinfo b/security/amavisd-new/distinfo deleted file mode 100644 index 2c4c3949149..00000000000 --- a/security/amavisd-new/distinfo +++ /dev/null @@ -1,6 +0,0 @@ -$NetBSD: distinfo,v 1.16 2010/11/08 18:06:57 adam Exp $ - -SHA1 (amavisd-new-2.6.4.tar.gz) = 993b7ca839ce038fd13f65351950f0ef03d99ff9 -RMD160 (amavisd-new-2.6.4.tar.gz) = 010dd9bf49a3c7553996c49553fd0fa84ca7bdab -Size (amavisd-new-2.6.4.tar.gz) = 947596 bytes -SHA1 (patch-aa) = d8bc17da9b1d3ef883331d462ee06d534f5ff5b0 diff --git a/security/amavisd-new/files/amavisd.sh b/security/amavisd-new/files/amavisd.sh deleted file mode 100644 index fac6afc917c..00000000000 --- a/security/amavisd-new/files/amavisd.sh +++ /dev/null @@ -1,77 +0,0 @@ -#!@RCD_SCRIPTS_SHELL@ -# -# $NetBSD: amavisd.sh,v 1.1.1.1 2004/08/06 15:05:54 jlam Exp $ -# -# PROVIDE: amavisd -# REQUIRE: DAEMON -# BEFORE: mail -# -# -# You will need to set some variables in /etc/rc.conf to start amavisd: -# -# amavisd=YES -# -# The following variables are optional: -# -# amavisd_user="@AMAVIS_USER@" # user to run amavisd as -# amavisd_group="@AMAVIS_GROUP@" # ${amavisd_user}'s group -# amavisd_dirs="@AMAVIS_DIR@" # directories that should be created -# # before starting amavisd - -if [ -f /etc/rc.subr ]; then - . /etc/rc.subr -fi - -name="amavisd" -rcvar=$name -command="@PREFIX@/sbin/${name}" -command_interpreter="@PERL5@" -pidfile="@AMAVIS_DIR@/amavisd.pid" -required_files="@PKG_SYSCONFDIR@/${name}.conf" -: ${amavisd_user="@AMAVIS_USER@"} -: ${amavisd_group="@AMAVIS_GROUP@"} -: ${amavisd_dirs="@AMAVIS_DIR@ @AMAVIS_DIR@/db @AMAVIS_DIR@/tmp @AMAVIS_QUARANTINE@"} - -start_precmd="amavisd_prestart" -stop_cmd="amavisd_stop" - -amavisd_prestart() -{ - @RM@ -f @AMAVIS_DIR@/amavisd.sock - for dir in ${amavisd_dirs}; do - @MKDIR@ $dir - @CHOWN@ ${amavisd_user}:${amavisd_group} $dir - @CHMOD@ 0750 $dir - done -} - -# Net::Server breaks rc.subr's techniques for detecting whether the -# process running at a certain PID is actually the process we wish to -# stop. Just unconditionally send SIGTERM to the PID instead. -# -amavisd_stop() -{ - @ECHO@ "Stopping ${name}." - if [ -f ${pidfile} ]; then - pid=`@HEAD@ -1 ${pidfile}` - doit="@SU@ -m ${amavisd_user} -c \"kill ${pid}\"" - if ! eval $doit && [ -z "$rc_force" ]; then - return 1 - fi - wait_for_pids $pid - fi - @RM@ -f ${pidfile} - for dir in ${amavisd_dirs}; do - @RMDIR@ -p $dir 2>/dev/null || @TRUE@ - done -} - -if [ -f /etc/rc.subr -a -f /etc/rc.conf \ - -a -d /etc/rc.d -a -f /etc/rc.d/DAEMON ]; then - load_rc_config $name - run_rc_command "$1" -else - @ECHO@ -n " ${name}" - eval ${start_precmd} - ${command} ${amavisd_flags} ${command_args} -fi diff --git a/security/amavisd-new/files/amavismilter.sh b/security/amavisd-new/files/amavismilter.sh deleted file mode 100644 index 4c0695a322d..00000000000 --- a/security/amavisd-new/files/amavismilter.sh +++ /dev/null @@ -1,57 +0,0 @@ -#!@RCD_SCRIPTS_SHELL@ -# -# $NetBSD: amavismilter.sh,v 1.1.1.1 2004/08/06 15:05:54 jlam Exp $ -# -# PROVIDE: amavismilter -# REQUIRE: DAEMON -# BEFORE: mail -# -# To communicate with libmilter through a UNIX domain socket (the -# socket must exist in a location that's writable by the user named -# by ${amavismilter_user}: -# -# amavismilter_flags="-p local:/path/to/socket" -# -# To communicate with libmilter through a TCP/IP socket: -# -# amavismilter_flags="-p inet:port@0.0.0.0" -# -# To communicate with libmilter through a TCP/IP socket restricted to a -# particular interface address: -# -# amavismilter_flags="-p inet:port@A.B.C.D" -# - -if [ -f /etc/rc.subr ]; then - . /etc/rc.subr -fi - -name="amavismilter" -rcvar=$name -command="@PREFIX@/sbin/amavis-milter" -required_vars="amavisd" -: ${amavismilter_user="@AMAVIS_USER@"} -: ${amavismilter_flags="-p local:@AMAVIS_DIR@/amavis-milter.sock"} - -start_precmd="amavismilter_precmd" - -# Before starting amavis-milter, remove the old milter socket if it exists. -amavismilter_precmd() -{ - set -- ${amavismilter_flags} - case $2 in - local:*) - @RM@ -f "${2#local:}" - ;; - esac -} - -if [ -f /etc/rc.subr -a -f /etc/rc.conf \ - -a -d /etc/rc.d -a -f /etc/rc.d/DAEMON ]; then - load_rc_config $name - run_rc_command "$1" -else - @ECHO@ -n " ${name}" - eval ${start_precmd} - ${command} ${amavismilter_flags} ${command_args} -fi diff --git a/security/amavisd-new/patches/patch-aa b/security/amavisd-new/patches/patch-aa deleted file mode 100644 index 8f45e40a7ed..00000000000 --- a/security/amavisd-new/patches/patch-aa +++ /dev/null @@ -1,33 +0,0 @@ -$NetBSD: patch-aa,v 1.6 2008/07/24 13:49:22 obache Exp $ - ---- amavisd.conf.orig 2008-06-24 22:23:05.000000000 -0400 -+++ amavisd.conf 2008-06-24 22:25:53.000000000 -0400 -@@ -15,15 +15,15 @@ - # $bypass_decode_parts = 1; # controls running of decoders&dearchivers - - $max_servers = 2; # num of pre-forked children (2..30 is common), -m --$daemon_user = 'vscan'; # (no default; customary: vscan or amavis), -u --$daemon_group = 'vscan'; # (no default; customary: vscan or amavis), -g -+$daemon_user = '@AMAVIS_USER@'; # (no default; customary: vscan or amavis), -u -+$daemon_group = '@AMAVIS_GROUP@'; # (no default; customary: vscan or amavis), -g - - $mydomain = 'example.com'; # a convenient default for other settings - --# $MYHOME = '/var/amavis'; # a convenient default for other settings, -H -+$MYHOME = '@AMAVIS_DIR@'; # a convenient default for other settings, -H - $TEMPBASE = "$MYHOME/tmp"; # working directory, needs to exist, -T - $ENV{TMPDIR} = $TEMPBASE; # environment variable TMPDIR, used by SA, etc. --$QUARANTINEDIR = '/var/virusmails'; # -Q -+$QUARANTINEDIR = '@AMAVIS_QUARANTINE@'; # -Q - # $quarantine_subdir_levels = 1; # add level of subdirs to disperse quarantine - # $release_format = 'resend'; # 'attach', 'plain', 'resend' - # $report_format = 'arf'; # 'attach', 'plain', 'resend', 'arf' -@@ -130,7 +130,7 @@ - # $recipient_delimiter = '+'; # undef disables address extensions altogether - # when enabling addr extensions do also Postfix/main.cf: recipient_delimiter=+ - --$path = '/usr/local/sbin:/usr/local/bin:/usr/sbin:/sbin:/usr/bin:/bin'; -+$path = '@PREFIX@/sbin:@PREFIX@/bin:@LOCALBASE@/sbin:@LOCALBASE@/bin:/usr/sbin:/sbin:/usr/bin:/bin'; - # $dspam = 'dspam'; - - $MAXLEVELS = 14; |