Lines 8-20
Link Here
|
8 |
HOMEPAGE="http://dovecot.org/" |
8 |
HOMEPAGE="http://dovecot.org/" |
9 |
MY_P="${P/_/.}" |
9 |
MY_P="${P/_/.}" |
10 |
S="${WORKDIR}/${MY_P}" |
10 |
S="${WORKDIR}/${MY_P}" |
11 |
SRC_URI="http://dovecot.org/releases/${MY_P}.tar.gz" |
11 |
SIEVE="dovecot-sieve-1.0" |
|
|
12 |
SIEVE_S="${WORKDIR}/${SIEVE}" |
13 |
SRC_URI="http://dovecot.org/releases/${MY_P}.tar.gz sieve? ( http://dovecot.org/releases/sieve/${SIEVE}.tar.gz )" |
12 |
|
14 |
|
13 |
SLOT="0" |
15 |
SLOT="0" |
14 |
LICENSE="LGPL-2.1" |
16 |
LICENSE="LGPL-2.1" |
15 |
KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86" |
17 |
KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86" |
16 |
|
18 |
|
17 |
IUSE="debug doc ipv6 kerberos ldap mbox mysql pop3d pam postgres ssl vpopmail" |
19 |
IUSE="debug doc ipv6 kerberos ldap mbox mysql pop3d pam postgres sieve ssl vpopmail" |
18 |
|
20 |
|
19 |
# Developer documentation, controlled by the doc USE flag |
21 |
# Developer documentation, controlled by the doc USE flag |
20 |
DEVDOCS="auth-protocol index multiaccess securecoding" |
22 |
DEVDOCS="auth-protocol index multiaccess securecoding" |
Lines 38-48
Link Here
|
38 |
} |
40 |
} |
39 |
|
41 |
|
40 |
src_compile() { |
42 |
src_compile() { |
41 |
local myconf="--sysconfdir=/etc/dovecot --with-ioloop=best --with-poll=best" |
43 |
local myconf="--with-ioloop=best --with-poll=best" |
42 |
use ssl && myconf="${myconf} --with-ssl=openssl" \ |
44 |
use ssl && myconf="${myconf} --with-ssl=openssl" \ |
43 |
|| myconf="${myconf} --without-ssl" |
45 |
|| myconf="${myconf} --without-ssl" |
44 |
|
46 |
|
45 |
econf --localstatedir=/var \ |
47 |
econf --localstatedir=/var \ |
|
|
48 |
--sysconfdir=/etc/dovecot \ |
46 |
$(use_enable debug) \ |
49 |
$(use_enable debug) \ |
47 |
$(use_enable ipv6) \ |
50 |
$(use_enable ipv6) \ |
48 |
$(use_with kerberos gssapi) \ |
51 |
$(use_with kerberos gssapi) \ |
Lines 54-59
Link Here
|
54 |
$(use_with vpopmail) \ |
57 |
$(use_with vpopmail) \ |
55 |
${myconf} || die "configure failed" |
58 |
${myconf} || die "configure failed" |
56 |
emake || die "make failed" |
59 |
emake || die "make failed" |
|
|
60 |
|
61 |
if use sieve ; then |
62 |
cd "${SIEVE_S}" |
63 |
econf --localstatedir=/var \ |
64 |
--sysconfdir=/etc/dovecot \ |
65 |
--with-dovecot="${S}" \ |
66 |
$(use_enable debug) \ |
67 |
$(use_enable ipv6) \ |
68 |
$(use_with kerberos gssapi) \ |
69 |
$(use_with ldap) \ |
70 |
$(use_with mysql) \ |
71 |
$(use_with pam) \ |
72 |
$(use_with pop3d) \ |
73 |
$(use_with postgres pgsql) \ |
74 |
$(use_with vpopmail) \ |
75 |
${myconf} || die "configure failed" |
76 |
emake || die "make failed" |
77 |
fi |
57 |
} |
78 |
} |
58 |
|
79 |
|
59 |
src_install () { |
80 |
src_install () { |
Lines 83-89
Link Here
|
83 |
# .maildir is the Gentoo default, but we need to support mbox to |
104 |
# .maildir is the Gentoo default, but we need to support mbox to |
84 |
local mail_location="maildir:~/.maildir" |
105 |
local mail_location="maildir:~/.maildir" |
85 |
if use mbox ; then |
106 |
if use mbox ; then |
86 |
mail_loctation="mbox:/var/spool/mail/%u:INDEX=/var/dovecot/%u" |
107 |
mail_location="mbox:/var/spool/mail/%u:INDEX=/var/dovecot/%u" |
87 |
keepdir /var/dovecot |
108 |
keepdir /var/dovecot |
88 |
sed -i -e 's|#mail_extra_groups =|mail_extra_groups = mail|' "${conf}" |
109 |
sed -i -e 's|#mail_extra_groups =|mail_extra_groups = mail|' "${conf}" |
89 |
fi |
110 |
fi |
Lines 132-137
Link Here
|
132 |
fi |
153 |
fi |
133 |
dodoc doc/*.cnf doc/mkcert.sh |
154 |
dodoc doc/*.cnf doc/mkcert.sh |
134 |
fi |
155 |
fi |
|
|
156 |
# Install sieve plugin |
157 |
if use sieve ; then |
158 |
cd "${SIEVE_S}" |
159 |
make DESTDIR="${D}" install || die "make install failed" |
160 |
fi |
135 |
|
161 |
|
136 |
dodir /var/run/dovecot |
162 |
dodir /var/run/dovecot |
137 |
fowners root:0 /var/run/dovecot |
163 |
fowners root:0 /var/run/dovecot |