Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 110218
Collapse All | Expand All

(-)cyrus-imapd-2.2.12-r3.ebuild (-5 / +34 lines)
Lines 11-17 Link Here
11
LICENSE="as-is"
11
LICENSE="as-is"
12
SLOT="0"
12
SLOT="0"
13
KEYWORDS="~x86 ~sparc ~amd64 ~ppc ~hppa ~ppc64"
13
KEYWORDS="~x86 ~sparc ~amd64 ~ppc ~hppa ~ppc64"
14
IUSE="afs drac idled kerberos pam snmp ssl tcpd unsupported_8bit"
14
IUSE="afs drac idled kerberos nosieve pam snmp ssl tcpd unsupported_8bit"
15
15
16
PROVIDE="virtual/imapd"
16
PROVIDE="virtual/imapd"
17
RDEPEND=">=sys-libs/db-3.2
17
RDEPEND=">=sys-libs/db-3.2
Lines 202-207 Link Here
202
		myconf="${myconf} --with-idle=poll"
202
		myconf="${myconf} --with-idle=poll"
203
	fi
203
	fi
204
204
205
	if use nosieve; then
206
		myconf="${myconf} --disable-sieve"
207
	fi
208
205
	econf \
209
	econf \
206
		--enable-murder \
210
		--enable-murder \
207
		--enable-listext \
211
		--enable-listext \
Lines 226-232 Link Here
226
230
227
src_install() {
231
src_install() {
228
	dodir /usr/bin /usr/lib
232
	dodir /usr/bin /usr/lib
229
	for subdir in master imap imtest timsieved notifyd sieve; do
233
234
	if use nosieve; then
235
		SUBDIRS="master imap imtest"
236
	else
237
		SUBDIRS="master imap imtest timsieved notifyd sieve"
238
	fi
239
240
	for subdir in ${SUBDIRS}; do
230
		make -C "${subdir}" DESTDIR="${D}" install || die "make install failed"
241
		make -C "${subdir}" DESTDIR="${D}" install || die "make install failed"
231
	done
242
	done
232
243
Lines 245-251 Link Here
245
256
246
	newinitd "${FILESDIR}/cyrus.rc6" cyrus
257
	newinitd "${FILESDIR}/cyrus.rc6" cyrus
247
	newconfd "${FILESDIR}/cyrus.confd" cyrus
258
	newconfd "${FILESDIR}/cyrus.confd" cyrus
248
	newpamd "${FILESDIR}/cyrus.pam-include" sieve
259
260
	if ! use nosieve; then
261
		if use pam; then
262
			newpamd "${FILESDIR}/cyrus.pam-include" sieve
263
		fi
264
	fi
249
265
250
	if use ssl ; then
266
	if use ssl ; then
251
		SSL_ORGANIZATION="${SSL_ORGANIZATION:-Cyrus IMAP Server}"
267
		SSL_ORGANIZATION="${SSL_ORGANIZATION:-Cyrus IMAP Server}"
Lines 254-265 Link Here
254
		fowners cyrus:mail /etc/ssl/cyrus/server.{key,pem}
270
		fowners cyrus:mail /etc/ssl/cyrus/server.{key,pem}
255
	fi
271
	fi
256
272
257
	for subdir in imap/{,db,log,msg,proc,socket,sieve} spool/imap/{,stage.} ; do
273
	if use nosieve; then
274
		SUBDIRS="$( echo imap/{,db,log,msg,proc,socket} spool/imap/{,stage.} )"
275
	else
276
		SUBDIRS="$( echo imap/{,db,log,msg,proc,socket,sieve} spool/imap/{,stage.} )"
277
	fi
278
279
	for subdir in ${SUBDIRS} ; do
258
		keepdir "/var/${subdir}"
280
		keepdir "/var/${subdir}"
259
		fowners cyrus:mail "/var/${subdir}"
281
		fowners cyrus:mail "/var/${subdir}"
260
		fperms 0750 "/var/${subdir}"
282
		fperms 0750 "/var/${subdir}"
261
	done
283
	done
262
	for subdir in imap/{user,quota,sieve} spool/imap ; do
284
285
	if use nosieve; then
286
		SUBDIRS="$( echo imap/{user,quota} spool/imap )"
287
	else
288
		SUBDIRS="$( echo imap/{user,quota,sieve} spool/imap )"
289
	fi
290
291
	for subdir in ${SUBDIRS} ; do
263
		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
292
		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
264
			keepdir "/var/${subdir}/${i}"
293
			keepdir "/var/${subdir}/${i}"
265
			fowners cyrus:mail "/var/${subdir}/${i}"
294
			fowners cyrus:mail "/var/${subdir}/${i}"

Return to bug 110218