Gentoo Archives: gentoo-commits

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