1 |
commit: b756fbc1ab6eb931c91ccdbff5d8e5194246ba22 |
2 |
Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun May 24 09:29:36 2020 +0000 |
4 |
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 24 09:29:36 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b756fbc1 |
7 |
|
8 |
net-mail/courier-imap: version bump to 5.0.10 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/724590 |
11 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
12 |
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org> |
13 |
|
14 |
net-mail/courier-imap/Manifest | 1 + |
15 |
net-mail/courier-imap/courier-imap-5.0.10.ebuild | 255 +++++++++++++++++++++++ |
16 |
2 files changed, 256 insertions(+) |
17 |
|
18 |
diff --git a/net-mail/courier-imap/Manifest b/net-mail/courier-imap/Manifest |
19 |
index e1c826c1973..eac648ddd14 100644 |
20 |
--- a/net-mail/courier-imap/Manifest |
21 |
+++ b/net-mail/courier-imap/Manifest |
22 |
@@ -1,2 +1,3 @@ |
23 |
+DIST courier-imap-5.0.10.tar.bz2 3324560 BLAKE2B f59034184c6423ba4c8a238e1756e431bc240a5e80db5abc62af10eb776446f7c6afcba2935dfd49a7cf5dfec83087f3cdfe98785b13faa23287b0c6d24a9bd9 SHA512 7b1bd179fb7d9ed99ea4a92414e13d1313d10239bd1d7ddef76d17bb618e6dfd5d51f11d1fdb2fcd6a204a5000e3756ecb30aa2c791c6063ab3991dde65a3590 |
24 |
DIST courier-imap-5.0.7.tar.bz2 3296879 BLAKE2B 022522387cc667223c44354f4f3da822ac8abab19222bfc69a9dde4b7460665c97ca565b21705519f3bc0dfbe1d69bbd2ef288329bfa7b8d99e3251a4f9d3e98 SHA512 a0be5cb3e6bc42f4bf45b14132e7d4ad7e822c26aa3b3dd4bfefa7783a047b9c928ad503b462c8e832fddefb356af58b4adfa5ee91481bd024149992157a1aad |
25 |
DIST courier-imap-5.0.8.tar.bz2 3296810 BLAKE2B 43b9cf61253145c4f877ed350140159014d812c197f82cb2621db4484c66ae57e0c1a237ba0f13e0edb35439f562662557ca98d3193ba8b6e35e392dac00cd03 SHA512 bc60f4540da8db02758d593694ca4b7336a7d65fd3c48ea5c373e18abfc9973db836c505f77caf844529947ad0c4ef0dc276898e437ca60f0facb2ec6650702c |
26 |
|
27 |
diff --git a/net-mail/courier-imap/courier-imap-5.0.10.ebuild b/net-mail/courier-imap/courier-imap-5.0.10.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..3d9b947d0c6 |
30 |
--- /dev/null |
31 |
+++ b/net-mail/courier-imap/courier-imap-5.0.10.ebuild |
32 |
@@ -0,0 +1,255 @@ |
33 |
+# Copyright 1999-2020 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+inherit autotools libtool readme.gentoo-r1 systemd |
38 |
+ |
39 |
+DESCRIPTION="An IMAP daemon designed specifically for maildirs" |
40 |
+HOMEPAGE="https://www.courier-mta.org/imap/" |
41 |
+SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2" |
42 |
+ |
43 |
+LICENSE="GPL-3" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" |
46 |
+ |
47 |
+IUSE="berkdb debug fam +gdbm gnutls ipv6 libressl selinux trashquota" |
48 |
+REQUIRED_USE="|| ( berkdb gdbm )" |
49 |
+ |
50 |
+CDEPEND=" |
51 |
+ gnutls? ( net-libs/gnutls[tools] ) |
52 |
+ !gnutls? ( |
53 |
+ !libressl? ( dev-libs/openssl:0= ) |
54 |
+ libressl? ( dev-libs/libressl:0= ) |
55 |
+ ) |
56 |
+ >=net-libs/courier-authlib-0.66.4 |
57 |
+ >=net-libs/courier-unicode-2 |
58 |
+ >=net-mail/mailbase-0.00-r8 |
59 |
+ net-dns/libidn:= |
60 |
+ berkdb? ( sys-libs/db:= ) |
61 |
+ fam? ( virtual/fam ) |
62 |
+ gdbm? ( >=sys-libs/gdbm-1.8.0 ) |
63 |
+" |
64 |
+DEPEND="${CDEPEND} |
65 |
+ dev-lang/perl |
66 |
+ !mail-mta/courier |
67 |
+ userland_GNU? ( sys-process/procps ) |
68 |
+" |
69 |
+RDEPEND="${CDEPEND} |
70 |
+ selinux? ( sec-policy/selinux-courier ) |
71 |
+" |
72 |
+ |
73 |
+# get rid of old style virtual - bug 350792 |
74 |
+RDEPEND="${RDEPEND} |
75 |
+ !mail-mta/courier |
76 |
+ !net-mail/bincimap |
77 |
+ !net-mail/cyrus-imapd |
78 |
+ !net-mail/uw-imap |
79 |
+" |
80 |
+ |
81 |
+RC_VER="4.0.6-r1" |
82 |
+INITD_VER="4.0.6-r1" |
83 |
+ |
84 |
+# make check is not supported by this package due to the |
85 |
+# --enable-workarounds-for-imap-client-bugs option. |
86 |
+RESTRICT="test" |
87 |
+ |
88 |
+DISABLE_AUTOFORMATTING="yes" |
89 |
+DOC_CONTENTS=" |
90 |
+Please read http://www.courier-mta.org/imap/INSTALL.html#upgrading |
91 |
+and remove TLS_DHPARAMS from configuration files or run mkdhparams |
92 |
+ |
93 |
+For a quick-start howto please refer to |
94 |
+${PN}-gentoo.readme in /usr/share/doc/${PF} |
95 |
+ |
96 |
+Please convert maildir to utf8 |
97 |
+and rerun mkdhparams if needed. Location has changed |
98 |
+" |
99 |
+ |
100 |
+PATCHES=( |
101 |
+ "${FILESDIR}/${PN}-4.17-disable-fam-configure.ac.patch" |
102 |
+ "${FILESDIR}/${PN}-4.17-aclocal-fix.patch" |
103 |
+ "${FILESDIR}/${PN}-5.0.8-ar-fix.patch" |
104 |
+) |
105 |
+ |
106 |
+src_prepare() { |
107 |
+ default |
108 |
+ |
109 |
+ # These patches should fix problems detecting BerkeleyDB. |
110 |
+ # We now can compile with db4 support. |
111 |
+ if use berkdb ; then |
112 |
+ eapply "${FILESDIR}/${PN}-4.17-db4-bdbobj_configure.ac.patch" |
113 |
+ eapply "${FILESDIR}/${PN}-4.17-db4-configure.ac.patch" |
114 |
+ fi |
115 |
+ |
116 |
+ eautoreconf |
117 |
+} |
118 |
+ |
119 |
+src_configure() { |
120 |
+ local myconf="" |
121 |
+ |
122 |
+ # Default to gdbm if both berkdb and gdbm are present. |
123 |
+ if use gdbm ; then |
124 |
+ einfo "Building with GDBM support" |
125 |
+ myconf="${myconf} --with-db=gdbm" |
126 |
+ elif use berkdb ; then |
127 |
+ einfo "Building with BerkeleyDB support" |
128 |
+ myconf="${myconf} --with-db=db" |
129 |
+ fi |
130 |
+ |
131 |
+ if use trashquota ; then |
132 |
+ einfo "Building with Trash Quota Support" |
133 |
+ myconf="${myconf} --with-trashquota" |
134 |
+ fi |
135 |
+ |
136 |
+ use debug && myconf="${myconf} debug=true" |
137 |
+ |
138 |
+ econf \ |
139 |
+ --with-notice=unicode \ |
140 |
+ --disable-root-check \ |
141 |
+ --bindir=/usr/sbin \ |
142 |
+ --sysconfdir="/etc/${PN}" \ |
143 |
+ --libexecdir="/usr/$(get_libdir)/${PN}" \ |
144 |
+ --localstatedir="/var/lib/${PN}" \ |
145 |
+ --with-authdaemonvar="/var/lib/${PN}/authdaemon" \ |
146 |
+ --enable-workarounds-for-imap-client-bugs \ |
147 |
+ --with-mailuser=mail \ |
148 |
+ --with-mailgroup=mail \ |
149 |
+ --with-certsdir="/etc/courier-imap" \ |
150 |
+ $(use_with fam) \ |
151 |
+ $(use_with ipv6) \ |
152 |
+ $(use_with gnutls) \ |
153 |
+ ${myconf} |
154 |
+} |
155 |
+ |
156 |
+#src_compile() { |
157 |
+ # spurious failures with parallel compiles, bug #???? |
158 |
+# emake -j1 |
159 |
+#} |
160 |
+ |
161 |
+src_install() { |
162 |
+ dodir "/var/lib/${PN}" /etc/pam.d |
163 |
+ keepdir /var/lib/courier-imap |
164 |
+ |
165 |
+ default |
166 |
+ rm -r "${D}/etc/pam.d" || die |
167 |
+ |
168 |
+ # Avoid name collisions in /usr/sbin wrt imapd and pop3d |
169 |
+ for name in imapd pop3d ; do |
170 |
+ mv "${D}/usr/sbin/"{,courier-}${name} \ |
171 |
+ || die "failed to rename ${name} to courier-${name}" |
172 |
+ done |
173 |
+ |
174 |
+ # Hack /usr/lib/courier-imap/foo.rc to use ${MAILDIR} instead of |
175 |
+ # 'Maildir', and to use /usr/sbin/courier-foo names. |
176 |
+ for service in {imapd,pop3d}{,-ssl} ; do |
177 |
+ sed -e 's/Maildir/${MAILDIR}/' \ |
178 |
+ -i "${D}/usr/$(get_libdir)/${PN}/${service}.rc" \ |
179 |
+ || die "sed failed" |
180 |
+ sed -e "s/\/usr\/sbin\/${service}/\/usr\/sbin\/courier-${service}/" \ |
181 |
+ -i "${D}/usr/$(get_libdir)/${PN}/${service}.rc" \ |
182 |
+ || die "sed failed" |
183 |
+ done |
184 |
+ |
185 |
+ # Rename the config files correctly and add a value for ${MAILDIR} |
186 |
+ # to them. |
187 |
+ for service in {imapd,pop3d}{,-ssl} ; do |
188 |
+ mv "${D}/etc/${PN}/${service}"{.dist,} \ |
189 |
+ || die "failed to rename ${service}.dist to ${service}" |
190 |
+ echo -e '\n# Hardwire a value for ${MAILDIR}' \ |
191 |
+ >> "${D}/etc/${PN}/${service}" |
192 |
+ echo 'MAILDIR=.maildir' >> "${D}/etc/${PN}/${service}" |
193 |
+ echo 'MAILDIRPATH=.maildir' >> "${D}/etc/${PN}/${service}" |
194 |
+ done |
195 |
+ |
196 |
+ for service in imapd pop3d ; do |
197 |
+ echo -e '# Put any program for ${PRERUN} here' \ |
198 |
+ >> "${D}/etc/${PN}/${service}" |
199 |
+ echo 'PRERUN=' >> "${D}/etc/${PN}/${service}" |
200 |
+ echo -e '# Put any program for ${LOGINRUN} here' \ |
201 |
+ >> "${D}/etc/${PN}/${service}" |
202 |
+ echo -e '# this is for relay-ctrl-allow in 4*' \ |
203 |
+ >> "${D}/etc/${PN}/${service}" |
204 |
+ echo 'LOGINRUN=' >> "${D}/etc/${PN}/${service}" |
205 |
+ done |
206 |
+ |
207 |
+ for x in "${D}/usr/sbin"/* ; do |
208 |
+ if [[ -L "${x}" ]] ; then |
209 |
+ rm "${x}" || die "failed to remove ${x}" |
210 |
+ fi |
211 |
+ done |
212 |
+ |
213 |
+ mv "${D}/usr/share"/* "${D}/usr/sbin/" || die |
214 |
+ mv "${D}/usr/sbin/man" "${D}/usr/share/" || die |
215 |
+ |
216 |
+ rm "${D}/usr/sbin/"{mkimapdcert,mkpop3dcert} || die |
217 |
+ |
218 |
+ dosbin "${FILESDIR}/mkimapdcert" "${FILESDIR}/mkpop3dcert" |
219 |
+ |
220 |
+ dosym ../../sbin/courierlogger "/usr/$(get_libdir)/${PN}/courierlogger" |
221 |
+ |
222 |
+ for initd in courier-{imapd,pop3d}{,-ssl} ; do |
223 |
+ sed -e "s:GENTOO_LIBDIR:$(get_libdir):g" \ |
224 |
+ "${FILESDIR}/${PN}-${INITD_VER}-${initd}.rc6" \ |
225 |
+ > "${T}/${initd}" \ |
226 |
+ || die "initd libdir-sed failed" |
227 |
+ doinitd "${T}/${initd}" |
228 |
+ done |
229 |
+ |
230 |
+ cp "${FILESDIR}"/courier-*-r1.service . |
231 |
+ |
232 |
+ sed -i \ |
233 |
+ -e "s:/usr/lib/:/usr/$(get_libdir)/:" \ |
234 |
+ courier-*-r1.service \ |
235 |
+ || die |
236 |
+ |
237 |
+ systemd_newunit courier-authdaemond-r1.service \ |
238 |
+ courier-authdaemond.service |
239 |
+ systemd_newunit courier-imapd-ssl-r1.service \ |
240 |
+ courier-imapd-ssl.service |
241 |
+ systemd_newunit courier-imapd-r1.service \ |
242 |
+ courier-imapd.service |
243 |
+ |
244 |
+ exeinto "/usr/$(get_libdir)/${PN}" |
245 |
+ for exe in gentoo-{imapd,pop3d}{,-ssl}.rc courier-{imapd,pop3d}.indirect ; do |
246 |
+ sed -e "s:GENTOO_LIBDIR:$(get_libdir):g" \ |
247 |
+ "${FILESDIR}/${PN}-${RC_VER}-${exe}" \ |
248 |
+ > "${T}/${exe}" \ |
249 |
+ || die "exe libdir-sed failed" |
250 |
+ doexe "${T}/${exe}" |
251 |
+ done |
252 |
+ |
253 |
+ # Avoid a collision with mail-mta/netqmail, bug 482098. |
254 |
+ mv "${D}/usr/sbin/"{,courier-}maildirmake \ |
255 |
+ || die "failed to rename maildirmake to courier-maildirmake" |
256 |
+ mv "${D}/usr/share/man/man1/"{,courier-}maildirmake.1 \ |
257 |
+ || die "failed to rename maildirmake.1 to courier-maildirmake.1" |
258 |
+ |
259 |
+ dodoc AUTHORS INSTALL NEWS README ChangeLog |
260 |
+ readme.gentoo_create_doc |
261 |
+ dodoc "${FILESDIR}/${PN}-gentoo.readme" |
262 |
+ docinto imap |
263 |
+ dodoc libs/imap/ChangeLog libs/imap/BUGS* libs/imap/README* |
264 |
+ docinto maildir |
265 |
+ dodoc libs/maildir/AUTHORS libs/maildir/*.html libs/maildir/README* |
266 |
+ docinto rfc2045 |
267 |
+ dodoc libs/rfc2045/*.html |
268 |
+ docinto tcpd |
269 |
+ dodoc libs/tcpd/README* libs/tcpd/*.html |
270 |
+ exeinto /etc/cron.monthly |
271 |
+ newexe "${FILESDIR}"/${PN}.cron ${PN} |
272 |
+} |
273 |
+ |
274 |
+pkg_postinst() { |
275 |
+ # Some users have been reporting that permissions on this directory were |
276 |
+ # getting scrambled, so let's ensure that they are sane. |
277 |
+ fperms 0755 "${ROOT}/usr/$(get_libdir)/${PN}" |
278 |
+ |
279 |
+ readme.gentoo_print_elog |
280 |
+ |
281 |
+ elog "" |
282 |
+ elog "Courier Imap now run as user mail:mail." |
283 |
+ elog "" |
284 |
+ elog "This require you to enable read/write access to the caches:" |
285 |
+ elog "/var/lib/courier-imap/courierssl*cache (chown mail:mail)" |
286 |
+ elog "and read access to the certificates (e.g. /etc/courier-imap/pop3d.pem )" |
287 |
+} |