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