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