diff options
author | Nick Hadaway <raker@gentoo.org> | 2002-10-23 20:32:57 +0000 |
---|---|---|
committer | Nick Hadaway <raker@gentoo.org> | 2002-10-23 20:32:57 +0000 |
commit | 27179d357f4da8e722b009f382d4c910ccee4bb7 (patch) | |
tree | 6e5e7d64da3c05f5ee3f26fb6b3a82d82d0a6b2c /net-mail/amavis | |
parent | Masking out alsa-tools. (diff) | |
download | gentoo-2-27179d357f4da8e722b009f382d4c910ccee4bb7.tar.gz gentoo-2-27179d357f4da8e722b009f382d4c910ccee4bb7.tar.bz2 gentoo-2-27179d357f4da8e722b009f382d4c910ccee4bb7.zip |
Version bump. The 0.2.x code is no longer maintained. This ebuild
currently only supports postfix as an MTA. This ebuild MAY split into
amavis-postfix, amavis-exim, etc... qmail support is still marked unstable
Diffstat (limited to 'net-mail/amavis')
-rw-r--r-- | net-mail/amavis/ChangeLog | 10 | ||||
-rw-r--r-- | net-mail/amavis/amavis-0.3.12_pre8.ebuild | 114 | ||||
-rw-r--r-- | net-mail/amavis/files/0.3.12-postfix.diff | 25 | ||||
-rw-r--r-- | net-mail/amavis/files/digest-amavis-0.3.12_pre8 | 1 |
4 files changed, 149 insertions, 1 deletions
diff --git a/net-mail/amavis/ChangeLog b/net-mail/amavis/ChangeLog index a4bfc5456f1a..dc5e4bbfccf1 100644 --- a/net-mail/amavis/ChangeLog +++ b/net-mail/amavis/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for net-mail/amavis # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL -# $Header: /var/cvsroot/gentoo-x86/net-mail/amavis/ChangeLog,v 1.2 2002/09/05 12:02:58 aliz Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-mail/amavis/ChangeLog,v 1.3 2002/10/23 20:32:57 raker Exp $ + +*amavis-0.3.12_pre8 (23 Oct 2002) + + 23 Oct 2002; Nick Hadaway <raker@gentoo.org> amavis-0.3.12_pre8.ebuild, + files/digest-amavis-0.3.12_pre8 : + Version bump. 0.2.x of amavis is non-maintained code. The ebuild currently + only supports postfix as the mta. Depending on how flexible the configuration + is I may end up splitting this ebuild into amavis-postfix, amavis-exim, etc... *amavis-0.2.1-r3 (05 Sep 2002) diff --git a/net-mail/amavis/amavis-0.3.12_pre8.ebuild b/net-mail/amavis/amavis-0.3.12_pre8.ebuild new file mode 100644 index 000000000000..b6be58d33412 --- /dev/null +++ b/net-mail/amavis/amavis-0.3.12_pre8.ebuild @@ -0,0 +1,114 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-mail/amavis/amavis-0.3.12_pre8.ebuild,v 1.1 2002/10/23 20:32:57 raker Exp $ + +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="" +SLOT="0" +KEYWORDS="~x86" + +IUSE="" + +DEPEND="sys-devel/perl + sys-apps/file + app-arch/arc + sys-apps/bzip2 + app-arch/lha + app-arch/unarj + sys-apps/sharutils + app-arch/unrar + app-arch/zoo + net-mail/postfix + 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-0.2 + >=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" + +S="${WORKDIR}/${P/_/}" + +pkg_setup() { + + if ! grep -q ^amavis: /etc/group ; then + groupadd -g 10025 amavis \ + || die "problem adding the amavis group" + grpconv || die "failed running grpconv" + fi + + if ! grep -q ^amavis: /etc/passwd ; then + useradd -u 10025 -g amavis amavis \ + || die "problem adding the amavis user" + pwconv || die "failed running pwconv" + fi + + 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 + +} + +src_unpack() { + + unpack ${A} + cd ${S} + patch -p1 < ${FILESDIR}/0.3.12-postfix.diff || die "patch failed" + +} + +src_compile() { + + local myconf + + # Postfix is the only one supported currently. More mta's coming soon. + myconf="--enable-postfix" + + # 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 + chown -R postfix:postfix ${D}/var/amavis + chmod -R ${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 postfix installation" + einfo "there are some configuration changes required" + einfo "" + einfo "less /usr/share/doc/amavis-0.3.12_pre8/README.postfix.gz" + einfo "" + +} diff --git a/net-mail/amavis/files/0.3.12-postfix.diff b/net-mail/amavis/files/0.3.12-postfix.diff new file mode 100644 index 000000000000..2a28ee961720 --- /dev/null +++ b/net-mail/amavis/files/0.3.12-postfix.diff @@ -0,0 +1,25 @@ +diff -urN amavis-0.3.12pre8/amavis/Makefile.in amavis-0.3.12pre8-modified/amavis/Makefile.in +--- amavis-0.3.12pre8/amavis/Makefile.in 2002-05-29 05:55:58.000000000 -0500 ++++ amavis-0.3.12pre8-modified/amavis/Makefile.in 2002-10-23 14:30:07.000000000 -0500 +@@ -432,8 +432,8 @@ + $(mkinstalldirs) $$subdir ; \ + if test -n $(amavisuser) ; then \ + chown $(amavisuser) $$subdir ; \ +- if test $(MTA) = qmail ; then \ +- chgrp qmail $$subdir ; \ ++ if test $(MTA) == postfix ; then \ ++ chgrp postfix $$subdir ; \ + fi; \ + fi; \ + fi; \ +@@ -446,8 +446,8 @@ + chown $(amavisuser) $(DESTDIR)$(virusdir) ; \ + fi; \ + fi +- if test $(MTA) = qmail ; then \ +- chown qmailq:qmail $(DESTDIR)$(prefix)/sbin/amavis ; \ ++ if test $(MTA) == postfix ; then \ ++ chown postfix:postfix $(DESTDIR)$(prefix)/sbin/amavis ; \ + chmod 4711 $(DESTDIR)$(prefix)/sbin/amavis ; \ + fi + # Tell versions [3.59,3.63) of GNU make to not export all variables. diff --git a/net-mail/amavis/files/digest-amavis-0.3.12_pre8 b/net-mail/amavis/files/digest-amavis-0.3.12_pre8 new file mode 100644 index 000000000000..e603c0895ace --- /dev/null +++ b/net-mail/amavis/files/digest-amavis-0.3.12_pre8 @@ -0,0 +1 @@ +MD5 7b10f4ad2446c61cb85dd28a1fa7eada amavis-0.3.12pre8.tar.gz 310174 |