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