1 |
commit: cf6d42974999587dd2b4f2259cc1d8b79f066779 |
2 |
Author: Eray Aslan <eras <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jun 22 05:22:13 2017 +0000 |
4 |
Commit: Eray Aslan <eras <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jun 22 05:22:41 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cf6d4297 |
7 |
|
8 |
net-mail/cyrus-imapd: bump to 3.0.2 |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.2 |
11 |
|
12 |
net-mail/cyrus-imapd/Manifest | 1 + |
13 |
net-mail/cyrus-imapd/cyrus-imapd-3.0.2.ebuild | 203 ++++++++++++++++++++++++++ |
14 |
2 files changed, 204 insertions(+) |
15 |
|
16 |
diff --git a/net-mail/cyrus-imapd/Manifest b/net-mail/cyrus-imapd/Manifest |
17 |
index f295506fb35..1e280f1d391 100644 |
18 |
--- a/net-mail/cyrus-imapd/Manifest |
19 |
+++ b/net-mail/cyrus-imapd/Manifest |
20 |
@@ -4,3 +4,4 @@ DIST cyrus-imapd-2.4.18.tar.gz 2495098 SHA256 166a0a1efbf01f71d9d8449569152b3cda |
21 |
DIST cyrus-imapd-2.5.10.tar.gz 3103914 SHA256 b38f4fd72825a298ac47426dcd2a50c8437c2947864ba50d79a9a53fe9845c5f SHA512 78b85e37c63f1dbb60898da229f70f45810326a01244067d23b1317e2c2ae3326e48b6944787d59024e44c48c441ed2b848d6a83c451c192a3bb95c8f37880fa WHIRLPOOL d2167900596c1b6f8e595de7aec499a7fbd6228537d7a27bec4fe0bda6a74b861303c4e9691ca829994972b099f29c362f9692f266df66d76c05a69629b52dfd |
22 |
DIST cyrus-imapd-2.5.11.tar.gz 3109188 SHA256 36a79117b320c78d62bc6842c3024d970d3bec7aa12908f862d92cf1d63397d5 SHA512 bbb0e11f31d91d85037306321165e3608f8d5e2699b971fc4fbdd1630ec0a1485c8f6f17900142dec584ab41b0ec0c65c11cfaf8c5bbf1054b194a8f5f361538 WHIRLPOOL e6aaedb642b634d9fc0c56f7ddd06e15130091bd21f4e089ae46168fb2976c7e1fa281f8c6fc0f3e171e70bbfeb5cec8f6cc613f62d5b769fb8b6af4dede6e67 |
23 |
DIST cyrus-imapd-3.0.1.tar.gz 10515460 SHA256 24a9886aa6bbe001484a54b29309ff99415c0f355b98325ebb29ad61fff5e257 SHA512 0a2bf13b4793e642f3df53231fd66774e0c5ad753b436a7fb0645db6ee70121d0da245038527cc58cb078255fec3e7b32a6230c196cceea040f74813ef78e337 WHIRLPOOL 830284e3d96b2d34d88350f8e65de2cac28c34c9d302dc7fe4247022c5d96251d72989714062408cfcf08828650a7b67aecfb1672165fed344b2e98c2dc06265 |
24 |
+DIST cyrus-imapd-3.0.2.tar.gz 10706654 SHA256 5612f3cfa0504eb50bc3e49a77bf04a31c1aff3096fa1bbddb26cd7dbb69d94d SHA512 95f145733a4b2589b2f7eb6281ce0d1df5788521dea0c81fda10c7c7ae4ac7cf1a9037dba45deee6101a73bbde4552906d7c6bfa9369aa3c802061a7f5cec85d WHIRLPOOL cf56390ea0d8ecd9fcfb9a2459a552ba7815474b52b089c54b1428b42691826f91b163cfe723c795b28289530911ed614e2252e038919c4d710d9a95658f8997 |
25 |
|
26 |
diff --git a/net-mail/cyrus-imapd/cyrus-imapd-3.0.2.ebuild b/net-mail/cyrus-imapd/cyrus-imapd-3.0.2.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..c5a0435e386 |
29 |
--- /dev/null |
30 |
+++ b/net-mail/cyrus-imapd/cyrus-imapd-3.0.2.ebuild |
31 |
@@ -0,0 +1,203 @@ |
32 |
+# Copyright 1999-2017 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=6 |
36 |
+inherit autotools pam ssl-cert user |
37 |
+ |
38 |
+MY_P=${P/_/} |
39 |
+ |
40 |
+DESCRIPTION="The Cyrus IMAP Server" |
41 |
+HOMEPAGE="http://www.cyrusimap.org/" |
42 |
+SRC_URI="ftp://ftp.cyrusimap.org/cyrus-imapd/${MY_P}.tar.gz" |
43 |
+ |
44 |
+LICENSE="BSD-with-attribution" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
47 |
+IUSE="afs backup calalarm caps clamav http jmap kerberos ldap lmdb \ |
48 |
+ mysql nntp pam perl postgres replication +server sieve snmp \ |
49 |
+ sphinx sqlite ssl static-libs tcpd test xapian" |
50 |
+ |
51 |
+# virtual/mysql-5.5 added for the --variable= option below |
52 |
+CDEPEND="sys-libs/zlib |
53 |
+ dev-libs/libpcre |
54 |
+ >=dev-libs/cyrus-sasl-2.1.13 |
55 |
+ dev-libs/jansson |
56 |
+ dev-libs/icu:= |
57 |
+ afs? ( net-fs/openafs ) |
58 |
+ caps? ( sys-libs/libcap ) |
59 |
+ clamav? ( app-antivirus/clamav ) |
60 |
+ http? ( dev-libs/libxml2 dev-libs/libical ) |
61 |
+ kerberos? ( virtual/krb5 ) |
62 |
+ ldap? ( net-nds/openldap ) |
63 |
+ lmdb? ( dev-db/lmdb ) |
64 |
+ mysql? ( >=virtual/mysql-5.5 ) |
65 |
+ nntp? ( !net-nntp/leafnode ) |
66 |
+ pam? ( |
67 |
+ virtual/pam |
68 |
+ >=net-mail/mailbase-1 |
69 |
+ ) |
70 |
+ perl? ( dev-lang/perl:= ) |
71 |
+ postgres? ( dev-db/postgresql:* ) |
72 |
+ snmp? ( >=net-analyzer/net-snmp-5.2.2-r1 ) |
73 |
+ ssl? ( >=dev-libs/openssl-1.0.1e:0[-bindist] ) |
74 |
+ sqlite? ( dev-db/sqlite:3 ) |
75 |
+ tcpd? ( >=sys-apps/tcp-wrappers-7.6 snmp? ( net-analyzer/net-snmp[tcpd=] ) ) |
76 |
+ xapian? ( >=dev-libs/xapian-1.4.0 )" |
77 |
+ |
78 |
+DEPEND="${CDEPEND} |
79 |
+ test? ( dev-util/cunit )" |
80 |
+ |
81 |
+# all blockers really needed? |
82 |
+RDEPEND="${CDEPEND} |
83 |
+ !mail-mta/courier |
84 |
+ !net-mail/bincimap |
85 |
+ !net-mail/courier-imap |
86 |
+ !net-mail/uw-imap |
87 |
+ !net-mail/cyrus-imap-admin" |
88 |
+ |
89 |
+REQUIRED_USE="afs? ( kerberos ) |
90 |
+ backup? ( sqlite ) |
91 |
+ calalarm? ( http ) |
92 |
+ http? ( sqlite ) |
93 |
+ jmap? ( http xapian ) |
94 |
+ sphinx? ( mysql )" |
95 |
+ |
96 |
+S=${WORKDIR}/${MY_P} |
97 |
+ |
98 |
+pkg_setup() { |
99 |
+ enewuser cyrus -1 -1 /usr/cyrus mail |
100 |
+} |
101 |
+ |
102 |
+src_prepare() { |
103 |
+ # bug 604470 |
104 |
+ eapply -p1 "${FILESDIR}/${PN}-sieve-libs-v3.patch" |
105 |
+ eapply -p1 "${FILESDIR}/${PN}-fix-tests.patch" |
106 |
+ # Fix master(8)->cyrusmaster(8) manpage. |
107 |
+ for i in `grep -rl -e 'master\.8' -e 'master(8)' "${S}"` ; do |
108 |
+ sed -i -e 's:master\.8:cyrusmaster.8:g' \ |
109 |
+ -e 's:master(8):cyrusmaster(8):g' \ |
110 |
+ "${i}" || die "sed failed" || die "sed failed" |
111 |
+ done |
112 |
+ mv man/master.8 man/cyrusmaster.8 || die "mv failed" |
113 |
+ sed -i -e "s:MASTER:CYRUSMASTER:g" \ |
114 |
+ -e "s:Master:Cyrusmaster:g" \ |
115 |
+ -e "s:master:cyrusmaster:g" \ |
116 |
+ man/cyrusmaster.8 || die "sed failed" |
117 |
+ |
118 |
+ # lock.h to afs/lock.h |
119 |
+ sed -i -e '/lock.h/s:lock.h:afs/lock.h:' \ |
120 |
+ ptclient/afskrb.c || die |
121 |
+ |
122 |
+ eapply_user |
123 |
+ eautoreconf |
124 |
+} |
125 |
+ |
126 |
+src_configure() { |
127 |
+ local myconf |
128 |
+ if use afs ; then |
129 |
+ myconf+=" --with-afs-libdir=/usr/$(get_libdir)" |
130 |
+ myconf+=" --with-afs-incdir=/usr/include/afs" |
131 |
+ fi |
132 |
+ econf \ |
133 |
+ --enable-unit-tests \ |
134 |
+ --enable-murder \ |
135 |
+ --enable-idled \ |
136 |
+ --enable-event-notification \ |
137 |
+ --enable-autocreate \ |
138 |
+ --enable-pcre \ |
139 |
+ --with-cyrus-user=cyrus \ |
140 |
+ --with-cyrus-group=mail \ |
141 |
+ --with-com_err=yes \ |
142 |
+ --with-sasl \ |
143 |
+ --without-krb \ |
144 |
+ --without-krbdes \ |
145 |
+ --enable-squat \ |
146 |
+ --with-zlib \ |
147 |
+ $(use_enable afs) \ |
148 |
+ $(use_enable afs krb5afspts) \ |
149 |
+ $(use_enable backup) \ |
150 |
+ $(use_enable calalarm calalarmd) \ |
151 |
+ $(use_with caps libcap) \ |
152 |
+ $(use_with clamav) \ |
153 |
+ $(use_enable jmap) \ |
154 |
+ $(use_enable nntp) \ |
155 |
+ $(use_enable http) \ |
156 |
+ $(use_enable replication) \ |
157 |
+ $(use_enable kerberos gssapi) \ |
158 |
+ $(use_with ldap) \ |
159 |
+ $(use_with lmdb) \ |
160 |
+ $(use_with mysql) \ |
161 |
+ $(use_with postgres pgsql) \ |
162 |
+ $(use_with perl) \ |
163 |
+ $(use_with sqlite) \ |
164 |
+ $(use_with ssl openssl) \ |
165 |
+ $(use_enable server) \ |
166 |
+ $(use_enable sieve) \ |
167 |
+ $(use_with snmp) \ |
168 |
+ $(use_enable sphinx) \ |
169 |
+ $(use_enable static-libs static) \ |
170 |
+ $(use_with tcpd libwrap) \ |
171 |
+ $(use_enable xapian) \ |
172 |
+ ${myconf} |
173 |
+} |
174 |
+ |
175 |
+src_install() { |
176 |
+ emake DESTDIR="${D}" INSTALLDIRS=vendor install |
177 |
+ |
178 |
+ dodoc README* |
179 |
+ dodoc -r doc |
180 |
+ cp -r contrib tools "${D}/usr/share/doc/${PF}" |
181 |
+ rm -f doc/text/Makefile* |
182 |
+ |
183 |
+ insinto /etc |
184 |
+ doins "${FILESDIR}/cyrus.conf" "${FILESDIR}/imapd.conf" |
185 |
+ |
186 |
+ # turn off sieve if not installed |
187 |
+ if ! use sieve; then |
188 |
+ sed -i -e "/sieve/s/^/#/" "${D}/etc/cyrus.conf" || die |
189 |
+ fi |
190 |
+ |
191 |
+ newinitd "${FILESDIR}/cyrus.rc6" cyrus |
192 |
+ newconfd "${FILESDIR}/cyrus.confd" cyrus |
193 |
+ newpamd "${FILESDIR}/cyrus.pam-include" sieve |
194 |
+ |
195 |
+ for subdir in imap/{,db,log,msg,proc,socket,sieve} spool/imap/{,stage.} ; do |
196 |
+ keepdir "/var/${subdir}" |
197 |
+ fowners cyrus:mail "/var/${subdir}" |
198 |
+ fperms 0750 "/var/${subdir}" |
199 |
+ done |
200 |
+ for subdir in imap/{user,quota,sieve} spool/imap ; do |
201 |
+ 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 |
202 |
+ keepdir "/var/${subdir}/${i}" |
203 |
+ fowners cyrus:mail "/var/${subdir}/${i}" |
204 |
+ fperms 0750 "/var/${subdir}/${i}" |
205 |
+ done |
206 |
+ done |
207 |
+} |
208 |
+ |
209 |
+pkg_preinst() { |
210 |
+ if ! has_version ${CATEGORY}/${PN} ; then |
211 |
+ elog "For correct logging add the following to /etc/syslog.conf:" |
212 |
+ elog " local6.* /var/log/imapd.log" |
213 |
+ elog " auth.debug /var/log/auth.log" |
214 |
+ echo |
215 |
+ |
216 |
+ elog "You have to add user cyrus to the sasldb2. Do this with:" |
217 |
+ elog " saslpasswd2 cyrus" |
218 |
+ fi |
219 |
+} |
220 |
+ |
221 |
+pkg_postinst() { |
222 |
+ # do not install server.{key,pem) if they exist |
223 |
+ if use ssl ; then |
224 |
+ if [ ! -f "${ROOT}"etc/ssl/cyrus/server.key ]; then |
225 |
+ install_cert /etc/ssl/cyrus/server |
226 |
+ chown cyrus:mail "${ROOT}"etc/ssl/cyrus/server.{key,pem} |
227 |
+ fi |
228 |
+ fi |
229 |
+ |
230 |
+ echo |
231 |
+ ewarn "Please see http://www.cyrusimap.org/imap/download/upgrade.html" |
232 |
+ ewarn "for upgrade instructions." |
233 |
+ echo |
234 |
+} |