Gentoo Archives: gentoo-commits

From: Eray Aslan <eras@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-mail/cyrus-imapd/
Date: Tue, 09 May 2017 08:23:48
Message-Id: 1494318203.7757a23a9f4c09c4e56200be6452374aa2555d4e.eras@gentoo
1 commit: 7757a23a9f4c09c4e56200be6452374aa2555d4e
2 Author: Eray Aslan <eras <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 9 08:23:23 2017 +0000
4 Commit: Eray Aslan <eras <AT> gentoo <DOT> org>
5 CommitDate: Tue May 9 08:23:23 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7757a23a
7
8 net-mail/cyrus-imapd: bump to 2.5.11
9
10 Package-Manager: Portage-2.3.5, Repoman-2.3.2
11
12 net-mail/cyrus-imapd/Manifest | 1 +
13 net-mail/cyrus-imapd/cyrus-imapd-2.5.11.ebuild | 178 +++++++++++++++++++++++++
14 2 files changed, 179 insertions(+)
15
16 diff --git a/net-mail/cyrus-imapd/Manifest b/net-mail/cyrus-imapd/Manifest
17 index 680d3857037..3f392aa24cf 100644
18 --- a/net-mail/cyrus-imapd/Manifest
19 +++ b/net-mail/cyrus-imapd/Manifest
20 @@ -2,6 +2,7 @@ DIST cyrus-imapd-2.4.16.tar.gz 2484201 SHA256 beac9d6059680bbf65948db60a30c6e8f5
21 DIST cyrus-imapd-2.4.17.tar.gz 2486355 SHA256 b3e30052c764ee7163947ffde27bdd58bd4dd2e5697ad144491941e46300a583 SHA512 86ffe1664ca3c3df164ed8fca21cc08ddae12380e1485deccec7da4ec263d8b953a806e05f0b10f6fb7717a0d40fc05669792b77cc66d7c5067061c8506e59ee WHIRLPOOL 22566578217a5901793b886ff020aa1deecbb81bf85f54a524b58de129029e51b0aa358db902a2139584d05f668404cb98ca2ff3fa33803ce986e07b95c69c45
22 DIST cyrus-imapd-2.4.18.tar.gz 2495098 SHA256 166a0a1efbf01f71d9d8449569152b3cda4949cd689f299a5e77a38d7026012c SHA512 3b234c1773fe5d57cae35743985930bc7fed2eedaa0919598da8fb19588f95b3beb8ad166d3b4f0c96faf006ff56ed5027ec516fab6007edbe46c4f45572a1ef WHIRLPOOL 1a243a9b3875105dfc414e1092f328691b6bef7c0d04f8bd91824ca0d01c715ebc2449c37bbca2ab86193e4d2dc426b33cfd31a0cdfdea0bacc081fd9010b1df
23 DIST cyrus-imapd-2.5.10.tar.gz 3103914 SHA256 b38f4fd72825a298ac47426dcd2a50c8437c2947864ba50d79a9a53fe9845c5f SHA512 78b85e37c63f1dbb60898da229f70f45810326a01244067d23b1317e2c2ae3326e48b6944787d59024e44c48c441ed2b848d6a83c451c192a3bb95c8f37880fa WHIRLPOOL d2167900596c1b6f8e595de7aec499a7fbd6228537d7a27bec4fe0bda6a74b861303c4e9691ca829994972b099f29c362f9692f266df66d76c05a69629b52dfd
24 +DIST cyrus-imapd-2.5.11.tar.gz 3109188 SHA256 36a79117b320c78d62bc6842c3024d970d3bec7aa12908f862d92cf1d63397d5 SHA512 bbb0e11f31d91d85037306321165e3608f8d5e2699b971fc4fbdd1630ec0a1485c8f6f17900142dec584ab41b0ec0c65c11cfaf8c5bbf1054b194a8f5f361538 WHIRLPOOL e6aaedb642b634d9fc0c56f7ddd06e15130091bd21f4e089ae46168fb2976c7e1fa281f8c6fc0f3e171e70bbfeb5cec8f6cc613f62d5b769fb8b6af4dede6e67
25 DIST cyrus-imapd-2.5.7.tar.gz 2928358 SHA256 f06c2c030b16b70145fecdf7edaa0f2ef6bf690b0d8fd6e2c62d95af303d68da SHA512 7514779cb3e36fb76bddfd12c7ec8d986609af671f8a1f0f3ae5007f5a7aa80c3c440bfbc8e7766d4de178dd5aa704076401b35cb5f03a2e25d2ea97ccbc7642 WHIRLPOOL 4db36b3fb27751d15cb74e63272c0adaa8348a90d7e9c4cb9c027837477e22347fce912b3e73c669a30a6b0c9de879644f146f7261eacd90fd237218051e1777
26 DIST cyrus-imapd-2.5.8.tar.gz 3069068 SHA256 664dd0a4eccfbf810ec74ccac1766c64e7db87f028f9066ae135390ab0d5c888 SHA512 e9c94696b980c7b10c52ee2c46f2dbdadc633a63ad943ebd5002c2052b13a64d8917e4e0ac4e4ae44a1f553e1fda02010840c9053c936374c06c7e88e09302ef WHIRLPOOL e8dcf43e694a8f91ab610d831ecddd516ebf1773b7543b15ba1b0e32fae7388681a9e0698951862efebb01e4894e6f40b29eae665dd36f16bf26d31583fe9822
27 DIST cyrus-imapd-2.5.9.tar.gz 3097555 SHA256 8e1bb6cc373bf318b5895b299c8344eaecbfb83db4566182f5d57f2707bce23d SHA512 aad575b7bf8afb4664bb321c2e9ae2be8d9ec6998341a7ca5582db7d27b2b727376693d5e1ac776c26cbd8dc12d8e299f981a33fc0aab8d802832cbf927e454f WHIRLPOOL 1fb97a70dec59f69b60d72282939d4ff85b820e988b0770c46e2b8d9878dae2c541bd5523042c9a1e9c783e32b7d45fa6c9f668fd2bc5ea2e611ef0d5331563b
28
29 diff --git a/net-mail/cyrus-imapd/cyrus-imapd-2.5.11.ebuild b/net-mail/cyrus-imapd/cyrus-imapd-2.5.11.ebuild
30 new file mode 100644
31 index 00000000000..5ed4f130966
32 --- /dev/null
33 +++ b/net-mail/cyrus-imapd/cyrus-imapd-2.5.11.ebuild
34 @@ -0,0 +1,178 @@
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 multilib pam ssl-cert user toolchain-funcs
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 berkdb clamav http kerberos mysql nntp pam perl postgres \
51 + replication +server sieve snmp sqlite ssl static-libs tcpd"
52 +
53 +# virtual/mysql-5.5 added for the --variable= option below
54 +DEPEND="sys-libs/zlib
55 + dev-libs/libpcre
56 + >=dev-libs/cyrus-sasl-2.1.13
57 + dev-libs/jansson
58 + afs? ( net-fs/openafs )
59 + berkdb? ( >=sys-libs/db-3.2:* )
60 + clamav? ( app-antivirus/clamav )
61 + http? ( dev-libs/libxml2 dev-libs/libical )
62 + kerberos? ( virtual/krb5 )
63 + mysql? ( >=virtual/mysql-5.5 )
64 + nntp? ( !net-nntp/leafnode )
65 + pam? (
66 + virtual/pam
67 + >=net-mail/mailbase-1
68 + )
69 + perl? ( dev-lang/perl:= )
70 + postgres? ( dev-db/postgresql:* )
71 + snmp? ( >=net-analyzer/net-snmp-5.2.2-r1 )
72 + sqlite? ( dev-db/sqlite:3 )
73 + ssl? ( >=dev-libs/openssl-1.0.1e:0[-bindist] )
74 + tcpd? ( >=sys-apps/tcp-wrappers-7.6 snmp? ( net-analyzer/net-snmp[tcpd=] ) )"
75 +
76 +# all blockers really needed?
77 +RDEPEND="${DEPEND}
78 + !mail-mta/courier
79 + !net-mail/bincimap
80 + !net-mail/courier-imap
81 + !net-mail/uw-imap
82 + !net-mail/cyrus-imap-admin"
83 +
84 +REQUIRED_USE="afs? ( kerberos )
85 + http? ( sqlite )"
86 +
87 +S=${WORKDIR}/${MY_P}
88 +
89 +pkg_setup() {
90 + enewuser cyrus -1 -1 /usr/cyrus mail
91 +}
92 +
93 +src_prepare() {
94 + eapply -p0 "${FILESDIR}/${PN}-db.patch"
95 + # Fix master(8)->cyrusmaster(8) manpage.
96 + for i in `grep -rl -e 'master\.8' -e 'master(8)' "${S}"` ; do
97 + sed -i -e 's:master\.8:cyrusmaster.8:g' \
98 + -e 's:master(8):cyrusmaster(8):g' \
99 + "${i}" || die "sed failed" || die "sed failed"
100 + done
101 + mv man/master.8 man/cyrusmaster.8 || die "mv failed"
102 + sed -i -e "s:MASTER:CYRUSMASTER:g" \
103 + -e "s:Master:Cyrusmaster:g" \
104 + -e "s:master:cyrusmaster:g" \
105 + man/cyrusmaster.8 || die "sed failed"
106 +
107 + # lock.h to afs/lock.h
108 + sed -i -e '/lock.h/s:lock.h:afs/lock.h:' \
109 + ptclient/afskrb.c || die
110 +
111 + eapply_user
112 + eautoreconf
113 +}
114 +
115 +src_configure() {
116 + local myconf
117 + if use afs ; then
118 + myconf+=" --with-afs-libdir=/usr/$(get_libdir)"
119 + myconf+=" --with-afs-incdir=/usr/include/afs"
120 + fi
121 + econf \
122 + --enable-murder \
123 + --enable-netscapehack \
124 + --enable-idled \
125 + --enable-event-notification \
126 + --enable-autocreate \
127 + --enable-pcre \
128 + --with-service-path=/usr/$(get_libdir)/cyrus \
129 + --with-cyrus-user=cyrus \
130 + --with-cyrus-group=mail \
131 + --with-com_err=yes \
132 + --with-sasl \
133 + --without-krb \
134 + --without-krbdes \
135 + --with-zlib \
136 + $(use_enable afs) \
137 + $(use_enable afs krb5afspts) \
138 + $(use_with berkdb bdb) \
139 + $(use_with clamav) \
140 + $(use_enable nntp) \
141 + $(use_enable http) \
142 + $(use_enable replication) \
143 + $(use_enable kerberos gssapi) \
144 + $(use_with mysql) \
145 + $(use_with postgres pgsql) \
146 + $(use_with perl) \
147 + $(use_with sqlite) \
148 + $(use_with ssl openssl) \
149 + $(use_enable server) \
150 + $(use_enable sieve) \
151 + $(use_with snmp) \
152 + $(use_enable static-libs static) \
153 + $(use_with tcpd libwrap) \
154 + ${myconf}
155 +}
156 +
157 +src_install() {
158 + emake DESTDIR="${D}" INSTALLDIRS=vendor install
159 +
160 + dodoc README*
161 + dodoc -r doc
162 + cp doc/cyrusv2.mc "${D}/usr/share/doc/${PF}/html"
163 + cp -r contrib tools "${D}/usr/share/doc/${PF}"
164 + rm -f doc/text/Makefile*
165 +
166 + insinto /etc
167 + doins "${FILESDIR}/cyrus.conf" "${FILESDIR}/imapd.conf"
168 +
169 + # turn off sieve if not installed
170 + if ! use sieve; then
171 + sed -i -e "/sieve/s/^/#/" "${D}/etc/cyrus.conf" || die
172 + fi
173 +
174 + newinitd "${FILESDIR}/cyrus.rc6" cyrus
175 + newconfd "${FILESDIR}/cyrus.confd" cyrus
176 + newpamd "${FILESDIR}/cyrus.pam-include" sieve
177 +
178 + for subdir in imap/{,db,log,msg,proc,socket,sieve} spool/imap/{,stage.} ; do
179 + keepdir "/var/${subdir}"
180 + fowners cyrus:mail "/var/${subdir}"
181 + fperms 0750 "/var/${subdir}"
182 + done
183 + for subdir in imap/{user,quota,sieve} spool/imap ; do
184 + 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
185 + keepdir "/var/${subdir}/${i}"
186 + fowners cyrus:mail "/var/${subdir}/${i}"
187 + fperms 0750 "/var/${subdir}/${i}"
188 + done
189 + done
190 +}
191 +
192 +pkg_preinst() {
193 + if ! has_version ${CATEGORY}/${PN} ; then
194 + elog "For correct logging add the following to /etc/syslog.conf:"
195 + elog " local6.* /var/log/imapd.log"
196 + elog " auth.debug /var/log/auth.log"
197 + echo
198 +
199 + elog "You have to add user cyrus to the sasldb2. Do this with:"
200 + elog " saslpasswd2 cyrus"
201 + fi
202 +}
203 +
204 +pkg_postinst() {
205 + # do not install server.{key,pem) if they exist.
206 + if use ssl ; then
207 + if [ ! -f "${ROOT}"etc/ssl/cyrus/server.key ]; then
208 + install_cert /etc/ssl/cyrus/server
209 + chown cyrus:mail "${ROOT}"etc/ssl/cyrus/server.{key,pem}
210 + fi
211 + fi
212 +}