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