1 |
eras 12/01/04 08:31:06 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: cyrus-imapd-2.4.13.ebuild |
5 |
Log: |
6 |
version bump |
7 |
|
8 |
(Portage version: 2.1.10.44/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.191 net-mail/cyrus-imapd/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-mail/cyrus-imapd/ChangeLog?rev=1.191&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-mail/cyrus-imapd/ChangeLog?rev=1.191&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-mail/cyrus-imapd/ChangeLog?r1=1.190&r2=1.191 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-mail/cyrus-imapd/ChangeLog,v |
20 |
retrieving revision 1.190 |
21 |
retrieving revision 1.191 |
22 |
diff -u -r1.190 -r1.191 |
23 |
--- ChangeLog 24 Oct 2011 14:12:40 -0000 1.190 |
24 |
+++ ChangeLog 4 Jan 2012 08:31:06 -0000 1.191 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for net-mail/cyrus-imapd |
27 |
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-mail/cyrus-imapd/ChangeLog,v 1.190 2011/10/24 14:12:40 eras Exp $ |
29 |
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
30 |
+# $Header: /var/cvsroot/gentoo-x86/net-mail/cyrus-imapd/ChangeLog,v 1.191 2012/01/04 08:31:06 eras Exp $ |
31 |
+ |
32 |
+*cyrus-imapd-2.4.13 (04 Jan 2012) |
33 |
+ |
34 |
+ 04 Jan 2012; Eray Aslan <eras@g.o> +cyrus-imapd-2.4.13.ebuild: |
35 |
+ version bump |
36 |
|
37 |
24 Oct 2011; Eray Aslan <eras@g.o> -cyrus-imapd-2.4.8.ebuild, |
38 |
-cyrus-imapd-2.4.9.ebuild, -cyrus-imapd-2.4.10.ebuild, |
39 |
|
40 |
|
41 |
|
42 |
1.1 net-mail/cyrus-imapd/cyrus-imapd-2.4.13.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-mail/cyrus-imapd/cyrus-imapd-2.4.13.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-mail/cyrus-imapd/cyrus-imapd-2.4.13.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: cyrus-imapd-2.4.13.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2012 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/net-mail/cyrus-imapd/cyrus-imapd-2.4.13.ebuild,v 1.1 2012/01/04 08:31:06 eras Exp $ |
52 |
|
53 |
EAPI=4 |
54 |
|
55 |
inherit db-use eutils ssl-cert pam multilib |
56 |
|
57 |
MY_P=${P/_/} |
58 |
|
59 |
DESCRIPTION="The Cyrus IMAP Server." |
60 |
HOMEPAGE="http://www.cyrusimap.org/" |
61 |
SRC_URI="ftp://ftp.cyrusimap.org/cyrus-imapd/${MY_P}.tar.gz" |
62 |
|
63 |
LICENSE="as-is" |
64 |
SLOT="0" |
65 |
KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
66 |
IUSE="afs berkdb kerberos mysql nntp pam postgres replication sieve snmp sqlite ssl tcpd" |
67 |
|
68 |
RDEPEND="sys-libs/zlib |
69 |
>=dev-libs/cyrus-sasl-2.1.13 |
70 |
afs? ( net-fs/openafs ) |
71 |
berkdb? ( >=sys-libs/db-3.2 ) |
72 |
kerberos? ( virtual/krb5 ) |
73 |
mysql? ( virtual/mysql ) |
74 |
nntp? ( !net-nntp/leafnode ) |
75 |
pam? ( |
76 |
virtual/pam |
77 |
>=net-mail/mailbase-1 |
78 |
) |
79 |
postgres? ( dev-db/postgresql-base ) |
80 |
snmp? ( >=net-analyzer/net-snmp-5.2.2-r1 ) |
81 |
sqlite? ( dev-db/sqlite ) |
82 |
ssl? ( >=dev-libs/openssl-0.9.6 ) |
83 |
tcpd? ( >=sys-apps/tcp-wrappers-7.6 snmp? ( net-analyzer/net-snmp[tcpd=] ) )" |
84 |
|
85 |
DEPEND="$RDEPEND" |
86 |
|
87 |
# get rid of old style virtual - bug 350792 |
88 |
# all blockers really needed? |
89 |
RDEPEND="${RDEPEND} |
90 |
!mail-mta/courier |
91 |
!net-mail/bincimap |
92 |
!net-mail/courier-imap |
93 |
!net-mail/uw-imap" |
94 |
|
95 |
REQUIRED_USE="afs? ( kerberos )" |
96 |
|
97 |
S=${WORKDIR}/${MY_P} |
98 |
|
99 |
pkg_setup() { |
100 |
enewuser cyrus -1 -1 /usr/cyrus mail |
101 |
} |
102 |
|
103 |
src_prepare() { |
104 |
# Fix master(8)->cyrusmaster(8) manpage. |
105 |
for i in `grep -rl -e 'master\.8' -e 'master(8)' "${S}"` ; do |
106 |
sed -i -e 's:master\.8:cyrusmaster.8:g' \ |
107 |
-e 's:master(8):cyrusmaster(8):g' \ |
108 |
"${i}" || die "sed failed" || die "sed failed" |
109 |
done |
110 |
mv man/master.8 man/cyrusmaster.8 || die "mv failed" |
111 |
sed -i -e "s:MASTER:CYRUSMASTER:g" \ |
112 |
-e "s:Master:Cyrusmaster:g" \ |
113 |
-e "s:master:cyrusmaster:g" \ |
114 |
man/cyrusmaster.8 || die "sed failed" |
115 |
|
116 |
# do not strip |
117 |
sed -i -e '/(INSTALL/s/-s //' "${S}"/imtest/Makefile.in |
118 |
|
119 |
# correct afs include and liblwp.a directory |
120 |
sed -i -e '/I${with_afs_incdir/s/\/include//' \ |
121 |
-e '/liblwp/s/liblwp/afs\/liblwp/' \ |
122 |
"${S}"/configure{,.in} || die |
123 |
# same with lock.h |
124 |
sed -i -e '/lock.h/s:lock.h:afs/lock.h:' \ |
125 |
ptclient/afskrb.c || die |
126 |
# libcom_err.a to libafscom_err.a |
127 |
sed -i -e '/afs\/libcom_err.a/s:libcom_err.a:libafscom_err.a:' \ |
128 |
configure{,.in} || die |
129 |
} |
130 |
|
131 |
src_configure() { |
132 |
local myconf |
133 |
if use mysql ; then |
134 |
myconf=$(mysql_config --include) |
135 |
myconf="--with-mysql-incdir=${myconf#-I}" |
136 |
fi |
137 |
if use afs ; then |
138 |
myconf+=" --with-afs-libdir=/usr/$(get_libdir)" |
139 |
myconf+=" --with-afs-incdir=/usr/include/afs" |
140 |
fi |
141 |
if use berkdb ; then |
142 |
myconf+=" --with-bdb-incdir=$(db_includedir)" |
143 |
fi |
144 |
econf \ |
145 |
--enable-murder \ |
146 |
--enable-netscapehack \ |
147 |
--enable-idled \ |
148 |
--with-service-path=/usr/$(get_libdir)/cyrus \ |
149 |
--with-cyrus-user=cyrus \ |
150 |
--with-cyrus-group=mail \ |
151 |
--with-com_err=yes \ |
152 |
--with-sasl \ |
153 |
--without-perl \ |
154 |
--without-krb \ |
155 |
--without-krbdes \ |
156 |
--with-zlib \ |
157 |
$(use_enable afs) \ |
158 |
$(use_enable afs krb5afspts) \ |
159 |
$(use_with berkdb bdb) \ |
160 |
$(use_enable nntp) \ |
161 |
$(use_enable replication) \ |
162 |
$(use_enable kerberos gssapi) \ |
163 |
$(use_with mysql) \ |
164 |
$(use_with postgres pgsql) \ |
165 |
$(use_with sqlite) \ |
166 |
$(use_with ssl openssl) \ |
167 |
$(use_enable sieve) \ |
168 |
$(use_with snmp) \ |
169 |
$(use_with tcpd libwrap) \ |
170 |
${myconf} |
171 |
} |
172 |
|
173 |
src_install() { |
174 |
emake DESTDIR="${D}" install |
175 |
|
176 |
# file collision - bug #368245 |
177 |
if ! use nntp ; then |
178 |
rm "${D}"/usr/share/man/man8/fetchnews.8* |
179 |
fi |
180 |
|
181 |
dodoc README* |
182 |
dohtml doc/*.html doc/murder.png |
183 |
docinto text |
184 |
dodoc doc/text/* |
185 |
cp doc/cyrusv2.mc "${D}/usr/share/doc/${PF}/html" |
186 |
cp -r contrib tools "${D}/usr/share/doc/${PF}" |
187 |
rm -f doc/text/Makefile* |
188 |
|
189 |
insinto /etc |
190 |
doins "${FILESDIR}/cyrus.conf" "${FILESDIR}/imapd.conf" |
191 |
|
192 |
# turn off sieve if not installed |
193 |
if ! use sieve; then |
194 |
sed -i -e "/sieve/s/^/#/" "${D}/etc/cyrus.conf" || die |
195 |
fi |
196 |
|
197 |
newinitd "${FILESDIR}/cyrus.rc6" cyrus |
198 |
newconfd "${FILESDIR}/cyrus.confd" cyrus |
199 |
newpamd "${FILESDIR}/cyrus.pam-include" sieve |
200 |
|
201 |
for subdir in imap/{,db,log,msg,proc,socket,sieve} spool/imap/{,stage.} ; do |
202 |
keepdir "/var/${subdir}" |
203 |
fowners cyrus:mail "/var/${subdir}" |
204 |
fperms 0750 "/var/${subdir}" |
205 |
done |
206 |
for subdir in imap/{user,quota,sieve} spool/imap ; do |
207 |
for i in a b c d e f g h i j k l m n o p q r s t v u w x y z ; do |
208 |
keepdir "/var/${subdir}/${i}" |
209 |
fowners cyrus:mail "/var/${subdir}/${i}" |
210 |
fperms 0750 "/var/${subdir}/${i}" |
211 |
done |
212 |
done |
213 |
} |
214 |
|
215 |
pkg_postinst() { |
216 |
# do not install server.{key,pem) if they exist. |
217 |
if use ssl ; then |
218 |
if [ ! -f "${ROOT}"etc/ssl/cyrus/server.key ]; then |
219 |
install_cert /etc/ssl/cyrus/server |
220 |
chown cyrus:mail "${ROOT}"etc/ssl/cyrus/server.{key,pem} |
221 |
fi |
222 |
fi |
223 |
|
224 |
elog "For correct logging add the following to /etc/syslog.conf:" |
225 |
elog " local6.* /var/log/imapd.log" |
226 |
elog " auth.debug /var/log/auth.log" |
227 |
echo |
228 |
|
229 |
elog "You have to add user cyrus to the sasldb2. Do this with:" |
230 |
elog " saslpasswd2 cyrus" |
231 |
} |