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