1 |
commit: b985dc9dce4501a6e0d1649a78f01d64f5d60575 |
2 |
Author: Eray Aslan <eras <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 1 16:06:56 2015 +0000 |
4 |
Commit: Eray Aslan <eras <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 1 16:06:56 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b985dc9d |
7 |
|
8 |
net-mail/cyrus-imapd: version bump to 2.5.7 |
9 |
|
10 |
Package-Manager: portage-2.2.26 |
11 |
|
12 |
net-mail/cyrus-imapd/Manifest | 1 + |
13 |
net-mail/cyrus-imapd/cyrus-imapd-2.5.7.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 0d3ac70..4cf7009 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.4.tar.gz 3070894 SHA256 98839d2865c0ff5c5dc0f59aba54ad111135697c3383919e037651d90f00aaaa SHA512 0bc78bf63560cc0d89f0ef4a5f6a160300cbb1090394d6bc62f51a0d73ea3615a1ecbf95cb6dab9d10c99afd3a95079a6df86a8157042e13bf907bb4eca94423 WHIRLPOOL 02ee9a685e6825473e9643e70ad4e22e22a9b6e263ec81692ff0d9e68c3b1b07b5ed1cdb1bbf4119242429779fe0435d9ae00651fbaec465308ac8bdf96650eb |
22 |
DIST cyrus-imapd-2.5.5.tar.gz 2940177 SHA256 6cfd45856c869921fa8f89da9be9d5c640757011a678f964252e95a753182eee SHA512 86a0af8f84172104e1836372e4a0c0503b89dfd391a83e29d18f315162abadf00ddc939c5fcb1ee01a244addaba5a2d90b4c3065313b557edbd977ab8c0b3ce5 WHIRLPOOL 34e887140a0923ce4de9d6142c1ec1ae7c1831746d6c92570876448cfef84368fffbe41c11955912ba4d1e89eaf4255f85a60a26f76f2be7867f8713ca52fa9a |
23 |
DIST cyrus-imapd-2.5.6.tar.gz 2938962 SHA256 60f9be717c17497e7d69f468a8da3daf926c49edeac958bc769b4547f10103df SHA512 7f5c758559cfe85217d1ba423004815c9af146e2dffc0b7596713690e00e79c5af971afe086584255163bc2ccc9abf1428899495df4c7584e7fa46b96bab2be8 WHIRLPOOL 5cd152304e029a303cb99a095274288f7093e05b525b9fa4ac55a435910d86d569d803bb00d538c6ebcdb6665bd940ccf30870fb34dfff411fb22ab0547f53c8 |
24 |
+DIST cyrus-imapd-2.5.7.tar.gz 2928358 SHA256 f06c2c030b16b70145fecdf7edaa0f2ef6bf690b0d8fd6e2c62d95af303d68da SHA512 7514779cb3e36fb76bddfd12c7ec8d986609af671f8a1f0f3ae5007f5a7aa80c3c440bfbc8e7766d4de178dd5aa704076401b35cb5f03a2e25d2ea97ccbc7642 WHIRLPOOL 4db36b3fb27751d15cb74e63272c0adaa8348a90d7e9c4cb9c027837477e22347fce912b3e73c669a30a6b0c9de879644f146f7261eacd90fd237218051e1777 |
25 |
|
26 |
diff --git a/net-mail/cyrus-imapd/cyrus-imapd-2.5.7.ebuild b/net-mail/cyrus-imapd/cyrus-imapd-2.5.7.ebuild |
27 |
new file mode 100644 |
28 |
index 0000000..dbdc249 |
29 |
--- /dev/null |
30 |
+++ b/net-mail/cyrus-imapd/cyrus-imapd-2.5.7.ebuild |
31 |
@@ -0,0 +1,178 @@ |
32 |
+# Copyright 1999-2015 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+# $Id$ |
35 |
+ |
36 |
+EAPI=5 |
37 |
+inherit autotools eutils multilib pam ssl-cert user toolchain-funcs |
38 |
+ |
39 |
+MY_P=${P/_/} |
40 |
+ |
41 |
+DESCRIPTION="The Cyrus IMAP Server" |
42 |
+HOMEPAGE="http://www.cyrusimap.org/" |
43 |
+SRC_URI="ftp://ftp.cyrusimap.org/cyrus-imapd/${MY_P}.tar.gz" |
44 |
+ |
45 |
+LICENSE="BSD-with-attribution" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
48 |
+IUSE="afs berkdb clamav http kerberos mysql nntp pam perl postgres \ |
49 |
+ replication +server sieve snmp sqlite ssl static-libs tcpd" |
50 |
+ |
51 |
+# virtual/mysql-5.5 added for the --variable= option below |
52 |
+DEPEND="sys-libs/zlib |
53 |
+ dev-libs/libpcre |
54 |
+ >=dev-libs/cyrus-sasl-2.1.13 |
55 |
+ dev-libs/jansson |
56 |
+ afs? ( net-fs/openafs ) |
57 |
+ berkdb? ( >=sys-libs/db-3.2:* ) |
58 |
+ clamav? ( app-antivirus/clamav ) |
59 |
+ http? ( dev-libs/libxml2 dev-libs/libical ) |
60 |
+ kerberos? ( virtual/krb5 ) |
61 |
+ mysql? ( >=virtual/mysql-5.5 ) |
62 |
+ nntp? ( !net-nntp/leafnode ) |
63 |
+ pam? ( |
64 |
+ virtual/pam |
65 |
+ >=net-mail/mailbase-1 |
66 |
+ ) |
67 |
+ postgres? ( dev-db/postgresql:* ) |
68 |
+ snmp? ( >=net-analyzer/net-snmp-5.2.2-r1 ) |
69 |
+ sqlite? ( dev-db/sqlite:3 ) |
70 |
+ ssl? ( >=dev-libs/openssl-1.0.1e:0[-bindist] ) |
71 |
+ tcpd? ( >=sys-apps/tcp-wrappers-7.6 snmp? ( net-analyzer/net-snmp[tcpd=] ) )" |
72 |
+ |
73 |
+# all blockers really needed? |
74 |
+RDEPEND="${DEPEND} |
75 |
+ !mail-mta/courier |
76 |
+ !net-mail/bincimap |
77 |
+ !net-mail/courier-imap |
78 |
+ !net-mail/uw-imap |
79 |
+ !net-mail/cyrus-imap-admin" |
80 |
+ |
81 |
+REQUIRED_USE="afs? ( kerberos )" |
82 |
+ |
83 |
+S=${WORKDIR}/${MY_P} |
84 |
+ |
85 |
+pkg_setup() { |
86 |
+ enewuser cyrus -1 -1 /usr/cyrus mail |
87 |
+} |
88 |
+ |
89 |
+src_prepare() { |
90 |
+ epatch "${FILESDIR}/${PN}-db.patch" |
91 |
+ # Fix master(8)->cyrusmaster(8) manpage. |
92 |
+ for i in `grep -rl -e 'master\.8' -e 'master(8)' "${S}"` ; do |
93 |
+ sed -i -e 's:master\.8:cyrusmaster.8:g' \ |
94 |
+ -e 's:master(8):cyrusmaster(8):g' \ |
95 |
+ "${i}" || die "sed failed" || die "sed failed" |
96 |
+ done |
97 |
+ mv man/master.8 man/cyrusmaster.8 || die "mv failed" |
98 |
+ sed -i -e "s:MASTER:CYRUSMASTER:g" \ |
99 |
+ -e "s:Master:Cyrusmaster:g" \ |
100 |
+ -e "s:master:cyrusmaster:g" \ |
101 |
+ man/cyrusmaster.8 || die "sed failed" |
102 |
+ |
103 |
+ # lock.h to afs/lock.h |
104 |
+ sed -i -e '/lock.h/s:lock.h:afs/lock.h:' \ |
105 |
+ ptclient/afskrb.c || die |
106 |
+ |
107 |
+ eautoreconf |
108 |
+} |
109 |
+ |
110 |
+src_configure() { |
111 |
+ local myconf |
112 |
+ if use afs ; then |
113 |
+ myconf+=" --with-afs-libdir=/usr/$(get_libdir)" |
114 |
+ myconf+=" --with-afs-incdir=/usr/include/afs" |
115 |
+ fi |
116 |
+ econf \ |
117 |
+ --enable-murder \ |
118 |
+ --enable-netscapehack \ |
119 |
+ --enable-idled \ |
120 |
+ --enable-event-notification \ |
121 |
+ --enable-autocreate \ |
122 |
+ --enable-pcre \ |
123 |
+ --with-service-path=/usr/$(get_libdir)/cyrus \ |
124 |
+ --with-cyrus-user=cyrus \ |
125 |
+ --with-cyrus-group=mail \ |
126 |
+ --with-com_err=yes \ |
127 |
+ --with-sasl \ |
128 |
+ --without-krb \ |
129 |
+ --without-krbdes \ |
130 |
+ --with-zlib \ |
131 |
+ $(use_enable afs) \ |
132 |
+ $(use_enable afs krb5afspts) \ |
133 |
+ $(use_with berkdb bdb) \ |
134 |
+ $(use_with clamav) \ |
135 |
+ $(use_enable nntp) \ |
136 |
+ $(use_enable http) \ |
137 |
+ $(use_enable replication) \ |
138 |
+ $(use_enable kerberos gssapi) \ |
139 |
+ $(use_with mysql) \ |
140 |
+ $(use_with postgres pgsql) \ |
141 |
+ $(use_with perl) \ |
142 |
+ $(use_with sqlite) \ |
143 |
+ $(use_with ssl openssl) \ |
144 |
+ $(use_enable server) \ |
145 |
+ $(use_enable sieve) \ |
146 |
+ $(use_with snmp) \ |
147 |
+ $(use_enable static-libs static) \ |
148 |
+ $(use_with tcpd libwrap) \ |
149 |
+ ${myconf} |
150 |
+} |
151 |
+ |
152 |
+src_install() { |
153 |
+ emake DESTDIR="${D}" INSTALLDIRS=vendor install |
154 |
+ |
155 |
+ dodoc README* |
156 |
+ dohtml doc/*.html |
157 |
+ docinto text |
158 |
+ dodoc doc/text/* |
159 |
+ cp doc/cyrusv2.mc "${D}/usr/share/doc/${PF}/html" |
160 |
+ cp -r contrib tools "${D}/usr/share/doc/${PF}" |
161 |
+ rm -f doc/text/Makefile* |
162 |
+ |
163 |
+ insinto /etc |
164 |
+ doins "${FILESDIR}/cyrus.conf" "${FILESDIR}/imapd.conf" |
165 |
+ |
166 |
+ # turn off sieve if not installed |
167 |
+ if ! use sieve; then |
168 |
+ sed -i -e "/sieve/s/^/#/" "${D}/etc/cyrus.conf" || die |
169 |
+ fi |
170 |
+ |
171 |
+ newinitd "${FILESDIR}/cyrus.rc6" cyrus |
172 |
+ newconfd "${FILESDIR}/cyrus.confd" cyrus |
173 |
+ newpamd "${FILESDIR}/cyrus.pam-include" sieve |
174 |
+ |
175 |
+ for subdir in imap/{,db,log,msg,proc,socket,sieve} spool/imap/{,stage.} ; do |
176 |
+ keepdir "/var/${subdir}" |
177 |
+ fowners cyrus:mail "/var/${subdir}" |
178 |
+ fperms 0750 "/var/${subdir}" |
179 |
+ done |
180 |
+ for subdir in imap/{user,quota,sieve} spool/imap ; do |
181 |
+ 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 |
182 |
+ keepdir "/var/${subdir}/${i}" |
183 |
+ fowners cyrus:mail "/var/${subdir}/${i}" |
184 |
+ fperms 0750 "/var/${subdir}/${i}" |
185 |
+ done |
186 |
+ done |
187 |
+} |
188 |
+ |
189 |
+pkg_preinst() { |
190 |
+ if ! has_version ${CATEGORY}/${PN} ; then |
191 |
+ elog "For correct logging add the following to /etc/syslog.conf:" |
192 |
+ elog " local6.* /var/log/imapd.log" |
193 |
+ elog " auth.debug /var/log/auth.log" |
194 |
+ echo |
195 |
+ |
196 |
+ elog "You have to add user cyrus to the sasldb2. Do this with:" |
197 |
+ elog " saslpasswd2 cyrus" |
198 |
+ fi |
199 |
+} |
200 |
+ |
201 |
+pkg_postinst() { |
202 |
+ # do not install server.{key,pem) if they exist. |
203 |
+ if use ssl ; then |
204 |
+ if [ ! -f "${ROOT}"etc/ssl/cyrus/server.key ]; then |
205 |
+ install_cert /etc/ssl/cyrus/server |
206 |
+ chown cyrus:mail "${ROOT}"etc/ssl/cyrus/server.{key,pem} |
207 |
+ fi |
208 |
+ fi |
209 |
+} |