1 |
eras 13/11/25 11:57:55 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: dovecot-2.2.9.ebuild |
5 |
Log: |
6 |
Version bump |
7 |
|
8 |
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0x77F1F175586A3B1F) |
9 |
|
10 |
Revision Changes Path |
11 |
1.457 net-mail/dovecot/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-mail/dovecot/ChangeLog?rev=1.457&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-mail/dovecot/ChangeLog?rev=1.457&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-mail/dovecot/ChangeLog?r1=1.456&r2=1.457 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-mail/dovecot/ChangeLog,v |
20 |
retrieving revision 1.456 |
21 |
retrieving revision 1.457 |
22 |
diff -u -r1.456 -r1.457 |
23 |
--- ChangeLog 21 Nov 2013 16:07:40 -0000 1.456 |
24 |
+++ ChangeLog 25 Nov 2013 11:57:55 -0000 1.457 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for net-mail/dovecot |
27 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-mail/dovecot/ChangeLog,v 1.456 2013/11/21 16:07:40 eras Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-mail/dovecot/ChangeLog,v 1.457 2013/11/25 11:57:55 eras Exp $ |
30 |
+ |
31 |
+*dovecot-2.2.9 (25 Nov 2013) |
32 |
+ |
33 |
+ 25 Nov 2013; Eray Aslan <eras@g.o> +dovecot-2.2.9.ebuild: |
34 |
+ Version bump |
35 |
|
36 |
*dovecot-2.2.8 (21 Nov 2013) |
37 |
|
38 |
|
39 |
|
40 |
|
41 |
1.1 net-mail/dovecot/dovecot-2.2.9.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-mail/dovecot/dovecot-2.2.9.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-mail/dovecot/dovecot-2.2.9.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: dovecot-2.2.9.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2013 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/net-mail/dovecot/dovecot-2.2.9.ebuild,v 1.1 2013/11/25 11:57:55 eras Exp $ |
51 |
|
52 |
EAPI=5 |
53 |
inherit eutils multilib ssl-cert systemd user versionator |
54 |
|
55 |
MY_P="${P/_/.}" |
56 |
major_minor="$(get_version_component_range 1-2)" |
57 |
sieve_version="0.4.2" |
58 |
SRC_URI="http://dovecot.org/releases/${major_minor}/${MY_P}.tar.gz |
59 |
sieve? ( |
60 |
http://www.rename-it.nl/dovecot/${major_minor}/${PN}-${major_minor}-pigeonhole-${sieve_version}.tar.gz |
61 |
) |
62 |
managesieve? ( |
63 |
http://www.rename-it.nl/dovecot/${major_minor}/${PN}-${major_minor}-pigeonhole-${sieve_version}.tar.gz |
64 |
) " |
65 |
DESCRIPTION="An IMAP and POP3 server written with security primarily in mind" |
66 |
HOMEPAGE="http://www.dovecot.org/" |
67 |
|
68 |
SLOT="0" |
69 |
LICENSE="LGPL-2.1 MIT" |
70 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
71 |
|
72 |
IUSE_DOVECOT_AUTH="kerberos ldap mysql pam postgres sqlite vpopmail" |
73 |
IUSE_DOVECOT_STORAGE="cydir imapc +maildir mbox mdbox pop3c sdbox" |
74 |
IUSE_DOVECOT_OTHER="bzip2 caps doc ipv6 lucene managesieve selinux sieve solr +ssl static-libs suid tcpd zlib" |
75 |
|
76 |
IUSE="${IUSE_DOVECOT_AUTH} ${IUSE_DOVECOT_STORAGE} ${IUSE_DOVECOT_OTHER}" |
77 |
|
78 |
DEPEND="caps? ( sys-libs/libcap ) |
79 |
kerberos? ( virtual/krb5 ) |
80 |
ldap? ( net-nds/openldap ) |
81 |
lucene? ( >=dev-cpp/clucene-2.3 ) |
82 |
mysql? ( virtual/mysql ) |
83 |
pam? ( virtual/pam ) |
84 |
postgres? ( dev-db/postgresql-base !dev-db/postgresql-base[ldap,threads] ) |
85 |
selinux? ( sec-policy/selinux-dovecot ) |
86 |
solr? ( net-misc/curl dev-libs/expat ) |
87 |
sqlite? ( dev-db/sqlite ) |
88 |
ssl? ( dev-libs/openssl ) |
89 |
tcpd? ( sys-apps/tcp-wrappers ) |
90 |
vpopmail? ( net-mail/vpopmail ) |
91 |
virtual/libiconv" |
92 |
|
93 |
RDEPEND="${DEPEND} |
94 |
net-mail/mailbase" |
95 |
|
96 |
S=${WORKDIR}/${MY_P} |
97 |
|
98 |
pkg_setup() { |
99 |
if use managesieve && ! use sieve; then |
100 |
ewarn "managesieve USE flag selected but sieve USE flag unselected" |
101 |
ewarn "sieve USE flag will be turned on" |
102 |
fi |
103 |
# default internal user |
104 |
enewgroup dovecot 97 |
105 |
enewuser dovecot 97 -1 /dev/null dovecot |
106 |
# default login user |
107 |
enewuser dovenull -1 -1 /dev/null |
108 |
# add "mail" group for suid'ing. Better security isolation. |
109 |
if use suid; then |
110 |
enewgroup mail |
111 |
fi |
112 |
} |
113 |
|
114 |
src_configure() { |
115 |
local conf="" |
116 |
|
117 |
if use postgres || use mysql || use sqlite; then |
118 |
conf="${conf} --with-sql" |
119 |
fi |
120 |
|
121 |
local storages="" |
122 |
for storage in ${IUSE_DOVECOT_STORAGE//+/}; do |
123 |
use ${storage} && storages="${storage} ${storages}" |
124 |
done |
125 |
[ "${storages}" ] || storages="maildir" |
126 |
|
127 |
# turn valgrind tests off. Bug #340791 |
128 |
VALGRIND=no econf \ |
129 |
--localstatedir="${EPREFIX}/var" \ |
130 |
--with-moduledir="${EPREFIX}/usr/$(get_libdir)/dovecot" \ |
131 |
--without-stemmer \ |
132 |
--with-storages="${storages}" \ |
133 |
--disable-rpath \ |
134 |
$( systemd_with_unitdir ) \ |
135 |
$( use_with bzip2 bzlib ) \ |
136 |
$( use_with caps libcap ) \ |
137 |
$( use_with kerberos gssapi ) \ |
138 |
$( use_with ldap ) \ |
139 |
$( use_with lucene ) \ |
140 |
$( use_with mysql ) \ |
141 |
$( use_with pam ) \ |
142 |
$( use_with postgres pgsql ) \ |
143 |
$( use_with sqlite ) \ |
144 |
$( use_with solr ) \ |
145 |
$( use_with ssl ) \ |
146 |
$( use_with tcpd libwrap ) \ |
147 |
$( use_with vpopmail ) \ |
148 |
$( use_with zlib ) \ |
149 |
$( use_enable static-libs static ) \ |
150 |
${conf} |
151 |
|
152 |
if use sieve || use managesieve ; then |
153 |
# The sieve plugin needs this file to be build to determine the plugin |
154 |
# directory and the list of libraries to link to. |
155 |
emake dovecot-config |
156 |
cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed" |
157 |
econf \ |
158 |
$( use_enable static-libs static ) \ |
159 |
--localstatedir="${EPREFIX}/var" \ |
160 |
--enable-shared \ |
161 |
--with-dovecot="../${MY_P}" \ |
162 |
$( use_with managesieve ) |
163 |
fi |
164 |
} |
165 |
|
166 |
src_compile() { |
167 |
default |
168 |
if use sieve || use managesieve ; then |
169 |
cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed" |
170 |
emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" |
171 |
fi |
172 |
} |
173 |
|
174 |
src_test() { |
175 |
default |
176 |
if use sieve || use managesieve ; then |
177 |
cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed" |
178 |
default |
179 |
fi |
180 |
} |
181 |
|
182 |
src_install () { |
183 |
default |
184 |
|
185 |
# insecure: |
186 |
# use suid && fperms u+s /usr/libexec/dovecot/deliver |
187 |
# better: |
188 |
if use suid;then |
189 |
einfo "Changing perms to allow deliver to be suided" |
190 |
fowners root:mail "${EPREFIX}/usr/libexec/dovecot/dovecot-lda" |
191 |
fperms 4750 "${EPREFIX}/usr/libexec/dovecot/dovecot-lda" |
192 |
fi |
193 |
|
194 |
newinitd "${FILESDIR}"/dovecot.init-r4 dovecot |
195 |
|
196 |
rm -rf "${ED}"/usr/share/doc/dovecot |
197 |
|
198 |
dodoc AUTHORS NEWS README TODO |
199 |
dodoc doc/*.{txt,cnf,xml,sh} |
200 |
docinto example-config |
201 |
dodoc doc/example-config/*.{conf,ext} |
202 |
docinto example-config/conf.d |
203 |
dodoc doc/example-config/conf.d/*.{conf,ext} |
204 |
docinto wiki |
205 |
dodoc doc/wiki/* |
206 |
doman doc/man/*.{1,7} |
207 |
|
208 |
# Create the dovecot.conf file from the dovecot-example.conf file that |
209 |
# the dovecot folks nicely left for us.... |
210 |
local conf="${ED}/etc/dovecot/dovecot.conf" |
211 |
local confd="${ED}/etc/dovecot/conf.d" |
212 |
|
213 |
insinto /etc/dovecot |
214 |
doins doc/example-config/*.{conf,ext} |
215 |
insinto /etc/dovecot/conf.d |
216 |
doins doc/example-config/conf.d/*.{conf,ext} |
217 |
fperms 0600 "${EPREFIX}"/etc/dovecot/dovecot-{ldap,sql}.conf.ext |
218 |
rm -f "${confd}/../README" |
219 |
|
220 |
# .maildir is the Gentoo default |
221 |
local mail_location="maildir:~/.maildir" |
222 |
if ! use maildir; then |
223 |
if use mbox; then |
224 |
mail_location="mbox:/var/spool/mail/%u:INDEX=/var/dovecot/%u" |
225 |
keepdir /var/dovecot |
226 |
sed -i -e 's|#mail_privileged_group =|mail_privileged_group = mail|' \ |
227 |
"${confd}/10-mail.conf" || die "sed failed" |
228 |
elif use mdbox ; then |
229 |
mail_location="mdbox:~/.mdbox" |
230 |
elif use sdbox ; then |
231 |
mail_location="sdbox:~/.sdbox" |
232 |
fi |
233 |
fi |
234 |
sed -i -e \ |
235 |
"s|#mail_location =|mail_location = ${mail_location}|" \ |
236 |
"${confd}/10-mail.conf" \ |
237 |
|| die "failed to update mail location settings in 10-mail.conf" |
238 |
|
239 |
# We're using pam files (imap and pop3) provided by mailbase |
240 |
if use pam; then |
241 |
sed -i -e '/driver = pam/,/^[ \t]*}/ s|#args = dovecot|args = "\*"|' \ |
242 |
"${confd}/auth-system.conf.ext" \ |
243 |
|| die "failed to update PAM settings in auth-system.conf.ext" |
244 |
# mailbase does not provide a sieve pam file |
245 |
use managesieve && dosym imap /etc/pam.d/sieve |
246 |
sed -i -e \ |
247 |
's/#!include auth-system.conf.ext/!include auth-system.conf.ext/' \ |
248 |
"${confd}/10-auth.conf" \ |
249 |
|| die "failed to update PAM settings in 10-auth.conf" |
250 |
fi |
251 |
|
252 |
# Disable ipv6 if necessary |
253 |
if ! use ipv6; then |
254 |
sed -i -e 's/^#listen = \*, ::/listen = \*/g' "${conf}" \ |
255 |
|| die "failed to update listen settings in dovecot.conf" |
256 |
fi |
257 |
|
258 |
# Update ssl cert locations |
259 |
if use ssl; then |
260 |
sed -i -e 's:^#ssl = yes:ssl = yes:' "${confd}/10-ssl.conf" \ |
261 |
|| die "ssl conf failed" |
262 |
sed -i -e 's:^ssl_cert =.*:ssl_cert = </etc/ssl/dovecot/server.pem:' \ |
263 |
-e 's:^ssl_key =.*:ssl_key = </etc/ssl/dovecot/server.key:' \ |
264 |
"${confd}/10-ssl.conf" || die "failed to update SSL settings in 10-ssl.conf" |
265 |
fi |
266 |
|
267 |
# Install SQL configuration |
268 |
if use mysql || use postgres; then |
269 |
sed -i -e \ |
270 |
's/#!include auth-sql.conf.ext/!include auth-sql.conf.ext/' \ |
271 |
"${confd}/10-auth.conf" || die "failed to update SQL settings in \ |
272 |
10-auth.conf" |
273 |
fi |
274 |
|
275 |
# Install LDAP configuration |
276 |
if use ldap; then |
277 |
sed -i -e \ |
278 |
's/#!include auth-ldap.conf.ext/!include auth-ldap.conf.ext/' \ |
279 |
"${confd}/10-auth.conf" \ |
280 |
|| die "failed to update ldap settings in 10-auth.conf" |
281 |
fi |
282 |
|
283 |
if use vpopmail; then |
284 |
sed -i -e \ |
285 |
's/#!include auth-vpopmail.conf.ext/!include auth-vpopmail.conf.ext/' \ |
286 |
"${confd}/10-auth.conf" \ |
287 |
|| die "failed to update vpopmail settings in 10-auth.conf" |
288 |
fi |
289 |
|
290 |
if use sieve || use managesieve ; then |
291 |
cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed" |
292 |
emake DESTDIR="${ED}" install |
293 |
sed -i -e \ |
294 |
's/^[[:space:]]*#mail_plugins = $mail_plugins/mail_plugins = sieve/' "${confd}/15-lda.conf" \ |
295 |
|| die "failed to update sieve settings in 15-lda.conf" |
296 |
rm -rf "${ED}"/usr/share/doc/dovecot |
297 |
dodoc doc/*.txt |
298 |
docinto example-config/conf.d |
299 |
dodoc doc/example-config/conf.d/*.conf |
300 |
insinto /etc/dovecot/conf.d |
301 |
doins doc/example-config/conf.d/90-sieve{,-extprograms}.conf |
302 |
use managesieve && doins doc/example-config/conf.d/20-managesieve.conf |
303 |
docinto sieve/rfc |
304 |
dodoc doc/rfc/*.txt |
305 |
docinto sieve/devel |
306 |
dodoc doc/devel/DESIGN |
307 |
doman doc/man/*.{1,7} |
308 |
fi |
309 |
|
310 |
use static-libs || find "${ED}"/usr/lib* -name '*.la' -delete |
311 |
} |
312 |
|
313 |
pkg_postinst() { |
314 |
if use ssl; then |
315 |
# Let's not make a new certificate if we already have one |
316 |
if ! [[ -e "${ROOT}"/etc/ssl/dovecot/server.pem && \ |
317 |
-e "${ROOT}"/etc/ssl/dovecot/server.key ]]; then |
318 |
einfo "Creating SSL certificate" |
319 |
SSL_ORGANIZATION="${SSL_ORGANIZATION:-Dovecot IMAP Server}" |
320 |
install_cert /etc/ssl/dovecot/server |
321 |
fi |
322 |
fi |
323 |
|
324 |
elog "Please read http://wiki2.dovecot.org/Upgrading/ for upgrade notes." |
325 |
} |