1 |
commit: 9c2fc75147983cfb9a90ca9a5dd7b1a057650951 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Feb 23 02:45:58 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 23 02:45:58 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c2fc751 |
7 |
|
8 |
net-mail/cyrus-imapd: add 3.0.17 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
net-mail/cyrus-imapd/Manifest | 1 + |
13 |
net-mail/cyrus-imapd/cyrus-imapd-3.0.17.ebuild | 232 +++++++++++++++++++++++++ |
14 |
2 files changed, 233 insertions(+) |
15 |
|
16 |
diff --git a/net-mail/cyrus-imapd/Manifest b/net-mail/cyrus-imapd/Manifest |
17 |
index 983e8859fdcf..cb3a88782ed5 100644 |
18 |
--- a/net-mail/cyrus-imapd/Manifest |
19 |
+++ b/net-mail/cyrus-imapd/Manifest |
20 |
@@ -2,4 +2,5 @@ DIST cyrus-imapd-3.0.13.tar.gz 10840005 BLAKE2B f4790837a198673b42d553bc7cbc8254 |
21 |
DIST cyrus-imapd-3.0.14.tar.gz 10865880 BLAKE2B 36f3e60d715d2eab430040964e93cb332cfc4d9097f0f863b94325eb4eb964a4030d1d0f8ddb7870a08b655e1694bbc751d5aab99af6670ab33ad6747f55f6bd SHA512 0bade56f4f7834ef51efc4081f2915bf0f98a2a555cd1b847f13a34418e4c52f2abcb4018906c144c161241433a8ff9ddc6d88499804d3fe616a05f186a3f209 |
22 |
DIST cyrus-imapd-3.0.15.tar.gz 10843341 BLAKE2B efe65c7afc7d63770adef9e4ea13b87e3b7fdd1847e4ada028175999b31ebb84f9d84b014018bd2be3fee9af1b5e81dd08f63225bc62dc5a4fd4a0791da16594 SHA512 2f65209095f086092fec0bfc9547c999a6e568cccc0a4164e7a3751fe2881f47bbbbd67ba9c9169feafead8c40d42f594d34171d911e4028425cfd8ba72d8f4a |
23 |
DIST cyrus-imapd-3.0.16.tar.gz 10875516 BLAKE2B 10915418b4de3f460a20d3808274f9ea83bdadc9a9edf2b383081605f7510a3e1563fa009e1dcc203f1c008f26e9db3ffd80f101f546de1dc8c3e714efc13596 SHA512 c17dd940102989d1e329ad8a1c08655bdd8b349ecb08e661f55ab8e602516ece1a86e52313e8cd5677048470f15f4272fcb598e4bbc61d27e5a673c01cb81ca3 |
24 |
+DIST cyrus-imapd-3.0.17.tar.gz 11445224 BLAKE2B bf2cd85f878c1b4198be5ce96cf6a4ae1e4fcc765b0c7fe60a6bfd04dd066c0420f86508cbfc1030831b57c2732715440cbf0e327f5147b074fe12926dcda85f SHA512 75519bf8a2ae4a8ff844338bee641d519eaf3419fb81b819dc7a42e5956ef57569e47a0e094ccb9726a9c43f0469cd3def6c62783565b2a2aaa863bda354a7da |
25 |
DIST cyrus-imapd-3.4.2.tar.gz 12603768 BLAKE2B 515c36fc3d6a29991283d47a3e523d87a68c3191b4aae85074f40b2416fe3a89793f1991dc5729912a3d56247f6fbf4aed52abcadbc37ca7cc9bf857a8641871 SHA512 4d7d14e222bc1e97b2d8188804139c4c477de66cb621caba475b57533739ee59d88504d4f47735bb6a6b3c9097dbec382ecfa2c678f978791b9a6956a3cd91d6 |
26 |
|
27 |
diff --git a/net-mail/cyrus-imapd/cyrus-imapd-3.0.17.ebuild b/net-mail/cyrus-imapd/cyrus-imapd-3.0.17.ebuild |
28 |
new file mode 100644 |
29 |
index 000000000000..fb391be37dcf |
30 |
--- /dev/null |
31 |
+++ b/net-mail/cyrus-imapd/cyrus-imapd-3.0.17.ebuild |
32 |
@@ -0,0 +1,232 @@ |
33 |
+# Copyright 1999-2022 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=8 |
37 |
+ |
38 |
+inherit autotools flag-o-matic pam ssl-cert |
39 |
+ |
40 |
+DESCRIPTION="The Cyrus IMAP Server" |
41 |
+HOMEPAGE="https://www.cyrusimap.org/" |
42 |
+SRC_URI="https://github.com/cyrusimap/${PN}/releases/download/${P}/${P}.tar.gz" |
43 |
+ |
44 |
+LICENSE="BSD-with-attribution GPL-2" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
47 |
+IUSE="afs backup calalarm caps clamav http kerberos ldap lmdb \ |
48 |
+ mysql nntp pam perl postgres replication +server sieve snmp \ |
49 |
+ sqlite ssl static-libs tcpd test xapian" |
50 |
+RESTRICT="!test? ( test )" |
51 |
+ |
52 |
+CDEPEND=" |
53 |
+ sys-libs/zlib:= |
54 |
+ dev-libs/libpcre:3 |
55 |
+ >=dev-libs/cyrus-sasl-2.1.13:2 |
56 |
+ dev-libs/jansson:= |
57 |
+ dev-libs/icu:= |
58 |
+ sys-fs/e2fsprogs |
59 |
+ afs? ( net-fs/openafs ) |
60 |
+ calalarm? ( dev-libs/libical:= ) |
61 |
+ caps? ( sys-libs/libcap ) |
62 |
+ clamav? ( app-antivirus/clamav ) |
63 |
+ http? ( |
64 |
+ dev-libs/libxml2:2 |
65 |
+ dev-libs/libical:= |
66 |
+ net-libs/nghttp2 |
67 |
+ ) |
68 |
+ kerberos? ( virtual/krb5 ) |
69 |
+ ldap? ( net-nds/openldap ) |
70 |
+ lmdb? ( dev-db/lmdb:= ) |
71 |
+ mysql? ( dev-db/mysql-connector-c:= ) |
72 |
+ nntp? ( !net-nntp/leafnode ) |
73 |
+ pam? ( |
74 |
+ sys-libs/pam |
75 |
+ >=net-mail/mailbase-1 |
76 |
+ ) |
77 |
+ perl? ( dev-lang/perl:= ) |
78 |
+ postgres? ( dev-db/postgresql:* ) |
79 |
+ snmp? ( >=net-analyzer/net-snmp-5.2.2-r1:= ) |
80 |
+ ssl? ( >=dev-libs/openssl-1.0.1e:=[-bindist(-)] ) |
81 |
+ sqlite? ( dev-db/sqlite:3 ) |
82 |
+ tcpd? ( |
83 |
+ >=sys-apps/tcp-wrappers-7.6 |
84 |
+ snmp? ( net-analyzer/net-snmp:=[tcpd=] ) |
85 |
+ ) |
86 |
+ xapian? ( >=dev-libs/xapian-1.4.0:= ) |
87 |
+" |
88 |
+DEPEND="${CDEPEND} |
89 |
+ test? ( dev-util/cunit ) |
90 |
+" |
91 |
+# all blockers really needed? |
92 |
+# file collision with app-arch/dump - bug #619584 |
93 |
+RDEPEND="${CDEPEND} |
94 |
+ acct-group/mail |
95 |
+ acct-user/cyrus |
96 |
+ !mail-mta/courier |
97 |
+ !net-mail/bincimap |
98 |
+ !net-mail/courier-imap |
99 |
+ !net-mail/uw-imap |
100 |
+ !app-arch/dump |
101 |
+" |
102 |
+ |
103 |
+REQUIRED_USE="afs? ( kerberos ) |
104 |
+ backup? ( sqlite ) |
105 |
+ calalarm? ( http ) |
106 |
+ http? ( sqlite )" |
107 |
+ |
108 |
+# https://bugs.gentoo.org/678754 |
109 |
+# TODO: check underlinking for other libraries |
110 |
+PATCHES=( |
111 |
+ "${FILESDIR}/cyrus-imapd-libcap-libs-r1.patch" |
112 |
+) |
113 |
+ |
114 |
+src_prepare() { |
115 |
+ default |
116 |
+ |
117 |
+ # Fix master(8)->cyrusmaster(8) manpage. |
118 |
+ for i in `grep -rl -e 'master\.8' -e 'master(8)' "${S}"` ; do |
119 |
+ sed -i -e 's:master\.8:cyrusmaster.8:g' \ |
120 |
+ -e 's:master(8):cyrusmaster(8):g' \ |
121 |
+ "${i}" || die "sed failed" || die "sed failed" |
122 |
+ done |
123 |
+ mv man/master.8 man/cyrusmaster.8 || die "mv failed" |
124 |
+ sed -i -e "s:MASTER:CYRUSMASTER:g" \ |
125 |
+ -e "s:Master:Cyrusmaster:g" \ |
126 |
+ -e "s:master:cyrusmaster:g" \ |
127 |
+ man/cyrusmaster.8 || die "sed failed" |
128 |
+ |
129 |
+ # lock.h to afs/lock.h |
130 |
+ sed -i -e '/lock.h/s:lock.h:afs/lock.h:' \ |
131 |
+ ptclient/afskrb.c || die |
132 |
+ |
133 |
+ eautoreconf |
134 |
+} |
135 |
+ |
136 |
+src_configure() { |
137 |
+ local myconf |
138 |
+ |
139 |
+ # https://bugs.gentoo.org/604466 |
140 |
+ append-ldflags $(no-as-needed) |
141 |
+ |
142 |
+ if use afs ; then |
143 |
+ myconf+=" --with-afs-libdir=/usr/$(get_libdir)" |
144 |
+ myconf+=" --with-afs-incdir=/usr/include/afs" |
145 |
+ fi |
146 |
+ |
147 |
+ # sphinx is unmaintained and dead, bug #662944 |
148 |
+ econf \ |
149 |
+ --enable-unit-tests \ |
150 |
+ --enable-murder \ |
151 |
+ --enable-idled \ |
152 |
+ --enable-event-notification \ |
153 |
+ --enable-autocreate \ |
154 |
+ --enable-pcre \ |
155 |
+ --with-com_err \ |
156 |
+ --with-cyrus-user=cyrus \ |
157 |
+ --with-sasl \ |
158 |
+ --without-krb \ |
159 |
+ --without-krbdes \ |
160 |
+ --disable-sphinx \ |
161 |
+ --enable-squat \ |
162 |
+ --with-zlib \ |
163 |
+ $(use_enable afs) \ |
164 |
+ $(use_enable afs krb5afspts) \ |
165 |
+ $(use_enable backup) \ |
166 |
+ $(use_enable calalarm calalarmd) \ |
167 |
+ $(use_with caps libcap) \ |
168 |
+ $(use_with clamav) \ |
169 |
+ $(use_enable nntp) \ |
170 |
+ $(use_enable http) \ |
171 |
+ $(use_with http nghttp2) \ |
172 |
+ $(use_enable replication) \ |
173 |
+ $(use_enable kerberos gssapi) \ |
174 |
+ $(use_with ldap) \ |
175 |
+ $(use_with lmdb) \ |
176 |
+ $(use_with mysql) \ |
177 |
+ $(use_with postgres pgsql) \ |
178 |
+ $(use_with perl) \ |
179 |
+ $(use_with sqlite) \ |
180 |
+ $(use_with ssl openssl) \ |
181 |
+ $(use_enable server) \ |
182 |
+ $(use_enable sieve) \ |
183 |
+ $(use_with snmp) \ |
184 |
+ $(use_enable static-libs static) \ |
185 |
+ $(use_with tcpd libwrap) \ |
186 |
+ $(use_enable xapian) \ |
187 |
+ ${myconf} |
188 |
+} |
189 |
+ |
190 |
+src_install() { |
191 |
+ emake DESTDIR="${D}" INSTALLDIRS=vendor install |
192 |
+ |
193 |
+ dodoc README* |
194 |
+ dodoc -r doc |
195 |
+ cp -r contrib tools "${D}"/usr/share/doc/${PF} |
196 |
+ rm -f doc/text/Makefile* |
197 |
+ |
198 |
+ mv "${D}"/usr/libexec/{master,cyrusmaster} || die |
199 |
+ |
200 |
+ insinto /etc |
201 |
+ newins "${ED}"/usr/share/doc/${PF}/doc/examples/cyrus_conf/normal.conf cyrus.conf |
202 |
+ newins "${ED}"/usr/share/doc/${PF}/doc/examples/imapd_conf/normal.conf imapd.conf |
203 |
+ |
204 |
+ sed -i -e '/^configdirectory/s|/var/.*|/var/imap|' \ |
205 |
+ -e '/^partition-default/s|/var/.*|/var/spool/imap|' \ |
206 |
+ -e '/^sievedir/s|/var/.*|/var/imap/sieve|' \ |
207 |
+ "${ED}"/etc/imapd.conf || die |
208 |
+ |
209 |
+ sed -i -e 's|/var/imap/socket/lmtp|/run/cyrus/socket/lmtp|' \ |
210 |
+ -e 's|/var/imap/socket/notify|/run/cyrus/socket/notify|' \ |
211 |
+ "${ED}"/etc/cyrus.conf || die |
212 |
+ |
213 |
+ # turn off sieve if not installed |
214 |
+ if ! use sieve; then |
215 |
+ sed -i -e "/sieve/s/^/#/" "${ED}"/etc/cyrus.conf || die |
216 |
+ fi |
217 |
+ # same thing for http(s) as well |
218 |
+ if ! use http; then |
219 |
+ sed -i -e "/http/s/^/#/" "${ED}"/etc/cyrus.conf || die |
220 |
+ fi |
221 |
+ |
222 |
+ newinitd "${FILESDIR}"/cyrus.rc8 cyrus |
223 |
+ newconfd "${FILESDIR}"/cyrus.confd cyrus |
224 |
+ newpamd "${FILESDIR}"/cyrus.pam-include sieve |
225 |
+ |
226 |
+ for subdir in imap/{,db,log,msg,proc,socket,sieve} spool/imap/{,stage.} ; do |
227 |
+ keepdir "/var/${subdir}" |
228 |
+ fowners cyrus:mail "/var/${subdir}" |
229 |
+ fperms 0750 "/var/${subdir}" |
230 |
+ done |
231 |
+ |
232 |
+ for subdir in imap/{user,quota,sieve} spool/imap ; do |
233 |
+ 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 |
234 |
+ keepdir "/var/${subdir}/${i}" |
235 |
+ fowners cyrus:mail "/var/${subdir}/${i}" |
236 |
+ fperms 0750 "/var/${subdir}/${i}" |
237 |
+ done |
238 |
+ done |
239 |
+} |
240 |
+ |
241 |
+pkg_preinst() { |
242 |
+ if ! has_version ${CATEGORY}/${PN} ; then |
243 |
+ elog "For correct logging add the following to /etc/syslog.conf:" |
244 |
+ elog " local6.* /var/log/imapd.log" |
245 |
+ elog " auth.debug /var/log/auth.log" |
246 |
+ echo |
247 |
+ |
248 |
+ elog "You have to add user cyrus to the sasldb2. Do this with:" |
249 |
+ elog " saslpasswd2 cyrus" |
250 |
+ fi |
251 |
+} |
252 |
+ |
253 |
+pkg_postinst() { |
254 |
+ # do not install server.{key,pem) if they exist |
255 |
+ if use ssl ; then |
256 |
+ if [ ! -f "${ROOT}"/etc/ssl/cyrus/server.key ]; then |
257 |
+ install_cert /etc/ssl/cyrus/server |
258 |
+ chown cyrus:mail "${ROOT}"/etc/ssl/cyrus/server.{key,pem} |
259 |
+ fi |
260 |
+ fi |
261 |
+ |
262 |
+ einfo "Please see https://www.cyrusimap.org/imap/download/upgrade.html" |
263 |
+ einfo "for upgrade instructions." |
264 |
+} |