Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 213280 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/net-mail/cyrus-imapd/cyrus-imapd-2.3.9-r1.ebuild (-5 / +3 lines)
Lines 218-233 Link Here
218
}
218
}
219
219
220
pkg_postinst() {
220
pkg_postinst() {
221
	# do not install server.{key,pem) if they are exist.
221
	# do not install server.{key,pem) if they already exist.
222
	use ssl && {
222
	use ssl && {
223
		if [ ! -f "${ROOT}"etc/ssl/cyrus/server.key ]; then
223
		if [ ! -f "${ROOT}"/etc/ssl/cyrus/server.key ]; then
224
			install_cert /etc/ssl/cyrus/server
224
			install_cert /etc/ssl/cyrus/server
225
			chown cyrus:mail "${ROOT}"etc/ssl/cyrus/server.{key,pem}
225
			chown cyrus:mail "${ROOT}"/etc/ssl/cyrus/server.{key,pem}
226
	fi
226
	fi
227
	}
227
	}
228
228
229
	enewuser cyrus -1 -1 /usr/cyrus mail
230
231
	if df -T /var/imap | grep -q ' ext[23] ' ; then
229
	if df -T /var/imap | grep -q ' ext[23] ' ; then
232
		ebegin "Making /var/imap/user/* and /var/imap/quota/* synchronous."
230
		ebegin "Making /var/imap/user/* and /var/imap/quota/* synchronous."
233
		chattr +S /var/imap/{user,quota}{,/*}
231
		chattr +S /var/imap/{user,quota}{,/*}

Return to bug 213280