1 |
uberlord 07/10/30 00:13:41 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: dovecot-1.0.7.ebuild |
5 |
Log: |
6 |
Double Bump |
7 |
(Portage version: 2.1.3.16) |
8 |
|
9 |
Revision Changes Path |
10 |
1.123 net-mail/dovecot/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/dovecot/ChangeLog?rev=1.123&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/dovecot/ChangeLog?rev=1.123&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/dovecot/ChangeLog?r1=1.122&r2=1.123 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/net-mail/dovecot/ChangeLog,v |
19 |
retrieving revision 1.122 |
20 |
retrieving revision 1.123 |
21 |
diff -u -r1.122 -r1.123 |
22 |
--- ChangeLog 29 Oct 2007 18:41:58 -0000 1.122 |
23 |
+++ ChangeLog 30 Oct 2007 00:13:41 -0000 1.123 |
24 |
@@ -1,6 +1,11 @@ |
25 |
# ChangeLog for net-mail/dovecot |
26 |
# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/net-mail/dovecot/ChangeLog,v 1.122 2007/10/29 18:41:58 cla Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/net-mail/dovecot/ChangeLog,v 1.123 2007/10/30 00:13:41 uberlord Exp $ |
29 |
+ |
30 |
+*dovecot-1.0.7 (30 Oct 2007) |
31 |
+ |
32 |
+ 30 Oct 2007; Roy Marples <uberlord@g.o> +dovecot-1.0.7.ebuild: |
33 |
+ Double Bump |
34 |
|
35 |
29 Oct 2007; Dawid Węgliński <cla@g.o> dovecot-1.0.5.ebuild: |
36 |
Stable on x86 (bug #197388) |
37 |
|
38 |
|
39 |
|
40 |
1.1 net-mail/dovecot/dovecot-1.0.7.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/dovecot/dovecot-1.0.7.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/dovecot/dovecot-1.0.7.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: dovecot-1.0.7.ebuild |
46 |
=================================================================== |
47 |
# Copyright 1999-2007 Gentoo Foundation |
48 |
# Distributed under the terms of the GNU General Public License v2 |
49 |
# $Header: /var/cvsroot/gentoo-x86/net-mail/dovecot/dovecot-1.0.7.ebuild,v 1.1 2007/10/30 00:13:41 uberlord Exp $ |
50 |
|
51 |
inherit autotools eutils ssl-cert |
52 |
|
53 |
MY_P="${P/_/.}" |
54 |
S="${WORKDIR}/${MY_P}" |
55 |
SIEVE="dovecot-sieve-1.0.2" |
56 |
SIEVE_S="${WORKDIR}/${SIEVE}" |
57 |
|
58 |
SRC_URI="http://dovecot.org/releases/1.0/${MY_P}.tar.gz |
59 |
sieve? ( http://dovecot.org/releases/sieve/${SIEVE}.tar.gz )" |
60 |
|
61 |
DESCRIPTION="An IMAP and POP3 server written with security primarily in mind" |
62 |
HOMEPAGE="http://dovecot.org/" |
63 |
|
64 |
SLOT="0" |
65 |
LICENSE="LGPL-2.1" |
66 |
KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86 ~x86-fbsd" |
67 |
|
68 |
IUSE="debug doc ipv6 kerberos ldap mbox mysql pop3d pam postgres sieve ssl suid vpopmail" |
69 |
|
70 |
# Developer documentation, controlled by the doc USE flag |
71 |
DEVDOCS="auth-protocol index multiaccess securecoding" |
72 |
|
73 |
DEPEND=">=sys-apps/sed-4 |
74 |
kerberos? ( virtual/krb5 ) |
75 |
ldap? ( net-nds/openldap ) |
76 |
pam? ( virtual/pam ) |
77 |
ssl? ( dev-libs/openssl ) |
78 |
postgres? ( dev-db/postgresql ) |
79 |
mysql? ( virtual/mysql ) |
80 |
vpopmail? ( net-mail/vpopmail )" |
81 |
|
82 |
RDEPEND="${DEPEND} |
83 |
>=net-mail/mailbase-0.00-r8" |
84 |
|
85 |
pkg_setup() { |
86 |
# Add user and group for login process (same as for fedora/redhat) |
87 |
enewgroup dovecot 97 |
88 |
enewuser dovecot 97 -1 /dev/null dovecot |
89 |
} |
90 |
|
91 |
src_compile() { |
92 |
local myconf= |
93 |
use ssl && myconf="${myconf} --with-ssl=openssl" \ |
94 |
|| myconf="${myconf} --without-ssl" |
95 |
|
96 |
econf --localstatedir=/var --sysconfdir=/etc/dovecot \ |
97 |
--enable-header-install \ |
98 |
--with-ioloop=best --with-poll=best \ |
99 |
$(use_enable debug) \ |
100 |
$(use_enable ipv6) \ |
101 |
$(use_with kerberos gssapi) \ |
102 |
$(use_with ldap) \ |
103 |
$(use_with mysql) \ |
104 |
$(use_with pam) \ |
105 |
$(use_with pop3d) \ |
106 |
$(use_with postgres pgsql) \ |
107 |
$(use_with vpopmail) \ |
108 |
${myconf} || die "configure failed" |
109 |
emake || die "make failed" |
110 |
|
111 |
if use sieve ; then |
112 |
einfo "Building sieve" |
113 |
cd "${SIEVE_S}" |
114 |
econf --with-dovecot="${S}" || die "configure failed" |
115 |
emake || die "make failed" |
116 |
fi |
117 |
} |
118 |
|
119 |
src_install () { |
120 |
make DESTDIR="${D}" install || die "make install failed" |
121 |
use suid && fperms u+s /usr/libexec/dovecot/deliver |
122 |
|
123 |
rm -f "${D}"/etc/dovecot/dovecot-{ldap,sql}-example.conf |
124 |
|
125 |
newinitd "${FILESDIR}"/dovecot.init dovecot |
126 |
|
127 |
# Documentation |
128 |
rm -rf "${D}"/usr/share/doc/dovecot |
129 |
dodoc AUTHORS NEWS README TODO dovecot-example.conf |
130 |
if use doc ; then |
131 |
dodoc doc/*.txt |
132 |
else |
133 |
local x= n= |
134 |
for x in doc/*.txt ; do |
135 |
n=$(basename "${x}" .txt) |
136 |
[[ " ${DEVDOCS} " != *" ${n} "* ]] && dodoc "${x}" |
137 |
done |
138 |
fi |
139 |
|
140 |
# Create the dovecot.conf file from the dovecot-example.conf file that |
141 |
# the dovecot folks nicely left for us.... |
142 |
local conf="${D}/etc/dovecot/dovecot.conf" |
143 |
mv "${D}"/etc/dovecot/dovecot-example.conf "${D}"/etc/dovecot/dovecot.conf |
144 |
|
145 |
# .maildir is the Gentoo default, but we need to support mbox to |
146 |
local mail_location="maildir:~/.maildir" |
147 |
if use mbox ; then |
148 |
mail_location="mbox:/var/spool/mail/%u:INDEX=/var/dovecot/%u" |
149 |
keepdir /var/dovecot |
150 |
sed -i -e 's|#mail_extra_groups =|mail_extra_groups = mail|' "${conf}" |
151 |
fi |
152 |
sed -i -e \ |
153 |
"s|#mail_location =|mail_location = ${mail_location}|" "${conf}" || die |
154 |
|
155 |
# We're using pam files (imap and pop3) provided by mailbase |
156 |
if use pam ; then |
157 |
sed -i -e '/passdb pam/, /^[ \t]*}/ s|#args = dovecot|args = "\*"|' \ |
158 |
"${conf}" || die |
159 |
fi |
160 |
|
161 |
# Listen on ipv6 and ipv4 |
162 |
if use ipv6 ; then |
163 |
sed -i -e 's/^#listen = \*/listen = \[::\]/g' "${conf}" || die |
164 |
fi |
165 |
|
166 |
# Update ssl cert locations |
167 |
if use ssl ; then |
168 |
sed -i -e 's,^#ssl_cert_file =.*,ssl_cert_file = /etc/ssl/dovecot/server.pem,' \ |
169 |
-e 's,^#ssl_key_file =.*,ssl_key_file = /etc/ssl/dovecot/server.key,' \ |
170 |
"${conf}" || die |
171 |
|
172 |
# Let's not make a new certificate if we already have one |
173 |
if ! [[ -e "${ROOT}"/etc/ssl/dovecot/server.pem && \ |
174 |
-e "${ROOT}"/etc/ssl/dovecot/server.key ]]; then |
175 |
SSL_ORGANIZATION="${SSL_ORGANIZATION:-Dovecot IMAP Server}" |
176 |
insinto "${ROOT}"/etc/ssl/dovecot |
177 |
docert server |
178 |
fowners dovecot:mail /etc/ssl/dovecot/server.{key,pem} |
179 |
fi |
180 |
fi |
181 |
|
182 |
# Install SQL configuration |
183 |
if use mysql || use postgres ; then |
184 |
cp doc/dovecot-sql-example.conf "${D}"/etc/dovecot/dovecot-sql.conf |
185 |
fperms 600 /etc/dovecot/dovecot-sql.conf |
186 |
sed -i -e '/db sql/,/args/ s|=|= /etc/dovecot-sql.conf|' "${conf}" |
187 |
dodoc doc/dovecot-sql-example.conf |
188 |
fi |
189 |
|
190 |
# Install LDAP configuration |
191 |
if use ldap ; then |
192 |
cp doc/dovecot-ldap-example.conf "${D}"/etc/dovecot/dovecot-ldap.conf |
193 |
fperms 600 /etc/dovecot/dovecot-ldap.conf |
194 |
sed -i -e '/db ldap/,/args/ s|=|= /etc/dovecot-ldap.conf|' "${conf}" |
195 |
dodoc doc/dovecot-ldap-example.conf |
196 |
fi |
197 |
|
198 |
# Install sieve plugin |
199 |
if use sieve ; then |
200 |
make -C "${SIEVE_S}" DESTDIR="${D}" install || die "make install failed" |
201 |
fi |
202 |
|
203 |
dodir /var/run/dovecot |
204 |
fowners root:0 /var/run/dovecot |
205 |
fperms 0700 /var/run/dovecot |
206 |
keepdir /var/run/dovecot/login |
207 |
fowners root:dovecot /var/run/dovecot/login |
208 |
fperms 0750 /var/run/dovecot/login |
209 |
} |
210 |
|
211 |
get_config_var() { |
212 |
sed -n 's/^[[:space:]]\?base_dir[[:space:]]*="*\([^#"]\+\)"*/\1/p' \ |
213 |
/etc/dovecot/dovecot.conf |
214 |
} |
215 |
|
216 |
pkg_postinst() { |
217 |
# Touch ssl certs so that they are modified outisde of src_install |
218 |
# We do this so portage does't unmerge them - silly portage |
219 |
if use ssl ; then |
220 |
touch "${ROOT}"/etc/ssl/dovecot/server.{key,pem} |
221 |
fi |
222 |
|
223 |
elog "The dovecot configuration has vastly changed since 0.99." |
224 |
elog "You are encouraged to start afresh with a new configuration file." |
225 |
elog "see http://wiki.dovecot.org/ for configuration examples." |
226 |
|
227 |
if [[ -e ${ROOT}etc/dovecot.conf ]] ; then |
228 |
ewarn |
229 |
ewarn "dovecot configuration is now in ${ROOT}etc/dovecot" |
230 |
fi |
231 |
|
232 |
local base_dir="$(get_config_var base_dir)" |
233 |
base_dir="${basedir:-/var/run/dovecot}" |
234 |
if use ssl \ |
235 |
&& [[ ! -e "${ROOT}/${base_dir}/login/ssl-parameters.dat" ]] ; then |
236 |
elog |
237 |
elog "Dovecot requires DH SSL Parameters if you use SSL connections" |
238 |
elog "These take some time to make, and dovecot will create them before" |
239 |
elog "it allows any SSL connections." |
240 |
elog "You can create them now before starting dovecot like so" |
241 |
elog " emerge --config =${PF}" |
242 |
fi |
243 |
} |
244 |
|
245 |
pkg_config() { |
246 |
local base_dir="$(get_config_var base_dir)" |
247 |
base_dir="${base_dir:-/var/run/dovecot}" |
248 |
|
249 |
einfo "Regenerating SSL parameters. This will take some time." |
250 |
/usr/libexec/dovecot/ssl-build-param "${base_dir}/login/ssl-parameters.dat" |
251 |
} |
252 |
|
253 |
|
254 |
|
255 |
-- |
256 |
gentoo-commits@g.o mailing list |