1 |
voyageur 09/10/06 21:38:40 |
2 |
|
3 |
Modified: metadata.xml ChangeLog |
4 |
Added: courier-imap-4.6.0.ebuild |
5 |
Log: |
6 |
Version bump, with GCC 4.4 support and ebuild cleanups: EAPI2, drop vpopmail setup (courier-imap does not support it anymore), only run eautoreconf in needed directories, remove CFLAGS workaround for bug #21330 (works fine now), add USE flag to enable trashquota (bug #173394) |
7 |
(Portage version: 2.2_rc44/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.7 net-mail/courier-imap/metadata.xml |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/courier-imap/metadata.xml?rev=1.7&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/courier-imap/metadata.xml?rev=1.7&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/courier-imap/metadata.xml?r1=1.6&r2=1.7 |
15 |
|
16 |
Index: metadata.xml |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/net-mail/courier-imap/metadata.xml,v |
19 |
retrieving revision 1.6 |
20 |
retrieving revision 1.7 |
21 |
diff -u -r1.6 -r1.7 |
22 |
--- metadata.xml 6 Oct 2009 17:47:08 -0000 1.6 |
23 |
+++ metadata.xml 6 Oct 2009 21:38:40 -0000 1.7 |
24 |
@@ -10,4 +10,7 @@ |
25 |
<email>voyageur@g.o</email> |
26 |
<name>Bernard Cafarelli</name> |
27 |
</maintainer> |
28 |
+ <use> |
29 |
+ <flag name="trashquota">include deleted messages, and the Trash folder, in the estimated quota usage for maildirs</flag> |
30 |
+ </use> |
31 |
</pkgmetadata> |
32 |
|
33 |
|
34 |
|
35 |
1.174 net-mail/courier-imap/ChangeLog |
36 |
|
37 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/courier-imap/ChangeLog?rev=1.174&view=markup |
38 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/courier-imap/ChangeLog?rev=1.174&content-type=text/plain |
39 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/courier-imap/ChangeLog?r1=1.173&r2=1.174 |
40 |
|
41 |
Index: ChangeLog |
42 |
=================================================================== |
43 |
RCS file: /var/cvsroot/gentoo-x86/net-mail/courier-imap/ChangeLog,v |
44 |
retrieving revision 1.173 |
45 |
retrieving revision 1.174 |
46 |
diff -u -r1.173 -r1.174 |
47 |
--- ChangeLog 6 Oct 2009 17:47:08 -0000 1.173 |
48 |
+++ ChangeLog 6 Oct 2009 21:38:40 -0000 1.174 |
49 |
@@ -1,6 +1,15 @@ |
50 |
# ChangeLog for net-mail/courier-imap |
51 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
52 |
-# $Header: /var/cvsroot/gentoo-x86/net-mail/courier-imap/ChangeLog,v 1.173 2009/10/06 17:47:08 voyageur Exp $ |
53 |
+# $Header: /var/cvsroot/gentoo-x86/net-mail/courier-imap/ChangeLog,v 1.174 2009/10/06 21:38:40 voyageur Exp $ |
54 |
+ |
55 |
+*courier-imap-4.6.0 (06 Oct 2009) |
56 |
+ |
57 |
+ 06 Oct 2009; Bernard Cafarelli <voyageur@g.o> |
58 |
+ +courier-imap-4.6.0.ebuild, metadata.xml: |
59 |
+ Version bump, with GCC 4.4 support and ebuild cleanups: EAPI2, drop |
60 |
+ vpopmail setup (courier-imap does not support it anymore), only run |
61 |
+ eautoreconf in needed directories, remove CFLAGS workaround for bug #21330 |
62 |
+ (works fine now), add USE flag to enable trashquota (bug #173394) |
63 |
|
64 |
06 Oct 2009; Bernard Cafarelli <voyageur@g.o> metadata.xml: |
65 |
Add myself to maintainers, so I get bugreports on everything I break |
66 |
|
67 |
|
68 |
|
69 |
1.1 net-mail/courier-imap/courier-imap-4.6.0.ebuild |
70 |
|
71 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/courier-imap/courier-imap-4.6.0.ebuild?rev=1.1&view=markup |
72 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/courier-imap/courier-imap-4.6.0.ebuild?rev=1.1&content-type=text/plain |
73 |
|
74 |
Index: courier-imap-4.6.0.ebuild |
75 |
=================================================================== |
76 |
# Copyright 1999-2009 Gentoo Foundation |
77 |
# Distributed under the terms of the GNU General Public License v2 |
78 |
# $Header: /var/cvsroot/gentoo-x86/net-mail/courier-imap/courier-imap-4.6.0.ebuild,v 1.1 2009/10/06 21:38:40 voyageur Exp $ |
79 |
|
80 |
EAPI=2 |
81 |
inherit autotools eutils multilib libtool |
82 |
|
83 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~x86-fbsd" |
84 |
|
85 |
DESCRIPTION="An IMAP daemon designed specifically for maildirs." |
86 |
HOMEPAGE="http://www.courier-mta.org/" |
87 |
SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2" |
88 |
LICENSE="GPL-3" |
89 |
SLOT="0" |
90 |
IUSE="berkdb debug fam gdbm ipv6 nls selinux gnutls trashquota" |
91 |
|
92 |
RDEPEND="gnutls? ( net-libs/gnutls ) |
93 |
!gnutls? ( >=dev-libs/openssl-0.9.6 ) |
94 |
>=net-libs/courier-authlib-0.61 |
95 |
>=net-mail/mailbase-0.00-r8 |
96 |
berkdb? ( sys-libs/db ) |
97 |
fam? ( virtual/fam ) |
98 |
gdbm? ( >=sys-libs/gdbm-1.8.0 ) |
99 |
selinux? ( sec-policy/selinux-courier-imap )" |
100 |
DEPEND="${RDEPEND} |
101 |
dev-lang/perl |
102 |
!mail-mta/courier |
103 |
userland_GNU? ( sys-process/procps )" |
104 |
RDEPEND="${RDEPEND} |
105 |
!virtual/imapd" |
106 |
|
107 |
PROVIDE="virtual/imapd" |
108 |
|
109 |
RC_VER="4.0.6-r1" |
110 |
INITD_VER="4.0.6-r1" |
111 |
|
112 |
pkg_setup() { |
113 |
if ! use berkdb && ! use gdbm ; then |
114 |
echo |
115 |
eerror "Either the 'berkdb' or the 'gdbm' USE flag is required." |
116 |
eerror "Please add it to '/etc/make.conf' or '/etc/portage/package.use'." |
117 |
eerror "Use 'man 5 portage' for more info on '/etc/portage/package.use'." |
118 |
echo |
119 |
die "Required USE flag missing." |
120 |
fi |
121 |
} |
122 |
|
123 |
src_prepare() { |
124 |
# Bug #48838. Patch to enable/disable FAM support. |
125 |
# 20 Aug 2004 langthang@g.o |
126 |
# This patch should fix bug #51540. fam USE flag is not needed for shared folder support. |
127 |
epatch "${FILESDIR}"/${PN}-4.0.1-disable-fam-configure.in.patch |
128 |
|
129 |
# Kill unneeded call to AC_PROG_SYSCONFTOOL (bug #168206). |
130 |
epatch "${FILESDIR}"/${PN}-4.0.6-aclocal-fix.patch |
131 |
|
132 |
# These patches should fix problems detecting BerkeleyDB. |
133 |
# We now can compile with db4 support. |
134 |
if use berkdb ; then |
135 |
epatch "${FILESDIR}"/${PN}-4.0.6-db4-bdbobj_configure.in.patch |
136 |
epatch "${FILESDIR}"/${PN}-4.0.6-db4-configure.in.patch |
137 |
fi |
138 |
|
139 |
AT_NO_RECURSIVE="true" eautoreconf || die "root eautoreconf failed" |
140 |
cd "${S}"/maildir |
141 |
eautoreconf || die "maildir eautoreconf failed" |
142 |
cd "${S}"/bdbobj |
143 |
eautoreconf || die "bdobj eautoreconf failed" |
144 |
} |
145 |
|
146 |
src_configure() { |
147 |
local myconf="" |
148 |
|
149 |
# 19 Aug 2004 langthang@g.o |
150 |
# Default to gdbm if both berkdb and gdbm are present. |
151 |
if use gdbm ; then |
152 |
einfo "Building with GDBM support" |
153 |
myconf="${myconf} --with-db=gdbm" |
154 |
elif use berkdb ; then |
155 |
einfo "Building with BerkeleyDB support" |
156 |
myconf="${myconf} --with-db=db" |
157 |
fi |
158 |
|
159 |
# The default character set is ISO-8859-1/US-ASCII. |
160 |
# USE 'nls' will enable all available character sets. |
161 |
# Set ENABLE_UNICODE=iso-8859-1,utf-8,iso-8859-10 |
162 |
# to include only specified translation tables. |
163 |
if use nls && [[ -z "${ENABLE_UNICODE}" ]] ; then |
164 |
einfo "ENABLE_UNICODE is not set, building with all available character sets" |
165 |
myconf="${myconf} --enable-unicode" |
166 |
elif use nls ; then |
167 |
einfo "ENABLE_UNICODE is set, building with unicode=${ENABLE_UNICODE}" |
168 |
myconf="${myconf} --enable-unicode=${ENABLE_UNICODE}" |
169 |
else |
170 |
einfo "Disabling unicode support" |
171 |
myconf="${myconf} --disable-unicode" |
172 |
fi |
173 |
|
174 |
if use trashquota ; then |
175 |
einfo "Building with Trash Quota Support" |
176 |
myconf="${myconf} --with-trashquota" |
177 |
fi |
178 |
|
179 |
use debug && myconf="${myconf} debug=true" |
180 |
|
181 |
# Do the actual build now |
182 |
econf \ |
183 |
--disable-root-check \ |
184 |
--bindir=/usr/sbin \ |
185 |
--sysconfdir=/etc/${PN} \ |
186 |
--libexecdir=/usr/$(get_libdir)/${PN} \ |
187 |
--localstatedir=/var/lib/${PN} \ |
188 |
--with-authdaemonvar=/var/lib/${PN}/authdaemon \ |
189 |
--enable-workarounds-for-imap-client-bugs \ |
190 |
--with-mailuser=mail \ |
191 |
--with-mailgroup=mail \ |
192 |
$(use_with fam) \ |
193 |
$(use_with ipv6) \ |
194 |
$(use_with gnutls) \ |
195 |
${myconf} || die "econf failed" |
196 |
|
197 |
# Change the pem file location. |
198 |
sed -i -e "s:^\(TLS_CERTFILE=\).*:\1/etc/courier-imap/imapd.pem:" \ |
199 |
imap/imapd-ssl.dist || \ |
200 |
die "sed failed" |
201 |
|
202 |
sed -i -e "s:^\(TLS_CERTFILE=\).*:\1/etc/courier-imap/pop3d.pem:" \ |
203 |
imap/pop3d-ssl.dist || \ |
204 |
die "sed failed" |
205 |
} |
206 |
|
207 |
src_compile() { |
208 |
# spurious failures with parallel compiles |
209 |
emake -j1 || die "emake failed" |
210 |
} |
211 |
|
212 |
src_install() { |
213 |
dodir /var/lib/${PN} /etc/pam.d |
214 |
emake DESTDIR="${D}" install || die "emake install failed" |
215 |
rm -Rf "${D}/etc/pam.d" |
216 |
|
217 |
# Avoid name collisions in /usr/sbin wrt imapd and pop3d |
218 |
cd "${D}/usr/sbin" |
219 |
for name in imapd pop3d ; do |
220 |
mv -f "${name}" "courier-${name}" || die "Failed to mv ${name} to courier-${name}" |
221 |
done |
222 |
|
223 |
# Hack /usr/lib/courier-imap/foo.rc to use ${MAILDIR} instead of |
224 |
# 'Maildir', and to use /usr/sbin/courier-foo names. |
225 |
cd "${D}/usr/$(get_libdir)/${PN}" |
226 |
for service in {imapd,pop3d}{,-ssl} ; do |
227 |
sed -i -e 's/Maildir/${MAILDIR}/' "${service}.rc" || die "sed failed" |
228 |
sed -i -e "s/\/usr\/sbin\/${service}/\/usr\/sbin\/courier-${service}/" "${service}.rc" || die "sed failed" |
229 |
done |
230 |
|
231 |
# Rename the config files correctly and add a value for ${MAILDIR} to them. |
232 |
cd "${D}/etc/${PN}" |
233 |
for service in {imapd,pop3d}{,-ssl} ; do |
234 |
mv -f "${service}.dist" "${service}" || die "Failed to mv ${service}.dist to ${service}" |
235 |
echo -e '\n# Hardwire a value for ${MAILDIR}' >> "${service}" |
236 |
echo 'MAILDIR=.maildir' >> "${service}" |
237 |
echo 'MAILDIRPATH=.maildir' >> "${service}" |
238 |
done |
239 |
for service in imapd pop3d ; do |
240 |
echo -e '# Put any program for ${PRERUN} here' >> "${service}" |
241 |
echo 'PRERUN=' >> "${service}" |
242 |
echo -e '# Put any program for ${LOGINRUN} here' >> "${service}" |
243 |
echo -e '# this is for relay-ctrl-allow in 4*' >> "${service}" |
244 |
echo 'LOGINRUN=' >> "${service}" |
245 |
done |
246 |
|
247 |
cd "${D}/usr/sbin" |
248 |
for x in * ; do |
249 |
if [[ -L "${x}" ]] ; then |
250 |
rm -f "${x}" || die "Failed to rm ${x}" |
251 |
fi |
252 |
done |
253 |
|
254 |
cd ../share |
255 |
mv -f * ../sbin |
256 |
mv -f ../sbin/man . |
257 |
cd .. |
258 |
|
259 |
for x in mkimapdcert mkpop3dcert ; do |
260 |
mv -f "${D}/usr/sbin/${x}" "${D}/usr/sbin/${x}.orig" || die "Failed to mv /usr/sbin/${x} to /usr/sbin/${x}.orig" |
261 |
done |
262 |
|
263 |
exeinto /usr/sbin |
264 |
doexe "${FILESDIR}/mkimapdcert" "${FILESDIR}/mkpop3dcert" || die "doexe failed" |
265 |
|
266 |
dosym /usr/sbin/courierlogger /usr/$(get_libdir)/${PN}/courierlogger || die "dosym failed" |
267 |
|
268 |
mkdir "${WORKDIR}/tmp" ; cd "${WORKDIR}/tmp" |
269 |
for initd in courier-{imapd,pop3d}{,-ssl} ; do |
270 |
sed -e "s:GENTOO_LIBDIR:$(get_libdir):g" "${FILESDIR}/${PN}-${INITD_VER}-${initd}.rc6" > "${initd}" || die "initd libdir-sed failed" |
271 |
doinitd "${initd}" || die "doinitd ${initd} failed" |
272 |
done |
273 |
exeinto /usr/$(get_libdir)/${PN} |
274 |
for exe in gentoo-{imapd,pop3d}{,-ssl}.rc courier-{imapd,pop3d}.indirect ; do |
275 |
sed -e "s:GENTOO_LIBDIR:$(get_libdir):g" "${FILESDIR}/${PN}-${RC_VER}-${exe}" > "${exe}" || die "exe libdir-sed failed" |
276 |
doexe "${exe}" || die "doexe ${exe} failed" |
277 |
done |
278 |
|
279 |
dodir /usr/bin |
280 |
mv -f "${D}/usr/sbin/maildirmake" "${D}/usr/bin/maildirmake" || die "Failed to mv /usr/sbin/maildirmake to /usr/bin/maildirmake" |
281 |
|
282 |
# Bug #45953, more docs. |
283 |
cd "${S}" |
284 |
dohtml -r "${S}"/* |
285 |
dodoc "${S}"/{00README.NOW.OR.SUFFER,AUTHORS,INSTALL,NEWS,README,ChangeLog} "${FILESDIR}"/${PN}-gentoo.readme |
286 |
docinto imap |
287 |
dodoc "${S}"/imap/{ChangeLog,BUGS,BUGS.html,README} |
288 |
docinto maildir |
289 |
dodoc "${S}"/maildir/{AUTHORS,INSTALL,README.maildirquota.txt,README.sharedfolders.txt} |
290 |
docinto tcpd |
291 |
dodoc "${S}"/tcpd/README.couriertls |
292 |
} |
293 |
|
294 |
pkg_postinst() { |
295 |
elog "Authdaemond is no longer provided by this package." |
296 |
elog "Authentication libraries are now in courier-authlib." |
297 |
elog "For a quick-start howto please refer to" |
298 |
elog "${PN}-gentoo.readme in /usr/share/doc/${PF}" |
299 |
# Some users have been reporting that permissions on this directory were |
300 |
# getting scrambled, so let's ensure that they are sane. |
301 |
chmod 0755 "${ROOT}/usr/$(get_libdir)/${PN}" || die "Failed to ensure sane permissions on ${ROOT}/usr/$(get_libdir)/${PN}" |
302 |
} |
303 |
|
304 |
src_test() { |
305 |
ewarn "make check is not supported by this package due to the" |
306 |
ewarn "--enable-workarounds-for-imap-client-bugs option." |
307 |
} |