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