You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
1.5 KiB
64 lines
1.5 KiB
11 years ago
|
# Copyright 1999-2014 Gentoo Foundation
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
# $Header: /var/cvsroot/gentoo-x86/mail-filter/mimedefang/mimedefang-2.75.ebuild,v 1.1 2014/06/20 07:41:13 radhermit Exp $
|
||
|
|
||
|
EAPI=5
|
||
|
|
||
|
inherit eutils user
|
||
|
|
||
|
DESCRIPTION="Antispam, antivirus and other customizable filtering for MTAs with Milter support"
|
||
|
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 +poll"
|
||
|
|
||
|
DEPEND=">=dev-perl/MIME-tools-5.412
|
||
|
dev-perl/IO-stringy
|
||
|
virtual/perl-MIME-Base64
|
||
|
dev-perl/Digest-SHA1
|
||
|
clamav? ( app-antivirus/clamav )
|
||
|
|| ( mail-filter/libmilter mail-mta/sendmail )"
|
||
|
RDEPEND="${DEPEND}"
|
||
|
RESTRICT="test"
|
||
|
|
||
|
pkg_setup() {
|
||
|
enewgroup defang
|
||
|
enewuser defang -1 -1 -1 defang
|
||
|
}
|
||
|
|
||
|
src_prepare() {
|
||
|
epatch "${FILESDIR}"/${PN}-2.72-ldflags.patch
|
||
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
econf \
|
||
|
--with-user=defang \
|
||
|
$(use_enable poll) \
|
||
|
$(use_enable clamav) \
|
||
|
$(use_enable clamav clamd)
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
emake DESTDIR="${D}" INSTALL_STRIP_FLAG="" install
|
||
|
|
||
|
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}
|
||
|
|
||
|
keepdir /var/log/mimedefang
|
||
|
|
||
|
newinitd "${FILESDIR}"/${PN}.init ${PN}
|
||
|
newconfd "${FILESDIR}"/${PN}.conf ${PN}
|
||
|
|
||
|
dodoc -r examples
|
||
|
}
|