1 |
commit: 6ef1d53c37cb7b1df428aa91428263d207469151 |
2 |
Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 10 08:58:46 2021 +0000 |
4 |
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 10 08:58:46 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ef1d53c |
7 |
|
8 |
net-mail/courier-imap: bump 5.1.4 |
9 |
|
10 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
11 |
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org> |
12 |
|
13 |
net-mail/courier-imap/Manifest | 1 + |
14 |
net-mail/courier-imap/courier-imap-5.1.4.ebuild | 251 ++++++++++++++++++++++++ |
15 |
2 files changed, 252 insertions(+) |
16 |
|
17 |
diff --git a/net-mail/courier-imap/Manifest b/net-mail/courier-imap/Manifest |
18 |
index ae5df5d8f41..83538be26ee 100644 |
19 |
--- a/net-mail/courier-imap/Manifest |
20 |
+++ b/net-mail/courier-imap/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST courier-imap-5.1.2.tar.bz2 3361084 BLAKE2B 0b42ec3a765c1adf425408f72b34beb7626bb9707df5adbc86b61cf60a12c3cbcad808a3173441666925f3ac4e44c137b611d4c8213566e2dc2e8fb8122d37c8 SHA512 697b7c91ea603ae67a3c167238841dcad266c6262965e7753bb2d2efee3a434c405ea55d35393330f7a55c2efc2cefbcca339c8b8f4867513e5157acc42c498d |
23 |
DIST courier-imap-5.1.3.tar.bz2 3361334 BLAKE2B 750a0fdca6882b26a7f9eef062b516a2d9271e6f73b8cd999653fc37947ffcfcbe7bb88c246be0e662f235b04c5a6f7d5dc7e06010075353670ecb1a2ca413ff SHA512 6685fe596eefcdc976f23aa115b3bc3d13e14421b1d430eb59a4bbee419ba86cb190e536871b42cbebba96160a3894cdef86571ae10bd7ee052cb7e7f8552dca |
24 |
+DIST courier-imap-5.1.4.tar.bz2 3363196 BLAKE2B 272548fcbc560ebf39e63170702de30970bee1e0026c31e0c8f0a6dcf86271565cda1e83e9fe50174aa2db2f9172cfc78132746ca8eb2e6749f16c7e994d0db9 SHA512 33e54e3b369335f5bc234c638c9bf4f68bc39dc9cb6cc5e3e3ba200f72a7b2fcdca6a4f7e35f32f494406f8757749ccf5204be93ecd2edbfabab4b6316d5957c |
25 |
|
26 |
diff --git a/net-mail/courier-imap/courier-imap-5.1.4.ebuild b/net-mail/courier-imap/courier-imap-5.1.4.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..2c96931fa93 |
29 |
--- /dev/null |
30 |
+++ b/net-mail/courier-imap/courier-imap-5.1.4.ebuild |
31 |
@@ -0,0 +1,251 @@ |
32 |
+# Copyright 1999-2021 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 selinux trashquota" |
47 |
+REQUIRED_USE="|| ( berkdb gdbm )" |
48 |
+ |
49 |
+CDEPEND=" |
50 |
+ gnutls? ( net-libs/gnutls:=[tools] ) |
51 |
+ !gnutls? ( |
52 |
+ dev-libs/openssl:0= |
53 |
+ ) |
54 |
+ >=net-libs/courier-authlib-0.71 |
55 |
+ >=net-libs/courier-unicode-2:= |
56 |
+ >=net-mail/mailbase-0.00-r8 |
57 |
+ net-dns/libidn:= |
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/cyrus-imapd |
75 |
+" |
76 |
+ |
77 |
+RC_VER="4.0.6-r1" |
78 |
+INITD_VER="4.0.6-r1" |
79 |
+ |
80 |
+# make check is not supported by this package due to the |
81 |
+# --enable-workarounds-for-imap-client-bugs option. |
82 |
+RESTRICT="test" |
83 |
+ |
84 |
+DISABLE_AUTOFORMATTING="yes" |
85 |
+DOC_CONTENTS=" |
86 |
+Please read http://www.courier-mta.org/imap/INSTALL.html#upgrading |
87 |
+and remove TLS_DHPARAMS from configuration files or run mkdhparams |
88 |
+ |
89 |
+For a quick-start howto please refer to |
90 |
+${PN}-gentoo.readme in /usr/share/doc/${PF} |
91 |
+ |
92 |
+Please convert maildir to utf8 |
93 |
+and rerun mkdhparams if needed. Location has changed |
94 |
+" |
95 |
+ |
96 |
+PATCHES=( |
97 |
+ "${FILESDIR}/${PN}-4.17-aclocal-fix.patch" |
98 |
+ "${FILESDIR}/${PN}-5.0.8-ar-fix.patch" |
99 |
+) |
100 |
+ |
101 |
+src_prepare() { |
102 |
+ default |
103 |
+ |
104 |
+ # These patches should fix problems detecting BerkeleyDB. |
105 |
+ # We now can compile with db4 support. |
106 |
+ if use berkdb ; then |
107 |
+ eapply "${FILESDIR}/${PN}-4.17-db4-bdbobj_configure.ac.patch" |
108 |
+ eapply "${FILESDIR}/${PN}-4.17-db4-configure.ac.patch" |
109 |
+ fi |
110 |
+ |
111 |
+ eautoreconf |
112 |
+} |
113 |
+ |
114 |
+src_configure() { |
115 |
+ local myconf="" |
116 |
+ |
117 |
+ # Default to gdbm if both berkdb and gdbm are present. |
118 |
+ if use gdbm ; then |
119 |
+ einfo "Building with GDBM support" |
120 |
+ myconf="${myconf} --with-db=gdbm" |
121 |
+ elif use berkdb ; then |
122 |
+ einfo "Building with BerkeleyDB support" |
123 |
+ myconf="${myconf} --with-db=db" |
124 |
+ fi |
125 |
+ |
126 |
+ if use trashquota ; then |
127 |
+ einfo "Building with Trash Quota Support" |
128 |
+ myconf="${myconf} --with-trashquota" |
129 |
+ fi |
130 |
+ |
131 |
+ use debug && myconf="${myconf} debug=true" |
132 |
+ |
133 |
+ econf \ |
134 |
+ --with-notice=unicode \ |
135 |
+ --disable-root-check \ |
136 |
+ --bindir=/usr/sbin \ |
137 |
+ --sysconfdir="/etc/${PN}" \ |
138 |
+ --libexecdir="/usr/$(get_libdir)/${PN}" \ |
139 |
+ --localstatedir="/var/lib/${PN}" \ |
140 |
+ --with-authdaemonvar="/var/lib/${PN}/authdaemon" \ |
141 |
+ --enable-workarounds-for-imap-client-bugs \ |
142 |
+ --with-mailuser=mail \ |
143 |
+ --with-mailgroup=mail \ |
144 |
+ --with-certsdir="/etc/courier-imap" \ |
145 |
+ $(use_with fam) \ |
146 |
+ $(use_with ipv6) \ |
147 |
+ $(use_with gnutls) \ |
148 |
+ ${myconf} |
149 |
+} |
150 |
+ |
151 |
+#src_compile() { |
152 |
+ # spurious failures with parallel compiles, bug #???? |
153 |
+# emake -j1 |
154 |
+#} |
155 |
+ |
156 |
+src_install() { |
157 |
+ dodir "/var/lib/${PN}" /etc/pam.d |
158 |
+ keepdir /var/lib/courier-imap |
159 |
+ |
160 |
+ default |
161 |
+ rm -r "${D}/etc/pam.d" || die |
162 |
+ |
163 |
+ # Avoid name collisions in /usr/sbin wrt imapd and pop3d |
164 |
+ for name in imapd pop3d ; do |
165 |
+ mv "${D}/usr/sbin/"{,courier-}${name} \ |
166 |
+ || die "failed to rename ${name} to courier-${name}" |
167 |
+ done |
168 |
+ |
169 |
+ # Hack /usr/lib/courier-imap/foo.rc to use ${MAILDIR} instead of |
170 |
+ # 'Maildir', and to use /usr/sbin/courier-foo names. |
171 |
+ for service in {imapd,pop3d}{,-ssl} ; do |
172 |
+ sed -e 's/Maildir/${MAILDIR}/' \ |
173 |
+ -i "${D}/usr/$(get_libdir)/${PN}/${service}.rc" \ |
174 |
+ || die "sed failed" |
175 |
+ sed -e "s/\/usr\/sbin\/${service}/\/usr\/sbin\/courier-${service}/" \ |
176 |
+ -i "${D}/usr/$(get_libdir)/${PN}/${service}.rc" \ |
177 |
+ || die "sed failed" |
178 |
+ done |
179 |
+ |
180 |
+ # Rename the config files correctly and add a value for ${MAILDIR} |
181 |
+ # to them. |
182 |
+ for service in {imapd,pop3d}{,-ssl} ; do |
183 |
+ mv "${D}/etc/${PN}/${service}"{.dist,} \ |
184 |
+ || die "failed to rename ${service}.dist to ${service}" |
185 |
+ echo -e '\n# Hardwire a value for ${MAILDIR}' \ |
186 |
+ >> "${D}/etc/${PN}/${service}" |
187 |
+ echo 'MAILDIR=.maildir' >> "${D}/etc/${PN}/${service}" |
188 |
+ echo 'MAILDIRPATH=.maildir' >> "${D}/etc/${PN}/${service}" |
189 |
+ done |
190 |
+ |
191 |
+ for service in imapd pop3d ; do |
192 |
+ echo -e '# Put any program for ${PRERUN} here' \ |
193 |
+ >> "${D}/etc/${PN}/${service}" |
194 |
+ echo 'PRERUN=' >> "${D}/etc/${PN}/${service}" |
195 |
+ echo -e '# Put any program for ${LOGINRUN} here' \ |
196 |
+ >> "${D}/etc/${PN}/${service}" |
197 |
+ echo -e '# this is for relay-ctrl-allow in 4*' \ |
198 |
+ >> "${D}/etc/${PN}/${service}" |
199 |
+ echo 'LOGINRUN=' >> "${D}/etc/${PN}/${service}" |
200 |
+ done |
201 |
+ |
202 |
+ for x in "${D}/usr/sbin"/* ; do |
203 |
+ if [[ -L "${x}" ]] ; then |
204 |
+ rm "${x}" || die "failed to remove ${x}" |
205 |
+ fi |
206 |
+ done |
207 |
+ |
208 |
+ mv "${D}/usr/share"/* "${D}/usr/sbin/" || die |
209 |
+ mv "${D}/usr/sbin/man" "${D}/usr/share/" || die |
210 |
+ |
211 |
+ rm "${D}/usr/sbin/"{mkimapdcert,mkpop3dcert} || die |
212 |
+ |
213 |
+ dosbin "${FILESDIR}/mkimapdcert" "${FILESDIR}/mkpop3dcert" |
214 |
+ |
215 |
+ dosym ../../sbin/courierlogger "/usr/$(get_libdir)/${PN}/courierlogger" |
216 |
+ |
217 |
+ for initd in courier-{imapd,pop3d}{,-ssl} ; do |
218 |
+ sed -e "s:GENTOO_LIBDIR:$(get_libdir):g" \ |
219 |
+ "${FILESDIR}/${PN}-${INITD_VER}-${initd}.rc6" \ |
220 |
+ > "${T}/${initd}" \ |
221 |
+ || die "initd libdir-sed failed" |
222 |
+ doinitd "${T}/${initd}" |
223 |
+ done |
224 |
+ |
225 |
+ cp "${FILESDIR}"/courier-*-r1.service . |
226 |
+ |
227 |
+ sed -i \ |
228 |
+ -e "s:/usr/lib/:/usr/$(get_libdir)/:" \ |
229 |
+ courier-*-r1.service \ |
230 |
+ || die |
231 |
+ |
232 |
+ systemd_newunit courier-authdaemond-r1.service \ |
233 |
+ courier-authdaemond.service |
234 |
+ systemd_newunit courier-imapd-ssl-r1.service \ |
235 |
+ courier-imapd-ssl.service |
236 |
+ systemd_newunit courier-imapd-r1.service \ |
237 |
+ courier-imapd.service |
238 |
+ |
239 |
+ exeinto "/usr/$(get_libdir)/${PN}" |
240 |
+ for exe in gentoo-{imapd,pop3d}{,-ssl}.rc courier-{imapd,pop3d}.indirect ; do |
241 |
+ sed -e "s:GENTOO_LIBDIR:$(get_libdir):g" \ |
242 |
+ "${FILESDIR}/${PN}-${RC_VER}-${exe}" \ |
243 |
+ > "${T}/${exe}" \ |
244 |
+ || die "exe libdir-sed failed" |
245 |
+ doexe "${T}/${exe}" |
246 |
+ done |
247 |
+ |
248 |
+ # Avoid a collision with mail-mta/netqmail, bug 482098. |
249 |
+ mv "${D}/usr/sbin/"{,courier-}maildirmake \ |
250 |
+ || die "failed to rename maildirmake to courier-maildirmake" |
251 |
+ mv "${D}/usr/share/man/man1/"{,courier-}maildirmake.1 \ |
252 |
+ || die "failed to rename maildirmake.1 to courier-maildirmake.1" |
253 |
+ |
254 |
+ dodoc AUTHORS INSTALL NEWS README ChangeLog |
255 |
+ readme.gentoo_create_doc |
256 |
+ dodoc "${FILESDIR}/${PN}-gentoo.readme" |
257 |
+ docinto imap |
258 |
+ dodoc libs/imap/ChangeLog libs/imap/BUGS* libs/imap/README* |
259 |
+ docinto maildir |
260 |
+ dodoc libs/maildir/AUTHORS libs/maildir/*.html libs/maildir/README* |
261 |
+ docinto rfc2045 |
262 |
+ dodoc libs/rfc2045/*.html |
263 |
+ docinto tcpd |
264 |
+ dodoc libs/tcpd/README* libs/tcpd/*.html |
265 |
+ exeinto /etc/cron.monthly |
266 |
+ newexe "${FILESDIR}"/${PN}.cron ${PN} |
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 |
+ |
276 |
+ elog "" |
277 |
+ elog "Courier Imap now run as user mail:mail." |
278 |
+ elog "" |
279 |
+ elog "This require you to enable read/write access to the caches:" |
280 |
+ elog "/var/lib/courier-imap/courierssl*cache (chown mail:mail)" |
281 |
+ elog "and read access to the certificates (e.g. /etc/courier-imap/pop3d.pem )" |
282 |
+} |