/[gentoo-x86]/mail-filter/mimedefang/mimedefang-2.73.ebuild
Gentoo

Contents of /mail-filter/mimedefang/mimedefang-2.73.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Jun 4 23:55:48 2012 UTC (11 months, 2 weeks ago) by zmedico
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +2 -2 lines
inherit user for enewgroup and enewuser

(Portage version: 2.2.0_alpha110/cvs/Linux i686)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/mail-filter/mimedefang/mimedefang-2.73.ebuild,v 1.1 2012/02/04 18:26:28 radhermit Exp $
4
5 EAPI=4
6
7 inherit eutils user
8
9 DESCRIPTION="Antispam, antivirus and other customizable filtering for MTAs with Milter support"
10 HOMEPAGE="http://www.mimedefang.org/"
11 SRC_URI="http://www.mimedefang.org/static/${P}.tar.gz"
12 LICENSE="GPL-2"
13
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86"
16 IUSE="clamav +poll"
17
18 DEPEND=">=dev-perl/MIME-tools-5.412
19 dev-perl/IO-stringy
20 virtual/perl-MIME-Base64
21 dev-perl/Digest-SHA1
22 clamav? ( app-antivirus/clamav )
23 || ( mail-filter/libmilter mail-mta/sendmail )"
24 RDEPEND="${DEPEND}"
25 RESTRICT="test"
26
27 pkg_setup() {
28 enewgroup defang
29 enewuser defang -1 -1 -1 defang
30 }
31
32 src_prepare() {
33 epatch "${FILESDIR}"/${PN}-2.72-ldflags.patch
34 }
35
36 src_configure() {
37 econf \
38 --with-user=defang \
39 $(use_enable poll) \
40 $(use_enable clamav) \
41 $(use_enable clamav clamd)
42 }
43
44 src_install() {
45 emake DESTDIR="${D}" INSTALL_STRIP_FLAG="" install
46
47 fowners defang:defang /etc/mail/mimedefang-filter
48 fperms 644 /etc/mail/mimedefang-filter
49 insinto /etc/mail/
50 insopts -m 644
51 newins "${S}"/SpamAssassin/spamassassin.cf sa-mimedefang.cf
52
53 keepdir /var/spool/{MD-Quarantine,MIMEDefang}
54 fowners defang:defang /var/spool/{MD-Quarantine,MIMEDefang}
55 fperms 700 /var/spool/{MD-Quarantine,MIMEDefang}
56
57 dodir /var/log/mimedefang
58 keepdir /var/log/mimedefang
59
60 newinitd "${FILESDIR}"/${PN}.init ${PN}
61 newconfd "${FILESDIR}"/${PN}.conf ${PN}
62
63 docinto examples
64 dodoc examples/*
65 }

  ViewVC Help
Powered by ViewVC 1.1.13