diff options
author | Andrej Kacian <ticho@gentoo.org> | 2005-04-20 07:17:16 +0000 |
---|---|---|
committer | Andrej Kacian <ticho@gentoo.org> | 2005-04-20 07:17:16 +0000 |
commit | a0f67ba4498ccee1dcedd9f50ab506757f5c0d7c (patch) | |
tree | 4ed2de307f2039a824585440f2e229c57bd861de /mail-filter/amavis | |
parent | Revision bump, due tu sec. bug #89501. (diff) | |
download | gentoo-2-a0f67ba4498ccee1dcedd9f50ab506757f5c0d7c.tar.gz gentoo-2-a0f67ba4498ccee1dcedd9f50ab506757f5c0d7c.tar.bz2 gentoo-2-a0f67ba4498ccee1dcedd9f50ab506757f5c0d7c.zip |
Revision bump, sec. bug #89501.
(Portage version: 2.0.51.19)
Diffstat (limited to 'mail-filter/amavis')
-rw-r--r-- | mail-filter/amavis/ChangeLog | 10 | ||||
-rw-r--r-- | mail-filter/amavis/Manifest | 4 | ||||
-rw-r--r-- | mail-filter/amavis/amavis-0.3.12-r1.ebuild | 135 | ||||
-rw-r--r-- | mail-filter/amavis/files/digest-amavis-0.3.12-r1 | 1 |
4 files changed, 147 insertions, 3 deletions
diff --git a/mail-filter/amavis/ChangeLog b/mail-filter/amavis/ChangeLog index 905792ca30ea..c6b59f714c2b 100644 --- a/mail-filter/amavis/ChangeLog +++ b/mail-filter/amavis/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for mail-filter/amavis -# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/mail-filter/amavis/ChangeLog,v 1.10 2004/07/18 15:40:35 aliz Exp $ +# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/mail-filter/amavis/ChangeLog,v 1.11 2005/04/20 07:17:16 ticho Exp $ + +*amavis-0.3.12-r1 (20 Apr 2005) + + 20 Apr 2005; Andrej Kacian <ticho@gentoo.org> +amavis-0.3.12-r1.ebuild: + Revision bump to update dependency on dev-perl/Convert-UUlib. Security bug + 89501. 13 Jul 2004; Tuan Van <langthang@gentoo.org> amavis-0.3.12.ebuild: use epatch instead of patch, trying not to use "awk." diff --git a/mail-filter/amavis/Manifest b/mail-filter/amavis/Manifest index 0969a577fe62..4406cba8a06a 100644 --- a/mail-filter/amavis/Manifest +++ b/mail-filter/amavis/Manifest @@ -1,5 +1,7 @@ -MD5 eb37c2acc1a7ec81680be04b64249aab amavis-0.3.12.ebuild 3059 MD5 6af68338dd95cd512e993907dab8543c ChangeLog 4080 +MD5 eb37c2acc1a7ec81680be04b64249aab amavis-0.3.12.ebuild 3059 MD5 5721b86fd871bdfab77231abc6e02f68 metadata.xml 161 +MD5 ba2533a428fe4d16e51461ea2192e068 amavis-0.3.12-r1.ebuild 2958 MD5 c21bb514e50b3103fbf00d4e877018f9 files/0.3.12-postfix.diff 969 MD5 dd107599b6f61744ffb5e84f36a2a93d files/digest-amavis-0.3.12 65 +MD5 dd107599b6f61744ffb5e84f36a2a93d files/digest-amavis-0.3.12-r1 65 diff --git a/mail-filter/amavis/amavis-0.3.12-r1.ebuild b/mail-filter/amavis/amavis-0.3.12-r1.ebuild new file mode 100644 index 000000000000..6497c9e16d42 --- /dev/null +++ b/mail-filter/amavis/amavis-0.3.12-r1.ebuild @@ -0,0 +1,135 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/mail-filter/amavis/amavis-0.3.12-r1.ebuild,v 1.1 2005/04/20 07:17:16 ticho Exp $ + +inherit eutils + +IUSE="" + +DESCRIPTION="A perl module which integrates virus scanning software with your MTA" +HOMEPAGE="http://www.amavis.org" +SRC_URI="mirror://sourceforge/amavis/${P/_/}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="x86 ~amd64 ~alpha sparc ~ppc" + +DEPEND="dev-lang/perl + sys-apps/file + app-arch/arc + app-arch/bzip2 + app-arch/lha + app-arch/unarj + app-arch/sharutils + app-arch/unrar + app-arch/zoo + app-arch/unzip + dev-perl/IO-stringy + dev-perl/Unix-Syslog + dev-perl/MailTools + dev-perl/MIME-Base64 + >=dev-perl/MIME-tools-5.313 + >=dev-perl/Convert-UUlib-1.051 + >=dev-perl/Convert-TNEF-0.06 + >=dev-perl/Compress-Zlib-1.14 + dev-perl/Archive-Tar + >=dev-perl/Archive-Zip-1.0 + dev-perl/libnet + virtual/mta + virtual/mda + virtual/antivirus" + +S="${WORKDIR}/${P/_/}" + +pkg_setup() { + + enewgroup amavis + enewuser amavis -1 /bin/false /dev/null amavis + pwconv || die + + if ! grep -a ^virusalert: /etc/mail/aliases ; then + cp /etc/mail/aliases /etc/mail/aliases.orig + echo >> /etc/mail/aliases + echo "# user that virus messages are forwarded to" \ + >> /etc/mail/aliases + echo "virusalert: root" >> /etc/mail/aliases + newaliases || die "check your /etc/mail/aliases for problems" + fi + mymta=$(portageq best_version / virtual/mta) + mymta=${mymta%-[0-9]*} + mymta=${mymta##*\/} + einfo "My MTA is: ${mymta}" +} + +src_unpack() { + + unpack ${A} + cd ${S} + + if [ "$mymta" == "postfix" ]; then + epatch ${FILESDIR}/0.3.12-postfix.diff || die "patch failed" + fi + +} + +src_compile() { + + cp configure configure.tmp + sed \ + -e "s:/usr/local/f-prot:/opt/f-prot:" \ + -e "s:ac_dummy=\"\$PATH\:/usr/bin\:/usr/local/bin\":ac_dummy=\"\$PATH\:/usr/bin\:/usr/local/bin\:/opt/vlnx\":" \ + < configure.tmp > configure + + local myconf + + if [ "$mymta" == "postfix" ]; then + myconf="--enable-postfix" + elif [ "$mymta" == "qmail" ]; then + myconf="--enable-qmail" + elif [ "$mymta" == "exim" ]; then + myconf="--enable-exim" + elif [ "$mymta" == "sendmail" ]; then + myconf="--enable-sendmail" + fi + + # The quarantine directory for infected emails + myconf="${myconf} --with-virusdir=/var/amavis/quarantine" + + econf ${myconf} || die "configure failed" + + make || die "make failed" + +} + +src_install() { + + dodir /var/amavis/quarantine + + if [ "$mymta" == "qmail" ]; then + chown -R qmailq:qmail ${D}/var/amavis + else + chown -R amavis:amavis ${D}/var/amavis + fi + + chmod -R 770 ${D}/var/amavis + + keepdir /var/amavis /var/amavis/quarantine + + einstall \ + logdir=${D}/var/amavis \ + runtime_dir=${D}/var/amavis \ + virusdir=${D}/var/amavis/quarantine \ + || die "make install failed" + + dodoc AUTHORS BUGS ChangeLog FAQ HINTS INSTALL NEWS README* TODO +} + +pkg_postinst() { + + einfo "" + einfo "For amavis to work properly with your $mymta installation" + einfo "there are some configuration changes required" + einfo "" + einfo "less /usr/share/doc/${P}/README.$mymta.gz" + einfo "" +} diff --git a/mail-filter/amavis/files/digest-amavis-0.3.12-r1 b/mail-filter/amavis/files/digest-amavis-0.3.12-r1 new file mode 100644 index 000000000000..1380aa762da8 --- /dev/null +++ b/mail-filter/amavis/files/digest-amavis-0.3.12-r1 @@ -0,0 +1 @@ +MD5 9241bd0331330354955c9c7566176c18 amavis-0.3.12.tar.gz 318788 |