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

(-)/usr/portage/net-mail/dovecot/dovecot-1.2.9.ebuild (-11 / +11 lines)
Lines 76-84 Link Here
76
	[ "${storages}" ] || storages="maildir"
76
	[ "${storages}" ] || storages="maildir"
77
77
78
	econf \
78
	econf \
79
		--sysconfdir=/etc/dovecot \
79
		--sysconfdir=${EPREFIX}/etc/dovecot \
80
		--localstatedir=/var \
80
		--localstatedir=${EPREFIX}/var \
81
		--with-moduledir="/usr/$( get_libdir )/dovecot" \
81
		--with-moduledir="${EPREFIX}/usr/$( get_libdir )/dovecot" \
82
		$( use_with berkdb db ) \
82
		$( use_with berkdb db ) \
83
		$( use_with bzip2 bzlib ) \
83
		$( use_with bzip2 bzlib ) \
84
		$( use_with caps libcap ) \
84
		$( use_with caps libcap ) \
Lines 137-147 Link Here
137
		fperms 4750 /usr/libexec/dovecot/deliver
137
		fperms 4750 /usr/libexec/dovecot/deliver
138
	fi
138
	fi
139
139
140
	rm -f "${D}"/etc/dovecot/dovecot-{ldap,sql}-example.conf
140
	rm -f "${ED}"/etc/dovecot/dovecot-{ldap,sql}-example.conf
141
141
142
	newinitd "${FILESDIR}"/dovecot.init-r2 dovecot
142
	newinitd "${FILESDIR}"/dovecot.init-r2 dovecot
143
143
144
	rm -rf "${D}"/usr/share/doc/dovecot
144
	rm -rf "${ED}"/usr/share/doc/dovecot
145
145
146
	if use ssl; then
146
	if use ssl; then
147
		sed -i -e 's,^CERTDIR=.*,CERTDIR=\$SSLDIR/dovecot,' \
147
		sed -i -e 's,^CERTDIR=.*,CERTDIR=\$SSLDIR/dovecot,' \
Lines 158-165 Link Here
158
158
159
	# Create the dovecot.conf file from the dovecot-example.conf file that
159
	# Create the dovecot.conf file from the dovecot-example.conf file that
160
	# the dovecot folks nicely left for us....
160
	# the dovecot folks nicely left for us....
161
	local conf="${D}/etc/dovecot/dovecot.conf"
161
	local conf="${ED}/etc/dovecot/dovecot.conf"
162
	mv "${D}"/etc/dovecot/dovecot-example.conf "${D}"/etc/dovecot/dovecot.conf
162
	mv "${ED}"/etc/dovecot/dovecot-example.conf "${ED}"/etc/dovecot/dovecot.conf
163
163
164
	# .maildir is the Gentoo default, but we need to support mbox to
164
	# .maildir is the Gentoo default, but we need to support mbox to
165
	local mail_location="maildir:~/.maildir"
165
	local mail_location="maildir:~/.maildir"
Lines 195-201 Link Here
195
195
196
	# Install SQL configuration
196
	# Install SQL configuration
197
	if use mysql || use postgres; then
197
	if use mysql || use postgres; then
198
		cp doc/dovecot-sql-example.conf "${D}"/etc/dovecot/dovecot-sql.conf
198
		cp doc/dovecot-sql-example.conf "${ED}"/etc/dovecot/dovecot-sql.conf
199
		fperms 600 /etc/dovecot/dovecot-sql.conf
199
		fperms 600 /etc/dovecot/dovecot-sql.conf
200
		sed -i -e '/db sql/,/args/ s|=|= /etc/dovecot-sql.conf|' "${conf}" \
200
		sed -i -e '/db sql/,/args/ s|=|= /etc/dovecot-sql.conf|' "${conf}" \
201
			|| die "failed to update SQL settings in dovecot-sql.conf"
201
			|| die "failed to update SQL settings in dovecot-sql.conf"
Lines 204-210 Link Here
204
204
205
	# Install LDAP configuration
205
	# Install LDAP configuration
206
	if use ldap; then
206
	if use ldap; then
207
		cp doc/dovecot-ldap-example.conf "${D}"/etc/dovecot/dovecot-ldap.conf
207
		cp doc/dovecot-ldap-example.conf "${ED}"/etc/dovecot/dovecot-ldap.conf
208
		fperms 600 /etc/dovecot/dovecot-ldap.conf
208
		fperms 600 /etc/dovecot/dovecot-ldap.conf
209
		sed -i -e '/db ldap/,/args/ s|=|= /etc/dovecot-ldap.conf|' "${conf}" \
209
		sed -i -e '/db ldap/,/args/ s|=|= /etc/dovecot-ldap.conf|' "${conf}" \
210
			|| die "failed to update LDAP settings in dovecot-ldap.conf"
210
			|| die "failed to update LDAP settings in dovecot-ldap.conf"
Lines 213-223 Link Here
213
213
214
	if use sieve; then
214
	if use sieve; then
215
		cd "../dovecot-${major_minor}-sieve-${sieve_version}"
215
		cd "../dovecot-${major_minor}-sieve-${sieve_version}"
216
		emake DESTDIR="${D}" install || die "make install failed (sieve)"
216
		emake DESTDIR="${ED}" install || die "make install failed (sieve)"
217
217
218
		if use managesieve; then
218
		if use managesieve; then
219
			cd "../dovecot-${major_minor}-managesieve-${managesieve_version}"
219
			cd "../dovecot-${major_minor}-managesieve-${managesieve_version}"
220
			emake DESTDIR="${D}" install || die "make install failed (managesieve)"
220
			emake DESTDIR="${ED}" install || die "make install failed (managesieve)"
221
		fi
221
		fi
222
	fi
222
	fi
223
223

Return to bug 302785