1 |
commit: 8e50883daa97c6bec1fa4ba8b57827251ee48a99 |
2 |
Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri May 28 06:33:12 2021 +0000 |
4 |
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri May 28 06:33:12 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e50883d |
7 |
|
8 |
net-mail/courier-imap: OutdatedBlocker |
9 |
|
10 |
Package-Manager: Portage-3.0.18, Repoman-3.0.2 |
11 |
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org> |
12 |
|
13 |
net-mail/courier-imap/Manifest | 2 - |
14 |
net-mail/courier-imap/courier-imap-4.18.2.ebuild | 1 - |
15 |
net-mail/courier-imap/courier-imap-5.0.14.ebuild | 254 ----------------------- |
16 |
net-mail/courier-imap/courier-imap-5.0.7.ebuild | 252 ---------------------- |
17 |
net-mail/courier-imap/courier-imap-5.1.2.ebuild | 1 - |
18 |
net-mail/courier-imap/courier-imap-5.1.3.ebuild | 1 - |
19 |
6 files changed, 511 deletions(-) |
20 |
|
21 |
diff --git a/net-mail/courier-imap/Manifest b/net-mail/courier-imap/Manifest |
22 |
index 220b849659f..319d514ce8b 100644 |
23 |
--- a/net-mail/courier-imap/Manifest |
24 |
+++ b/net-mail/courier-imap/Manifest |
25 |
@@ -1,5 +1,3 @@ |
26 |
DIST courier-imap-4.18.2.tar.bz2 3205230 BLAKE2B dd52c55698ac4307a52ef76ed6ca54d4289e00aacff487609cfe01bce351e180561b4bec4904e2701a0c05916bbac2e301409530ccbdcd08474b50be4c1365e3 SHA512 821f0151012f1a357faf705d938d8498a939cc994957398c0d5e2b7a619eabe202549f174e625161545ba6a94b753072458e9f0edc30cbb2443b15405740347e |
27 |
-DIST courier-imap-5.0.14.tar.bz2 3359363 BLAKE2B 23a734494ee3591b33361f209a465a54f893dd5ed30295fbda4d11707664f9750d5dd422449ff4a159a1fa8130d201bb50cde3fd56051293c45fe53d62c8ed41 SHA512 fa6feb9c6dc04a53e569cb0fdbf34cf4bbccd890cb827a4a0948bd221eb41834033cc7cb7b4c03e8b21c5a59545d73b845865a4da464c1b1b546f70805b18c31 |
28 |
-DIST courier-imap-5.0.7.tar.bz2 3296879 BLAKE2B 022522387cc667223c44354f4f3da822ac8abab19222bfc69a9dde4b7460665c97ca565b21705519f3bc0dfbe1d69bbd2ef288329bfa7b8d99e3251a4f9d3e98 SHA512 a0be5cb3e6bc42f4bf45b14132e7d4ad7e822c26aa3b3dd4bfefa7783a047b9c928ad503b462c8e832fddefb356af58b4adfa5ee91481bd024149992157a1aad |
29 |
DIST courier-imap-5.1.2.tar.bz2 3361084 BLAKE2B 0b42ec3a765c1adf425408f72b34beb7626bb9707df5adbc86b61cf60a12c3cbcad808a3173441666925f3ac4e44c137b611d4c8213566e2dc2e8fb8122d37c8 SHA512 697b7c91ea603ae67a3c167238841dcad266c6262965e7753bb2d2efee3a434c405ea55d35393330f7a55c2efc2cefbcca339c8b8f4867513e5157acc42c498d |
30 |
DIST courier-imap-5.1.3.tar.bz2 3361334 BLAKE2B 750a0fdca6882b26a7f9eef062b516a2d9271e6f73b8cd999653fc37947ffcfcbe7bb88c246be0e662f235b04c5a6f7d5dc7e06010075353670ecb1a2ca413ff SHA512 6685fe596eefcdc976f23aa115b3bc3d13e14421b1d430eb59a4bbee419ba86cb190e536871b42cbebba96160a3894cdef86571ae10bd7ee052cb7e7f8552dca |
31 |
|
32 |
diff --git a/net-mail/courier-imap/courier-imap-4.18.2.ebuild b/net-mail/courier-imap/courier-imap-4.18.2.ebuild |
33 |
index fca5172405d..8b034286d89 100644 |
34 |
--- a/net-mail/courier-imap/courier-imap-4.18.2.ebuild |
35 |
+++ b/net-mail/courier-imap/courier-imap-4.18.2.ebuild |
36 |
@@ -39,7 +39,6 @@ RDEPEND="${CDEPEND} |
37 |
# get rid of old style virtual - bug 350792 |
38 |
RDEPEND="${RDEPEND} |
39 |
!mail-mta/courier |
40 |
- !net-mail/bincimap |
41 |
!net-mail/cyrus-imapd |
42 |
" |
43 |
|
44 |
|
45 |
diff --git a/net-mail/courier-imap/courier-imap-5.0.14.ebuild b/net-mail/courier-imap/courier-imap-5.0.14.ebuild |
46 |
deleted file mode 100644 |
47 |
index 060bb3b5a84..00000000000 |
48 |
--- a/net-mail/courier-imap/courier-imap-5.0.14.ebuild |
49 |
+++ /dev/null |
50 |
@@ -1,254 +0,0 @@ |
51 |
-# Copyright 1999-2021 Gentoo Authors |
52 |
-# Distributed under the terms of the GNU General Public License v2 |
53 |
- |
54 |
-EAPI=7 |
55 |
-inherit autotools libtool readme.gentoo-r1 systemd |
56 |
- |
57 |
-DESCRIPTION="An IMAP daemon designed specifically for maildirs" |
58 |
-HOMEPAGE="https://www.courier-mta.org/imap/" |
59 |
-SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2" |
60 |
- |
61 |
-LICENSE="GPL-3" |
62 |
-SLOT="0" |
63 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" |
64 |
- |
65 |
-IUSE="berkdb debug fam +gdbm gnutls ipv6 selinux trashquota" |
66 |
-REQUIRED_USE="|| ( berkdb gdbm )" |
67 |
- |
68 |
-CDEPEND=" |
69 |
- gnutls? ( net-libs/gnutls[tools] ) |
70 |
- !gnutls? ( |
71 |
- dev-libs/openssl:0= |
72 |
- ) |
73 |
- >=net-libs/courier-authlib-0.66.4 |
74 |
- >=net-libs/courier-unicode-2 |
75 |
- >=net-mail/mailbase-0.00-r8 |
76 |
- net-dns/libidn:= |
77 |
- berkdb? ( sys-libs/db:= ) |
78 |
- fam? ( virtual/fam ) |
79 |
- gdbm? ( >=sys-libs/gdbm-1.8.0 ) |
80 |
-" |
81 |
-DEPEND="${CDEPEND} |
82 |
- dev-lang/perl |
83 |
- !mail-mta/courier |
84 |
- userland_GNU? ( sys-process/procps ) |
85 |
-" |
86 |
-RDEPEND="${CDEPEND} |
87 |
- selinux? ( sec-policy/selinux-courier ) |
88 |
-" |
89 |
- |
90 |
-# get rid of old style virtual - bug 350792 |
91 |
-RDEPEND="${RDEPEND} |
92 |
- !mail-mta/courier |
93 |
- !net-mail/bincimap |
94 |
- !net-mail/cyrus-imapd |
95 |
-" |
96 |
- |
97 |
-RC_VER="4.0.6-r1" |
98 |
-INITD_VER="4.0.6-r1" |
99 |
- |
100 |
-# make check is not supported by this package due to the |
101 |
-# --enable-workarounds-for-imap-client-bugs option. |
102 |
-RESTRICT="test" |
103 |
- |
104 |
-DISABLE_AUTOFORMATTING="yes" |
105 |
-DOC_CONTENTS=" |
106 |
-Please read http://www.courier-mta.org/imap/INSTALL.html#upgrading |
107 |
-and remove TLS_DHPARAMS from configuration files or run mkdhparams |
108 |
- |
109 |
-For a quick-start howto please refer to |
110 |
-${PN}-gentoo.readme in /usr/share/doc/${PF} |
111 |
- |
112 |
-Please convert maildir to utf8 |
113 |
-and rerun mkdhparams if needed. Location has changed |
114 |
-" |
115 |
- |
116 |
-PATCHES=( |
117 |
- "${FILESDIR}/${PN}-4.17-disable-fam-configure.ac.patch" |
118 |
- "${FILESDIR}/${PN}-4.17-aclocal-fix.patch" |
119 |
- "${FILESDIR}/${PN}-5.0.8-ar-fix.patch" |
120 |
-) |
121 |
- |
122 |
-src_prepare() { |
123 |
- default |
124 |
- |
125 |
- # These patches should fix problems detecting BerkeleyDB. |
126 |
- # We now can compile with db4 support. |
127 |
- if use berkdb ; then |
128 |
- eapply "${FILESDIR}/${PN}-4.17-db4-bdbobj_configure.ac.patch" |
129 |
- eapply "${FILESDIR}/${PN}-4.17-db4-configure.ac.patch" |
130 |
- fi |
131 |
- |
132 |
- cd libs/rootcerts & autoupdate |
133 |
- eautoreconf |
134 |
-} |
135 |
- |
136 |
-src_configure() { |
137 |
- local myconf="" |
138 |
- |
139 |
- # Default to gdbm if both berkdb and gdbm are present. |
140 |
- if use gdbm ; then |
141 |
- einfo "Building with GDBM support" |
142 |
- myconf="${myconf} --with-db=gdbm" |
143 |
- elif use berkdb ; then |
144 |
- einfo "Building with BerkeleyDB support" |
145 |
- myconf="${myconf} --with-db=db" |
146 |
- fi |
147 |
- |
148 |
- if use trashquota ; then |
149 |
- einfo "Building with Trash Quota Support" |
150 |
- myconf="${myconf} --with-trashquota" |
151 |
- fi |
152 |
- |
153 |
- use debug && myconf="${myconf} debug=true" |
154 |
- |
155 |
- econf \ |
156 |
- --with-notice=unicode \ |
157 |
- --disable-root-check \ |
158 |
- --bindir=/usr/sbin \ |
159 |
- --sysconfdir="/etc/${PN}" \ |
160 |
- --libexecdir="/usr/$(get_libdir)/${PN}" \ |
161 |
- --localstatedir="/var/lib/${PN}" \ |
162 |
- --with-authdaemonvar="/var/lib/${PN}/authdaemon" \ |
163 |
- --enable-workarounds-for-imap-client-bugs \ |
164 |
- --with-mailuser=mail \ |
165 |
- --with-mailgroup=mail \ |
166 |
- --with-certsdir="/etc/courier-imap" \ |
167 |
- $(use_with fam) \ |
168 |
- $(use_with ipv6) \ |
169 |
- $(use_with gnutls) \ |
170 |
- ${myconf} |
171 |
-} |
172 |
- |
173 |
-#src_compile() { |
174 |
- # spurious failures with parallel compiles, bug #???? |
175 |
-# emake -j1 |
176 |
-#} |
177 |
- |
178 |
-src_install() { |
179 |
- dodir "/var/lib/${PN}" /etc/pam.d |
180 |
- keepdir /var/lib/courier-imap |
181 |
- |
182 |
- default |
183 |
- rm -r "${D}/etc/pam.d" || die |
184 |
- |
185 |
- # Avoid name collisions in /usr/sbin wrt imapd and pop3d |
186 |
- for name in imapd pop3d ; do |
187 |
- mv "${D}/usr/sbin/"{,courier-}${name} \ |
188 |
- || die "failed to rename ${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 |
- for service in {imapd,pop3d}{,-ssl} ; do |
194 |
- sed -e 's/Maildir/${MAILDIR}/' \ |
195 |
- -i "${D}/usr/$(get_libdir)/${PN}/${service}.rc" \ |
196 |
- || die "sed failed" |
197 |
- sed -e "s/\/usr\/sbin\/${service}/\/usr\/sbin\/courier-${service}/" \ |
198 |
- -i "${D}/usr/$(get_libdir)/${PN}/${service}.rc" \ |
199 |
- || die "sed failed" |
200 |
- done |
201 |
- |
202 |
- # Rename the config files correctly and add a value for ${MAILDIR} |
203 |
- # to them. |
204 |
- for service in {imapd,pop3d}{,-ssl} ; do |
205 |
- mv "${D}/etc/${PN}/${service}"{.dist,} \ |
206 |
- || die "failed to rename ${service}.dist to ${service}" |
207 |
- echo -e '\n# Hardwire a value for ${MAILDIR}' \ |
208 |
- >> "${D}/etc/${PN}/${service}" |
209 |
- echo 'MAILDIR=.maildir' >> "${D}/etc/${PN}/${service}" |
210 |
- echo 'MAILDIRPATH=.maildir' >> "${D}/etc/${PN}/${service}" |
211 |
- done |
212 |
- |
213 |
- for service in imapd pop3d ; do |
214 |
- echo -e '# Put any program for ${PRERUN} here' \ |
215 |
- >> "${D}/etc/${PN}/${service}" |
216 |
- echo 'PRERUN=' >> "${D}/etc/${PN}/${service}" |
217 |
- echo -e '# Put any program for ${LOGINRUN} here' \ |
218 |
- >> "${D}/etc/${PN}/${service}" |
219 |
- echo -e '# this is for relay-ctrl-allow in 4*' \ |
220 |
- >> "${D}/etc/${PN}/${service}" |
221 |
- echo 'LOGINRUN=' >> "${D}/etc/${PN}/${service}" |
222 |
- done |
223 |
- |
224 |
- for x in "${D}/usr/sbin"/* ; do |
225 |
- if [[ -L "${x}" ]] ; then |
226 |
- rm "${x}" || die "failed to remove ${x}" |
227 |
- fi |
228 |
- done |
229 |
- |
230 |
- mv "${D}/usr/share"/* "${D}/usr/sbin/" || die |
231 |
- mv "${D}/usr/sbin/man" "${D}/usr/share/" || die |
232 |
- |
233 |
- rm "${D}/usr/sbin/"{mkimapdcert,mkpop3dcert} || die |
234 |
- |
235 |
- dosbin "${FILESDIR}/mkimapdcert" "${FILESDIR}/mkpop3dcert" |
236 |
- |
237 |
- dosym ../../sbin/courierlogger "/usr/$(get_libdir)/${PN}/courierlogger" |
238 |
- |
239 |
- for initd in courier-{imapd,pop3d}{,-ssl} ; do |
240 |
- sed -e "s:GENTOO_LIBDIR:$(get_libdir):g" \ |
241 |
- "${FILESDIR}/${PN}-${INITD_VER}-${initd}.rc6" \ |
242 |
- > "${T}/${initd}" \ |
243 |
- || die "initd libdir-sed failed" |
244 |
- doinitd "${T}/${initd}" |
245 |
- done |
246 |
- |
247 |
- cp "${FILESDIR}"/courier-*-r1.service . |
248 |
- |
249 |
- sed -i \ |
250 |
- -e "s:/usr/lib/:/usr/$(get_libdir)/:" \ |
251 |
- courier-*-r1.service \ |
252 |
- || die |
253 |
- |
254 |
- systemd_newunit courier-authdaemond-r1.service \ |
255 |
- courier-authdaemond.service |
256 |
- systemd_newunit courier-imapd-ssl-r1.service \ |
257 |
- courier-imapd-ssl.service |
258 |
- systemd_newunit courier-imapd-r1.service \ |
259 |
- courier-imapd.service |
260 |
- |
261 |
- exeinto "/usr/$(get_libdir)/${PN}" |
262 |
- for exe in gentoo-{imapd,pop3d}{,-ssl}.rc courier-{imapd,pop3d}.indirect ; do |
263 |
- sed -e "s:GENTOO_LIBDIR:$(get_libdir):g" \ |
264 |
- "${FILESDIR}/${PN}-${RC_VER}-${exe}" \ |
265 |
- > "${T}/${exe}" \ |
266 |
- || die "exe libdir-sed failed" |
267 |
- doexe "${T}/${exe}" |
268 |
- done |
269 |
- |
270 |
- # Avoid a collision with mail-mta/netqmail, bug 482098. |
271 |
- mv "${D}/usr/sbin/"{,courier-}maildirmake \ |
272 |
- || die "failed to rename maildirmake to courier-maildirmake" |
273 |
- mv "${D}/usr/share/man/man1/"{,courier-}maildirmake.1 \ |
274 |
- || die "failed to rename maildirmake.1 to courier-maildirmake.1" |
275 |
- |
276 |
- dodoc AUTHORS INSTALL NEWS README ChangeLog |
277 |
- readme.gentoo_create_doc |
278 |
- dodoc "${FILESDIR}/${PN}-gentoo.readme" |
279 |
- docinto imap |
280 |
- dodoc libs/imap/ChangeLog libs/imap/BUGS* libs/imap/README* |
281 |
- docinto maildir |
282 |
- dodoc libs/maildir/AUTHORS libs/maildir/*.html libs/maildir/README* |
283 |
- docinto rfc2045 |
284 |
- dodoc libs/rfc2045/*.html |
285 |
- docinto tcpd |
286 |
- dodoc libs/tcpd/README* libs/tcpd/*.html |
287 |
- exeinto /etc/cron.monthly |
288 |
- newexe "${FILESDIR}"/${PN}.cron ${PN} |
289 |
-} |
290 |
- |
291 |
-pkg_postinst() { |
292 |
- # Some users have been reporting that permissions on this directory were |
293 |
- # getting scrambled, so let's ensure that they are sane. |
294 |
- fperms 0755 "${ROOT}/usr/$(get_libdir)/${PN}" |
295 |
- |
296 |
- readme.gentoo_print_elog |
297 |
- |
298 |
- elog "" |
299 |
- elog "Courier Imap now run as user mail:mail." |
300 |
- elog "" |
301 |
- elog "This require you to enable read/write access to the caches:" |
302 |
- elog "/var/lib/courier-imap/courierssl*cache (chown mail:mail)" |
303 |
- elog "and read access to the certificates (e.g. /etc/courier-imap/pop3d.pem )" |
304 |
-} |
305 |
|
306 |
diff --git a/net-mail/courier-imap/courier-imap-5.0.7.ebuild b/net-mail/courier-imap/courier-imap-5.0.7.ebuild |
307 |
deleted file mode 100644 |
308 |
index 99e07788d57..00000000000 |
309 |
--- a/net-mail/courier-imap/courier-imap-5.0.7.ebuild |
310 |
+++ /dev/null |
311 |
@@ -1,252 +0,0 @@ |
312 |
-# Copyright 1999-2021 Gentoo Authors |
313 |
-# Distributed under the terms of the GNU General Public License v2 |
314 |
- |
315 |
-EAPI=7 |
316 |
-inherit autotools libtool readme.gentoo-r1 systemd |
317 |
- |
318 |
-DESCRIPTION="An IMAP daemon designed specifically for maildirs" |
319 |
-HOMEPAGE="https://www.courier-mta.org/imap/" |
320 |
-SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2" |
321 |
- |
322 |
-LICENSE="GPL-3" |
323 |
-SLOT="0" |
324 |
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86" |
325 |
- |
326 |
-IUSE="berkdb debug fam +gdbm gnutls ipv6 selinux trashquota" |
327 |
-REQUIRED_USE="|| ( berkdb gdbm )" |
328 |
- |
329 |
-CDEPEND=" |
330 |
- gnutls? ( net-libs/gnutls[tools] ) |
331 |
- !gnutls? ( |
332 |
- dev-libs/openssl:0= |
333 |
- ) |
334 |
- >=net-libs/courier-authlib-0.66.4 |
335 |
- >=net-libs/courier-unicode-2 |
336 |
- >=net-mail/mailbase-0.00-r8 |
337 |
- net-dns/libidn:= |
338 |
- berkdb? ( sys-libs/db:= ) |
339 |
- fam? ( virtual/fam ) |
340 |
- gdbm? ( >=sys-libs/gdbm-1.8.0 ) |
341 |
-" |
342 |
-DEPEND="${CDEPEND} |
343 |
- dev-lang/perl |
344 |
- !mail-mta/courier |
345 |
- userland_GNU? ( sys-process/procps ) |
346 |
-" |
347 |
-RDEPEND="${CDEPEND} |
348 |
- selinux? ( sec-policy/selinux-courier ) |
349 |
-" |
350 |
- |
351 |
-# get rid of old style virtual - bug 350792 |
352 |
-RDEPEND="${RDEPEND} |
353 |
- !mail-mta/courier |
354 |
- !net-mail/bincimap |
355 |
- !net-mail/cyrus-imapd |
356 |
-" |
357 |
- |
358 |
-RC_VER="4.0.6-r1" |
359 |
-INITD_VER="4.0.6-r1" |
360 |
- |
361 |
-# make check is not supported by this package due to the |
362 |
-# --enable-workarounds-for-imap-client-bugs option. |
363 |
-RESTRICT="test" |
364 |
- |
365 |
-DISABLE_AUTOFORMATTING="yes" |
366 |
-DOC_CONTENTS=" |
367 |
-Please read http://www.courier-mta.org/imap/INSTALL.html#upgrading |
368 |
-and remove TLS_DHPARAMS from configuration files or run mkdhparams |
369 |
- |
370 |
-For a quick-start howto please refer to |
371 |
-${PN}-gentoo.readme in /usr/share/doc/${PF} |
372 |
- |
373 |
-Please convert maildir to utf8 |
374 |
-and rerun mkdhparams if needed. Location has changed |
375 |
-" |
376 |
- |
377 |
-PATCHES=( |
378 |
- "${FILESDIR}/${PN}-4.17-disable-fam-configure.ac.patch" |
379 |
- "${FILESDIR}/${PN}-4.17-aclocal-fix.patch" |
380 |
-) |
381 |
- |
382 |
-src_prepare() { |
383 |
- default |
384 |
- |
385 |
- # These patches should fix problems detecting BerkeleyDB. |
386 |
- # We now can compile with db4 support. |
387 |
- if use berkdb ; then |
388 |
- eapply "${FILESDIR}/${PN}-4.17-db4-bdbobj_configure.ac.patch" |
389 |
- eapply "${FILESDIR}/${PN}-4.17-db4-configure.ac.patch" |
390 |
- fi |
391 |
- |
392 |
- eautoreconf |
393 |
-} |
394 |
- |
395 |
-src_configure() { |
396 |
- local myconf="" |
397 |
- |
398 |
- # Default to gdbm if both berkdb and gdbm are present. |
399 |
- if use gdbm ; then |
400 |
- einfo "Building with GDBM support" |
401 |
- myconf="${myconf} --with-db=gdbm" |
402 |
- elif use berkdb ; then |
403 |
- einfo "Building with BerkeleyDB support" |
404 |
- myconf="${myconf} --with-db=db" |
405 |
- fi |
406 |
- |
407 |
- if use trashquota ; then |
408 |
- einfo "Building with Trash Quota Support" |
409 |
- myconf="${myconf} --with-trashquota" |
410 |
- fi |
411 |
- |
412 |
- use debug && myconf="${myconf} debug=true" |
413 |
- |
414 |
- econf \ |
415 |
- --with-notice=unicode \ |
416 |
- --disable-root-check \ |
417 |
- --bindir=/usr/sbin \ |
418 |
- --sysconfdir="/etc/${PN}" \ |
419 |
- --libexecdir="/usr/$(get_libdir)/${PN}" \ |
420 |
- --localstatedir="/var/lib/${PN}" \ |
421 |
- --with-authdaemonvar="/var/lib/${PN}/authdaemon" \ |
422 |
- --enable-workarounds-for-imap-client-bugs \ |
423 |
- --with-mailuser=mail \ |
424 |
- --with-mailgroup=mail \ |
425 |
- --with-certsdir="/etc/courier-imap" \ |
426 |
- $(use_with fam) \ |
427 |
- $(use_with ipv6) \ |
428 |
- $(use_with gnutls) \ |
429 |
- ${myconf} |
430 |
-} |
431 |
- |
432 |
-#src_compile() { |
433 |
- # spurious failures with parallel compiles, bug #???? |
434 |
-# emake -j1 |
435 |
-#} |
436 |
- |
437 |
-src_install() { |
438 |
- dodir "/var/lib/${PN}" /etc/pam.d |
439 |
- keepdir /var/lib/courier-imap |
440 |
- |
441 |
- default |
442 |
- rm -r "${D}/etc/pam.d" || die |
443 |
- |
444 |
- # Avoid name collisions in /usr/sbin wrt imapd and pop3d |
445 |
- for name in imapd pop3d ; do |
446 |
- mv "${D}/usr/sbin/"{,courier-}${name} \ |
447 |
- || die "failed to rename ${name} to courier-${name}" |
448 |
- done |
449 |
- |
450 |
- # Hack /usr/lib/courier-imap/foo.rc to use ${MAILDIR} instead of |
451 |
- # 'Maildir', and to use /usr/sbin/courier-foo names. |
452 |
- for service in {imapd,pop3d}{,-ssl} ; do |
453 |
- sed -e 's/Maildir/${MAILDIR}/' \ |
454 |
- -i "${D}/usr/$(get_libdir)/${PN}/${service}.rc" \ |
455 |
- || die "sed failed" |
456 |
- sed -e "s/\/usr\/sbin\/${service}/\/usr\/sbin\/courier-${service}/" \ |
457 |
- -i "${D}/usr/$(get_libdir)/${PN}/${service}.rc" \ |
458 |
- || die "sed failed" |
459 |
- done |
460 |
- |
461 |
- # Rename the config files correctly and add a value for ${MAILDIR} |
462 |
- # to them. |
463 |
- for service in {imapd,pop3d}{,-ssl} ; do |
464 |
- mv "${D}/etc/${PN}/${service}"{.dist,} \ |
465 |
- || die "failed to rename ${service}.dist to ${service}" |
466 |
- echo -e '\n# Hardwire a value for ${MAILDIR}' \ |
467 |
- >> "${D}/etc/${PN}/${service}" |
468 |
- echo 'MAILDIR=.maildir' >> "${D}/etc/${PN}/${service}" |
469 |
- echo 'MAILDIRPATH=.maildir' >> "${D}/etc/${PN}/${service}" |
470 |
- done |
471 |
- |
472 |
- for service in imapd pop3d ; do |
473 |
- echo -e '# Put any program for ${PRERUN} here' \ |
474 |
- >> "${D}/etc/${PN}/${service}" |
475 |
- echo 'PRERUN=' >> "${D}/etc/${PN}/${service}" |
476 |
- echo -e '# Put any program for ${LOGINRUN} here' \ |
477 |
- >> "${D}/etc/${PN}/${service}" |
478 |
- echo -e '# this is for relay-ctrl-allow in 4*' \ |
479 |
- >> "${D}/etc/${PN}/${service}" |
480 |
- echo 'LOGINRUN=' >> "${D}/etc/${PN}/${service}" |
481 |
- done |
482 |
- |
483 |
- for x in "${D}/usr/sbin"/* ; do |
484 |
- if [[ -L "${x}" ]] ; then |
485 |
- rm "${x}" || die "failed to remove ${x}" |
486 |
- fi |
487 |
- done |
488 |
- |
489 |
- mv "${D}/usr/share"/* "${D}/usr/sbin/" || die |
490 |
- mv "${D}/usr/sbin/man" "${D}/usr/share/" || die |
491 |
- |
492 |
- rm "${D}/usr/sbin/"{mkimapdcert,mkpop3dcert} || die |
493 |
- |
494 |
- dosbin "${FILESDIR}/mkimapdcert" "${FILESDIR}/mkpop3dcert" |
495 |
- |
496 |
- dosym ../../sbin/courierlogger "/usr/$(get_libdir)/${PN}/courierlogger" |
497 |
- |
498 |
- for initd in courier-{imapd,pop3d}{,-ssl} ; do |
499 |
- sed -e "s:GENTOO_LIBDIR:$(get_libdir):g" \ |
500 |
- "${FILESDIR}/${PN}-${INITD_VER}-${initd}.rc6" \ |
501 |
- > "${T}/${initd}" \ |
502 |
- || die "initd libdir-sed failed" |
503 |
- doinitd "${T}/${initd}" |
504 |
- done |
505 |
- |
506 |
- cp "${FILESDIR}"/courier-*-r1.service . |
507 |
- |
508 |
- sed -i \ |
509 |
- -e "s:/usr/lib/:/usr/$(get_libdir)/:" \ |
510 |
- courier-*-r1.service \ |
511 |
- || die |
512 |
- |
513 |
- systemd_newunit courier-authdaemond-r1.service \ |
514 |
- courier-authdaemond.service |
515 |
- systemd_newunit courier-imapd-ssl-r1.service \ |
516 |
- courier-imapd-ssl.service |
517 |
- systemd_newunit courier-imapd-r1.service \ |
518 |
- courier-imapd.service |
519 |
- |
520 |
- exeinto "/usr/$(get_libdir)/${PN}" |
521 |
- for exe in gentoo-{imapd,pop3d}{,-ssl}.rc courier-{imapd,pop3d}.indirect ; do |
522 |
- sed -e "s:GENTOO_LIBDIR:$(get_libdir):g" \ |
523 |
- "${FILESDIR}/${PN}-${RC_VER}-${exe}" \ |
524 |
- > "${T}/${exe}" \ |
525 |
- || die "exe libdir-sed failed" |
526 |
- doexe "${T}/${exe}" |
527 |
- done |
528 |
- |
529 |
- # Avoid a collision with mail-mta/netqmail, bug 482098. |
530 |
- mv "${D}/usr/sbin/"{,courier-}maildirmake \ |
531 |
- || die "failed to rename maildirmake to courier-maildirmake" |
532 |
- mv "${D}/usr/share/man/man1/"{,courier-}maildirmake.1 \ |
533 |
- || die "failed to rename maildirmake.1 to courier-maildirmake.1" |
534 |
- |
535 |
- dodoc AUTHORS INSTALL NEWS README ChangeLog |
536 |
- readme.gentoo_create_doc |
537 |
- dodoc "${FILESDIR}/${PN}-gentoo.readme" |
538 |
- docinto imap |
539 |
- dodoc libs/imap/ChangeLog libs/imap/BUGS* libs/imap/README* |
540 |
- docinto maildir |
541 |
- dodoc libs/maildir/AUTHORS libs/maildir/*.html libs/maildir/README* |
542 |
- docinto rfc2045 |
543 |
- dodoc libs/rfc2045/*.html |
544 |
- docinto tcpd |
545 |
- dodoc libs/tcpd/README* libs/tcpd/*.html |
546 |
- exeinto /etc/cron.monthly |
547 |
- newexe "${FILESDIR}"/${PN}.cron ${PN} |
548 |
-} |
549 |
- |
550 |
-pkg_postinst() { |
551 |
- # Some users have been reporting that permissions on this directory were |
552 |
- # getting scrambled, so let's ensure that they are sane. |
553 |
- fperms 0755 "${ROOT}/usr/$(get_libdir)/${PN}" |
554 |
- |
555 |
- readme.gentoo_print_elog |
556 |
- |
557 |
- elog "" |
558 |
- elog "Courier Imap now run as user mail:mail." |
559 |
- elog "" |
560 |
- elog "This require you to enable read/write access to the caches:" |
561 |
- elog "/var/lib/courier-imap/courierssl*cache (chown mail:mail)" |
562 |
- elog "and read access to the certificates (e.g. /etc/courier-imap/pop3d.pem )" |
563 |
-} |
564 |
|
565 |
diff --git a/net-mail/courier-imap/courier-imap-5.1.2.ebuild b/net-mail/courier-imap/courier-imap-5.1.2.ebuild |
566 |
index 3f91d87cd83..c908d5ac608 100644 |
567 |
--- a/net-mail/courier-imap/courier-imap-5.1.2.ebuild |
568 |
+++ b/net-mail/courier-imap/courier-imap-5.1.2.ebuild |
569 |
@@ -40,7 +40,6 @@ RDEPEND="${CDEPEND} |
570 |
# get rid of old style virtual - bug 350792 |
571 |
RDEPEND="${RDEPEND} |
572 |
!mail-mta/courier |
573 |
- !net-mail/bincimap |
574 |
!net-mail/cyrus-imapd |
575 |
" |
576 |
|
577 |
|
578 |
diff --git a/net-mail/courier-imap/courier-imap-5.1.3.ebuild b/net-mail/courier-imap/courier-imap-5.1.3.ebuild |
579 |
index 2418f2ded5e..df153dc82fd 100644 |
580 |
--- a/net-mail/courier-imap/courier-imap-5.1.3.ebuild |
581 |
+++ b/net-mail/courier-imap/courier-imap-5.1.3.ebuild |
582 |
@@ -40,7 +40,6 @@ RDEPEND="${CDEPEND} |
583 |
# get rid of old style virtual - bug 350792 |
584 |
RDEPEND="${RDEPEND} |
585 |
!mail-mta/courier |
586 |
- !net-mail/bincimap |
587 |
!net-mail/cyrus-imapd |
588 |
" |