Gentoo Archives: gentoo-commits

From: "Torsten Veller (tove)" <tove@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in mail-filter/maildrop: ChangeLog maildrop-2.2.0.ebuild
Date: Mon, 29 Jun 2009 19:20:38
Message-Id: E1MLMP5-0001vX-Hz@stork.gentoo.org
1 tove 09/06/29 19:20:35
2
3 Modified: ChangeLog
4 Added: maildrop-2.2.0.ebuild
5 Log:
6 Version bump
7 (Portage version: 2.2_rc33/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.85 mail-filter/maildrop/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/maildrop/ChangeLog?rev=1.85&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/maildrop/ChangeLog?rev=1.85&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/maildrop/ChangeLog?r1=1.84&r2=1.85
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/mail-filter/maildrop/ChangeLog,v
19 retrieving revision 1.84
20 retrieving revision 1.85
21 diff -u -r1.84 -r1.85
22 --- ChangeLog 14 Jun 2009 21:02:09 -0000 1.84
23 +++ ChangeLog 29 Jun 2009 19:20:35 -0000 1.85
24 @@ -1,6 +1,11 @@
25 # ChangeLog for mail-filter/maildrop
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/mail-filter/maildrop/ChangeLog,v 1.84 2009/06/14 21:02:09 tove Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/mail-filter/maildrop/ChangeLog,v 1.85 2009/06/29 19:20:35 tove Exp $
29 +
30 +*maildrop-2.2.0 (29 Jun 2009)
31 +
32 + 29 Jun 2009; Torsten Veller <tove@g.o> +maildrop-2.2.0.ebuild:
33 + Version bump
34
35 14 Jun 2009; Torsten Veller <tove@g.o> maildrop-2.1.0.ebuild:
36 Add fetchmail to trusted-users (#274055). Thanks to Hannes Nagel
37
38
39
40 1.1 mail-filter/maildrop/maildrop-2.2.0.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/maildrop/maildrop-2.2.0.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/maildrop/maildrop-2.2.0.ebuild?rev=1.1&content-type=text/plain
44
45 Index: maildrop-2.2.0.ebuild
46 ===================================================================
47 # Copyright 1999-2009 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/mail-filter/maildrop/maildrop-2.2.0.ebuild,v 1.1 2009/06/29 19:20:35 tove Exp $
50
51 EAPI=2
52
53 inherit eutils flag-o-matic autotools
54
55 DESCRIPTION="Mail delivery agent/filter"
56 [[ -z ${PV/?.?/} ]] && SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2"
57 [[ -z ${PV/?.?.?/} ]] && SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2"
58 [[ -z ${SRC_URI} ]] && SRC_URI="http://www.courier-mta.org/beta/${PN}/${P%%_pre}.tar.bz2"
59 HOMEPAGE="http://www.courier-mta.org/maildrop/"
60
61 LICENSE="GPL-3"
62 SLOT="0"
63 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~s390 ~sh ~sparc ~x86"
64 IUSE="berkdb debug fam gdbm ldap mysql postgres authlib"
65
66 DEPEND="!mail-mta/courier
67 net-mail/mailbase
68 dev-libs/libpcre
69 gdbm? ( >=sys-libs/gdbm-1.8.0 )
70 mysql? ( net-libs/courier-authlib )
71 postgres? ( net-libs/courier-authlib )
72 ldap? ( net-libs/courier-authlib )
73 authlib? ( net-libs/courier-authlib )
74 fam? ( virtual/fam )
75 !gdbm? (
76 berkdb? (
77 >=sys-libs/db-3
78 )
79 )"
80 RDEPEND="${DEPEND}
81 dev-lang/perl"
82 PROVIDE="virtual/mda"
83
84 S=${WORKDIR}/${P%%_pre}
85
86 src_prepare() {
87 epatch "${FILESDIR}"/${PN}-2.0.4-makedat.patch
88
89 # Prefer gdbm over berkdb
90 if use gdbm ; then
91 use berkdb && elog "Both gdbm and berkdb selected. Using gdbm."
92 elif use berkdb ; then
93 epatch "${FILESDIR}"/${PN}-2.1.0-db4.patch
94 fi
95
96 if ! use fam ; then
97 epatch "${FILESDIR}"/${PN}-1.8.1-disable-fam.patch
98 fi
99
100 eautoreconf
101 }
102
103 src_configure() {
104 local myconf
105 local mytrustedusers="apache dspam root mail fetchmail \
106 daemon postmaster qmaild mmdf vmail alias"
107
108 # These flags make maildrop cry
109 replace-flags -Os -O2
110 filter-flags -fomit-frame-pointer
111
112 if use gdbm ; then
113 myconf="${myconf} --with-db=gdbm"
114 elif use berkdb ; then
115 myconf="${myconf} --with-db=db"
116 else
117 myconf="${myconf} --without-db"
118 fi
119
120 if ! use mysql && ! use postgres && ! use ldap && ! use authlib ; then
121 myconf="${myconf} --disable-authlib"
122 fi
123
124 econf \
125 $(use_enable fam) \
126 --disable-dependency-tracker \
127 --with-devel \
128 --disable-tempdir \
129 --enable-syslog=1 \
130 --enable-use-flock=1 \
131 --enable-maildirquota \
132 --enable-use-dotlock=1 \
133 --enable-restrict-trusted=1 \
134 --enable-trusted-users="${mytrustedusers}" \
135 --enable-maildrop-uid=root \
136 --enable-maildrop-gid=mail \
137 --with-default-maildrop=./.maildir/ \
138 --enable-sendmail=/usr/sbin/sendmail \
139 --cache-file="${S}"/configuring.cache \
140 ${myconf}
141 }
142
143 src_install() {
144 make DESTDIR="${D}" install || die
145
146 fperms 4755 /usr/bin/maildrop
147
148 dodoc AUTHORS ChangeLog INSTALL NEWS README \
149 README.postfix UPGRADE maildroptips.txt || die
150
151 dodir /usr/share/doc/${PF}
152 mv "${D}"/usr/share/maildrop/html "${D}"/usr/share/doc/${PF}/
153
154 dohtml {INSTALL,README,UPGRADE}.html || die
155
156 insinto /etc
157 doins "${FILESDIR}"/maildroprc || die
158 }