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