1 |
commit: 286be1db4511e0bde9f8094b03ce936407b06364 |
2 |
Author: Eray Aslan <eras <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Aug 11 15:47:31 2017 +0000 |
4 |
Commit: Eray Aslan <eras <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 11 15:50:43 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=286be1db |
7 |
|
8 |
net-mail/cyrus-imapd: security bump to 3.0.3 |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.3 |
11 |
|
12 |
net-mail/cyrus-imapd/Manifest | 1 + |
13 |
net-mail/cyrus-imapd/cyrus-imapd-3.0.3.ebuild | 215 +++++++++++++++++++++ |
14 |
.../files/cyrus-imapd-sieve-libs-v4.patch | 127 ++++++++++++ |
15 |
net-mail/cyrus-imapd/files/cyrus.rc7 | 22 +++ |
16 |
net-mail/cyrus-imapd/metadata.xml | 20 +- |
17 |
5 files changed, 375 insertions(+), 10 deletions(-) |
18 |
|
19 |
diff --git a/net-mail/cyrus-imapd/Manifest b/net-mail/cyrus-imapd/Manifest |
20 |
index d9f96c0ec77..3917ba2fa70 100644 |
21 |
--- a/net-mail/cyrus-imapd/Manifest |
22 |
+++ b/net-mail/cyrus-imapd/Manifest |
23 |
@@ -2,3 +2,4 @@ DIST cyrus-imapd-2.5.10.tar.gz 3103914 SHA256 b38f4fd72825a298ac47426dcd2a50c843 |
24 |
DIST cyrus-imapd-2.5.11.tar.gz 3109188 SHA256 36a79117b320c78d62bc6842c3024d970d3bec7aa12908f862d92cf1d63397d5 SHA512 bbb0e11f31d91d85037306321165e3608f8d5e2699b971fc4fbdd1630ec0a1485c8f6f17900142dec584ab41b0ec0c65c11cfaf8c5bbf1054b194a8f5f361538 WHIRLPOOL e6aaedb642b634d9fc0c56f7ddd06e15130091bd21f4e089ae46168fb2976c7e1fa281f8c6fc0f3e171e70bbfeb5cec8f6cc613f62d5b769fb8b6af4dede6e67 |
25 |
DIST cyrus-imapd-3.0.1.tar.gz 10515460 SHA256 24a9886aa6bbe001484a54b29309ff99415c0f355b98325ebb29ad61fff5e257 SHA512 0a2bf13b4793e642f3df53231fd66774e0c5ad753b436a7fb0645db6ee70121d0da245038527cc58cb078255fec3e7b32a6230c196cceea040f74813ef78e337 WHIRLPOOL 830284e3d96b2d34d88350f8e65de2cac28c34c9d302dc7fe4247022c5d96251d72989714062408cfcf08828650a7b67aecfb1672165fed344b2e98c2dc06265 |
26 |
DIST cyrus-imapd-3.0.2.tar.gz 10706654 SHA256 5612f3cfa0504eb50bc3e49a77bf04a31c1aff3096fa1bbddb26cd7dbb69d94d SHA512 95f145733a4b2589b2f7eb6281ce0d1df5788521dea0c81fda10c7c7ae4ac7cf1a9037dba45deee6101a73bbde4552906d7c6bfa9369aa3c802061a7f5cec85d WHIRLPOOL cf56390ea0d8ecd9fcfb9a2459a552ba7815474b52b089c54b1428b42691826f91b163cfe723c795b28289530911ed614e2252e038919c4d710d9a95658f8997 |
27 |
+DIST cyrus-imapd-3.0.3.tar.gz 10819454 SHA256 6a76d8d00b26a2c9d03c65197724a28ab6d044527d7e230e6331f8de79af889a SHA512 0b5c3167d80d91371e3f07e64b8bc8c085481946e6536dd407976f6f8ae66405fd1f6d2ff5ad51e5e0eb827a64d90d93daf72d5a1afa409782a287bec29665df WHIRLPOOL 6d543b09d3f18d10c481133fafb78f82a6e2d0dd3fb7c4cdb1d181d906acef7db4c6da5dcc86254a836f69fc7cbd54034f889b0808da060a083f35dd8ee40434 |
28 |
|
29 |
diff --git a/net-mail/cyrus-imapd/cyrus-imapd-3.0.3.ebuild b/net-mail/cyrus-imapd/cyrus-imapd-3.0.3.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..f4638e0cc79 |
32 |
--- /dev/null |
33 |
+++ b/net-mail/cyrus-imapd/cyrus-imapd-3.0.3.ebuild |
34 |
@@ -0,0 +1,215 @@ |
35 |
+# Copyright 1999-2017 Gentoo Foundation |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=6 |
39 |
+inherit autotools pam ssl-cert user |
40 |
+ |
41 |
+MY_P=${P/_/} |
42 |
+ |
43 |
+DESCRIPTION="The Cyrus IMAP Server" |
44 |
+HOMEPAGE="http://www.cyrusimap.org/" |
45 |
+SRC_URI="ftp://ftp.cyrusimap.org/cyrus-imapd/${MY_P}.tar.gz" |
46 |
+ |
47 |
+LICENSE="BSD-with-attribution" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
50 |
+IUSE="afs backup calalarm caps clamav http jmap kerberos ldap lmdb \ |
51 |
+ mysql nntp pam perl postgres replication +server sieve snmp \ |
52 |
+ sphinx sqlite ssl static-libs tcpd test xapian" |
53 |
+ |
54 |
+# virtual/mysql-5.5 added for the --variable= option below |
55 |
+CDEPEND="sys-libs/zlib |
56 |
+ dev-libs/libpcre |
57 |
+ >=dev-libs/cyrus-sasl-2.1.13 |
58 |
+ dev-libs/jansson |
59 |
+ dev-libs/icu:= |
60 |
+ afs? ( net-fs/openafs ) |
61 |
+ caps? ( sys-libs/libcap ) |
62 |
+ clamav? ( app-antivirus/clamav ) |
63 |
+ http? ( dev-libs/libxml2 dev-libs/libical ) |
64 |
+ kerberos? ( virtual/krb5 ) |
65 |
+ ldap? ( net-nds/openldap ) |
66 |
+ lmdb? ( dev-db/lmdb ) |
67 |
+ mysql? ( >=virtual/mysql-5.5 ) |
68 |
+ nntp? ( !net-nntp/leafnode ) |
69 |
+ pam? ( |
70 |
+ virtual/pam |
71 |
+ >=net-mail/mailbase-1 |
72 |
+ ) |
73 |
+ perl? ( dev-lang/perl:= ) |
74 |
+ postgres? ( dev-db/postgresql:* ) |
75 |
+ snmp? ( >=net-analyzer/net-snmp-5.2.2-r1 ) |
76 |
+ ssl? ( >=dev-libs/openssl-1.0.1e:0[-bindist] ) |
77 |
+ sqlite? ( dev-db/sqlite:3 ) |
78 |
+ tcpd? ( >=sys-apps/tcp-wrappers-7.6 snmp? ( net-analyzer/net-snmp[tcpd=] ) ) |
79 |
+ xapian? ( >=dev-libs/xapian-1.4.0 )" |
80 |
+ |
81 |
+DEPEND="${CDEPEND} |
82 |
+ test? ( dev-util/cunit )" |
83 |
+ |
84 |
+# all blockers really needed? |
85 |
+RDEPEND="${CDEPEND} |
86 |
+ !mail-mta/courier |
87 |
+ !net-mail/bincimap |
88 |
+ !net-mail/courier-imap |
89 |
+ !net-mail/uw-imap |
90 |
+ !net-mail/cyrus-imap-admin" |
91 |
+ |
92 |
+REQUIRED_USE="afs? ( kerberos ) |
93 |
+ backup? ( sqlite ) |
94 |
+ calalarm? ( http ) |
95 |
+ http? ( sqlite ) |
96 |
+ jmap? ( http xapian ) |
97 |
+ sphinx? ( mysql )" |
98 |
+ |
99 |
+S=${WORKDIR}/${MY_P} |
100 |
+ |
101 |
+pkg_setup() { |
102 |
+ enewuser cyrus -1 -1 /usr/cyrus mail |
103 |
+} |
104 |
+ |
105 |
+src_prepare() { |
106 |
+ # bug 604470 |
107 |
+ eapply -p1 "${FILESDIR}/${PN}-sieve-libs-v4.patch" |
108 |
+ eapply -p1 "${FILESDIR}/${PN}-fix-tests.patch" |
109 |
+ # Fix master(8)->cyrusmaster(8) manpage. |
110 |
+ for i in `grep -rl -e 'master\.8' -e 'master(8)' "${S}"` ; do |
111 |
+ sed -i -e 's:master\.8:cyrusmaster.8:g' \ |
112 |
+ -e 's:master(8):cyrusmaster(8):g' \ |
113 |
+ "${i}" || die "sed failed" || die "sed failed" |
114 |
+ done |
115 |
+ mv man/master.8 man/cyrusmaster.8 || die "mv failed" |
116 |
+ sed -i -e "s:MASTER:CYRUSMASTER:g" \ |
117 |
+ -e "s:Master:Cyrusmaster:g" \ |
118 |
+ -e "s:master:cyrusmaster:g" \ |
119 |
+ man/cyrusmaster.8 || die "sed failed" |
120 |
+ |
121 |
+ # lock.h to afs/lock.h |
122 |
+ sed -i -e '/lock.h/s:lock.h:afs/lock.h:' \ |
123 |
+ ptclient/afskrb.c || die |
124 |
+ |
125 |
+ eapply_user |
126 |
+ eautoreconf |
127 |
+} |
128 |
+ |
129 |
+src_configure() { |
130 |
+ local myconf |
131 |
+ if use afs ; then |
132 |
+ myconf+=" --with-afs-libdir=/usr/$(get_libdir)" |
133 |
+ myconf+=" --with-afs-incdir=/usr/include/afs" |
134 |
+ fi |
135 |
+ econf \ |
136 |
+ --enable-unit-tests \ |
137 |
+ --enable-murder \ |
138 |
+ --enable-idled \ |
139 |
+ --enable-event-notification \ |
140 |
+ --enable-autocreate \ |
141 |
+ --enable-pcre \ |
142 |
+ --with-cyrus-user=cyrus \ |
143 |
+ --with-cyrus-group=mail \ |
144 |
+ --with-com_err=yes \ |
145 |
+ --with-sasl \ |
146 |
+ --without-krb \ |
147 |
+ --without-krbdes \ |
148 |
+ --enable-squat \ |
149 |
+ --with-zlib \ |
150 |
+ $(use_enable afs) \ |
151 |
+ $(use_enable afs krb5afspts) \ |
152 |
+ $(use_enable backup) \ |
153 |
+ $(use_enable calalarm calalarmd) \ |
154 |
+ $(use_with caps libcap) \ |
155 |
+ $(use_with clamav) \ |
156 |
+ $(use_enable jmap) \ |
157 |
+ $(use_enable nntp) \ |
158 |
+ $(use_enable http) \ |
159 |
+ $(use_enable replication) \ |
160 |
+ $(use_enable kerberos gssapi) \ |
161 |
+ $(use_with ldap) \ |
162 |
+ $(use_with lmdb) \ |
163 |
+ $(use_with mysql) \ |
164 |
+ $(use_with postgres pgsql) \ |
165 |
+ $(use_with perl) \ |
166 |
+ $(use_with sqlite) \ |
167 |
+ $(use_with ssl openssl) \ |
168 |
+ $(use_enable server) \ |
169 |
+ $(use_enable sieve) \ |
170 |
+ $(use_with snmp) \ |
171 |
+ $(use_enable sphinx) \ |
172 |
+ $(use_enable static-libs static) \ |
173 |
+ $(use_with tcpd libwrap) \ |
174 |
+ $(use_enable xapian) \ |
175 |
+ ${myconf} |
176 |
+} |
177 |
+ |
178 |
+src_install() { |
179 |
+ emake DESTDIR="${D}" INSTALLDIRS=vendor install |
180 |
+ |
181 |
+ dodoc README* |
182 |
+ dodoc -r doc |
183 |
+ cp -r contrib tools "${D}/usr/share/doc/${PF}" |
184 |
+ rm -f doc/text/Makefile* |
185 |
+ |
186 |
+ mv "${D}"usr/libexec/{master,cyrusmaster} || die |
187 |
+ |
188 |
+ insinto /etc |
189 |
+ newins "${D}usr/share/doc/${P}/doc/examples/cyrus_conf/normal.conf" cyrus.conf |
190 |
+ newins "${D}usr/share/doc/${P}/doc/examples/imapd_conf/normal.conf" imapd.conf |
191 |
+ |
192 |
+ sed -i -e '/^configdirectory/s|/var/.*|/var/imap|' \ |
193 |
+ -e '/^partition-default/s|/var/.*|/var/spool/imap|' \ |
194 |
+ -e '/^sievedir/s|/var/.*|/var//imap/sieve|' \ |
195 |
+ "${D}"etc/imapd.conf |
196 |
+ |
197 |
+ # turn off sieve if not installed |
198 |
+ if ! use sieve; then |
199 |
+ sed -i -e "/sieve/s/^/#/" "${D}/etc/cyrus.conf" || die |
200 |
+ fi |
201 |
+ # same thing for http(s) as well |
202 |
+ if ! use http; then |
203 |
+ sed -i -e "/http/s/^/#/" "${D}/etc/cyrus.conf" || die |
204 |
+ fi |
205 |
+ |
206 |
+ newinitd "${FILESDIR}/cyrus.rc7" cyrus |
207 |
+ newconfd "${FILESDIR}/cyrus.confd" cyrus |
208 |
+ newpamd "${FILESDIR}/cyrus.pam-include" sieve |
209 |
+ |
210 |
+ for subdir in imap/{,db,log,msg,proc,socket,sieve} spool/imap/{,stage.} ; do |
211 |
+ keepdir "/var/${subdir}" |
212 |
+ fowners cyrus:mail "/var/${subdir}" |
213 |
+ fperms 0750 "/var/${subdir}" |
214 |
+ done |
215 |
+ for subdir in imap/{user,quota,sieve} spool/imap ; do |
216 |
+ for i in a b c d e f g h i j k l m n o p q r s t v u w x y z ; do |
217 |
+ keepdir "/var/${subdir}/${i}" |
218 |
+ fowners cyrus:mail "/var/${subdir}/${i}" |
219 |
+ fperms 0750 "/var/${subdir}/${i}" |
220 |
+ done |
221 |
+ done |
222 |
+} |
223 |
+ |
224 |
+pkg_preinst() { |
225 |
+ if ! has_version ${CATEGORY}/${PN} ; then |
226 |
+ elog "For correct logging add the following to /etc/syslog.conf:" |
227 |
+ elog " local6.* /var/log/imapd.log" |
228 |
+ elog " auth.debug /var/log/auth.log" |
229 |
+ echo |
230 |
+ |
231 |
+ elog "You have to add user cyrus to the sasldb2. Do this with:" |
232 |
+ elog " saslpasswd2 cyrus" |
233 |
+ fi |
234 |
+} |
235 |
+ |
236 |
+pkg_postinst() { |
237 |
+ # do not install server.{key,pem) if they exist |
238 |
+ if use ssl ; then |
239 |
+ if [ ! -f "${ROOT}"etc/ssl/cyrus/server.key ]; then |
240 |
+ install_cert /etc/ssl/cyrus/server |
241 |
+ chown cyrus:mail "${ROOT}"etc/ssl/cyrus/server.{key,pem} |
242 |
+ fi |
243 |
+ fi |
244 |
+ |
245 |
+ echo |
246 |
+ ewarn "Please see http://www.cyrusimap.org/imap/download/upgrade.html" |
247 |
+ ewarn "for upgrade instructions." |
248 |
+ echo |
249 |
+} |
250 |
|
251 |
diff --git a/net-mail/cyrus-imapd/files/cyrus-imapd-sieve-libs-v4.patch b/net-mail/cyrus-imapd/files/cyrus-imapd-sieve-libs-v4.patch |
252 |
new file mode 100644 |
253 |
index 00000000000..4a7bac2e3c1 |
254 |
--- /dev/null |
255 |
+++ b/net-mail/cyrus-imapd/files/cyrus-imapd-sieve-libs-v4.patch |
256 |
@@ -0,0 +1,127 @@ |
257 |
+--- a/configure.ac 2017-04-20 04:21:48.000000000 +0300 |
258 |
++++ b/configure.ac 2017-05-16 10:30:37.337965921 +0300 |
259 |
+@@ -666,7 +666,9 @@ |
260 |
+ fi |
261 |
+ |
262 |
+ if test "$cyrus_cv_pcre_utf8" = "yes"; then |
263 |
+- LIBS="$LIBS -lpcre -lpcreposix"; |
264 |
++ PCRE_LIBS="-lpcre -lpcreposix" |
265 |
++ AC_SUBST(PCRE_LIBS) |
266 |
++ LIBS="$LIBS $PCRE_LIBS" |
267 |
+ AC_DEFINE(ENABLE_REGEX, [], [Do we have a regex library?]) |
268 |
+ AC_DEFINE(HAVE_PCREPOSIX_H, [], [Do we have usable pcre library?]) |
269 |
+ else |
270 |
+@@ -1938,6 +1940,7 @@ |
271 |
+ fi |
272 |
+ |
273 |
+ LIBS="${LIBS} ${SQLITE_LIBADD}" |
274 |
++ AC_SUBST(SQLITE_LIBADD) |
275 |
+ CPPFLAGS="${SQLITE_INCADD} ${CPPFLAGS}" |
276 |
+ AC_DEFINE(HAVE_SQLITE,[],[Build in SQLite support?]) |
277 |
+ else |
278 |
+--- a/perl/imap/Makefile.PL.in 2017-04-07 08:31:10.000000000 +0300 |
279 |
++++ b/perl/imap/Makefile.PL.in 2017-05-16 10:26:08.193965921 +0300 |
280 |
+@@ -90,7 +90,7 @@ |
281 |
+ 'clean' => {'FILES' => 'libcyrperl.a cyradm'}, |
282 |
+ 'OBJECT' => 'IMAP.o', |
283 |
+ 'MYEXTLIB' => '@top_builddir@/perl/.libs/libcyrus.a @top_builddir@/perl/.libs/libcyrus_min.a', |
284 |
+- 'LIBS' => [ "$LIB_SASL @SSL_LIBS@ @LIB_UUID@ @ZLIB@"], |
285 |
++ 'LIBS' => [ "$LIB_SASL @SSL_LIBS@ @LIB_RT@ @LIB_UUID@ @ZLIB@ @PCRE_LIBS@ @SQLITE_LIBADD@"], |
286 |
+ 'DEFINE' => '-DPERL_POLLUTE', # e.g., '-DHAVE_SOMETHING' |
287 |
+ 'INC' => "-I@top_srcdir@ -I@top_srcdir@/com_err/et @SASLFLAGS@ @SSL_CPPFLAGS@ -I@top_srcdir@/perl/imap", |
288 |
+ 'EXE_FILES' => [cyradm], |
289 |
+--- a/perl/sieve/managesieve/Makefile.PL.in 2017-04-07 08:31:10.000000000 +0300 |
290 |
++++ b/perl/sieve/managesieve/Makefile.PL.in 2017-05-16 10:26:31.048965921 +0300 |
291 |
+@@ -69,7 +69,7 @@ |
292 |
+ 'ABSTRACT' => 'Cyrus Sieve management interface', |
293 |
+ 'VERSION_FROM' => "@top_srcdir@/perl/sieve/managesieve/managesieve.pm", # finds $VERSION |
294 |
+ 'MYEXTLIB' => '../lib/.libs/libisieve.a @top_builddir@/perl/.libs/libcyrus.a @top_builddir@/perl/.libs/libcyrus_min.a', |
295 |
+- 'LIBS' => ["$LIB_SASL @SSL_LIBS@ @LIB_UUID@ @ZLIB@"], |
296 |
++ 'LIBS' => ["$LIB_SASL @SSL_LIBS@ @LIB_RT@ @LIB_UUID@ @ZLIB@ @PCRE_LIBS@ @SQLITE_LIBADD@"], |
297 |
+ 'CCFLAGS' => '@GCOV_CFLAGS@', |
298 |
+ 'DEFINE' => '-DPERL_POLLUTE', # e.g., '-DHAVE_SOMETHING' |
299 |
+ 'INC' => "-I@top_srcdir@/lib -I@top_srcdir@/perl/sieve -I@top_srcdir@/perl/sieve/lib @SASLFLAGS@ @SSL_CPPFLAGS@", |
300 |
+--- a/configure.ac 2017-05-16 15:18:23.648756211 +0300 |
301 |
++++ b/configure.ac 2017-05-16 15:26:49.241756211 +0300 |
302 |
+@@ -633,8 +633,6 @@ |
303 |
+ |
304 |
+ AC_ARG_ENABLE(sieve, |
305 |
+ [AS_HELP_STRING([--disable-sieve], [disable Sieve support])],,[enable_sieve="yes";]) |
306 |
+-AC_ARG_ENABLE(pcre, |
307 |
+- [AS_HELP_STRING([--disable-pcre], [disable PCRE library])]) |
308 |
+ |
309 |
+ if test "$enable_sieve" != "no"; then |
310 |
+ AC_DEFINE(USE_SIEVE,[],[Build in Sieve support?]) |
311 |
+@@ -650,42 +648,46 @@ |
312 |
+ if test -z "$ac_cv_prog_LEX"; then |
313 |
+ AC_MSG_ERROR([Sieve requires flex/lex, but none is installed]) |
314 |
+ fi |
315 |
++fi |
316 |
++AM_CONDITIONAL([SIEVE], [test "${enable_sieve}" != "no"]) |
317 |
++ |
318 |
+ |
319 |
+- if test "$enable_pcre" != "no"; then |
320 |
+- AC_CHECK_HEADER(pcreposix.h) |
321 |
+- if test "$ac_cv_header_pcreposix_h" = "yes"; then |
322 |
+- AC_MSG_CHECKING(for utf8 enabled pcre) |
323 |
+- AC_CACHE_VAL(cyrus_cv_pcre_utf8, AC_TRY_CPP([#include <pcreposix.h> |
324 |
++AC_ARG_ENABLE(pcre, |
325 |
++ [AS_HELP_STRING([--disable-pcre], [disable PCRE library])]) |
326 |
++ |
327 |
++if test "$enable_pcre" != "no"; then |
328 |
++ AC_CHECK_HEADER(pcreposix.h) |
329 |
++ if test "$ac_cv_header_pcreposix_h" = "yes"; then |
330 |
++ AC_MSG_CHECKING(for utf8 enabled pcre) |
331 |
++ AC_CACHE_VAL(cyrus_cv_pcre_utf8, AC_TRY_CPP([#include <pcreposix.h> |
332 |
+ #ifndef REG_UTF8 |
333 |
+ #include </nonexistent> |
334 |
+ #endif],cyrus_cv_pcre_utf8=yes,cyrus_cv_pcre_utf8=no)) |
335 |
+- AC_MSG_RESULT($cyrus_cv_pcre_utf8) |
336 |
+- else |
337 |
+- cyrus_cv_pcre_utf8="no" |
338 |
+- fi |
339 |
++ AC_MSG_RESULT($cyrus_cv_pcre_utf8) |
340 |
++ else |
341 |
++ cyrus_cv_pcre_utf8="no" |
342 |
+ fi |
343 |
++fi |
344 |
+ |
345 |
+- if test "$cyrus_cv_pcre_utf8" = "yes"; then |
346 |
+- PCRE_LIBS="-lpcre -lpcreposix" |
347 |
+- AC_SUBST(PCRE_LIBS) |
348 |
+- LIBS="$LIBS $PCRE_LIBS" |
349 |
+- AC_DEFINE(ENABLE_REGEX, [], [Do we have a regex library?]) |
350 |
+- AC_DEFINE(HAVE_PCREPOSIX_H, [], [Do we have usable pcre library?]) |
351 |
++if test "$cyrus_cv_pcre_utf8" = "yes"; then |
352 |
++ PCRE_LIBS="-lpcre -lpcreposix" |
353 |
++ AC_SUBST(PCRE_LIBS) |
354 |
++ LIBS="$LIBS $PCRE_LIBS" |
355 |
++ AC_DEFINE(ENABLE_REGEX, [], [Do we have a regex library?]) |
356 |
++ AC_DEFINE(HAVE_PCREPOSIX_H, [], [Do we have usable pcre library?]) |
357 |
++else |
358 |
++ AC_CHECK_HEADERS(rxposix.h) |
359 |
++ if test "$ac_cv_header_rxposix_h" = "yes"; then |
360 |
++ LIBS="$LIBS -lrx" |
361 |
++ AC_DEFINE(ENABLE_REGEX, [], |
362 |
++ [Do we have a regex library?]) |
363 |
+ else |
364 |
+- AC_CHECK_HEADERS(rxposix.h) |
365 |
+- if test "$ac_cv_header_rxposix_h" = "yes"; then |
366 |
+- LIBS="$LIBS -lrx" |
367 |
+- AC_DEFINE(ENABLE_REGEX, [], |
368 |
+- [Do we have a regex library?]) |
369 |
+- else |
370 |
+- AC_SEARCH_LIBS(regcomp, regex, |
371 |
+- AC_DEFINE(ENABLE_REGEX, [], |
372 |
+- [Do we have a regex library?]), []) |
373 |
+- fi |
374 |
++ AC_SEARCH_LIBS(regcomp, regex, |
375 |
++ AC_DEFINE(ENABLE_REGEX, [], |
376 |
++ [Do we have a regex library?]), []) |
377 |
+ fi |
378 |
+ fi |
379 |
+ |
380 |
+-AM_CONDITIONAL([SIEVE], [test "${enable_sieve}" != "no"]) |
381 |
+ |
382 |
+ dnl look for an option to disable sign-comparison warnings (needed for |
383 |
+ dnl flex-generated sieve sources when building with -Werror) |
384 |
|
385 |
diff --git a/net-mail/cyrus-imapd/files/cyrus.rc7 b/net-mail/cyrus-imapd/files/cyrus.rc7 |
386 |
new file mode 100644 |
387 |
index 00000000000..348b01c0492 |
388 |
--- /dev/null |
389 |
+++ b/net-mail/cyrus-imapd/files/cyrus.rc7 |
390 |
@@ -0,0 +1,22 @@ |
391 |
+#!/sbin/openrc-run |
392 |
+# Copyright 1999-2017 Gentoo Foundation |
393 |
+# Distributed under the terms of the GNU General Public License v2 |
394 |
+ |
395 |
+depend() { |
396 |
+ use net |
397 |
+ use dns logger |
398 |
+ after drac saslauthd |
399 |
+} |
400 |
+ |
401 |
+start() { |
402 |
+ ebegin "Starting cyrus imapd" |
403 |
+ start-stop-daemon --start --quiet --background \ |
404 |
+ --exec /usr/libexec/cyrusmaster -- ${CYRUS_OPTS} |
405 |
+ eend $? |
406 |
+} |
407 |
+ |
408 |
+stop() { |
409 |
+ ebegin "Stopping cyrus imapd" |
410 |
+ start-stop-daemon --stop --quiet --pidfile /run/cyrus-master.pid |
411 |
+ eend $? |
412 |
+} |
413 |
|
414 |
diff --git a/net-mail/cyrus-imapd/metadata.xml b/net-mail/cyrus-imapd/metadata.xml |
415 |
index f21a8fca8af..23dc96dc53a 100644 |
416 |
--- a/net-mail/cyrus-imapd/metadata.xml |
417 |
+++ b/net-mail/cyrus-imapd/metadata.xml |
418 |
@@ -6,15 +6,15 @@ |
419 |
<name>Net-Mail</name> |
420 |
</maintainer> |
421 |
<use> |
422 |
- <flag name="replication">Enable replication support</flag> |
423 |
- <flag name="sieve">Enable sieve support</flag> |
424 |
- <flag name="http">Enable http support</flag> |
425 |
- <flag name="server">Enable building server binaries</flag> |
426 |
- <flag name="backup">Enable backup service support</flag> |
427 |
- <flag name="calalarm">Enable CalDAV alarm support</flag> |
428 |
- <flag name="jmap">Enable JMAP support</flag> |
429 |
- <flag name="sphinx">Enable Sphinx search engine support</flag> |
430 |
- <flag name="xapian">Enable Xapian search engine support</flag> |
431 |
- <flag name="lmdb">Enable support for using <pkg>dev-db/lmdb</pkg></flag> |
432 |
+ <flag name="replication">Enable replication support</flag> |
433 |
+ <flag name="sieve">Enable sieve support</flag> |
434 |
+ <flag name="http">Enable http support</flag> |
435 |
+ <flag name="server">Enable building server binaries</flag> |
436 |
+ <flag name="backup">Enable backup service support</flag> |
437 |
+ <flag name="calalarm">Enable CalDAV alarm support</flag> |
438 |
+ <flag name="jmap">Enable JMAP support</flag> |
439 |
+ <flag name="sphinx">Enable Sphinx search engine support</flag> |
440 |
+ <flag name="xapian">Enable Xapian search engine support</flag> |
441 |
+ <flag name="lmdb">Enable support for using <pkg>dev-db/lmdb</pkg></flag> |
442 |
</use> |
443 |
</pkgmetadata> |