1 |
dertobi123 08/10/27 19:02:43 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: cyrus-imapd-2.3.13.ebuild |
5 |
Log: |
6 |
Version bump |
7 |
(Portage version: 2.2_rc12/cvs/Linux 2.6.25-gentoo-r7 x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.126 net-mail/cyrus-imapd/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/cyrus-imapd/ChangeLog?rev=1.126&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/cyrus-imapd/ChangeLog?rev=1.126&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/cyrus-imapd/ChangeLog?r1=1.125&r2=1.126 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/net-mail/cyrus-imapd/ChangeLog,v |
19 |
retrieving revision 1.125 |
20 |
retrieving revision 1.126 |
21 |
diff -u -r1.125 -r1.126 |
22 |
--- ChangeLog 4 Jun 2008 18:56:56 -0000 1.125 |
23 |
+++ ChangeLog 27 Oct 2008 19:02:43 -0000 1.126 |
24 |
@@ -1,6 +1,17 @@ |
25 |
# ChangeLog for net-mail/cyrus-imapd |
26 |
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/net-mail/cyrus-imapd/ChangeLog,v 1.125 2008/06/04 18:56:56 dertobi123 Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/net-mail/cyrus-imapd/ChangeLog,v 1.126 2008/10/27 19:02:43 dertobi123 Exp $ |
29 |
+ |
30 |
+*cyrus-imapd-2.3.13 (27 Oct 2008) |
31 |
+ |
32 |
+ 27 Oct 2008; Tobias Scherbaum <dertobi123@g.o> |
33 |
+ +files/kolab/2.3.13/Logging.patch, +files/kolab/2.3.13/annotations2.patch, |
34 |
+ +files/kolab/2.3.13/folder-names.patch, |
35 |
+ +files/kolab/2.3.13/cyrus-imap-admin-2.3.13-kolab-annotations.patch, |
36 |
+ +files/kolab/2.3.13/groups.patch, |
37 |
+ +files/kolab/2.3.13/timsieved_starttls-sendcaps.patch, |
38 |
+ +files/kolab/2.3.13/uid.patch, +cyrus-imapd-2.3.13.ebuild: |
39 |
+ Version bump |
40 |
|
41 |
*cyrus-imapd-2.3.12_p2 (04 Jun 2008) |
42 |
|
43 |
|
44 |
|
45 |
|
46 |
1.1 net-mail/cyrus-imapd/cyrus-imapd-2.3.13.ebuild |
47 |
|
48 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/cyrus-imapd/cyrus-imapd-2.3.13.ebuild?rev=1.1&view=markup |
49 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/cyrus-imapd/cyrus-imapd-2.3.13.ebuild?rev=1.1&content-type=text/plain |
50 |
|
51 |
Index: cyrus-imapd-2.3.13.ebuild |
52 |
=================================================================== |
53 |
# Copyright 1999-2008 Gentoo Foundation |
54 |
# Distributed under the terms of the GNU General Public License v2 |
55 |
# $Header: /var/cvsroot/gentoo-x86/net-mail/cyrus-imapd/cyrus-imapd-2.3.13.ebuild,v 1.1 2008/10/27 19:02:43 dertobi123 Exp $ |
56 |
|
57 |
inherit autotools eutils ssl-cert fixheadtails pam |
58 |
|
59 |
MY_P=${P/_/} |
60 |
|
61 |
DESCRIPTION="The Cyrus IMAP Server." |
62 |
HOMEPAGE="http://asg.web.cmu.edu/cyrus/imapd/" |
63 |
SRC_URI="ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/${MY_P}.tar.gz" |
64 |
LIBWRAP_PATCH_VER="2.2" |
65 |
|
66 |
LICENSE="as-is" |
67 |
SLOT="0" |
68 |
KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" |
69 |
IUSE="drac idled kerberos kolab nntp pam replication snmp ssl tcpd" |
70 |
|
71 |
PROVIDE="virtual/imapd" |
72 |
RDEPEND=">=sys-libs/db-3.2 |
73 |
>=dev-libs/cyrus-sasl-2.1.13 |
74 |
pam? ( |
75 |
virtual/pam |
76 |
>=net-mail/mailbase-1 |
77 |
) |
78 |
kerberos? ( virtual/krb5 ) |
79 |
snmp? ( >=net-analyzer/net-snmp-5.2.2-r1 ) |
80 |
ssl? ( >=dev-libs/openssl-0.9.6 ) |
81 |
tcpd? ( >=sys-apps/tcp-wrappers-7.6 ) |
82 |
drac? ( >=mail-client/drac-1.12-r1 ) |
83 |
nntp? ( !net-nntp/leafnode ) |
84 |
kolab? ( net-nds/openldap )" |
85 |
|
86 |
DEPEND="$RDEPEND |
87 |
sys-devel/libtool |
88 |
>=sys-devel/autoconf-2.58 |
89 |
sys-devel/automake" |
90 |
|
91 |
RDEPEND="$RDEPEND |
92 |
!virtual/imapd" |
93 |
|
94 |
new_net-snmp_check() { |
95 |
# tcpd USE flag check. Bug #68254. |
96 |
if use tcpd ; then |
97 |
if has_version net-analyzer/net-snmp && ! built_with_use net-analyzer/net-snmp tcpd ; then |
98 |
eerror "You are emerging this package with USE=\"tcpd\"" |
99 |
eerror "but \"net-analyzer/net-snmp\" has been emerged with USE=\"-tcpd\"" |
100 |
fail_msg |
101 |
fi |
102 |
else |
103 |
if has_version net-analyzer/net-snmp && built_with_use net-analyzer/net-snmp tcpd ; then |
104 |
eerror "You are emerging this package with USE=\"-tcpd\"" |
105 |
eerror "but \"net-analyzer/net-snmp\" has been emerged with USE=\"tcpd\"" |
106 |
fail_msg |
107 |
fi |
108 |
fi |
109 |
# DynaLoader check. Bug #67411 |
110 |
|
111 |
if [ -x "$(type -p net-snmp-config)" ]; then |
112 |
einfo "$(type -p net-snmp-config) is found and executable." |
113 |
NSC_AGENTLIBS="$(net-snmp-config --agent-libs)" |
114 |
einfo "NSC_AGENTLIBS=\""${NSC_AGENTLIBS}"\"" |
115 |
if [ -z "$NSC_AGENTLIBS" ]; then |
116 |
eerror "NSC_AGENTLIBS is null" |
117 |
einfo "please report this to bugs.gentoo.org" |
118 |
fi |
119 |
for i in ${NSC_AGENTLIBS}; do |
120 |
# check for the DynaLoader path. |
121 |
if [ "$(expr "$i" : '.*\(DynaLoader\)')" == "DynaLoader" ] ; then |
122 |
DYNALOADER_PATH="$i" |
123 |
einfo "DYNALOADER_PATH=\""${DYNALOADER_PATH}"\"" |
124 |
if [[ ! -f "${DYNALOADER_PATH}" ]]; then |
125 |
eerror "\""${DYNALOADER_PATH}"\" is not found." |
126 |
einfo "Have you upgraded \"perl\" after" |
127 |
einfo "you emerged \"net-snmp\". Please re-emerge" |
128 |
einfo "\"net-snmp\" then try again. Bug #67411." |
129 |
die "\""${DYNALOADER_PATH}"\" is not found." |
130 |
fi |
131 |
fi |
132 |
done |
133 |
else |
134 |
eerror "\"net-snmp-config\" not found or not executable!" |
135 |
die "You have \"net-snmp\" installed but \"net-snmp-config\" is not found or not executable. Please re-emerge \"net-snmp\" and try again!" |
136 |
fi |
137 |
} |
138 |
|
139 |
fail_msg() { |
140 |
eerror "enable "snmp" USE flag for this package requires" |
141 |
eerror "that net-analyzer/net-snmp and this package both build with" |
142 |
eerror "\"tcpd\" or \"-tcpd\". Bug #68254" |
143 |
die "sanity check failed." |
144 |
} |
145 |
|
146 |
pkg_setup() { |
147 |
use snmp && new_net-snmp_check |
148 |
enewuser cyrus -1 -1 /usr/cyrus mail |
149 |
} |
150 |
|
151 |
S=${WORKDIR}/${MY_P} |
152 |
|
153 |
src_unpack() { |
154 |
unpack ${A} && cd "${S}" |
155 |
|
156 |
ht_fix_file "${S}"/imap/xversion.sh |
157 |
|
158 |
# Fix prestripped binaries |
159 |
epatch "${FILESDIR}/${PN}-strip.patch" |
160 |
|
161 |
if use drac ; then |
162 |
epatch "${S}/contrib/drac_auth.patch" |
163 |
fi |
164 |
|
165 |
# KOLAB support |
166 |
if use kolab ; then |
167 |
EPATCH_SOURCE="${FILESDIR}/kolab/${PV}" EPATCH_SUFFIX="patch" \ |
168 |
EPATCH_FORCE="yes" epatch |
169 |
# These files are being created automatically and need to be updated |
170 |
# # after the patches used above |
171 |
rm -f lib/imapopts.h lib/imapopts.c |
172 |
fi |
173 |
|
174 |
# Add libwrap defines as we don't have a dynamicly linked library. |
175 |
use tcpd && epatch "${FILESDIR}/${PN}-${LIBWRAP_PATCH_VER}-libwrap.patch" |
176 |
|
177 |
# Fix master(8)->cyrusmaster(8) manpage. |
178 |
for i in `grep -rl -e 'master\.8' -e 'master(8)' "${S}"` ; do |
179 |
sed -i -e 's:master\.8:cyrusmaster.8:g' \ |
180 |
-e 's:master(8):cyrusmaster(8):g' \ |
181 |
"${i}" || die "sed failed" || die "sed failed" |
182 |
done |
183 |
mv man/master.8 man/cyrusmaster.8 || die "mv failed" |
184 |
sed -i -e "s:MASTER:CYRUSMASTER:g" \ |
185 |
-e "s:Master:Cyrusmaster:g" \ |
186 |
-e "s:master:cyrusmaster:g" \ |
187 |
man/cyrusmaster.8 || die "sed failed" |
188 |
|
189 |
# Recreate configure. |
190 |
WANT_AUTOCONF="2.5" |
191 |
AT_M4DIR="cmulocal" eautoreconf |
192 |
|
193 |
# When linking with rpm, you need to link with more libraries. |
194 |
sed -i -e "s:lrpm:lrpm -lrpmio -lrpmdb:" configure || die "sed failed" |
195 |
|
196 |
if use kolab ; then |
197 |
sed -i -e "s/{LIB_SASL}/{LIB_SASL} -lldap -llber /" configure || die "sed failed" |
198 |
fi |
199 |
} |
200 |
|
201 |
src_compile() { |
202 |
local myconf |
203 |
myconf="${myconf} $(use_with ssl openssl)" |
204 |
myconf="${myconf} $(use_with snmp ucdsnmp)" |
205 |
myconf="${myconf} $(use_with tcpd libwrap)" |
206 |
myconf="${myconf} $(use_enable kerberos gssapi) $(use_enable kerberos krb5afspts)" |
207 |
myconf="${myconf} $(use_enable idled)" |
208 |
myconf="${myconf} $(use_enable nntp nntp)" |
209 |
myconf="${myconf} $(use_enable replication)" |
210 |
|
211 |
if use drac; then |
212 |
myconf="${myconf} --with-drac=/usr/$(get_libdir)" |
213 |
else |
214 |
myconf="${myconf} --without-drac" |
215 |
fi |
216 |
|
217 |
if use kerberos; then |
218 |
myconf="${myconf} --with-auth=krb5" |
219 |
else |
220 |
myconf="${myconf} --with-auth=unix" |
221 |
fi |
222 |
|
223 |
econf \ |
224 |
--enable-murder \ |
225 |
--enable-listext \ |
226 |
--enable-netscapehack \ |
227 |
--with-extraident=Gentoo \ |
228 |
--with-service-path=/usr/lib/cyrus \ |
229 |
--with-cyrus-user=cyrus \ |
230 |
--with-cyrus-group=mail \ |
231 |
--with-com_err=yes \ |
232 |
--without-perl \ |
233 |
--disable-cyradm \ |
234 |
${myconf} || die "econf failed" |
235 |
|
236 |
# needed for parallel make. Bug #72352. |
237 |
cd "${S}"/imap |
238 |
emake xversion.h || die "emake xversion.h failed" |
239 |
|
240 |
# -j1 for #222529 |
241 |
cd "${S}" |
242 |
emake -j1 || die "compile problem" |
243 |
} |
244 |
|
245 |
src_install() { |
246 |
dodir /usr/bin /usr/lib |
247 |
for subdir in master imap imtest timsieved notifyd sieve; do |
248 |
make -C "${subdir}" DESTDIR="${D}" install || die "make install failed" |
249 |
done |
250 |
|
251 |
# Link master to cyrusmaster (postfix has a master too) |
252 |
dosym /usr/lib/cyrus/master /usr/lib/cyrus/cyrusmaster |
253 |
|
254 |
if ! use nntp ; then |
255 |
rm man/fetchnews.8 man/syncnews.8 man/nntpd.8 man/nntptest.1 |
256 |
rm "${D}"/usr/bin/nntptest |
257 |
fi |
258 |
|
259 |
doman man/*.[0-8] |
260 |
dodoc COPYRIGHT README* |
261 |
dohtml doc/*.html doc/murder.png |
262 |
cp doc/cyrusv2.mc "${D}/usr/share/doc/${PF}/html" |
263 |
cp -r contrib tools "${D}/usr/share/doc/${PF}" |
264 |
find "${D}/usr/share/doc" -name CVS -print0 | xargs -0 rm -rf |
265 |
|
266 |
insinto /etc |
267 |
doins "${FILESDIR}/cyrus.conf" "${FILESDIR}/imapd.conf" |
268 |
|
269 |
newinitd "${FILESDIR}/cyrus.rc6" cyrus |
270 |
newconfd "${FILESDIR}/cyrus.confd" cyrus |
271 |
newpamd "${FILESDIR}/cyrus.pam-include" sieve |
272 |
|
273 |
for subdir in imap/{,db,log,msg,proc,socket,sieve} spool/imap/{,stage.} ; do |
274 |
keepdir "/var/${subdir}" |
275 |
fowners cyrus:mail "/var/${subdir}" |
276 |
fperms 0750 "/var/${subdir}" |
277 |
done |
278 |
for subdir in imap/{user,quota,sieve} spool/imap ; do |
279 |
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 |
280 |
keepdir "/var/${subdir}/${i}" |
281 |
fowners cyrus:mail "/var/${subdir}/${i}" |
282 |
fperms 0750 "/var/${subdir}/${i}" |
283 |
done |
284 |
done |
285 |
} |
286 |
|
287 |
pkg_postinst() { |
288 |
# do not install server.{key,pem) if they are exist. |
289 |
use ssl && { |
290 |
if [ ! -f "${ROOT}"etc/ssl/cyrus/server.key ]; then |
291 |
install_cert /etc/ssl/cyrus/server |
292 |
chown cyrus:mail "${ROOT}"etc/ssl/cyrus/server.{key,pem} |
293 |
fi |
294 |
} |
295 |
|
296 |
if df -T /var/imap | grep -q ' ext2 ' ; then |
297 |
ebegin "Making /var/imap/user/* and /var/imap/quota/* synchronous." |
298 |
chattr +S /var/imap/{user,quota}{,/*} |
299 |
eend $? |
300 |
fi |
301 |
|
302 |
if df -T /var/spool/imap | grep -q ' ext2 ' ; then |
303 |
ebegin "Making /var/spool/imap/* synchronous." |
304 |
chattr +S /var/spool/imap{,/*} |
305 |
eend $? |
306 |
fi |
307 |
|
308 |
ewarn "If the queue directory of the mail daemon resides on an ext2" |
309 |
ewarn "filesystem you need to set it manually to update" |
310 |
ewarn "synchronously. E.g. 'chattr +S /var/spool/mqueue'." |
311 |
echo |
312 |
|
313 |
elog "For correct logging add the following to /etc/syslog.conf:" |
314 |
elog " local6.* /var/log/imapd.log" |
315 |
elog " auth.debug /var/log/auth.log" |
316 |
echo |
317 |
|
318 |
elog "You have to add user cyrus to the sasldb2. Do this with:" |
319 |
elog " saslpasswd2 cyrus" |
320 |
} |