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