summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlin Năstac <mrness@gentoo.org>2008-01-29 19:30:06 +0000
committerAlin Năstac <mrness@gentoo.org>2008-01-29 19:30:06 +0000
commit4af566a1baa0697576a4d78c84868f33602c8c89 (patch)
tree736f06596f4d38d1ed3844ed9dfa63474e26611e /mail-filter
parentStable for HPPA (bug #207518). (diff)
downloadgentoo-2-4af566a1baa0697576a4d78c84868f33602c8c89.tar.gz
gentoo-2-4af566a1baa0697576a4d78c84868f33602c8c89.tar.bz2
gentoo-2-4af566a1baa0697576a4d78c84868f33602c8c89.zip
Remove libmilter atom from run-time dependencies. Add ~amd64 keyword and clamav USE flag. Fix bug 197820.
(Portage version: 2.1.3.19)
Diffstat (limited to 'mail-filter')
-rw-r--r--mail-filter/mimedefang/ChangeLog11
-rw-r--r--mail-filter/mimedefang/files/digest-mimedefang-2.643
-rw-r--r--mail-filter/mimedefang/files/mimedefang.init4
-rw-r--r--mail-filter/mimedefang/mimedefang-2.64.ebuild55
4 files changed, 71 insertions, 2 deletions
diff --git a/mail-filter/mimedefang/ChangeLog b/mail-filter/mimedefang/ChangeLog
index cfb7853e96ad..019514782467 100644
--- a/mail-filter/mimedefang/ChangeLog
+++ b/mail-filter/mimedefang/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for mail-filter/mimedefang
-# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/mimedefang/ChangeLog,v 1.3 2007/06/04 14:07:02 ticho Exp $
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/mimedefang/ChangeLog,v 1.4 2008/01/29 19:30:05 mrness Exp $
+
+*mimedefang-2.64 (29 Jan 2008)
+
+ 29 Jan 2008; Alin Năstac <mrness@gentoo.org> files/mimedefang.init,
+ +mimedefang-2.64.ebuild:
+ Remove libmilter atom from run-time dependencies. Add ~amd64 keyword and
+ clamav USE flag. Fix bug 197820.
04 Jun 2007; Andrej Kacian <ticho@gentoo.org> mimedefang-2.57.ebuild:
Install config file with 600 perms. Bug #180837 by Ortwin Glueck <odi at
diff --git a/mail-filter/mimedefang/files/digest-mimedefang-2.64 b/mail-filter/mimedefang/files/digest-mimedefang-2.64
new file mode 100644
index 000000000000..e319f9a32dd1
--- /dev/null
+++ b/mail-filter/mimedefang/files/digest-mimedefang-2.64
@@ -0,0 +1,3 @@
+MD5 14a5f1a94a4c95c478fcc3d76f9a4fdf mimedefang-2.64.tar.gz 331444
+RMD160 f36e7cb72c1252567c5466afe68a0243adc99f12 mimedefang-2.64.tar.gz 331444
+SHA256 593888fd15a71fb192549e799c27a5136cb1efcb35378a266117d5c2b029b89c mimedefang-2.64.tar.gz 331444
diff --git a/mail-filter/mimedefang/files/mimedefang.init b/mail-filter/mimedefang/files/mimedefang.init
index 0c30a060e6b5..19819a9fd6c9 100644
--- a/mail-filter/mimedefang/files/mimedefang.init
+++ b/mail-filter/mimedefang/files/mimedefang.init
@@ -14,6 +14,10 @@ MXPID="$SPOOLDIR/$prog-multiplexor.pid"
SOCKET=${SOCKET:=$SPOOLDIR/$prog.sock}
MX_SOCKET=${MX_SOCKET:=$SPOOLDIR/$prog-multiplexor.sock}
+depend() {
+ use antivirus
+}
+
start() {
if test -r $PID ; then
if kill -0 `cat $PID` > /dev/null 2>&1 ; then
diff --git a/mail-filter/mimedefang/mimedefang-2.64.ebuild b/mail-filter/mimedefang/mimedefang-2.64.ebuild
new file mode 100644
index 000000000000..e4306ed7818c
--- /dev/null
+++ b/mail-filter/mimedefang/mimedefang-2.64.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/mimedefang/mimedefang-2.64.ebuild,v 1.1 2008/01/29 19:30:05 mrness Exp $
+
+inherit eutils
+
+DESCRIPTION="A program for Milter supported mail servers that implements antispam, antivirus, and other customizable filtering on email messages"
+HOMEPAGE="http://www.mimedefang.org/"
+SRC_URI="http://www.mimedefang.org/static/${P}.tar.gz"
+LICENSE="GPL-2"
+
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="clamav"
+
+RDEPEND="dev-perl/MIME-tools
+ virtual/perl-MIME-Base64
+ dev-perl/Digest-SHA
+ clamav? ( app-antivirus/clamav )
+ !<mail-mta/postfix-2.4"
+DEPEND="${RDEPEND}
+ || ( mail-filter/libmilter mail-mta/sendmail )" # libmilter is a static library
+
+pkg_setup() {
+ enewgroup defang
+ enewuser defang -1 -1 -1 defang
+}
+
+src_compile() {
+ econf $(use_enable clamav) $(use_enable clamav clamd) || die "econf failed"
+ emake unstripped || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+
+ fowners defang:defang /etc/mail/mimedefang-filter
+ fperms 644 /etc/mail/mimedefang-filter
+ insinto /etc/mail/
+ insopts -m 644
+ newins "${S}"/SpamAssassin/spamassassin.cf sa-mimedefang.cf
+
+ keepdir /var/spool/{MD-Quarantine,MIMEDefang}
+ fowners defang:defang /var/spool/{MD-Quarantine,MIMEDefang}
+ fperms 700 /var/spool/{MD-Quarantine,MIMEDefang}
+
+ dodir /var/log/mimedefang
+ keepdir /var/log/mimedefang
+
+ newinitd "${FILESDIR}"/${PN}.init ${PN}
+ newconfd "${FILESDIR}"/${PN}.conf ${PN}
+
+ docinto examples
+ dodoc examples/*
+}